:root {
  --court-navy: #071b33;
  --rally-blue: #1473e6;
  --ace-cyan: #34d6ff;
  --match-lime: #c7f000;
  --baseline-white: #fff;
  --ink: #10263d;
  --muted: #60758a;
  --line: #d8e0e8;
  --surface: #f4f7fa;
  --radius: 14px;
}

/* Controle das telas da transmissão pública */
.broadcast-control-panel { max-width: 1440px; margin: 24px auto 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 14px 38px rgba(7,27,51,.07); }
.broadcast-control-panel > header { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.broadcast-control-panel > header .eyebrow { margin-bottom: 6px; }
.broadcast-control-panel > header h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.broadcast-control-panel > header p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.broadcast-count { min-width: 94px; padding: 10px 13px; display: flex; align-items: baseline; justify-content: center; gap: 6px; flex: 0 0 auto; border: 1px solid #d9e4eb; border-radius: 10px; color: #405a70; background: #f5f8fa; }
.broadcast-count b { color: var(--rally-blue); font-size: 20px; line-height: 1; }
.broadcast-count small { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.broadcast-control-grid { display: grid; grid-template-columns: minmax(320px, .88fr) minmax(380px, 1.12fr); gap: 14px; align-items: stretch; }
.broadcast-connect-card, .broadcast-screens-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.broadcast-connect-card > header { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 11px; align-items: start; }
.broadcast-connect-card > header > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: var(--ace-cyan); background: var(--court-navy); font-size: 11px; font-weight: 900; }
.broadcast-connect-card header strong, .broadcast-screens-card > header strong { color: var(--ink); font-size: 15px; }
.broadcast-connect-card header p, .broadcast-screens-card > header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.broadcast-connect-card > a { min-height: 43px; margin: 16px 0; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow: hidden; border: 1px solid #cad8e3; border-radius: 8px; color: #3e596e; background: white; font-size: 11px; text-decoration: none; }
.broadcast-connect-card > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-connect-card > a b { flex: 0 0 auto; color: var(--rally-blue); }
.broadcast-connect-card > a:hover { border-color: var(--rally-blue); }
.broadcast-code-form { padding-top: 16px; border-top: 1px solid #e2e9ee; }
.broadcast-code-form > label { margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #405a70; }
.broadcast-code-form > label span { font-size: 11px; font-weight: 850; text-transform: uppercase; }
.broadcast-code-form > label small { color: var(--muted); font-size: 10px; }
.broadcast-code-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.broadcast-code-form input { width: 100%; min-width: 0; height: 48px; padding: 0 13px; border: 1px solid #b7c8d6; border-radius: 8px; outline: 0; color: var(--court-navy); background: white; font-size: 20px; font-weight: 850; letter-spacing: .2em; font-variant-numeric: tabular-nums; text-align: center; }
.broadcast-code-form input:focus { border-color: var(--rally-blue); box-shadow: 0 0 0 3px rgba(20,115,230,.12); }
.broadcast-code-form .button { min-height: 48px; padding: 0 17px; }
.broadcast-code-form > small { margin-top: 7px; display: block; color: var(--muted); font-size: 10px; }
.broadcast-screens-card > header { min-height: 42px; margin-bottom: 12px; display: flex; align-items: center; }
.broadcast-screen-list { display: grid; gap: 8px; }
.broadcast-screen-list article { min-height: 62px; padding: 9px 10px; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.broadcast-screen-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 8px; color: var(--ace-cyan); background: var(--court-navy); font-size: 19px; }
.broadcast-screen-list article > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.broadcast-screen-list article > div strong { color: var(--ink); font-size: 13px; }
.broadcast-screen-list article > div small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-screen-list article > em { display: flex; align-items: center; gap: 5px; color: #496276; font-size: 9px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.broadcast-screen-list article > em i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.broadcast-screen-list article > em.online { color: #568000; }
.broadcast-screen-list article > em.offline { color: #a66c05; }
.broadcast-screen-list article form button { padding: 7px 9px; border: 1px solid #e0bcbc; border-radius: 7px; color: #984040; background: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.broadcast-screen-list article form button:hover { border-color: #c66d6d; background: #fff7f7; }
.broadcast-empty { min-height: 143px; padding: 22px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 1px dashed #b9c9d5; border-radius: 9px; color: var(--muted); text-align: left; background: white; }
.broadcast-empty > span { color: #8ca1b2; font-size: 24px; }
.broadcast-empty strong { color: #405a70; font-size: 13px; }
.broadcast-empty p { margin: 3px 0 0; font-size: 11px; }

@media (max-width: 860px) {
  .broadcast-control-panel > header { flex-direction: column; gap: 14px; }
  .broadcast-control-panel > header { align-items: flex-start; }
  .broadcast-control-grid { grid-template-columns: 1fr; }
  .broadcast-count { align-self: flex-start; }
}
@media (max-width: 560px) {
  .broadcast-control-panel { padding: 18px; }
  .broadcast-code-form > div { grid-template-columns: 1fr; }
  .broadcast-screen-list article { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .broadcast-screen-list article > em { justify-self: end; }
  .broadcast-screen-list article form { grid-column: 2 / -1; }
  .broadcast-screen-list article form button { width: 100%; }
}

/* Perfis e escala da arbitragem */
.passwordless-referee-link { margin-top: 14px; display: block; color: var(--rally-blue); font-size: 12px; font-weight: 750; text-align: center; text-decoration: none; }
.referee-management-grid { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.referee-create-card, .referee-access-card { padding: 24px; }
.referee-create-card > header, .referee-access-card > header { margin-bottom: 18px; }
.referee-create-card h2, .referee-access-card h2, .referee-team-list h2 { margin: 0; font-size: 21px; }
.referee-create-card header p, .referee-access-card header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.referee-create-card form, .referee-access-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.referee-create-card form .field:nth-of-type(n+3), .referee-create-card form .button, .referee-access-card form .button { grid-column: 1 / -1; }
.referee-create-card .field small { margin-top: 4px; display: block; color: var(--muted); font-size: 10px; }
.referee-access-card input { font-size: 19px; font-weight: 850; letter-spacing: .16em; text-align: center; }
.referee-access-url { margin-top: 14px; display: inline-block; color: var(--rally-blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.referee-team-list { padding: 24px; }
.referee-team-list > header { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.referee-team-list > header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.referee-team-list > header span { color: var(--muted); font-size: 11px; font-weight: 750; }
.referee-team-list article { min-height: 76px; padding: 12px 0; display: grid; grid-template-columns: 42px minmax(150px, .8fr) minmax(110px, .45fr) minmax(220px, 1fr); align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.referee-team-list article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ace-cyan); background: var(--court-navy); font-size: 15px; font-weight: 900; }
.referee-team-list article > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.referee-team-list article > div strong { font-size: 13px; }
.referee-team-list article > div small { color: var(--muted); font-size: 10px; }
.referee-presence em, .referee-current-match em { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.referee-presence em i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #aeb8c2; }
.referee-presence em.online { color: #568000; }
.referee-presence em.online i { background: var(--match-lime); box-shadow: 0 0 0 3px rgba(199,240,0,.2); }
.referee-current-match { padding-left: 16px; border-left: 1px solid var(--line); }
.referee-current-match em { color: var(--rally-blue); }
.referee-current-match em.idle { color: var(--muted); }
.referee-current-match a { overflow: hidden; color: var(--court-navy); font-size: 12px; font-weight: 850; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.referee-current-match a b { color: var(--rally-blue); }
.referee-agenda-heading { margin-bottom: 22px; }
.referee-agenda-list { display: grid; gap: 10px; }
.referee-agenda-list > article { min-height: 92px; padding: 14px 16px; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-left: 4px solid var(--rally-blue); border-radius: 12px; background: white; box-shadow: 0 8px 24px rgba(7,27,51,.05); }
.referee-agenda-list time { display: flex; flex-direction: column; align-items: center; }
.referee-agenda-list time strong { color: var(--court-navy); font-size: 23px; }
.referee-agenda-list time small { color: var(--muted); font-size: 10px; }
.referee-agenda-list article > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.referee-agenda-list article > div span { color: var(--rally-blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.referee-agenda-list article > div strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.referee-agenda-list article > div strong i { color: var(--muted); font-style: normal; font-weight: 500; }
.referee-agenda-list article > div small { color: var(--muted); font-size: 11px; }
.referee-agenda-list .button { min-height: 42px; box-shadow: none; }
@media (max-width: 800px) {
  .referee-management-grid { grid-template-columns: 1fr; }
  .referee-team-list article { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .referee-current-match { grid-column: 2 / -1; padding: 10px 0 0; border-top: 1px dashed var(--line); border-left: 0; }
  .referee-agenda-list > article { grid-template-columns: 58px minmax(0, 1fr); }
  .referee-agenda-list > article > em, .referee-agenda-list > article > a { grid-column: 2; justify-self: start; }
}
@media (max-width: 520px) {
  .referee-create-card form, .referee-access-card form { grid-template-columns: 1fr; }
  .referee-create-card form .field, .referee-create-card form .button { grid-column: 1; }
  .referee-team-list { padding: 18px; }
  .referee-team-list article { grid-template-columns: 42px minmax(0, 1fr); }
  .referee-presence, .referee-current-match { grid-column: 2; }
}

/* Central de arbitragem touch */
.portal-body:has(.referee-shell) { background: #eef3f7; }
.portal-body:has(.referee-shell) > .portal-header, .portal-body:has(.referee-shell) > .portal-nav, .portal-body:has(.referee-shell) > .mobile-nav { display: none; }
.portal-main:has(.referee-shell) { width: 100%; max-width: none; padding: 16px; }
.referee-shell { width: min(1440px, 100%); margin: 0 auto; }
.referee-shell:fullscreen { width: 100%; max-width: none; padding: 16px; overflow-y: auto; background: #eef3f7; }
.referee-topbar { margin-bottom: 14px; padding: 13px 18px; position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; border-radius: 12px; color: white; background: rgba(7,27,51,.97); box-shadow: 0 8px 24px rgba(7,27,51,.18); backdrop-filter: blur(10px); }
.referee-topbar > a { color: var(--ace-cyan); font-size: 12px; font-weight: 800; text-decoration: none; }
.referee-topbar > div { min-width: 0; display: flex; flex-direction: column; text-align: center; }
.referee-topbar > div span { overflow: hidden; color: white; font-size: 15px; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.referee-topbar > div strong { color: #b7cada; font-size: 11px; line-height: 1.3; }
.referee-topbar-actions { display: flex; flex-direction: row !important; align-items: center; justify-content: flex-end; gap: 10px; }
.referee-topbar-actions em { color: var(--match-lime); font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.referee-topbar-actions em.saving { color: var(--ace-cyan); }
.referee-topbar-actions button { min-height: 36px; padding: 0 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; color: white; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; cursor: pointer; }
.referee-cast-control { min-height: 36px; display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.08); }
.referee-cast-control google-cast-launcher { width: 36px; height: 36px; padding: 8px; --connected-color: var(--match-lime); --disconnected-color: white; }
.referee-cast-control google-cast-launcher { display: none; }
.referee-cast-control > button { min-height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 0; background: transparent; }
.referee-cast-control > button svg { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }
.referee-cast-control.loading { opacity: .7; }
.referee-cast-control.unavailable:not(.connected) { border-color: rgba(255,255,255,.14); }
.referee-cast-control.connecting { opacity: .72; pointer-events: none; }
.referee-cast-control.connected { border-color: rgba(199,240,0,.55); background: rgba(199,240,0,.1); }
.referee-cast-font-control { min-height: 36px; display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06); }
.referee-cast-font-control button { min-height: 34px; padding: 0 9px; border: 0; border-radius: 0; background: transparent; }
.referee-cast-font-control output { min-width: 46px; color: var(--match-lime); font-size: 11px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.referee-cast-font-control button:disabled { opacity: .35; cursor: default; }
.referee-setup { max-width: 760px; margin: 34px auto; padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 18px 50px rgba(7,27,51,.1); }
.referee-setup > header { margin-bottom: 25px; text-align: center; }
.referee-setup h1 { margin: 0 0 8px; color: var(--court-navy); font-size: clamp(30px, 5vw, 45px); }
.referee-setup > header p:last-child { margin: 0; color: var(--muted); }
.referee-setup-players { margin-bottom: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.referee-setup-players article { padding: 18px; display: flex; flex-direction: column; gap: 5px; border-radius: 12px; color: white; background: var(--court-navy); }
.referee-setup-players small, .referee-setup-group small { color: #a9bfd2; font-size: 10px; text-transform: uppercase; }
.referee-setup-players strong { font-size: 18px; }
.referee-setup-group { margin-top: 22px; }
.referee-setup-group h2 { margin: 0 0 10px; font-size: 15px; }
.referee-setup-group > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.referee-setup-group label { position: relative; cursor: pointer; }
.referee-setup-group input { position: absolute; opacity: 0; }
.referee-setup-group label > span { min-height: 72px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 2px solid var(--line); border-radius: 11px; background: #f8fafc; }
.referee-setup-group input:checked + span { border-color: var(--rally-blue); background: #edf6ff; box-shadow: 0 0 0 3px rgba(20,115,230,.1); }
.referee-setup-group b { color: var(--court-navy); font-size: 14px; }
.referee-setup-group label small { color: var(--muted); }
.referee-primary-action { width: 100%; min-height: 58px; margin-top: 26px; border: 0; border-radius: 11px; color: white; background: var(--rally-blue); font-size: 16px; font-weight: 850; box-shadow: 0 12px 28px rgba(20,115,230,.25); cursor: pointer; }
.referee-live { display: grid; gap: 16px; }
.referee-live[hidden], .referee-setup[hidden] { display: none; }
.referee-scoreboard { overflow: hidden; border-radius: 17px; color: white; background: var(--court-navy); box-shadow: 0 14px 36px rgba(7,27,51,.18); }
.referee-scoreboard > header { padding: 13px 18px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.12); }
.referee-scoreboard > header strong { font-size: 13px; }
.referee-scoreboard > header small { margin-left: auto; color: #bfd0de; font-size: 11px; }
.referee-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--match-lime); box-shadow: 0 0 0 5px rgba(199,240,0,.1); }
.referee-current-score { min-height: clamp(250px, 34vh, 350px); padding: clamp(24px, 4vh, 44px) clamp(22px, 3vw, 44px); display: grid; grid-template-columns: 1fr 90px 1fr; gap: 22px; align-items: center; }
.referee-current-score article { min-width: 0; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px auto auto 1fr; grid-template-areas: "server server" "label games" "name games" "points points"; gap: 5px 15px; align-items: center; }
.referee-current-score article:last-child { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "server server" "games label" "games name" "points points"; text-align: right; }
.referee-current-score article > small { grid-area: label; color: #b3c6d5; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.referee-current-score article > strong { grid-area: name; overflow: hidden; font-size: clamp(21px, 2.3vw, 34px); text-overflow: ellipsis; white-space: nowrap; }
.referee-current-score article > em { grid-area: points; align-self: end; margin-top: 14px; color: var(--match-lime); font-size: clamp(68px, 9vw, 112px); font-style: normal; font-weight: 900; line-height: .86; }
.referee-current-score article:last-child > em { text-align: right; }
.referee-games { grid-area: games; align-self: center; display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.5vw, 20px); }
.referee-current-score article:last-child .referee-games { flex-direction: row-reverse; justify-content: flex-start; }
.referee-games > b { color: var(--ace-cyan); font-size: clamp(52px, 7vw, 88px); line-height: 1; }
.referee-previous-sets { display: flex; align-items: stretch; }
.referee-current-score article:last-child .referee-previous-sets { flex-direction: row-reverse; }
.referee-previous-sets:empty { display: none; }
.referee-previous-sets > span { min-width: 54px; padding: 0 clamp(8px, 1vw, 14px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-right: 1px solid rgba(255,255,255,.16); }
.referee-current-score article:last-child .referee-previous-sets > span { border-right: 0; border-left: 1px solid rgba(255,255,255,.16); }
.referee-previous-sets > span small { color: #b3c6d5; font-size: 10px; font-weight: 800; line-height: 1.1; text-align: center; text-transform: uppercase; }
.referee-previous-sets > span i { color: #d5e1eb; font-size: clamp(28px, 3vw, 40px); font-style: normal; font-weight: 900; line-height: 1; }
.referee-previous-sets > span.winner i { color: var(--match-lime); }
.referee-current-score > div { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.referee-current-score > div span, .referee-current-score > div small { color: #b3c6d5; font-size: 11px; line-height: 1.2; }
.referee-current-score > div b { color: var(--match-lime); font-size: 23px; }
.referee-server { width: max-content; padding: 4px 7px; grid-area: server; border-radius: 999px; color: #193000; background: var(--match-lime); font-size: 8px; font-style: normal; font-weight: 900; }
.referee-server[hidden] { display: block; visibility: hidden; }
.referee-current-score article:last-child .referee-server { justify-self: end; }
.referee-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.referee-controls > article { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(7,27,51,.06); }
.referee-controls article > header { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.referee-controls article > header span { padding: 5px 8px; border-radius: 999px; color: #285c4c; background: #dcf3ea; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.referee-controls article > header span[hidden] { visibility: hidden; display: block; }
.referee-controls article > header strong { overflow: hidden; color: var(--court-navy); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.referee-point-button { width: 100%; min-height: clamp(82px, 11vh, 112px); border: 0; border-radius: 12px; color: white; background: var(--rally-blue); font-size: clamp(24px, 2.3vw, 31px); font-weight: 900; box-shadow: 0 10px 24px rgba(20,115,230,.22); cursor: pointer; touch-action: manipulation; }
.referee-controls article > div { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.referee-controls article > div button { min-height: 50px; border: 1px solid #b7c9d8; border-radius: 9px; color: var(--court-navy); background: #f7fafc; font-size: 13px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.referee-controls button:disabled { color: #8b9aa6; border-color: #dce4ea; background: #edf1f4; box-shadow: none; cursor: not-allowed; }
.referee-secondary-actions { display: flex; justify-content: center; gap: 10px; }
.referee-secondary-actions button { min-height: 44px; padding: 0 16px; border: 1px solid #b9c8d5; border-radius: 9px; color: var(--court-navy); background: white; font-size: 14px; font-weight: 800; cursor: pointer; }
.referee-log-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.referee-log-card > header { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #f8fbfd; }
.referee-log-card h2 { margin: 0; font-size: 18px; }
.referee-log-card > header > span { color: var(--muted); font-size: 10px; }
.referee-log-card > div article { min-height: 58px; padding: 10px 18px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.referee-log-card > div article > span { min-width: 0; flex: 1; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; }
.referee-log-card article b { width: 28px; height: 28px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--rally-blue); font-size: 10px; }
.referee-log-card article strong { font-size: 13px; line-height: 1.25; }
.referee-log-card article small, .referee-log-card time { color: var(--muted); font-size: 10px; line-height: 1.25; }
.referee-log-card article em { color: #9a4444; font-size: 10px; font-style: normal; font-weight: 800; }
.referee-log-card article.undone { opacity: .5; text-decoration: line-through; }
.referee-log-card > div > p { padding: 20px; color: var(--muted); text-align: center; }
.referee-toast { min-width: 240px; padding: 13px 17px; position: fixed; z-index: 100; right: 20px; bottom: 20px; border-radius: 10px; color: white; background: #23725a; box-shadow: 0 12px 32px rgba(7,27,51,.22); font-size: 12px; font-weight: 800; }
.referee-toast.error { background: #a43d3d; }
.referee-entry-button { box-shadow: none; }

@media (max-width: 767px) {
  .portal-main:has(.referee-shell) { padding: 8px 8px 22px; }
  .portal-body:has(.referee-shell) { padding-bottom: 0; }
  .portal-body:has(.referee-shell) .mobile-nav { display: none; }
  .referee-shell { width: 100%; }
  .referee-shell:fullscreen { padding: 8px; }
  .referee-topbar { margin: 0 0 8px; padding: 9px 10px; top: 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; border-radius: 10px; }
  .referee-cast-control > button { width: 38px; padding: 0; display: grid; place-items: center; }
  .referee-cast-control > button span { display: none; }
  .referee-cast-font-control output { min-width: 40px; }
  .referee-cast-font-control button { width: 34px; padding: 0; font-size: 12px; }
  .referee-topbar > a { font-size: 0; }
  .referee-topbar > a::first-letter { font-size: 20px; }
  .referee-topbar > div { text-align: left; }
  .referee-topbar-actions { gap: 5px; }
  .referee-topbar-actions em { display: none; }
  .referee-topbar-actions button { width: 38px; padding: 0; font-size: 17px; }
  .referee-topbar-actions button span { display: none; }
  .referee-setup { margin: 12px 0; padding: 20px 16px; }
  .referee-setup-players, .referee-setup-group > div { grid-template-columns: 1fr; }
  .referee-current-score { min-height: 220px; padding: 18px 12px; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 7px; }
  .referee-current-score article { height: 184px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 20px auto minmax(37px, auto) auto 1fr; grid-template-areas: "server" "label" "name" "games" "points"; gap: 3px; align-items: start; }
  .referee-current-score article:last-child { grid-template-columns: minmax(0, 1fr); grid-template-areas: "server" "label" "name" "games" "points"; justify-items: end; }
  .referee-current-score article > strong { width: 100%; min-height: 37px; white-space: normal; font-size: 16px; line-height: 1.15; }
  .referee-current-score article:last-child > strong { text-align: right; }
  .referee-games, .referee-current-score article > em { margin-top: 2px; }
  .referee-current-score article > em { align-self: end; }
  .referee-games { width: 100%; justify-content: flex-start; gap: 8px; }
  .referee-current-score article:last-child .referee-games { justify-content: flex-start; }
  .referee-games > b { font-size: 38px; }
  .referee-previous-sets > span { min-width: 38px; padding: 0 5px; }
  .referee-previous-sets > span small { font-size: 8px; }
  .referee-previous-sets > span i { font-size: 23px; }
  .referee-current-score article > em { font-size: 52px; }
  .referee-controls { grid-template-columns: 1fr; gap: 10px; }
  .referee-controls > article { padding: 12px; }
  .referee-point-button { min-height: 78px; }
  .referee-secondary-actions { align-items: stretch; flex-direction: column; }
  .referee-secondary-actions button { width: 100%; }
  .referee-log-card > header > span { display: none; }
  .referee-toast { right: 12px; bottom: 12px; left: 12px; text-align: center; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--baseline-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.app-header { height: 72px; padding: 0 clamp(16px, 4vw, 60px); display: flex; align-items: center; justify-content: space-between; color: white; background: var(--court-navy); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 21px; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; object-fit: contain; background: white; }
.brand-mark { width: 22px; height: 22px; border: 3px solid var(--ace-cyan); border-radius: 50%; box-shadow: inset -6px 0 0 var(--match-lime); }
nav { display: flex; gap: 24px; }
nav a { color: #dce9f5; font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:focus-visible, nav a:hover { color: var(--ace-cyan); }
.hero { min-height: 510px; padding: 80px clamp(16px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); align-items: center; gap: 64px; overflow: hidden; color: white; background: radial-gradient(circle at 80% 30%, #123d67 0, var(--court-navy) 52%); }
.hero-content { max-width: 680px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--match-lime); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.eyebrow.blue { color: var(--rally-blue); }
h1, h2, h3 { margin-top: 0; font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.04em; }
h1 { max-width: 650px; margin-bottom: 20px; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; }
h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 40px); }
h3 { margin-bottom: 12px; font-size: 25px; }
.hero-copy { max-width: 620px; margin: 0 0 32px; color: #d5e5f3; font-size: 18px; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; color: white; background: var(--rally-blue); font-size: 14px; font-weight: 750; line-height: 1.2; text-decoration: none; box-shadow: 0 10px 28px rgba(20,115,230,.3); cursor: pointer; }
.button:hover { background: #0c63ca; }
.button:disabled, .button[aria-disabled="true"] { border: 1px solid #cdd6de; color: #8997a4; background: #f1f4f6; box-shadow: none; cursor: not-allowed; opacity: .72; pointer-events: none; }
.button:disabled:hover, .button[aria-disabled="true"]:hover { color: #8997a4; background: #f1f4f6; transform: none; }
.button.secondary { border: 1px solid #aac1d5; color: var(--court-navy); background: white; box-shadow: none; }
.button.secondary:hover { border-color: var(--rally-blue); color: var(--rally-blue); background: #f5faff; }
.button:focus-visible, .text-link:focus-visible { outline: 3px solid rgba(52,214,255,.6); outline-offset: 3px; }
.court { width: min(460px, 40vw); aspect-ratio: 1.55; position: relative; transform: rotate(-7deg); border: 4px solid rgba(52,214,255,.7); background: linear-gradient(135deg, rgba(20,115,230,.4), rgba(7,27,51,.25)); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.court::before, .court::after, .court span::before, .court span::after { content: ""; position: absolute; background: rgba(255,255,255,.72); }
.court::before { width: 3px; top: 0; bottom: 0; left: 50%; }
.court::after { height: 3px; left: 0; right: 0; top: 50%; }
.court span::before { width: 3px; top: 0; bottom: 0; left: 24%; }
.court span::after { width: 3px; top: 0; bottom: 0; right: 24%; }
.overview { max-width: 1320px; margin: 0 auto; padding: 80px clamp(16px, 4vw, 60px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.6; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metrics article { min-height: 138px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.metrics strong { display: block; margin-bottom: 12px; color: var(--court-navy); font-size: 38px; font-variant-numeric: tabular-nums; }
.metrics span { color: var(--muted); font-size: 14px; }
.foundation { margin-top: 24px; padding: 32px; display: flex; align-items: end; justify-content: space-between; gap: 40px; border-radius: var(--radius); background: var(--surface); }
.foundation p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.text-link { flex: none; color: var(--rally-blue); font-weight: 750; text-decoration: none; }
footer { padding: 28px clamp(16px, 4vw, 60px); display: flex; justify-content: space-between; color: #9fb1c3; background: var(--court-navy); font-size: 14px; }
footer span:first-child { color: white; font-weight: 800; }

/* Página pública institucional da Arena Equinócio */
.arena-public-body { color: var(--ink); background: #f5f8fa; scroll-behavior: smooth; }
.arena-public-header { height: 78px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); position: absolute; z-index: 20; top: 0; right: 0; left: 0; display: flex; align-items: center; gap: 42px; color: white; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(5,21,38,.44); backdrop-filter: blur(12px); }
.arena-public-header .brand { margin: 0; color: white; text-decoration: none; }
.arena-public-header .brand-logo { width: 46px; height: 46px; padding: 2px; background: white; }
.arena-public-header nav { margin-left: auto; display: flex; align-self: stretch; gap: 28px; }
.arena-public-header nav a { display: flex; align-items: center; position: relative; color: #cad8e5; font-size: 12px; font-weight: 750; text-decoration: none; }
.arena-public-header nav a::after { content: ""; height: 2px; position: absolute; right: 0; bottom: 0; left: 0; background: var(--match-lime); transform: scaleX(0); transition: transform .16s ease; }
.arena-public-header nav a:hover::after, .arena-public-header nav a:focus-visible::after { transform: scaleX(1); }
.arena-public-login { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: white; font-size: 11px; font-weight: 800; text-decoration: none; }
.arena-public-login span { color: var(--match-lime); }
.arena-public-hero { min-height: 760px; padding: 150px max(20px, calc((100vw - 1180px) / 2)) 76px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; align-items: center; color: white; background-image: linear-gradient(90deg, rgba(4,19,33,.97) 0%, rgba(7,27,51,.88) 38%, rgba(7,27,51,.3) 70%, rgba(4,19,33,.3) 100%), url("../img/arena-tenis-hero.a95ab6478f55.png"); background-size: cover; background-position: center; }
.arena-public-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(4,19,33,.66), transparent 38%); }
.arena-public-hero-copy { position: relative; z-index: 2; }
.arena-public-hero-copy h1 { max-width: 730px; margin: 12px 0 24px; color: white; font-size: clamp(58px, 7.3vw, 96px); line-height: .92; letter-spacing: -.065em; }
.arena-public-hero-copy > p:last-of-type { max-width: 620px; margin: 0; color: #c5d5e2; font-size: 17px; line-height: 1.65; }
.arena-public-hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 24px; }
.arena-public-hero-actions > a:last-child { color: #d6e3ed; font-size: 12px; font-weight: 750; text-decoration: none; }
.arena-public-mark { width: min(470px, 38vw); aspect-ratio: 1; position: relative; justify-self: center; border: 1px solid rgba(52,214,255,.42); border-radius: 50%; background: radial-gradient(circle, rgba(20,115,230,.19), rgba(7,27,51,.05) 66%); box-shadow: 0 0 0 34px rgba(52,214,255,.025), inset 0 0 80px rgba(52,214,255,.08); }
.arena-public-mark::before, .arena-public-mark::after { content: ""; position: absolute; opacity: .65; background: var(--ace-cyan); }
.arena-public-mark::before { width: 1px; top: 8%; bottom: 8%; left: 50%; }
.arena-public-mark::after { height: 1px; top: 50%; right: 8%; left: 8%; }
.arena-public-mark > i { height: 3px; position: absolute; left: 7%; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--match-lime)); transform-origin: right center; }
.arena-public-mark > i:nth-of-type(1) { width: 58%; top: 44%; transform: rotate(-8deg); }
.arena-public-mark > i:nth-of-type(2) { width: 63%; top: 50%; transform: rotate(-2deg); }
.arena-public-mark > i:nth-of-type(3) { width: 55%; top: 56%; transform: rotate(5deg); }
.arena-ball { width: 22%; aspect-ratio: 1; position: absolute; z-index: 2; top: 39%; right: 16%; border: 4px solid white; border-radius: 50%; background: linear-gradient(135deg, #e6f41b, #83ae00); box-shadow: 0 15px 35px rgba(0,0,0,.3); }
.arena-ball::after { content: ""; width: 42%; height: 72%; position: absolute; top: 5%; left: 28%; border-right: 5px solid white; border-radius: 50%; transform: rotate(31deg); }
.arena-court-lines { position: absolute; inset: 17%; border: 1px solid rgba(255,255,255,.28); transform: rotate(-10deg); }
.arena-court-lines::before, .arena-court-lines::after, .arena-court-lines span::before { content: ""; position: absolute; background: rgba(255,255,255,.25); }
.arena-court-lines::before { width: 1px; top: 0; bottom: 0; left: 50%; }
.arena-court-lines::after { height: 1px; top: 50%; right: 0; left: 0; }
.arena-court-lines span::before { width: 1px; top: 0; bottom: 0; left: 24%; box-shadow: calc(52% / .24) 0 rgba(255,255,255,.25); }
.arena-public-hero-stats { position: absolute; right: max(20px, calc((100vw - 1180px) / 2)); bottom: 28px; left: max(20px, calc((100vw - 1180px) / 2)); display: flex; gap: 34px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 17px; }
.arena-public-hero-stats span { color: #9fb5c9; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.arena-public-hero-stats strong { margin-right: 5px; color: white; font-size: 14px; }
.arena-public-experience, .arena-public-tournaments { padding: 96px max(20px, calc((100vw - 1180px) / 2)); scroll-margin-top: 70px; }
.arena-public-experience { background: white; }
.arena-public-experience > header, .arena-public-tournaments > header { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.arena-public-experience h2, .arena-public-tournaments h2, .arena-public-follow h2, .arena-public-team-access h2 { max-width: 700px; margin: 4px 0 0; color: var(--court-navy); font-size: clamp(36px, 5vw, 56px); line-height: 1.03; letter-spacing: -.045em; }
.arena-public-experience > header > p, .arena-public-tournaments > header > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.arena-public-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.arena-public-feature-grid article { min-height: 220px; padding: 30px 30px 20px 0; display: flex; flex-direction: column; justify-content: space-between; }
.arena-public-feature-grid article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.arena-public-feature-grid article > span { color: var(--rally-blue); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.arena-public-feature-grid strong { color: var(--court-navy); font-size: 20px; }
.arena-public-feature-grid p { max-width: 310px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.arena-public-tournaments { color: white; background: var(--court-navy); }
.arena-public-tournaments h2 { color: white; }
.arena-public-tournaments > header > p { color: #a9bdcf; }
.arena-public-tournament-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.arena-public-tournament-grid > a { min-height: 255px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #294761; border-radius: 13px; color: white; background: linear-gradient(145deg, #0c2945, #071b33); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.arena-public-tournament-grid > a:hover { transform: translateY(-3px); border-color: var(--ace-cyan); }
.arena-public-tournament-grid time { width: 58px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; color: var(--court-navy); background: var(--match-lime); }
.arena-public-tournament-grid time strong { font-size: 23px; line-height: 1; }
.arena-public-tournament-grid time span { margin-top: 3px; font-size: 9px; font-weight: 900; }
.arena-public-tournament-grid em { color: var(--ace-cyan); font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.arena-public-tournament-grid h3 { margin: 8px 0 4px; font-size: 20px; }
.arena-public-tournament-grid p { margin: 0; color: #9fb5c9; font-size: 11px; }
.arena-public-tournament-grid a div > span { margin-top: 21px; display: flex; justify-content: space-between; color: white; font-size: 11px; font-weight: 800; }
.arena-public-tournament-grid a div > span b { color: var(--match-lime); }
.arena-public-no-events { min-height: 230px; grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #36536d; border-radius: 13px; text-align: center; }
.arena-public-no-events > span { color: var(--match-lime); font-size: 32px; }
.arena-public-no-events h3 { margin: 5px 0; }
.arena-public-no-events p { max-width: 460px; margin: 0; color: #9fb5c9; font-size: 12px; }
.arena-public-follow { min-height: 570px; padding: 88px max(20px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr); align-items: center; gap: 80px; background: linear-gradient(135deg, #eef7fc, white); scroll-margin-top: 70px; }
.arena-public-follow > div:first-child > p:last-child { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.arena-public-score-demo { padding: 22px; border-radius: 16px; color: white; background: var(--court-navy); box-shadow: 0 30px 70px rgba(7,27,51,.2); transform: rotate(1.5deg); }
.arena-public-score-demo header { margin-bottom: 9px; padding: 0 3px 13px; display: flex; justify-content: space-between; border-bottom: 1px solid #294761; }
.arena-public-score-demo header span { color: var(--match-lime); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.arena-public-score-demo header small { color: #8fa8bc; font-size: 8px; }
.arena-public-score-demo > div { min-height: 76px; display: grid; grid-template-columns: 1fr 64px 74px; align-items: center; border-bottom: 1px solid #294761; }
.arena-public-score-demo > div strong { font-size: 16px; }
.arena-public-score-demo > div b { color: #d8e6ef; font-size: 34px; text-align: center; }
.arena-public-score-demo > div em { height: 54px; display: grid; place-items: center; border-radius: 8px; color: var(--court-navy); background: var(--match-lime); font-size: 30px; font-style: normal; font-weight: 900; }
.arena-public-team-access { padding: 58px max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 50px; border-top: 1px solid var(--line); background: white; }
.arena-public-team-access h2 { font-size: 31px; }
.arena-public-team-access p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.arena-public-team-access .button { flex: 0 0 auto; }
.arena-public-footer { padding: 26px max(20px, calc((100vw - 1180px) / 2)); align-items: center; }
.arena-public-footer > div { display: flex; align-items: center; gap: 12px; }
.arena-public-footer img { width: 42px; height: 42px; border-radius: 50%; background: white; }
.arena-public-footer > div > span { display: flex; flex-direction: column; gap: 2px; }
.arena-public-footer strong { color: white; font-size: 12px; }
.arena-public-footer small { color: #8fa8bc; font-size: 9px; }
.arena-public-footer > a { color: #afc1d0; font-size: 10px; text-decoration: none; }
@media (max-width: 900px) {
  .arena-public-header nav { display: none; }
  .arena-public-header .arena-public-login { margin-left: auto; }
  .arena-public-hero { min-height: 720px; grid-template-columns: 1fr; }
  .arena-public-mark { width: 360px; position: absolute; right: -100px; opacity: .42; }
  .arena-public-hero-copy { max-width: 700px; }
  .arena-public-feature-grid { grid-template-columns: 1fr; }
  .arena-public-feature-grid article { min-height: 150px; padding: 24px 0; }
  .arena-public-feature-grid article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .arena-public-tournament-grid { grid-template-columns: 1fr; }
  .arena-public-tournament-grid > a { min-height: 220px; }
  .arena-public-follow { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .arena-public-header { height: 68px; padding: 0 15px; }
  .arena-public-header .brand-logo { width: 40px; height: 40px; }
  .arena-public-header .brand span { font-size: 17px; }
  .arena-public-login { padding: 0 11px; font-size: 10px; }
  .arena-public-login span { display: none; }
  .arena-public-hero { min-height: 700px; padding: 120px 18px 110px; }
  .arena-public-hero-copy h1 { font-size: clamp(52px, 17vw, 72px); }
  .arena-public-hero-copy > p:last-of-type { font-size: 15px; }
  .arena-public-hero-actions { align-items: flex-start; flex-direction: column; }
  .arena-public-mark { width: 310px; right: -155px; bottom: 110px; }
  .arena-public-hero-stats { right: 18px; bottom: 24px; left: 18px; gap: 16px; }
  .arena-public-hero-stats span { max-width: 105px; font-size: 8px; }
  .arena-public-experience, .arena-public-tournaments { padding: 66px 18px; }
  .arena-public-experience > header, .arena-public-tournaments > header { align-items: flex-start; flex-direction: column; gap: 20px; }
  .arena-public-experience h2, .arena-public-tournaments h2, .arena-public-follow h2 { font-size: 38px; }
  .arena-public-follow { min-height: auto; padding: 66px 18px; }
  .arena-public-score-demo { padding: 14px; }
  .arena-public-score-demo > div { grid-template-columns: minmax(0, 1fr) 44px 58px; }
  .arena-public-score-demo > div strong { font-size: 12px; }
  .arena-public-score-demo > div b, .arena-public-score-demo > div em { font-size: 25px; }
  .arena-public-team-access { padding: 44px 18px; align-items: flex-start; flex-direction: column; gap: 24px; }
  .arena-public-footer { padding: 22px 18px; }
}

.disclosure-heading { align-items: end; }
.disclosure-heading .button.disabled { cursor: default; opacity: .58; }
.disclosure-form { max-width: 1080px; }
.poster-form-body { padding: 24px 26px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.poster-form-fields { display: grid; gap: 22px; }
.poster-preview { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #edf2f6, #dfe8ef); box-shadow: 0 8px 24px rgba(7,27,51,.12); }
.poster-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.poster-preview.empty { padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #aebdca; color: var(--muted); text-align: center; box-shadow: none; }
.poster-preview.empty > span { color: var(--rally-blue); font-size: 34px; }
.poster-preview.empty strong { color: var(--court-navy); font-size: 14px; }
.poster-preview.empty small { font-size: 11px; line-height: 1.45; }
.poster-form-body input[type="file"], .sponsor-form-row input[type="file"] { width: 100%; min-height: 46px; padding: 9px; border: 1px solid #aebdca; border-radius: 9px; color: var(--muted); background: white; font-size: 12px; }
.poster-form-body input[type="file"]::file-selector-button, .sponsor-form-row input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 11px; border: 0; border-radius: 6px; color: white; background: var(--rally-blue); font-weight: 750; cursor: pointer; }
.sponsor-form-list { padding: 20px 24px 24px; display: grid; gap: 12px; }
.sponsor-form-row { padding: 16px; display: grid; grid-template-columns: 1.05fr 1.2fr 1.3fr 90px; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.sponsor-form-row .field { margin: 0; }
.sponsor-delete { grid-column: 1 / -1; justify-self: end; display: inline-flex; gap: 7px; align-items: center; color: #a03939; font-size: 12px; font-weight: 750; cursor: pointer; }
.sponsor-add-row { padding: 0 24px 24px; display: flex; justify-content: flex-end; }
.button.compact { min-height: 40px; padding: 0 14px; font-size: 12px; }
.whatsapp-leads-panel { max-width: 1080px; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7,27,51,.05); }
.whatsapp-leads-panel > header { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.whatsapp-leads-panel > header h2 { margin: 0 0 4px; color: var(--court-navy); font-size: 20px; }
.whatsapp-leads-panel > header p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.whatsapp-leads-panel > header > strong { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--court-navy); background: var(--match-lime); font-size: 18px; }
.whatsapp-leads-list article { min-height: 68px; padding: 13px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.whatsapp-leads-list article:last-child { border-bottom: 0; }
.whatsapp-leads-list article > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.whatsapp-leads-list article strong { color: var(--court-navy); font-size: 14px; }
.whatsapp-leads-list article small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.whatsapp-leads-list time { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 700; }

.event-public-body { min-height: 100vh; color: var(--ink); background: #f4f7fa; scroll-behavior: smooth; }
.event-public-nav { height: 72px; padding: 0 max(22px, calc((100vw - 1180px) / 2)); position: sticky; z-index: 100; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: white; background: rgba(7,27,51,.96); box-shadow: 0 5px 20px rgba(2,14,27,.16); backdrop-filter: blur(12px); }
.event-public-nav nav { display: flex; align-self: stretch; gap: 25px; }
.event-public-nav nav a { position: relative; display: flex; align-items: center; color: #c2d1de; font-size: 12px; font-weight: 750; text-decoration: none; transition: color .15s ease; }
.event-public-nav nav a:hover, .event-public-nav nav a:focus-visible { color: var(--match-lime); }
.event-public-nav nav a::after { content: ""; height: 2px; position: absolute; right: 0; bottom: 0; left: 0; background: var(--match-lime); transform: scaleX(0); transition: transform .15s ease; }
.event-public-nav nav a:hover::after, .event-public-nav nav a:focus-visible::after { transform: scaleX(1); }
.event-public-nav > span { color: #b9cada; font-size: 13px; font-weight: 700; }
.event-public-hero, .event-public-games, .event-public-calendar, .event-public-section, .event-public-rules, .event-sponsors { scroll-margin-top: 72px; }
.event-public-hero { min-height: 680px; padding: 68px max(22px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr); gap: clamp(48px, 8vw, 100px); align-items: center; position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 12% 8%, #164b78 0, var(--court-navy) 48%, #051526 100%); }
.event-public-hero::after { content: ""; width: 480px; height: 480px; position: absolute; right: -240px; bottom: -270px; border: 1px solid rgba(52,214,255,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(52,214,255,.035), 0 0 0 150px rgba(199,240,0,.025); }
.event-public-copy { position: relative; z-index: 1; }
.event-public-status { margin-bottom: 26px; padding: 7px 11px; display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: var(--match-lime); background: rgba(255,255,255,.07); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.event-public-copy h1 { max-width: 760px; margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; }
.event-public-description { max-width: 650px; margin: 25px 0 0; color: #c3d2df; font-size: 17px; line-height: 1.65; }
.event-public-facts { margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.event-public-facts > div { padding: 20px 20px 20px 0; }
.event-public-facts > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.16); }
.event-public-facts dt { margin-bottom: 5px; color: var(--ace-cyan); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.event-public-facts dd { margin: 0; color: white; font-size: 13px; font-weight: 700; line-height: 1.4; }
.event-public-cta { margin-top: 28px; display: inline-flex; gap: 12px; align-items: center; color: var(--match-lime); font-size: 14px; font-weight: 800; text-decoration: none; }
.event-poster-shell { width: min(390px, 100%); aspect-ratio: 4 / 5; justify-self: end; position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: linear-gradient(145deg, #173b60, #0b2138); box-shadow: 0 30px 70px rgba(0,0,0,.38); transform: rotate(1.5deg); }
.event-poster-shell:not(.empty) { aspect-ratio: auto; display: grid; place-items: center; }
.event-poster-shell > img { width: auto; height: auto; max-width: 100%; max-height: 560px; display: block; object-fit: contain; }
.event-poster-fallback { height: 100%; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(155deg, #153e68, #071b33 60%); }
.event-fallback-logo { width: 74px; height: 74px; margin-bottom: auto; border-radius: 50%; object-fit: contain; background: white; }
.event-poster-fallback small { color: var(--ace-cyan); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-poster-fallback strong { margin: 12px 0 28px; color: white; font-size: 39px; line-height: 1.02; letter-spacing: -.04em; }
.event-poster-fallback time { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: var(--match-lime); font-size: 14px; font-weight: 800; }
.event-public-section { padding: 88px max(22px, calc((100vw - 1180px) / 2)); background: white; }
.event-public-section > header { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.event-public-section h2, .event-sponsors h2 { margin: 0; color: var(--court-navy); font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.event-public-section > header > p { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.55; }
.event-category-filters { margin-bottom: 18px; padding: 12px 14px; display: grid; grid-template-columns: 210px 230px minmax(180px, 1fr); gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 12px; background: #f7fafc; }
.event-category-filters > div { display: flex; flex-direction: column; gap: 6px; }
.event-category-filters label { color: #62788c; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.event-category-filters select { width: 100%; min-height: 42px; padding: 7px 34px 7px 11px; border: 1px solid #b9c8d5; border-radius: 8px; color: var(--court-navy); background: white; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.event-category-filters select:focus { outline: 0; border-color: var(--rally-blue); box-shadow: 0 0 0 3px rgba(20,115,230,.12); }
.event-category-filters > p { margin: 0; justify-self: end; align-self: center; color: var(--muted); font-size: 12px; }
.event-category-filters > p > strong { color: var(--court-navy); font-size: 15px; }
.event-category-selected-count { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--rally-blue); font-weight: 800; }
.event-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.event-category-grid [hidden] { display: none; }
.event-category-grid article { min-height: 148px; padding: 18px 19px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #fff, #f5f9fc); }
.event-category-grid article > span { color: var(--rally-blue); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.event-category-grid h3 { margin: 12px 0 5px; color: var(--court-navy); font-size: 21px; line-height: 1.2; }
.event-category-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.event-category-grid small { margin-top: auto; padding-top: 12px; color: #496279; font-size: 11px; font-weight: 750; }
.event-category-bracket-link { margin-top: auto; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #dce6ee; color: var(--rally-blue); font-size: 12px; font-weight: 850; text-decoration: none; }
.event-category-bracket-link b { font-size: 18px; line-height: 1; transition: transform .16s ease; }
.event-category-bracket-link:hover b { transform: translateX(3px); }
.public-bracket-body { min-height: 100vh; background: #eef3f7; }
.public-bracket-nav { position: sticky; top: 0; z-index: 20; }
.public-bracket-back { color: var(--court-navy); font-size: 12px; font-weight: 800; text-decoration: none; }
.public-bracket-main { width: min(1500px, calc(100% - 48px)); min-height: calc(100vh - 180px); margin: 0 auto; padding: 48px 0 64px; }
.public-bracket-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.public-bracket-heading h1 { margin: 6px 0; color: var(--court-navy); font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.public-bracket-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.public-bracket-main .bracket-preview-card { box-shadow: 0 20px 55px rgba(7, 27, 51, .1); }
.event-public-games { padding: 76px max(22px, calc((100vw - 1180px) / 2)); background: #f3f7fa; }
.event-public-games > header, .public-live-heading { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.event-public-games h2, .public-live-heading h1 { margin: 0; color: var(--court-navy); font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.event-public-games > header > div:first-child > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.event-games-heading-action { display: flex; align-items: center; gap: 17px; }
.event-games-heading-action > span, .public-live-summary span:first-child { display: flex; align-items: center; gap: 7px; color: #087846; font-size: 12px; font-weight: 800; }
.event-games-heading-action > span i, .public-live-summary span:first-child i, .public-live-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #11a763; box-shadow: 0 0 0 4px rgba(17,167,99,.12); }
.event-games-heading-action > span.quiet { color: var(--muted); }
.event-games-heading-action > span.quiet i { display: none; }
.event-games-heading-action > a, .event-games-more { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 16px; border-radius: 9px; color: white; background: var(--court-navy); font-size: 12px; font-weight: 800; text-decoration: none; }
.event-games-heading-action > a b { color: var(--match-lime); font-size: 18px; }
.event-games-more { margin-top: 18px; color: var(--rally-blue); background: transparent; padding-left: 0; }
.public-schedule-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 28px rgba(7,27,51,.045); }
.public-schedule-item { min-height: 82px; padding: 12px 16px; display: grid; grid-template-columns: 92px minmax(250px, 1.5fr) minmax(150px, .7fr) auto; align-items: center; gap: 20px; border-bottom: 1px solid #e5ebf0; }
.public-schedule-item:last-child { border-bottom: 0; }
.public-schedule-time { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #e2e9ee; }
.public-schedule-time small, .public-schedule-place small { color: #718597; font-size: 9px; font-weight: 850; letter-spacing: .07em; }
.public-schedule-time strong { margin-top: 3px; display: flex; align-items: center; gap: 6px; color: var(--court-navy); font-size: 17px; }
.public-schedule-time strong i { width: 7px; height: 7px; border-radius: 50%; background: #12a764; box-shadow: 0 0 0 4px rgba(18,167,100,.12); animation: livePulse 1.6s infinite; }
.public-schedule-match { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.public-schedule-match > span { overflow: hidden; color: var(--rally-blue); font-size: 10px; font-weight: 850; letter-spacing: .035em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.public-schedule-match > strong { overflow: hidden; color: var(--court-navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.public-schedule-match > strong i { margin: 0 5px; color: #93a3b0; font-size: 11px; font-style: normal; }
.public-schedule-place { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.public-schedule-place strong { overflow: hidden; color: #40586c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.event-public-calendar { padding: 76px max(22px, calc((100vw - 1180px) / 2)); overflow: hidden; background: white; }
.event-public-calendar > header { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.event-public-calendar h2 { margin: 0; color: var(--court-navy); font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.event-public-calendar > header > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.event-week-navigation { min-width: 390px; padding: 8px; display: grid; grid-template-columns: 42px minmax(230px, 1fr) 42px; align-items: center; gap: 8px; border: 1px solid #d4e0e8; border-radius: 13px; background: #f7fafc; }
.event-week-navigation > a, .event-week-navigation > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; font-size: 20px; font-weight: 800; text-decoration: none; }
.event-week-navigation > a { color: white; background: var(--court-navy); transition: transform .16s ease, background .16s ease; }
.event-week-navigation > a:hover { background: var(--rally-blue); transform: translateY(-1px); }
.event-week-navigation > span { color: #aab7c1; background: #e9eef2; }
.event-week-navigation > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
.event-week-navigation small { grid-column: 1 / -1; color: var(--rally-blue); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.event-week-navigation strong { overflow: hidden; color: var(--court-navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.event-week-navigation em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 750; white-space: nowrap; }
.event-week-calendar { display: flex; flex-direction: column; gap: 9px; }
.event-week-day { min-width: 0; display: grid; grid-template-columns: 108px minmax(0, 1fr); overflow: hidden; border: 1px solid #dce5eb; border-radius: 12px; background: #f7fafc; }
.event-week-day.today { border-color: #79b9e7; box-shadow: inset 0 0 0 1px rgba(20,115,230,.12); }
.event-week-day > header { min-height: 106px; padding: 13px 10px; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border-right: 1px solid #dce5eb; background: white; text-align: center; }
.event-week-day > header span { color: var(--rally-blue); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.event-week-day > header strong { color: var(--court-navy); font-size: 25px; line-height: 1; }
.event-week-day > header small { color: var(--muted); font-size: 9px; font-weight: 850; }
.event-week-day > header em { margin-top: 3px; padding: 3px 6px; border-radius: 999px; color: #075b90; background: #e0f2fc; font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.event-week-day > div { min-height: 106px; padding: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; gap: 9px; }
.event-week-day.empty > header, .event-week-day.empty > div { min-height: 62px; }
.event-week-match { min-width: 0; padding: 12px 13px; border: 1px solid #dce5eb; border-radius: 9px; background: white; box-shadow: 0 3px 10px rgba(7,27,51,.035); }
.event-week-match > div { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.event-week-match time { color: var(--court-navy); font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.event-week-match > div span { padding: 4px 7px; border-radius: 999px; color: #566c7d; background: #edf2f5; font-size: 8px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.event-week-match > div .status-em_andamento { color: #087846; background: #e7f7ef; }
.event-week-match > div .status-interrompido { color: #80570f; background: #fff2cd; }
.event-week-match > div .status-concluido { color: #316b5b; background: #e5f4ef; }
.event-week-match > small { margin-bottom: 8px; display: block; color: var(--rally-blue); font-size: 9px; font-weight: 850; line-height: 1.35; text-transform: uppercase; }
.event-week-match > strong { display: block; color: var(--court-navy); font-size: 12px; line-height: 1.35; }
.event-week-match > i { margin: 2px 0; display: block; color: #9aa8b3; font-size: 8px; font-style: normal; }
.event-week-place { margin: 10px 0 0; padding-top: 8px; display: flex; align-items: center; gap: 5px; overflow: hidden; border-top: 1px solid #edf1f4; color: #657b8d; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.event-week-place svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: var(--rally-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.event-week-empty { margin: auto; grid-column: 1 / -1; color: #94a3af; font-size: 10px; font-weight: 700; text-align: center; }
.public-live-main { width: min(1180px, calc(100% - 44px)); min-height: calc(100vh - 160px); margin: 0 auto; padding: 52px 0 72px; }
.public-live-heading { margin-bottom: 16px; padding: 28px 30px; align-items: center; overflow: hidden; position: relative; border-radius: 17px; color: white; background: linear-gradient(125deg, #071b33, #123f68); box-shadow: 0 18px 42px rgba(7,27,51,.14); }
.public-live-heading::after { width: 190px; height: 190px; position: absolute; right: 24%; bottom: -145px; border: 1px solid rgba(52,214,255,.28); border-radius: 50%; box-shadow: 0 0 0 35px rgba(52,214,255,.035), 0 0 0 75px rgba(199,240,0,.025); content: ''; }
.public-live-heading > div { position: relative; z-index: 1; }
.public-live-heading .eyebrow { color: var(--ace-cyan); }
.public-live-heading h1 { color: white; }
.public-live-heading > div > p:last-child { margin: 8px 0 0; color: #c1d2e0; }
.public-live-summary { padding: 9px; display: flex; gap: 7px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.public-live-summary span { min-height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 5px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.public-live-summary strong { color: var(--court-navy); font-size: 16px; }
.public-live-summary span:first-child { color: #087846; background: #eefaf4; }
.public-live-feedback { margin-bottom: 15px; display: flex; align-items: center; gap: 9px; color: #577086; font-size: 11px; font-weight: 750; }
.public-live-feedback time { color: #8a9aa8; }
.connection-lost .public-live-sync-dot { background: #df8d1f; box-shadow: 0 0 0 4px rgba(223,141,31,.12); }
.public-live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 22px; }
.public-live-content { min-width: 0; display: flex; flex-direction: column; gap: 31px; }
.public-live-group > header { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-live-group > header > div { display: flex; align-items: center; gap: 9px; }
.public-live-group > header > div > span { width: 9px; height: 9px; border-radius: 50%; background: #12a764; box-shadow: 0 0 0 5px rgba(18,167,100,.12); animation: livePulse 1.6s infinite; }
.public-live-group > header h2 { margin: 0; color: var(--court-navy); font-size: 20px; letter-spacing: -.02em; }
.public-live-group > header p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.public-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.public-live-content .public-live-grid { grid-template-columns: 1fr; }
.public-live-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-live-match { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(7,27,51,.05); }
.public-live-match.is-live { border-color: #a9dac4; box-shadow: 0 10px 28px rgba(12,120,75,.09); }
.public-live-match > header { min-height: 58px; padding: 11px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e3eaf0; background: #f9fbfc; }
.public-live-match > header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.public-live-match > header strong { overflow: hidden; color: var(--court-navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.public-live-match > header small { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.public-match-status { padding: 5px 7px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #496174; background: #e9eef2; font-size: 9px; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
.public-match-status.status-em_andamento { color: #087846; background: #e3f6ec; }
.public-match-status.status-interrompido { color: #9b5d08; background: #fff1d9; }
.public-match-status.status-concluido { color: #496174; background: #e7edf1; }
.public-match-status i { width: 6px; height: 6px; border-radius: 50%; background: #12a764; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 50% { opacity: .35; transform: scale(.8); } }
.public-match-board { padding: 8px 15px; }
.public-match-player { min-height: 55px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 38px 48px; align-items: center; gap: 9px; border-bottom: 1px solid #edf1f4; }
.public-match-player:last-child { border-bottom: 0; }
.public-match-player > span { width: 31px; height: 31px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; color: white; background: #173d61; font-size: 9px; font-weight: 850; }
.public-match-player > span img { width: 100%; height: 100%; object-fit: cover; }
.public-match-player > strong { overflow: hidden; color: var(--court-navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.public-match-player.winner > strong { color: #087846; }
.public-live-match.is-completed { border-color: #cbd7df; }
.public-live-match.is-completed .public-match-player { grid-template-columns: 34px minmax(0, 1fr) auto 38px; }
.public-live-match.is-completed .public-match-player.loser { opacity: .52; }
.public-live-match.is-completed .public-match-player.winner { background: linear-gradient(90deg, transparent, #effaf4); }
.public-set-scores { display: flex; gap: 4px; }
.public-set-scores b { min-width: 24px; height: 29px; display: grid; place-items: center; border-radius: 5px; color: #718291; background: #edf1f4; font-size: 13px; }
.public-set-scores b.winner { color: var(--court-navy); background: #dfe8ee; }
.public-set-scores sup { margin: -8px 0 0 1px; font-size: 7px; }
.public-match-player em, .public-match-player mark { display: grid; place-items: center; font-style: normal; font-weight: 850; }
.public-match-player em { color: var(--court-navy); font-size: 19px; }
.public-match-player mark { min-width: 42px; height: 38px; border-radius: 6px; color: white; background: var(--court-navy); font-size: 19px; }
.public-match-player mark.match-winner { min-width: 31px; width: 31px; height: 31px; border-radius: 50%; background: #12a764; font-size: 14px; }
.public-match-board.scheduled .public-match-player { grid-template-columns: 34px minmax(0, 1fr); }
.public-live-match > footer { min-height: 39px; padding: 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e6edf2; color: #697d8e; background: #fafcfd; font-size: 10px; font-weight: 700; }
.public-live-match > footer time { color: var(--rally-blue); font-size: 12px; font-weight: 850; }
.public-live-match > footer strong { color: var(--court-navy); }
.public-match-location { margin-left: auto; padding-left: 18px; position: relative; color: #496174; text-align: right; }
.public-match-location::before { position: absolute; left: 5px; content: '•'; color: var(--rally-blue); }
.public-games-empty { grid-column: 1 / -1; min-height: 150px; padding: 28px; display: flex; align-items: center; justify-content: center; gap: 16px; border: 1px dashed #b9c8d4; border-radius: 14px; color: var(--muted); text-align: left; background: rgba(255,255,255,.55); }
.public-games-empty > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #087846; background: #e3f6ec; font-weight: 900; }
.public-games-empty strong { color: var(--court-navy); font-size: 14px; }
.public-games-empty p { margin: 4px 0 0; font-size: 12px; }
.public-live-sponsors { max-height: calc(100vh - 96px); position: sticky; top: 86px; overflow: hidden auto; border-radius: 16px; color: white; background: linear-gradient(135deg, #071b33 0%, #0c3155 100%); box-shadow: 0 18px 42px rgba(7,27,51,.14); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.public-live-sponsors > header { padding: 22px 20px 18px; display: flex; align-items: flex-start; flex-direction: column; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.12); }
.public-live-sponsors > header .eyebrow { color: var(--ace-cyan); }
.public-live-sponsors > header h2 { margin: 4px 0 0; color: white; font-size: 23px; line-height: 1.08; letter-spacing: -.035em; }
.public-live-sponsors > header > span { color: #aebfd0; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.public-live-sponsor-grid { padding: 12px; display: grid; grid-template-columns: 1fr; gap: 9px; }
.public-live-sponsor-grid > a, .public-live-sponsor-grid > article { min-height: 124px; padding: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: var(--court-navy); background: white; text-align: center; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.public-live-sponsor-grid > a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.public-live-sponsor-grid img { width: min(150px, 100%); height: 70px; object-fit: contain; }
.public-live-sponsor-grid strong { font-size: 13px; }
.public-live-sponsor-grid > a > span { color: var(--rally-blue); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.public-live-sponsor-grid .organizer { align-items: center; flex-direction: row; text-align: left; }
.public-live-sponsor-grid .organizer img { width: 76px; height: 76px; }
.public-live-sponsor-grid .organizer div { display: flex; flex-direction: column; gap: 4px; }
.public-live-sponsor-grid .organizer small { color: var(--rally-blue); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
@media (max-width: 700px) {
  .public-bracket-main { width: calc(100% - 24px); padding: 28px 0 42px; }
  .public-bracket-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .public-bracket-nav .brand span { display: none; }
  .event-public-games { padding: 54px 16px; }
  .event-public-games > header, .public-live-heading { align-items: flex-start; flex-direction: column; }
  .event-games-heading-action { width: 100%; justify-content: space-between; }
  .public-schedule-item { padding: 15px; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; }
  .public-schedule-time { grid-row: 1 / span 2; }
  .public-schedule-place { grid-column: 2 / -1; }
  .public-schedule-item > .public-match-status { grid-column: 3; grid-row: 1; }
  .event-public-calendar { padding: 54px 16px; }
  .event-public-calendar > header { align-items: flex-start; flex-direction: column; }
  .event-week-navigation { width: 100%; min-width: 0; grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .event-week-navigation > a, .event-week-navigation > span { width: 40px; height: 40px; }
  .event-week-navigation > div { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; }
  .event-week-navigation strong { width: 100%; }
  .event-week-day { grid-template-columns: 1fr; }
  .event-week-day > header { min-height: 66px; display: grid; grid-template-columns: auto auto 1fr; align-content: center; align-items: baseline; justify-content: start; column-gap: 7px; border-right: 0; border-bottom: 1px solid #dce5eb; text-align: left; }
  .event-week-day > header em { position: absolute; top: 21px; right: 14px; margin-top: 0; }
  .event-week-day > div { min-height: 72px; grid-template-columns: 1fr; }
  .public-live-main { width: calc(100% - 24px); padding-top: 30px; }
  .public-live-heading { padding: 23px 20px; }
  .public-live-summary { width: 100%; }
  .public-live-group > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .public-live-grid, .public-live-grid.compact { grid-template-columns: 1fr; }
  .public-live-match > header { align-items: flex-start; }
  .public-live-match > header > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .public-match-player { grid-template-columns: 31px minmax(0, 1fr) auto 31px 43px; gap: 7px; }
  .public-set-scores b { min-width: 21px; }
  .public-live-layout { grid-template-columns: 1fr; gap: 40px; }
  .public-live-sponsors { max-height: none; position: static; overflow: hidden; }
  .public-live-sponsors > header { padding: 23px 20px 18px; align-items: flex-start; flex-direction: column; }
  .public-live-sponsor-grid { grid-template-columns: 1fr 1fr; padding: 12px; }
  .public-live-sponsor-grid > a, .public-live-sponsor-grid > article { min-height: 125px; padding: 12px; }
  .public-live-sponsor-grid img { height: 55px; }
}
.event-category-grid.selectable label { position: relative; cursor: pointer; }
.event-category-grid.selectable label > input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.event-category-grid.selectable article { height: 100%; position: relative; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.event-category-grid.selectable label:hover article { transform: translateY(-2px); border-color: #8cbcec; box-shadow: 0 10px 24px rgba(7,27,51,.08); }
.event-category-grid.selectable input:focus-visible + article { outline: 3px solid rgba(20,115,230,.2); outline-offset: 3px; }
.event-category-grid.selectable input:checked + article { border-color: var(--rally-blue); background: linear-gradient(145deg, #fff, #eaf5ff); box-shadow: inset 0 0 0 1px var(--rally-blue); }
.event-category-check { width: 25px; height: 25px; position: absolute; top: 13px; right: 14px; display: grid; place-items: center; border: 1px solid #bed0df; border-radius: 50%; color: transparent; background: white; font-size: 12px; }
.event-category-grid input:checked + article .event-category-check { border-color: var(--rally-blue); color: white; background: var(--rally-blue); }
.event-form-error { margin-bottom: 15px; padding: 11px 14px; border-radius: 8px; color: #8c2929; background: #fff0f0; font-size: 13px; font-weight: 700; }
.event-registration-action { margin-top: 20px; padding: 18px; display: grid; grid-template-columns: minmax(190px, 1fr) minmax(190px, .8fr) minmax(280px, .9fr); gap: 14px; align-items: end; border-radius: 14px; background: var(--court-navy); box-shadow: 0 14px 34px rgba(7,27,51,.16); }
.event-registration-action > div { display: flex; flex-direction: column; gap: 7px; }
.event-registration-action label { color: #bcd0e0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.event-registration-action input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; outline: none; color: white; background: rgba(255,255,255,.08); font: inherit; }
.event-registration-action input::placeholder { color: #9db2c4; }
.event-registration-action input:focus { border-color: var(--ace-cyan); box-shadow: 0 0 0 3px rgba(52,214,255,.12); }
.event-registration-action .errorlist { margin: 0; padding: 0; color: #ffb2b2; font-size: 11px; list-style: none; }
.event-registration-action button { min-height: 52px; padding: 8px 14px 8px 17px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 0; border-radius: 9px; color: #173000; background: var(--match-lime); text-align: left; cursor: pointer; }
.event-registration-action button span { font-size: 14px; font-weight: 850; }
.event-registration-action button small { grid-column: 1; font-size: 10px; opacity: .75; }
.event-registration-action button b { grid-column: 2; grid-row: 1 / span 2; padding-left: 12px; font-size: 20px; }
.event-public-empty { color: var(--muted); }
.event-category-filter-empty { padding: 28px; border: 1px dashed #aebdca; border-radius: 12px; color: var(--muted); text-align: center; background: #f9fbfd; }
.event-category-filter-empty[hidden] { display: none; }
.event-public-rules { margin: 0; padding: 58px max(22px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 40px; color: white; background: var(--rally-blue); }
.event-public-rules h2 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 45px); }
.event-public-rules p:last-child { margin: 0; color: #dbeeff; }
.event-public-rules > div:last-child { display: flex; flex-direction: column; align-items: flex-end; }
.event-public-rules > div:last-child strong { font-size: 18px; }
.event-public-rules > div:last-child span { color: #dbeeff; font-size: 11px; text-transform: uppercase; }
.event-sponsors { padding: 80px max(22px, calc((100vw - 1180px) / 2)); text-align: center; background: #f4f7fa; }
.event-sponsors header { margin-bottom: 34px; }
.event-sponsors > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.event-sponsors a, .event-sponsors > div > span { width: 190px; min-height: 116px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; text-decoration: none; }
.event-sponsors img { width: 100%; height: 54px; object-fit: contain; }
.event-sponsors small { font-size: 11px; font-weight: 700; }
.event-public-footer { padding: 28px max(22px, calc((100vw - 1180px) / 2)); }

@media (max-width: 767px) {
  .poster-form-body { grid-template-columns: 1fr; }
  .poster-preview { width: min(240px, 100%); justify-self: center; }
  .sponsor-form-row { grid-template-columns: 1fr; }
  .sponsor-delete { grid-column: 1; justify-self: start; }
  .whatsapp-leads-panel > header { align-items: flex-start; }
  .whatsapp-leads-list article { align-items: flex-start; flex-direction: column; gap: 7px; }
  .event-public-nav { height: 64px; padding: 0 16px; gap: 18px; overflow-x: auto; }
  .event-public-nav .brand { font-size: 18px; }
  .event-public-nav .brand-logo { width: 38px; height: 38px; }
  .event-public-nav nav { margin-left: auto; gap: 18px; }
  .event-public-nav nav a { white-space: nowrap; }
  .event-public-nav > span { display: none; }
  .event-public-hero { min-height: auto; padding-top: 48px; padding-bottom: 58px; grid-template-columns: 1fr; gap: 42px; }
  .event-public-copy h1 { font-size: clamp(43px, 14vw, 64px); }
  .event-public-facts { grid-template-columns: 1fr; }
  .event-public-facts > div { padding: 14px 0; }
  .event-public-facts > div + div { padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .event-poster-shell { width: min(340px, 90%); justify-self: center; transform: none; }
  .event-public-section { padding-top: 58px; padding-bottom: 58px; }
  .event-public-section > header { align-items: flex-start; flex-direction: column; }
  .event-category-filters { grid-template-columns: 1fr 1fr; }
  .event-category-filters > p { grid-column: 1 / -1; justify-self: start; }
  .event-category-grid { grid-template-columns: 1fr; }
  .event-registration-action { grid-template-columns: 1fr; }
  .event-public-rules { align-items: flex-start; flex-direction: column; }
  .event-public-rules > div:last-child { align-items: flex-start; }
}

@media (max-width: 520px) {
  .event-category-filters { grid-template-columns: 1fr; }
  .event-category-filters > p { grid-column: 1; }
}

@media (max-width: 767px) {
  .app-header { height: 56px; }
  .app-header nav a:first-child { display: none; }
  .hero { min-height: auto; padding-top: 64px; padding-bottom: 64px; grid-template-columns: 1fr; }
  .court { width: 90%; margin: 0 auto; }
  .section-heading, .foundation { align-items: start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 374px) {
  .metrics { grid-template-columns: 1fr; }
  .overview { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Área do atleta: mesmos tokens, formulários e superfícies do portal. */
.regulation-index { margin-bottom: 24px; padding: 20px 24px; }
.regulation-index summary { cursor: pointer; font-weight: 750; }
.regulation-index nav { margin-top: 20px; display: grid; gap: 12px; }
.regulation-index a { color: var(--rally-blue); font-size: 14px; text-decoration: none; }
.regulation-content { padding: clamp(20px, 4vw, 48px); line-height: 1.75; }
.regulation-content p, .regulation-content li { max-width: 78ch; font-size: 15px; }
.regulation-content h2 { margin: 40px 0 16px; font-size: 24px; line-height: 1.35; scroll-margin-top: 24px; }
.regulation-content h3 { margin-top: 28px; font-size: 19px; }
.regulation-content ul, .regulation-content ol { padding-left: 24px; }
.regulation-table { margin: 24px 0; overflow-x: auto; }
.regulation-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.regulation-table th, .regulation-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.regulation-table th { background: #f3f8fc; }
.athlete-skip-link { position: absolute; z-index: 100; top: -80px; left: 16px; padding: 12px 18px; border-radius: 8px; color: white; background: var(--court-navy); }
.athlete-skip-link:focus { top: 12px; }
.athlete-area :is(.page-heading, .athlete-card-top, .athlete-hub-identity) { min-width: 0; }
.athlete-area .page-heading h1 { overflow-wrap: anywhere; }
.athlete-area .context-line { flex-wrap: wrap; }
.athlete-area .form-section > header > span { flex: 0 0 auto; }
.athlete-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.athlete-form-layout > *, .athlete-hub-grid > *, .athlete-invite-layout > * { min-width: 0; }
.athlete-guide { padding: 24px; position: sticky; top: 24px; }
.athlete-guide h2 { margin: 12px 0 10px; font-size: 21px; overflow-wrap: anywhere; }
.athlete-guide p, .athlete-guide li { color: var(--muted); font-size: 14px; line-height: 1.6; }
.athlete-guide ul { padding-left: 20px; display: grid; gap: 10px; }
.athlete-guide-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.athlete-guide-note strong { color: var(--court-navy); font-size: 14px; }
.athlete-guide-note p { margin-bottom: 0; }
.athlete-area .login-referee-access p { margin: 4px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.athlete-area .login-referee-access > span { color: var(--court-navy); font-size: 13px; font-weight: 750; }
.athlete-area .login-referee-access a { font-size: 13px; }
.athlete-area .login-form-card .field label, .athlete-area .login-form-card > header > span { font-size: 13px; }
.athlete-area .field input[type="file"] { height: auto; max-width: 100%; }
.athlete-area .field:has(input[type="file"]) { overflow-wrap: anywhere; }
.athlete-area .field small ul { color: var(--muted); font-size: 12px; }
.athlete-area [hidden] { display: none !important; }
.athlete-area .category-picker label { font-size: 14px; line-height: 1.4; }
.athlete-area .category-picker label:has(input:checked) { outline: 2px solid var(--rally-blue); outline-offset: -2px; }
.athlete-area .form-actions { flex-wrap: wrap; }
.athlete-area .form-actions > a { font-size: 14px; }
.athlete-area .error-summary p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.athlete-area .error-summary:focus { outline: 3px solid rgba(195,63,63,.2); outline-offset: 3px; }
.athlete-hub-identity { display: flex; align-items: center; gap: 20px; }
.athlete-hub-identity > div { min-width: 0; }
.athlete-hub-identity p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.athlete-area .athlete-hub-heading { align-items: center; }
.athlete-area .athlete-hub-heading h1 { font-size: clamp(28px, 4vw, 40px); }
.entity-avatar.athlete-hub-avatar { width: 80px; height: 80px; flex: 0 0 auto; border-radius: 50%; font-size: 26px; }
.athlete-hub-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.athlete-account-data { margin: 24px 0 0; display: grid; gap: 16px; }
.athlete-account-data dt { color: var(--muted); font-size: 12px; }
.athlete-account-data dd { margin: 5px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.athlete-hub-metrics { margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.athlete-hub-metrics > a { padding: 20px 24px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: white; text-decoration: none; }
.athlete-hub-metrics > a:hover { border-color: var(--rally-blue); }
.athlete-hub-metrics strong { font-size: 30px; color: var(--rally-blue); font-variant-numeric: tabular-nums; }
.athlete-hub-metrics span { font-size: 14px; line-height: 1.45; }
.athlete-payment-note { margin-bottom: 24px; }
.athlete-hub-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.athlete-hub-section { margin-bottom: 24px; overflow: hidden; scroll-margin-top: 24px; }
.athlete-section-header { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.athlete-section-header h2 { margin: 0; font-size: 21px; }
.athlete-section-header p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.athlete-section-header .eyebrow { margin: 0 0 8px; font-size: 11px; }
.athlete-hub-empty { padding: 32px 24px; text-align: center; }
.athlete-hub-empty > span { margin-bottom: 12px; display: block; color: var(--rally-blue); font-size: 25px; }
.athlete-hub-empty h3 { margin: 0; font-size: 17px; }
.athlete-hub-empty p { max-width: 380px; margin: 8px auto 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.athlete-hub-empty .button { margin-top: 20px; }
.athlete-match-card, .athlete-hub-enrollments > article, .athlete-tournament-list > article { padding: 22px 24px; }
.athlete-match-card + article, .athlete-hub-enrollments > article + article, .athlete-tournament-list > article + article { border-top: 1px solid var(--line); }
.athlete-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.athlete-card-top h3 { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.athlete-card-top .status-pill { flex-shrink: 0; }
.athlete-area .status-pill.warning { color: #76520a; background: #fff0ba; }
.athlete-category-name { color: var(--rally-blue); font-size: 14px; font-weight: 750; line-height: 1.5; }
.athlete-muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.athlete-match-card > .athlete-muted { margin: 6px 0 16px; }
.athlete-match-players { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: 12px; align-items: center; }
.athlete-match-players strong { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.athlete-match-players > span { color: var(--muted); }
.athlete-match-winner { color: #236645; }
.athlete-match-score { margin: 14px 0; font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.athlete-match-meta { margin-top: 18px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.athlete-hub-history { border-top: 1px solid var(--line); }
.athlete-hub-history > summary { padding: 18px 24px; color: var(--rally-blue); font-size: 14px; font-weight: 750; cursor: pointer; }
.athlete-hub-history > summary span { margin-left: 8px; color: var(--muted); }
.athlete-hub-enrollments .text-link { margin-top: 8px; display: inline-flex; font-size: 14px; }
.athlete-tournament-list h3 { margin: 14px 0 7px; font-size: 18px; line-height: 1.4; }
.athlete-tournament-list article > p { margin: 6px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.athlete-card-actions { margin-top: 20px; display: flex; align-items: flex-start; flex-direction: column; gap: 14px; }
.athlete-card-actions .button { width: 100%; }
.athlete-card-actions .text-link { font-size: 13px; }
.athlete-ranking-list > article { padding: 20px 24px; display: flex; align-items: center; gap: 18px; }
.athlete-ranking-list > article + article { border-top: 1px solid var(--line); }
.athlete-ranking-list > article > strong { min-width: 44px; color: var(--rally-blue); font-size: 27px; font-variant-numeric: tabular-nums; }
.athlete-ranking-list h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.athlete-ranking-list p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.athlete-ranking-list article span { font-size: 14px; font-weight: 750; }
.athlete-success { max-width: 620px; margin: 32px auto; padding: 40px; text-align: center; }
.athlete-success h1 { margin: 20px 0 12px; font-size: 32px; }
.athlete-success p { margin-bottom: 26px; color: var(--muted); line-height: 1.6; }
.athlete-invite-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.athlete-invite-list { overflow: hidden; }
.athlete-invite-list > article { padding: 24px; }
.athlete-invite-list > article + article { border-top: 1px solid var(--line); }
.athlete-invite-list .field { margin-bottom: 0; }
.athlete-copy-row { display: flex; align-items: center; gap: 10px; }
.athlete-copy-row input { min-width: 0; flex: 1; }
.athlete-copy-row .button { flex: 0 0 auto; }
.athlete-invite-share { flex-wrap: wrap; }
.athlete-invite-confirm label { margin: 0; display: flex; align-items: flex-start; gap: 12px; }
.athlete-invite-confirm input { margin: 2px 0 0; flex: 0 0 auto; }
.athlete-copy-feedback { min-height: 20px; margin: 8px 0; color: #236645; font-size: 13px; line-height: 1.5; }
.athlete-invite-help { padding: 0 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.athlete-invite-revoke summary { width: fit-content; padding: 8px 0; color: #9d3030; font-size: 13px; font-weight: 750; cursor: pointer; }
.athlete-invite-revoke form { margin-top: 12px; padding: 16px; border: 1px solid #efc4c4; border-radius: 9px; background: #fffafa; }
.athlete-invite-revoke p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 960px) {
  .athlete-form-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .athlete-invite-layout { grid-template-columns: 1fr; }
  .athlete-invite-layout .workflow-form { max-width: none; }
}
@media (max-width: 767px) {
  .athlete-area:not(.form-page):not(.login-page) { padding-bottom: 64px; }
  .athlete-area .portal-header { gap: 12px; }
  .athlete-area .brand { gap: 9px; font-size: 17px; }
  .athlete-area .brand-logo { width: 34px; height: 34px; }
  .athlete-area .user-context { gap: 0; }
  .athlete-area .user-context > span { display: none; }
  .athlete-form-layout, .athlete-hub-grid { grid-template-columns: 1fr; }
  .athlete-guide { position: static; }
  .athlete-area .athlete-hub-heading { align-items: flex-start; }
  .athlete-hub-identity { gap: 14px; }
  .entity-avatar.athlete-hub-avatar { width: 60px; height: 60px; font-size: 23px; }
  .athlete-hub-metrics { gap: 8px; }
  .athlete-hub-metrics > a { padding: 14px 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .athlete-hub-metrics span { font-size: 12px; }
  .athlete-hub-metrics strong { font-size: 26px; }
  .athlete-payment-note { align-items: flex-start; flex-wrap: wrap; }
  .athlete-area .athlete-payment-note > a { margin-left: 62px; display: inline-flex; min-height: 36px; align-items: center; }
  .athlete-card-top { flex-direction: column; }
  .athlete-copy-row { flex-direction: column; align-items: stretch; }
  .athlete-copy-row .button { align-self: flex-start; }
}
@media (max-width: 520px) {
  .athlete-area .form-actions { gap: 16px; }
  .athlete-area .form-actions .button { flex: 1 0 auto; }
  .athlete-area .form-grid { padding: 20px; gap: 20px; }
  .athlete-area .field input:not([type="checkbox"]):not([type="radio"]), .athlete-area .field select, .athlete-area .field textarea { font-size: 16px; }
  .athlete-area .form-section > header { padding: 20px; align-items: flex-start; }
  .athlete-area .form-section > header p { line-height: 1.5; }
  .athlete-area .category-picker { padding: 20px; }
  .athlete-area .category-filter { margin-right: 20px; margin-left: 20px; }
  .athlete-area .category-picker > div { grid-template-columns: 1fr; }
  .athlete-area .filter-toolbar { align-items: stretch; flex-direction: column; gap: 9px; }
  .athlete-area .filter-toolbar select { width: 100%; min-width: 0; }
  .athlete-section-header, .athlete-match-card, .athlete-hub-enrollments > article, .athlete-tournament-list > article { padding: 20px; }
  .athlete-match-players { grid-template-columns: 1fr; gap: 4px; }
  .athlete-success { padding: 28px 20px; }
}

/* Portal de gestão dos clubes */
.portal-body { min-height: 100vh; background: var(--surface); }
.portal-body input, .portal-body select, .portal-body textarea, .portal-body button { font-family: inherit; }
.portal-body input::placeholder, .portal-body textarea::placeholder { color: #8293a3; opacity: 1; }
.portal-body input:disabled, .portal-body select:disabled, .portal-body textarea:disabled { color: #738495; background: #edf1f4; cursor: not-allowed; }
.portal-header { min-height: 64px; padding: 0 clamp(16px, 4vw, 60px); display: flex; align-items: center; gap: 24px; color: white; background: var(--court-navy); }
.portal-header form { margin-left: auto; }
.club-context { padding-left: 24px; border-left: 1px solid #31506e; color: #c6d7e8; font-size: 14px; }
.link-button { border: 0; color: #dce9f5; background: transparent; font: inherit; cursor: pointer; }
.portal-nav { min-height: 52px; padding: 0 clamp(16px, 4vw, 60px); display: flex; align-items: center; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--line); background: white; }
.portal-nav a { flex: none; color: var(--ink); }
.portal-nav a:hover, .portal-nav a:focus-visible { color: var(--rally-blue); }
.portal-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.page-heading { margin-bottom: 32px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.page-heading h1 { margin: 0; color: var(--court-navy); font-size: clamp(32px, 5vw, 48px); }
.page-heading > p { max-width: 430px; color: var(--muted); }
.portal-metrics { grid-template-columns: repeat(5, 1fr); }
.quick-actions { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-actions a { padding: 22px; border-radius: var(--radius); color: white; background: var(--court-navy); font-weight: 750; text-decoration: none; }
.quick-actions a:hover { color: var(--match-lime); }
.data-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.data-list > a { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); text-decoration: none; }
.data-list > a:last-child { border-bottom: 0; }
.data-list > a:hover { background: #f5faff; }
.data-list span { color: var(--muted); font-size: 14px; }
.data-list > p { padding: 24px; color: var(--muted); }
.heading-actions { display: flex; gap: 10px; align-items: center; }
.info-callout { margin-bottom: 20px; padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; border: 1px solid #b9dafa; border-radius: 10px; color: #174d7d; background: #eef7ff; }
.info-callout span { color: var(--muted); font-size: 13px; }
.filters-bar { margin-bottom: 20px; padding: 18px; display: grid; grid-template-columns: minmax(240px, 1fr) 220px auto; gap: 14px; align-items: end; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.filters-bar label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.filters-bar input, .filters-bar select { min-height: 46px; padding: 10px 12px; border: 1px solid #aebdca; border-radius: 8px; background: white; font-size: 15px; line-height: 1.35; }
.data-list > .data-row { padding: 18px 22px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.data-list > .data-row:last-child { border-bottom: 0; }
.data-row > span { display: flex; flex-direction: column; gap: 3px; }
.data-row small { color: var(--muted); }
.ranking-board { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(7,27,51,.06); }
.ranking-board > header, .ranking-board > a { padding: 16px 22px; display: grid; grid-template-columns: 90px minmax(0, 1fr) 120px 110px; gap: 16px; align-items: center; }
.ranking-board > header { color: #6a7d8e; background: #f4f7fa; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.ranking-board > a { border-top: 1px solid var(--line); color: var(--court-navy); text-decoration: none; }
.ranking-board > a:hover { background: #f7fbff; }
.ranking-board > a > strong:first-child { color: var(--rally-blue); font-size: 22px; }
.ranking-board > a em { color: #3d7b19; font-style: normal; font-weight: 800; }
.ranking-section { margin-top: 30px; }
.ranking-section .section-title { margin-bottom: 14px; }
.latest-ranking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.latest-ranking-card { min-height: 210px; padding: 21px; display: flex; flex-direction: column; border: 1px solid #c7d8e7; border-radius: 14px; color: var(--court-navy); background: linear-gradient(145deg, #fff 45%, #edf7ff); box-shadow: 0 10px 26px rgba(7,27,51,.07); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.latest-ranking-card:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(7,27,51,.12); }
.latest-ranking-card header, .latest-ranking-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.latest-ranking-card > strong { margin-top: 22px; font-size: 21px; line-height: 1.2; }
.latest-ranking-card > small { margin-top: 5px; color: var(--muted); }
.latest-ranking-card footer { margin-top: auto; padding: 18px 0 0; border-top: 1px solid #d9e5ef; color: #557086; background: transparent; font-size: 12px; font-weight: 750; }
.history-section .section-title { align-items: center; }
.history-section .section-title p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.history-total { padding: 7px 10px; border-radius: 999px; color: #49677d; background: #e8f1f7; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ranking-history-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 7px 24px rgba(7,27,51,.04); }
.ranking-history-list > a { min-height: 86px; padding: 14px 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 112px 62px 20px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s ease; }
.ranking-history-list > a:last-child { border-bottom: 0; }
.ranking-history-list > a:hover { background: #f5faff; }
.history-rank-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--ace-cyan); background: var(--court-navy); font-size: 20px; font-weight: 850; }
.history-ranking-main, .history-ranking-meta, .history-ranking-athletes { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.history-ranking-main strong { overflow: hidden; color: var(--court-navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.history-ranking-main small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-ranking-meta time { color: var(--court-navy); font-size: 13px; font-weight: 800; }
.history-ranking-meta small, .history-ranking-athletes small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.history-ranking-athletes { align-items: flex-end; }
.history-ranking-athletes strong { color: var(--rally-blue); font-size: 17px; }
.history-ranking-arrow { color: var(--rally-blue); font-size: 18px; transition: transform .15s ease; }
.ranking-history-list > a:hover .history-ranking-arrow { transform: translateX(3px); }
.history-empty { padding: 32px 22px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.history-empty > span { color: var(--rally-blue); font-size: 20px; }
.history-empty p { margin: 0; }
.history-section { margin-top: 42px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 32px rgba(7,27,51,.08); }
.form-panel { padding: clamp(24px, 4vw, 40px); }
.wide-form { max-width: 850px; }
.field { margin-bottom: 20px; }
.field label { margin-bottom: 8px; display: block; color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1.35; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aebdca; border-radius: 9px; color: var(--ink); background: white; font-size: 15px; font-weight: 450; line-height: 1.35; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field input[type="file"] { padding: 8px 10px; }
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--rally-blue); box-shadow: 0 0 0 3px rgba(20,115,230,.16); }
.field small { margin-top: 6px; display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.field ul { margin: 7px 0 0; padding-left: 20px; color: #a12b2b; font-size: 13px; line-height: 1.4; }
.field > div label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.field > div label input { width: auto; }
.inline-form { margin-bottom: 16px; padding: 20px; display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 14px; border: 1px solid var(--line); border-radius: 10px; }
.message { margin-bottom: 24px; padding: 14px 18px; border-left: 4px solid var(--match-lime); border-radius: 8px; background: white; }
.login-shell { min-height: calc(100vh - 180px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.login-shell > div { padding: 48px; border-radius: var(--radius); color: white; background: var(--court-navy); }
.login-shell h1 { font-size: clamp(38px, 5vw, 58px); }
.login-shell p:last-child { color: #c6d7e8; line-height: 1.6; }
.portal-public-return { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #c9d8e5; font-size: 11px; font-weight: 750; text-decoration: none; }
.portal-public-return span { color: var(--match-lime); }
.portal-body.login-page { padding: 0; color: white; background: var(--court-navy); }
.portal-body.login-page > .portal-header { height: 78px; position: absolute; z-index: 10; top: 0; right: 0; left: 0; border-bottom-color: rgba(255,255,255,.14); background: rgba(4,19,33,.35); backdrop-filter: blur(12px); }
.portal-body.login-page .portal-main { width: 100%; margin: 0; padding: 0; }
.portal-body.login-page .login-shell { width: 100%; min-height: 100svh; padding: 118px max(24px, calc((100vw - 1180px) / 2)) 54px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .72fr); gap: clamp(55px, 8vw, 120px); position: relative; isolation: isolate; background-image: linear-gradient(90deg, rgba(4,19,33,.3), rgba(4,19,33,.48) 45%, rgba(4,19,33,.82) 72%, rgba(4,19,33,.94)), url("../img/arena-tenis-login.8f0d1a8dddea.png"); background-size: cover; background-position: center; }
.portal-body.login-page .login-shell::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(4,19,33,.7), transparent 45%); }
.portal-body.login-page .login-presentation { max-width: 650px; padding: 0; align-self: center; border-radius: 0; background: transparent; }
.login-presentation h1 { max-width: 640px; margin: 10px 0 20px; color: white; font-size: clamp(48px, 5.6vw, 76px); line-height: .96; letter-spacing: -.055em; }
.portal-body.login-page .login-presentation > p:last-of-type { max-width: 560px; margin: 0; color: #c9d8e5; font-size: 15px; line-height: 1.65; }
.login-presentation ul { margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.login-presentation li { display: flex; align-items: center; gap: 8px; color: #d8e5ef; font-size: 10px; font-weight: 700; }
.login-presentation li span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--court-navy); background: var(--match-lime); font-size: 9px; font-weight: 900; }
.portal-body.login-page .login-form-card { width: 100%; max-width: 440px; padding: 34px; justify-self: end; border-color: rgba(255,255,255,.6); color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 30px 75px rgba(0,0,0,.3); backdrop-filter: blur(16px); }
.login-form-card > header { margin-bottom: 28px; }
.login-form-card > header h2 { margin: 3px 0 7px; color: var(--court-navy); font-size: 28px; letter-spacing: -.025em; }
.login-form-card > header > span { color: var(--muted); font-size: 11px; }
.login-form-card .field { margin-bottom: 17px; }
.login-form-card .field label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.login-form-card .field input { min-height: 51px; background: #f8fafc; }
.login-submit { width: 100%; min-height: 51px; margin-top: 3px; justify-content: space-between; }
.login-submit span { color: var(--match-lime); font-size: 17px; }
.login-referee-access { margin-top: 22px; padding-top: 19px; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); text-align: center; }
.login-referee-access > span { color: var(--muted); font-size: 9px; }
.login-referee-access a { color: var(--rally-blue); font-size: 11px; font-weight: 800; text-decoration: none; }
@media (max-width: 900px) {
  .portal-body.login-page .login-shell { grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 35px; }
  .login-presentation h1 { font-size: 47px; }
  .login-presentation ul { display: none; }
}
@media (max-width: 700px) {
  .portal-body.login-page > .portal-header { height: 68px; }
  .portal-body.login-page .login-shell { min-height: 100svh; padding: 98px 18px 30px; grid-template-columns: 1fr; gap: 28px; background-position: 33% center; }
  .portal-body.login-page .login-shell::before { background: rgba(4,19,33,.67); }
  .portal-body.login-page .login-presentation { align-self: end; }
  .login-presentation h1 { max-width: 520px; margin-bottom: 12px; font-size: clamp(38px, 11vw, 50px); }
  .portal-body.login-page .login-presentation > p:last-of-type { max-width: 500px; font-size: 13px; }
  .portal-body.login-page .login-form-card { max-width: none; padding: 27px 23px; justify-self: stretch; }
}

.user-context { margin-left: auto; display: flex; align-items: center; gap: 20px; color: #c6d7e8; font-size: 14px; }
.portal-nav a { min-height: 52px; display: inline-flex; align-items: center; position: relative; }
.portal-nav a.active { color: var(--rally-blue); }
.portal-nav a.active::after { content: ""; height: 3px; position: absolute; right: 0; bottom: 0; left: 0; border-radius: 3px 3px 0 0; background: var(--rally-blue); }
.mobile-nav { display: none; }
.sr-only { width: 1px; height: 1px; padding: 0; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.context-line { margin-bottom: 22px; display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; }
.context-line a { color: var(--rally-blue); text-decoration: none; }
.context-line strong { color: var(--ink); }
.page-heading > div > p:last-child { max-width: 650px; margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.hero-heading { margin: -56px calc(50% - 50vw) 36px; padding: 52px max(16px, calc((100vw - 1180px) / 2)); align-items: center; color: white; background: radial-gradient(circle at 82% 30%, #14446f, var(--court-navy) 58%); }
.hero-heading h1 { color: white; }
.hero-heading > div > p:last-child { color: #c6d7e8; }
.live-indicator { padding: 9px 13px; display: inline-flex; gap: 8px; align-items: center; border: 1px solid #36536d; border-radius: 999px; color: #dbe9f5; font-size: 12px; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: var(--match-lime); box-shadow: 0 0 0 5px rgba(199,240,0,.1); }
.section-title { margin: 46px 0 18px; display: flex; justify-content: space-between; align-items: end; }
.section-title h2, .upcoming-panel h2 { margin: 0; font-size: 24px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.dashboard-grid .quick-actions { margin: 0; }
.quick-actions a { min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.quick-actions a > span { color: var(--ace-cyan); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.quick-actions a strong { display: block; font-size: 17px; }
.quick-actions a small { color: #9fb5c9; font-weight: 500; line-height: 1.45; }
.upcoming-panel { margin-top: 46px; padding: 26px; border-radius: var(--radius); color: white; background: var(--court-navy); }
.upcoming-panel > a { padding: 16px 0; display: flex; gap: 16px; border-top: 1px solid #294761; color: white; text-decoration: none; }
.upcoming-panel time { width: 48px; color: var(--match-lime); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.upcoming-panel a span { display: flex; flex-direction: column; gap: 4px; }
.upcoming-panel small, .empty-copy { color: #9fb5c9; }

/* Dashboard operacional */
.dashboard-hero { margin-bottom: 0; }
.dashboard-hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.dashboard-hero-meta time { color: #9fb5c9; font-size: 11px; font-weight: 700; }
.dashboard-primary-actions { margin: -22px 0 22px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-primary-actions > a { min-height: 82px; padding: 15px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 10px 28px rgba(7,27,51,.09); text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.dashboard-primary-actions > a:hover { transform: translateY(-2px); border-color: var(--rally-blue); }
.dashboard-primary-actions > a > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--rally-blue); background: #edf6ff; font-size: 19px; font-weight: 850; }
.dashboard-primary-actions > a.primary { color: white; border-color: var(--rally-blue); background: var(--rally-blue); }
.dashboard-primary-actions > a.primary > span { color: var(--court-navy); background: var(--match-lime); }
.dashboard-primary-actions > a div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dashboard-primary-actions strong { font-size: 13px; }
.dashboard-primary-actions small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-primary-actions .primary small { color: #d9ebff; }
.dashboard-metrics { margin-bottom: 8px; grid-template-columns: repeat(4, 1fr); gap: 0; }
.dashboard-metrics > a { min-height: 98px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); color: var(--ink); background: white; text-decoration: none; }
.dashboard-metrics > a:first-child { border-radius: 12px 0 0 12px; }
.dashboard-metrics > a:last-child { border-radius: 0 12px 12px 0; }
.dashboard-metrics > a + a { border-left: 0; }
.dashboard-metrics > a.attention { background: #fbfff0; }
.dashboard-metrics > a small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dashboard-section { min-width: 0; }
.dashboard-section-title { margin: 30px 0 13px; }
.dashboard-section-title h2 { font-size: 21px; }
.dashboard-section-title > span, .dashboard-section-title > a { color: var(--muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.dashboard-section-title > a { color: var(--rally-blue); }
.dashboard-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-task-grid > a { min-height: 100px; padding: 16px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-top: 3px solid var(--rally-blue); border-radius: 11px; color: var(--ink); background: white; text-decoration: none; }
.dashboard-task-grid > a.task-warning { border-top-color: #f2a900; }
.dashboard-task-grid > a.task-payment { border-top-color: var(--match-lime); }
.dashboard-task-grid > a.task-draft { border-top-color: #91a1b1; }
.dashboard-task-grid > a > b { font-size: 25px; font-variant-numeric: tabular-nums; }
.dashboard-task-grid > a > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dashboard-task-grid strong { font-size: 12px; }
.dashboard-task-grid small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.dashboard-task-grid > a > span { color: var(--rally-blue); font-size: 16px; }
.dashboard-operations-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.dashboard-tournament-list { display: grid; gap: 9px; }
.dashboard-tournament-list > article { min-height: 132px; padding: 16px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.dashboard-tournament-date { height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; color: white; background: var(--court-navy); }
.dashboard-tournament-date strong { font-size: 21px; line-height: 1; }
.dashboard-tournament-date span { margin-top: 3px; color: var(--match-lime); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.dashboard-tournament-main { min-width: 0; }
.dashboard-tournament-main > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dashboard-tournament-main > div > small { color: var(--muted); font-size: 9px; }
.dashboard-tournament-main h3 { margin: 8px 0 3px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-tournament-main > p { margin: 0; color: var(--muted); font-size: 10px; }
.dashboard-tournament-main footer { margin-top: 12px; padding: 9px 0 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: inherit; background: transparent; }
.dashboard-tournament-main footer span { color: var(--muted); font-size: 9px; }
.dashboard-tournament-main footer a { color: var(--rally-blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.dashboard-court-panel { margin-top: 30px; overflow: hidden; border-radius: 13px; color: white; background: var(--court-navy); box-shadow: 0 16px 36px rgba(7,27,51,.14); }
.dashboard-court-panel > header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #294761; }
.dashboard-court-panel h2 { margin: 2px 0 0; color: white; font-size: 20px; }
.dashboard-court-panel > header > i { width: 9px; height: 9px; border-radius: 50%; background: var(--match-lime); box-shadow: 0 0 0 5px rgba(199,240,0,.1); }
.dashboard-court-panel > div > a { padding: 16px 20px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid #294761; color: white; text-decoration: none; }
.dashboard-court-panel a > div, .dashboard-court-panel a footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dashboard-court-panel a footer { padding: 0; background: transparent; }
.dashboard-court-panel a small, .dashboard-court-panel a footer { color: #9fb5c9; font-size: 9px; }
.dashboard-court-panel a > strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-court-panel a > strong i { color: var(--ace-cyan); font-style: normal; }
.dashboard-court-panel a footer b { color: var(--match-lime); font-size: 9px; }
.court-empty { min-height: 190px; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.court-empty > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--court-navy); background: var(--match-lime); }
.court-empty strong { margin-top: 13px; font-size: 13px; }
.court-empty p { max-width: 230px; margin: 5px 0 0; color: #9fb5c9; font-size: 10px; line-height: 1.5; }
.dashboard-empty { padding: 24px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; border: 1px dashed #adc0d0; border-radius: 12px; }
.dashboard-empty > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--rally-blue); background: #edf6ff; font-size: 20px; }
.dashboard-empty strong { font-size: 14px; }
.dashboard-empty p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.dashboard-secondary-links { margin-top: 34px; padding: 18px 0 4px; display: grid; grid-template-columns: 1.15fr repeat(4, 1fr); gap: 10px; border-top: 1px solid var(--line); }
.dashboard-secondary-links h2 { margin: 2px 0 0; font-size: 18px; }
.dashboard-secondary-links > a { padding: 13px; display: grid; grid-template-columns: 1fr auto; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dashboard-secondary-links > a strong { font-size: 11px; }
.dashboard-secondary-links > a small { grid-column: 1; margin-top: 3px; color: var(--muted); font-size: 9px; }
.dashboard-secondary-links > a span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--rally-blue); }
@media (max-width: 980px) {
  .dashboard-primary-actions { grid-template-columns: repeat(2, 1fr); }
  .dashboard-task-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-operations-grid { grid-template-columns: 1fr; }
  .dashboard-court-panel { margin-top: 0; }
  .dashboard-secondary-links { grid-template-columns: repeat(2, 1fr); }
  .dashboard-secondary-links > div { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .dashboard-hero-meta { align-items: flex-start; }
  .dashboard-primary-actions { margin-top: -14px; grid-template-columns: 1fr 1fr; }
  .dashboard-primary-actions > a { min-height: 74px; padding: 12px; }
  .dashboard-primary-actions small { display: none; }
  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }
  .dashboard-metrics > a, .dashboard-metrics > a:first-child, .dashboard-metrics > a:last-child { border: 1px solid var(--line); border-radius: 10px; }
  .dashboard-task-grid { grid-template-columns: 1fr; }
  .dashboard-section-title > span { display: none; }
  .dashboard-tournament-main > div, .dashboard-tournament-main footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .dashboard-secondary-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .dashboard-primary-actions > a > span { width: 34px; height: 34px; }
  .dashboard-primary-actions strong { font-size: 11px; }
  .dashboard-tournament-list > article { grid-template-columns: 46px minmax(0, 1fr); padding: 13px; gap: 11px; }
  .dashboard-tournament-date { height: 52px; }
  .dashboard-secondary-links { grid-template-columns: 1fr; }
  .dashboard-secondary-links > div { grid-column: 1; }
}
.search-bar { margin-bottom: 22px; min-height: 52px; padding: 0 8px 0 17px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 18px rgba(7,27,51,.04); }
.search-bar > span { color: var(--rally-blue); font-size: 22px; }
.search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.search-bar a { color: var(--muted); font-size: 13px; }
.search-bar button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 8px; color: white; background: var(--rally-blue); font-weight: 750; cursor: pointer; }
.entity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.athlete-list-filters { margin-bottom: 12px; min-height: 68px; padding: 10px 12px 10px 17px; display: grid; grid-template-columns: minmax(240px, 1fr) 275px auto auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 18px rgba(7,27,51,.04); }
.athlete-search-field { min-width: 0; display: flex; align-items: center; gap: 12px; }
.athlete-search-field > span { color: var(--rally-blue); font-size: 22px; }
.athlete-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.athlete-gender-field { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; }
.athlete-gender-field label { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.athlete-gender-field select { width: 100%; min-width: 190px; min-height: 42px; padding: 8px 36px 8px 11px; border: 1px solid #b7c8d7; border-radius: 8px; color: var(--ink); background: white; font-size: 14px; }
.athlete-list-filters > a { color: var(--muted); font-size: 12px; white-space: nowrap; }
.athlete-list-filters > button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 8px; color: white; background: var(--rally-blue); font-weight: 750; cursor: pointer; }
.athlete-results-count { margin: 0 2px 15px; display: flex; align-items: baseline; gap: 6px; color: var(--muted); }
.athlete-results-count strong { color: var(--court-navy); font-size: 18px; font-variant-numeric: tabular-nums; }
.athlete-results-count span { font-size: 12px; font-weight: 750; }
.athlete-results-count small { margin-left: 3px; font-size: 11px; }
.entity-card { min-height: 94px; padding: 18px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 15px; align-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; text-decoration: none; transition: transform 160ms cubic-bezier(.2,.8,.2,1), border-color 160ms; }
.entity-card:hover { transform: translateY(-2px); border-color: var(--rally-blue); }
.entity-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.entity-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-card small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.entity-avatar, .rank-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; color: var(--ace-cyan); background: var(--court-navy); font-size: 15px; font-weight: 850; }
.athlete-avatar { border: 2px solid transparent; border-radius: 50%; color: var(--court-navy); background: linear-gradient(135deg, var(--ace-cyan), var(--match-lime)); }
.athlete-avatar.gender-masculino, .enrollment-profile-avatar.gender-masculino, .athlete-profile-photo.gender-masculino, .bracket-player-avatar.gender-masculino { border-color: #a9d7f2; }
.athlete-avatar.gender-feminino, .enrollment-profile-avatar.gender-feminino, .athlete-profile-photo.gender-feminino, .bracket-player-avatar.gender-feminino { border-color: #efbfd3; }
.athlete-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.rank-icon { color: var(--match-lime); font-size: 24px; }
.status-pill { padding: 6px 9px; border-radius: 999px; color: var(--muted); background: #edf1f5; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.status-pill.success { color: #355000; background: #eaf7bd; }
.status-pill.full { color: #76520a; background: #fff0ba; }
.tournament-status { min-width: 142px; justify-content: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.tournament-status::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.status-rascunho { color: #536779; background: #e9eef3; }
.status-inscricoes { color: #075a82; background: #d9f3ff; }
.status-agendado { color: #5e3d91; background: #eee4ff; }
.status-chaves { color: #4f3a88; background: #eee8ff; }
.status-em_andamento { color: #315d00; background: #dff3a3; }
.status-interrompido { color: #82540b; background: #fff0bd; }
.status-concluido { color: #536779; background: #e9eef3; }
.status-cancelado { color: #8a3030; background: #ffe1e1; }
.tournament-status-field { padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; transition: background .15s ease, border-color .15s ease; }
.tournament-status-field[data-status="rascunho"] { border-color: #cbd5de; background: #f1f4f7; }
.tournament-status-field[data-status="inscricoes"] { border-color: #a7dff4; background: #eaf8ff; }
.tournament-status-field[data-status="agendado"] { border-color: #d4c2ed; background: #f5efff; }
.tournament-status-field[data-status="em_andamento"] { border-color: #cfe875; background: #f3fbcf; }
.tournament-status-field[data-status="concluido"] { border-color: #abd8c7; background: #eaf7f2; }
.tournament-status-field[data-status="cancelado"] { border-color: #efb9b9; background: #fff0f0; }
.empty-state { padding: 64px 24px; grid-column: 1 / -1; text-align: center; border: 1px dashed #afbdc9; border-radius: var(--radius); background: white; }
.empty-state > span { color: var(--rally-blue); font-size: 32px; }
.empty-state h2 { margin: 12px 0 6px; font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); }
.tournament-stage-tabs { margin-bottom: 14px; padding: 6px; display: flex; gap: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #edf2f6; }
.tournament-stage-tabs a { min-height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; color: #566c7f; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tournament-stage-tabs a:hover { color: var(--court-navy); background: rgba(255,255,255,.58); }
.tournament-stage-tabs a.active { border-color: #c8d8e5; color: var(--court-navy); background: white; box-shadow: 0 3px 10px rgba(7,27,51,.06); }
.tournament-stage-tabs b { min-width: 23px; height: 23px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; color: #63788b; background: #dce5ec; font-size: 10px; font-variant-numeric: tabular-nums; }
.tournament-stage-tabs a.active b { color: white; background: var(--rally-blue); }
.tournament-stage-tabs .history-tab { margin-left: auto; }
.tournament-search { margin-bottom: 28px; }
.tournament-list-heading { margin: 0 2px 12px; display: flex; justify-content: space-between; align-items: end; }
.tournament-list-heading .eyebrow { margin-bottom: 5px; }
.tournament-list-heading h2 { margin: 0; color: var(--court-navy); font-size: 21px; }
.tournament-list-heading > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.tournament-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.tournament-list > a { min-height: 112px; padding: 17px 22px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 85px 142px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tournament-list > a:last-child { border-bottom: 0; }
.tournament-list > a:hover { background: #f7fbff; }
.tournament-list time { text-align: center; border-right: 1px solid var(--line); }
.tournament-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tournament-main > strong, .tournament-main > small, .tournament-main > i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tournament-main > small { color: var(--muted); }
.tournament-main > i { margin-top: 2px; color: #3973a2; font-size: 11px; font-style: normal; font-weight: 750; }
.tournament-row-em_andamento { box-shadow: inset 4px 0 #7eaf1c; }
.tournament-row-inscricoes { box-shadow: inset 4px 0 #35a7d8; }
.tournament-row-chaves { box-shadow: inset 4px 0 #7256ad; }
.tournament-profile-hero { margin-bottom: 16px; padding: 28px 30px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; overflow: hidden; border: 1px solid #c9d8e5; border-radius: var(--radius); background: linear-gradient(135deg, white 48%, #eaf6ff); box-shadow: 0 12px 34px rgba(7,27,51,.08); }
.tournament-profile-main { min-width: 0; display: flex; gap: 20px; align-items: center; }
.tournament-date-mark { width: 84px; height: 92px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; color: white; background: var(--court-navy); box-shadow: 0 8px 22px rgba(7,27,51,.18); }
.tournament-date-mark strong { color: var(--match-lime); font-size: 30px; line-height: 1; }
.tournament-date-mark span { margin-top: 4px; font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.tournament-date-mark small { margin-top: 4px; color: #9fb5c9; font-size: 10px; }
.tournament-profile-main h1 { margin: 1px 0 6px; color: var(--court-navy); font-size: clamp(31px, 4vw, 46px); line-height: 1.06; }
.tournament-profile-main p:last-child { margin: 0; color: var(--muted); }
.tournament-profile-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; justify-content: center; }
.tournament-profile-meta { margin: 0 -30px; padding: 18px 30px; grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1.25fr 1fr 1fr 1.35fr 1fr; border-top: 1px solid #d9e4ed; background: rgba(255,255,255,.62); }
.tournament-profile-meta > div { min-width: 0; padding: 0 20px; border-left: 1px solid #d9e4ed; }
.tournament-profile-meta > div:first-child { padding-left: 0; border-left: 0; }
.tournament-profile-meta dt { margin-bottom: 4px; color: #718598; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.tournament-profile-meta dd { margin: 0; color: var(--court-navy); font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tournament-description { margin: 0 0 16px; padding: 15px 18px; border-left: 3px solid var(--rally-blue); color: #4f667b; background: #f5f9fc; font-size: 13px; line-height: 1.5; }
.tournament-metrics { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tournament-metrics article { min-height: 66px; padding: 15px 18px; display: flex; align-items: baseline; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.tournament-metrics strong { color: var(--rally-blue); font-size: 25px; font-variant-numeric: tabular-nums; }
.tournament-metrics span { color: var(--muted); font-size: 11px; font-weight: 750; }
.tournament-metrics .attention { border-color: #e4c36d; background: #fffbef; }
.tournament-metrics .attention strong { color: #8a6111; }
.tournament-action-grid { margin-bottom: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tournament-action-grid.has-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tournament-action-grid > a, .tournament-action-grid > span { min-height: 92px; padding: 15px 17px; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; border: 1px solid #cbd9e5; border-radius: 12px; color: var(--court-navy); background: white; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.tournament-action-grid a:hover { transform: translateY(-2px); border-color: var(--rally-blue); }
.tournament-action-grid > span.disabled { color: #8797a5; background: #f4f6f8; }
.tournament-action-grid > a > span, .tournament-action-grid > span > span { width: 36px; height: 36px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 9px; color: var(--match-lime); background: var(--court-navy); font-size: 17px; font-weight: 850; }
.tournament-action-grid > span.disabled > span { color: #8e9eab; background: #dce3e9; }
.tournament-action-grid strong { align-self: end; font-size: 14px; }
.tournament-action-grid small { align-self: start; color: var(--muted); font-size: 11px; line-height: 1.35; }
.tournament-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tournament-dashboard-grid .tournament-content-card:first-child { grid-column: 1 / span 2; }
.tournament-dashboard-grid .tournament-content-card:last-child { grid-column: 3; }
.tournament-content-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7,27,51,.05); }
.tournament-content-card > header { min-height: 76px; padding: 15px 21px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.tournament-content-card > header h2 { margin: 2px 0 0; font-size: 20px; }
.tournament-content-card > header a { color: var(--rally-blue); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.tournament-category-list article { min-height: 76px; padding: 13px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 74px 120px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.tournament-category-list article:last-child { border-bottom: 0; }
.tournament-category-list article > span:first-child, .tournament-recent-list a > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tournament-category-list small, .tournament-recent-list small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.category-capacity { display: flex; flex-direction: column; align-items: flex-end; }
.category-capacity b { color: var(--rally-blue); font-size: 18px; }
.tournament-recent-list a { min-height: 72px; padding: 13px 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tournament-recent-list a:last-child { border-bottom: 0; }
.tournament-recent-list a:hover { background: #f7fbff; }
.tournament-workflow { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.tournament-workflow ol { margin: 0; padding: 15px 22px; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; border-bottom: 1px solid var(--line); }
.tournament-workflow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #8b9aa7; }
.tournament-workflow li::before { height: 2px; position: absolute; z-index: 0; top: 13px; right: 50%; left: -50%; background: #dce4eb; content: ""; }
.tournament-workflow li:first-child::before { display: none; }
.tournament-workflow li span { width: 27px; height: 27px; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 50%; color: #627687; background: #e9eef2; font-size: 11px; font-weight: 850; }
.tournament-workflow li small { font-size: 10px; font-weight: 750; }
.tournament-workflow li.done::before, .tournament-workflow li.done span { color: #345000; background: var(--match-lime); }
.tournament-next-action { min-height: 76px; padding: 13px 17px 13px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f9fbfd; }
.tournament-next-action > span { display: flex; flex-direction: column; gap: 4px; }
.tournament-next-action strong { color: var(--court-navy); font-size: 13px; }
.tournament-next-action small { color: var(--muted); font-size: 11px; }
.tournament-next-action form { flex: 0 0 auto; }
.games-stage-panel { margin-bottom: 16px; overflow: hidden; border: 1px solid #b9d3e7; border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(7,27,51,.06); }
.games-stage-panel > header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f8fcff, #eef7fd); }
.games-stage-panel > header h2 { margin: 2px 0 3px; font-size: 23px; }
.games-stage-panel > header p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.games-stage-metrics { padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; border-bottom: 1px solid var(--line); }
.games-stage-metrics article { min-height: 62px; padding: 12px 14px; display: flex; align-items: baseline; gap: 8px; border-radius: 9px; background: #f6f9fb; }
.games-stage-metrics article.attention { background: #fff8e8; }
.games-stage-metrics strong { color: var(--rally-blue); font-size: 23px; }
.games-stage-metrics span { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.25; }
.games-stage-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.games-stage-columns.attention-only { grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr); }
.games-stage-columns > section + section { border-left: 1px solid var(--line); }
.games-stage-columns > section > header { min-height: 56px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.games-stage-columns h3 { margin: 0; font-size: 14px; }
.games-stage-columns header a { color: var(--rally-blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.game-quick-list > a { min-height: 68px; padding: 10px 15px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.game-quick-list > a:last-child { border-bottom: 0; }
.game-quick-list > a:hover { background: #f6fbff; }
.game-quick-list time, .game-order { width: 45px; min-height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 7px; color: white; background: var(--court-navy); font-style: normal; }
.game-quick-list time strong { font-size: 11px; }
.game-quick-list time span { color: var(--match-lime); font-size: 10px; }
.game-order { color: var(--court-navy); background: #e8eef3; font-size: 15px; font-weight: 850; }
.game-quick-list > a > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.game-quick-list > a > span:nth-child(2) strong { overflow: hidden; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.game-quick-list small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.game-quick-list > .game-list-more { min-height: 42px; padding: 10px 16px; display: flex; align-items: center; justify-content: center; border-bottom: 0; color: var(--rally-blue); background: #f7fbff; font-size: 11px; font-weight: 850; text-align: center; }
.game-filter-panel { grid-template-columns: repeat(3, minmax(170px, 1fr)) auto auto; }
.games-management-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.games-management-list > a { min-height: 98px; padding: 15px 18px 15px 15px; display: grid; grid-template-columns: 68px minmax(0, 1fr) 126px; gap: 17px; align-items: center; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.games-management-list > a:last-child { border-bottom: 0; }
.games-management-list > a:hover { border-left-color: var(--rally-blue); background: #f6fbff; }
.games-management-list > .game-row--em_andamento { border-left-color: #88b630; background: #fbfdf4; }
.games-management-list > .game-row--interrompido { border-left-color: #d8a52f; background: #fffcf4; }
.games-management-list time { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; color: white; background: var(--court-navy); }
.games-management-list time strong { font-size: 18px; line-height: 1; }
.games-management-list time span { margin-top: 5px; color: var(--match-lime); font-size: 10px; font-weight: 800; }
.game-list-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.game-list-main > small { overflow: hidden; color: #607589; font-size: 11px; font-weight: 750; letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; }
.game-list-main > span { color: var(--muted); font-size: 12px; }
.game-list-main > strong { overflow: hidden; display: flex; align-items: center; gap: 9px; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.game-list-main i { color: var(--rally-blue); font-size: 13px; font-style: normal; font-weight: 850; }
.game-matchup .game-player { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.game-matchup .game-player.winner { color: #27705c; font-weight: 900; }
.game-matchup .game-player.winner::after { margin-left: 6px; color: #518900; content: "✓"; font-size: 11px; }
.game-list-meta { min-width: 0; display: flex; align-items: center; gap: 8px; }
.game-list-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-score { padding: 3px 8px; flex: 0 0 auto; border-radius: 6px; color: var(--court-navy); background: #e7f1f8; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.game-row--concluido .game-score { color: #1f6753; background: #ddf2ea; }
.game-status-pill { min-width: 116px; min-height: 31px; padding: 6px 11px; display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; border: 1px solid currentColor; box-sizing: border-box; font-size: 12px; }
.game-status-pill::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.game-status-pill.status-a_agendar { color: #586c7d; background: #f0f4f7; }
.game-status-pill.status-agendado { color: #624394; background: #f2ebff; }
.game-status-pill.status-em_andamento { color: #456e08; background: #eef8ce; }
.game-status-pill.status-interrompido { color: #8a5b0d; background: #fff4cf; }
.game-status-pill.status-concluido { color: #27705c; background: #e5f5ef; }
.game-status-pill.status-cancelado { color: #923f3f; background: #ffeded; }
.game-page-heading { max-width: 920px; margin-bottom: 22px; align-items: center; }
.game-page-heading > div:first-child { min-width: 0; flex: 1; }
.game-page-heading .eyebrow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.game-page-heading .eyebrow span { max-width: 100%; overflow: hidden; color: var(--court-navy); font-size: 16px; font-weight: 850; letter-spacing: .015em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.game-page-heading .eyebrow b { color: var(--rally-blue); font-size: 12px; font-weight: 850; letter-spacing: .075em; line-height: 1.25; }
.game-heading-status { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.game-heading-status > small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.game-heading-status .game-status-pill { min-width: 132px; min-height: 34px; font-size: 12px; }
.matchup-hero { width: 100%; max-width: 920px; margin-bottom: 18px; padding: 18px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; box-sizing: border-box; border-radius: var(--radius); color: white; background: var(--court-navy); }
.matchup-hero article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: center; }
.matchup-hero article:last-child { grid-template-columns: auto minmax(0, 1fr); text-align: right; }
.matchup-hero small { color: #a9c0d5; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.matchup-hero strong { font-size: 20px; line-height: 1.2; }
.matchup-hero > i { color: var(--match-lime); font-size: 19px; font-style: normal; font-weight: 900; }
.matchup-hero article > small { grid-column: 1; grid-row: 1; }
.matchup-name { min-width: 0; grid-column: 1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matchup-hero article:last-child > small, .matchup-hero article:last-child > .matchup-name { grid-column: 2; }
.matchup-set-scores { min-height: 47px; grid-column: 2; grid-row: 1 / 3; display: flex; align-self: stretch; gap: 5px; }
.matchup-hero article:last-child .matchup-set-scores { grid-column: 1; }
.matchup-set-scores b { width: 35px; min-height: 47px; position: relative; display: grid; place-items: center; border: 1px solid #49627d; border-radius: 6px; color: #d5e2ed; background: #172d47; box-sizing: border-box; font-size: 19px; font-variant-numeric: tabular-nums; }
.matchup-set-scores b.set-winner { border-color: var(--match-lime); color: var(--court-navy); background: var(--match-lime); box-shadow: 0 0 0 1px rgba(201,241,53,.18); }
.matchup-set-scores sup { position: absolute; top: 4px; right: 4px; font-size: 10px; font-weight: 850; line-height: 1; }
.game-locked-notice { max-width: 920px; margin: -4px 0 18px; padding: 13px 16px; display: flex; align-items: center; gap: 11px; border: 1px solid #b8ddcf; border-radius: 9px; color: #376d5d; background: #edf8f4; }
.game-locked-notice > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: #43816e; font-size: 12px; font-weight: 900; }
.game-locked-notice strong { color: #245c4c; font-size: 13px; }
.game-locked-notice p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; }
.game-workspace :disabled { color: #526778; border-color: #d4dee6; background: #f2f5f7; cursor: not-allowed; opacity: 1; }
.game-workspace.read-only .form-actions button { display: none; }
.agenda-quick-action { margin-top: -2px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #c7dbeb; border-radius: 9px; background: #f4f9fd; }
.agenda-quick-action > span { display: flex; flex-direction: column; gap: 2px; }
.agenda-quick-action strong { color: var(--court-navy); font-size: 13px; }
.agenda-quick-action small { color: var(--muted); font-size: 12px; }
.agenda-quick-action .button { min-height: 40px; flex: 0 0 auto; }
.game-form { max-width: 920px; }
.workflow-form.game-workspace { width: min(1220px, calc(100vw - 32px)); max-width: none; display: grid; grid-template-columns: minmax(0, 920px) 280px; gap: 20px; align-items: start; }
.game-flow-main { min-width: 0; }
.game-sidebar-stack { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 16px; }
.game-side-category, .game-flow-sidebar { overflow: hidden; border: 1px solid #cddae4; border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7,27,51,.06); }
.game-side-category > header { padding: 17px 18px 16px; display: flex; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--line); background: #f8fbfd; }
.game-side-category .eyebrow { margin-bottom: 7px; font-size: 9px; letter-spacing: .1em; }
.game-side-category > header > strong { color: var(--court-navy); font-size: 15px; line-height: 1.35; }
.game-side-category > header > small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.game-side-round-inline { margin-top: 10px; color: var(--rally-blue); font-size: 10px; font-weight: 850; letter-spacing: .06em; line-height: 1.3; }
.game-side-category > a { min-height: 42px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--rally-blue); background: white; font-size: 12px; font-weight: 850; text-decoration: none; }
.game-side-category > a b { font-size: 15px; }
.game-side-category > a:hover { color: #0b5dbb; background: #f3f9fe; }
.game-side-category > a:focus-visible { outline: 3px solid rgba(20,115,230,.18); outline-offset: -3px; }
.game-flow-sidebar > header { padding: 17px 18px 16px; border-bottom: 1px solid var(--line); background: #f8fbfd; }
.game-flow-sidebar > header .eyebrow { font-size: 9px; letter-spacing: .1em; }
.game-flow-sidebar h2 { margin: 5px 0 0; color: var(--court-navy); font-size: 16px; line-height: 1.3; }
.game-state-flow { margin: 0; padding: 14px 18px; list-style: none; }
.game-state-flow li { min-height: 52px; position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: #8795a1; }
.game-state-flow li:not(:last-child)::after { width: 2px; position: absolute; top: 27px; bottom: 1px; left: 13px; background: #dce4ea; content: ""; }
.game-state-flow li > span { width: 28px; height: 28px; z-index: 1; display: grid; place-items: center; border: 2px solid #d4dde4; border-radius: 50%; background: white; box-sizing: border-box; font-size: 10px; font-weight: 850; }
.game-state-flow li > div { padding-top: 1px; display: flex; flex-direction: column; gap: 2px; }
.game-state-flow strong { font-size: 12px; line-height: 1.3; }
.game-state-flow small { font-size: 10px; line-height: 1.4; }
.game-state-flow li.done { color: #39705f; }
.game-state-flow li.done > span { border-color: #70a895; color: white; background: #55917d; }
.game-state-flow li.active { color: var(--court-navy); }
.game-state-flow li.active > span { border-color: var(--match-lime); color: var(--court-navy); background: var(--match-lime); box-shadow: 0 0 0 3px rgba(201,241,53,.18); }
.game-next-action { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); background: #f8fbfd; }
.game-next-action p { margin: 0 0 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.game-next-action [data-schedule-requirement].ready { color: #39705f; }
.game-next-action .button { width: 100%; min-height: 40px; justify-content: center; }
.finalize-requirement { margin: -2px 1px 1px; color: #8a641d; font-size: 10px; line-height: 1.35; }
.finalize-requirement.ready { color: #39705f; }
.button.warning { color: #754d0b; border-color: #e0bd71; background: #fff2cf; }
.game-flow-complete { margin: 0 18px 18px; padding: 14px; display: grid; grid-template-columns: 28px 1fr; gap: 2px 9px; border-radius: 8px; color: #39705f; background: #edf8f4; }
.game-flow-complete > span { width: 28px; height: 28px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 50%; color: white; background: #55917d; }
.game-flow-complete strong { font-size: 12px; }
.game-flow-complete small { color: #5e7c72; font-size: 10px; }
.compact-game-agenda, .score-locked-card { margin-bottom: 16px; padding: 15px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid #cfdae3; border-radius: 10px; background: white; }
.compact-game-agenda > span, .score-locked-card > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--rally-blue); font-size: 11px; font-weight: 850; }
.compact-game-agenda > div, .score-locked-card > div { display: flex; flex-direction: column; gap: 2px; }
.compact-game-agenda small { color: var(--rally-blue); font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.compact-game-agenda strong, .score-locked-card strong { color: var(--court-navy); font-size: 13px; }
.compact-game-agenda p, .score-locked-card p { margin: 0; color: var(--muted); font-size: 11px; }
.score-locked-card { color: #617484; background: #f7f9fb; }
.score-locked-card > span { color: #687d8e; background: #e5ebf0; }
.compact-agenda-section > header { min-height: 86px; }
.score-section.emphasized { border-color: #9fc9e9; box-shadow: 0 10px 32px rgba(20,115,230,.08); }
.score-section.emphasized > header { background: linear-gradient(135deg, #f8fcff, #eef7fd); }
.game-form-actions { padding-right: 4px; padding-left: 4px; }
.tennis-rules-note { padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--rally-blue); border-radius: 7px; color: #526a7d; background: #f4f9fd; font-size: 11px; line-height: 1.45; }
.tennis-rules-note strong { color: var(--court-navy); font-size: 12px; }
.set-scoreboard { padding: 18px 22px 8px; }
.set-scoreboard-head, .set-score-row { display: grid; grid-template-columns: 110px repeat(2, minmax(0, 1fr)); gap: 12px; align-items: center; }
.set-scoreboard-head { padding: 0 10px 9px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.set-scoreboard-head strong { overflow: hidden; color: var(--court-navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.set-score-row { margin-bottom: 9px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; }
.set-score-row > span { display: flex; flex-direction: column; gap: 2px; }
.set-score-row > span b { color: var(--court-navy); font-size: 14px; }
.set-score-row > span small { color: var(--muted); font-size: 10px; }
.set-score-row > label { display: grid; grid-template-columns: 48px minmax(48px, 1fr); gap: 6px; align-items: center; }
.set-score-row label > i { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.set-score-row input[type="number"] { width: 100%; min-height: 42px; padding: 7px 9px; border: 1px solid #aebdca; border-radius: 7px; font-size: 15px; }
.set-score-row label > em { grid-column: 1 / -1; display: grid; grid-template-columns: 48px minmax(48px, 1fr); gap: 6px; align-items: center; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.set-score-row label > em input { min-width: 0; }
[data-tiebreak-field][hidden] { display: none !important; }
.set-field-errors { grid-column: 2 / -1; color: #a33c32; font-size: 11px; }
.score-rules-summary { margin: 0 22px 12px; padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; border-radius: 7px; color: #5b7183; background: #eef5fa; font-size: 12px; line-height: 1.45; }
.score-rules-summary strong { color: var(--court-navy); font-size: 13px; }
.result-ending-controls { padding-bottom: 10px; }
.exceptional-result-help { padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; border: 1px solid #f0d5a6; border-radius: 8px; color: #79591f; background: #fff8e9; font-size: 12px; line-height: 1.45; }
.exceptional-result-help strong { color: #65430b; font-size: 13px; }
.interrupted-result-help { padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; border: 1px solid #d9e4ed; border-radius: 8px; color: #5b7183; background: #f6f9fc; font-size: 12px; line-height: 1.45; }
.interrupted-result-help strong { color: var(--court-navy); font-size: 13px; }
.exceptional-result-help[hidden], .winner-exception-field[hidden], [data-set-scoreboard][hidden] { display: none !important; }
.tournament-category-config { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tournament-category-config article { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.tournament-category-config article > label { min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tournament-category-config article > label > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tournament-category-config article strong { color: var(--court-navy); font-size: 13px; }
.tournament-category-config article small { color: var(--muted); font-size: 10px; }
.tournament-category-config article > div { display: flex; flex-direction: column; gap: 4px; }
.tournament-category-config article > div label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tournament-category-config input[type="number"] { width: 100%; min-height: 39px; padding: 7px 9px; border: 1px solid #aebdca; border-radius: 7px; font-size: 13px; }
.category-bracket-action, .tournament-category-list article > .status-pill { width: 120px; min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; font-size: 11px; line-height: 1.2; text-align: center; white-space: nowrap; }
.category-bracket-action { border-radius: 7px; color: white; background: var(--rally-blue); font-weight: 800; text-decoration: none; }
.seed-count-card { margin-bottom: 16px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #c9d8e5; border-radius: var(--radius); background: linear-gradient(135deg, white 58%, #f0f7fc); box-shadow: 0 8px 28px rgba(7,27,51,.05); }
.seed-count-intro { min-width: 0; display: flex; align-items: center; gap: 13px; }
.seed-count-intro > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--match-lime); background: var(--court-navy); font-size: 11px; font-weight: 850; }
.seed-count-card label { display: block; color: var(--court-navy); font-size: 15px; font-weight: 850; }
.seed-count-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.seed-count-control { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; }
.seed-count-control select { min-width: 185px; min-height: 42px; padding: 8px 34px 8px 11px; border: 1px solid #aebdca; border-radius: 8px; color: var(--ink); background: white; font-size: 13px; }
.seed-count-control .button { min-height: 42px; }
.seed-count-card > .errorlist { width: 100%; margin: 0; }
.bracket-workflow-grid { margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.bracket-seeds-card, .bracket-rules-card, .draw-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7,27,51,.05); }
.bracket-seeds-card > header { padding: 19px 22px; display: flex; gap: 13px; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.bracket-seeds-card > header > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--match-lime); background: var(--court-navy); font-size: 11px; font-weight: 850; }
.bracket-seeds-card h2, .bracket-rules-card h2, .draw-card h2 { margin: 0 0 4px; font-size: 21px; }
.bracket-seeds-card header p { margin: 0; color: var(--muted); font-size: 12px; }
.bracket-seed-fields { padding: 18px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.bracket-seed-fields .field { margin: 0; }
.bracket-seeds-card > footer { padding: 15px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); background: #f9fbfd; }
.bracket-seeds-card > footer p { margin: 0; color: var(--muted); font-size: 10px; }
.seed-form-actions { display: flex; align-items: center; gap: 9px; }
.seed-form-actions .button { min-height: 42px; }
.draw-locked-note { margin-bottom: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #c9d8e5; border-radius: 10px; background: #f7fafc; }
.draw-locked-note > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #345000; background: var(--match-lime); font-size: 12px; font-weight: 900; }
.draw-locked-note strong { color: var(--court-navy); font-size: 13px; }
.draw-locked-note p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.bracket-rules-card { padding: 21px; }
.bracket-criteria-list { margin: 15px 0 0; padding: 0; list-style: none; }
.bracket-criteria-list li { padding: 11px 0; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); }
.bracket-criteria-list li:first-child { padding-top: 0; border-top: 0; }
.bracket-criteria-list b { color: var(--court-navy); font-size: 12px; }
.bracket-criteria-list span { color: #5c7183; font-size: 12px; line-height: 1.42; }
.draw-card > header { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.draw-card > header > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.draw-match-grid { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.draw-match-grid article { padding: 13px; display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 9px; }
.draw-match-grid article > small { grid-column: 1 / -1; color: var(--rally-blue); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.draw-match-grid article > span { color: #93a2ae; text-align: center; }
.draw-match-grid article > div { min-width: 0; display: flex; align-items: center; gap: 5px; }
.draw-match-grid strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.draw-match-grid em { color: #8494a1; font-size: 11px; font-style: normal; font-weight: 750; }
.draw-match-grid b { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #345000; background: var(--match-lime); font-size: 9px; }
.bracket-preview-card { margin-top: 18px; overflow: hidden; border: 1px solid #c9d8e5; border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7,27,51,.05); }
.bracket-preview-card > header { padding: 19px 22px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f9fbfd, #eef7ff); }
.bracket-preview-card h2 { margin: 0 0 4px; color: var(--court-navy); font-size: 21px; }
.bracket-preview-card header > span { color: #49667e; font-size: 12px; font-weight: 800; white-space: nowrap; }
.preview-summary { max-width: 690px; margin: 0; color: #64788a; font-size: 12px; line-height: 1.45; }
.preview-summary b { color: #385b77; }
.preview-body-toolbar { margin: 0 1px 2px; display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 20px; align-items: center; }
.preview-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 13px; }
.preview-legend > span { display: inline-flex; align-items: center; gap: 5px; color: #637789; font-size: 10px; font-weight: 750; }
.preview-legend i { width: 14px; height: 9px; display: inline-block; box-sizing: border-box; border-radius: 3px; background: #f0f3f6; }
.preview-legend .legend-reserved { background: #dcd2f4; }
.preview-legend .legend-possible { border: 1px dashed #8069b6; background: #faf8ff; }
.preview-legend .legend-bye { background: #d9eca4; }
.preview-legend .legend-open { border: 1px solid #dbe2e8; background: #f0f3f6; }
.bracket-preview-grid { width: 100%; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; box-sizing: border-box; }
.preview-round-heading { display: grid; grid-template-columns: auto minmax(30px, 1fr); gap: 10px; align-items: center; }
.preview-round-heading span { color: var(--court-navy); font-size: 12px; font-weight: 850; }
.preview-round-heading i { height: 1px; background: #ccd8e2; }
.bracket-preview-grid article { min-width: 0; padding: 11px; display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; }
.bracket-preview-grid article > small { grid-column: 1 / -1; color: var(--rally-blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.bracket-preview-grid article > i { color: #94a5b3; font-size: 11px; font-style: normal; text-align: center; }
.preview-slot { min-width: 0; min-height: 50px; padding: 7px 8px; display: flex; align-items: center; gap: 7px; border-radius: 7px; color: #64788a; background: #f0f3f6; }
.preview-slot b { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #617486; background: white; font-size: 8px; }
.preview-slot span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bracket-player-avatars { flex: 0 0 auto; display: flex; overflow: visible !important; }
.bracket-player-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border: 2px solid white; border-radius: 50%; color: var(--court-navy); background: linear-gradient(135deg, var(--ace-cyan), var(--match-lime)); box-shadow: 0 2px 7px rgba(7,27,51,.13); font-size: 8px; font-style: normal; font-weight: 850; }
.bracket-player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bracket-player-avatar.partner-avatar { margin-left: -9px; }
.bracket-player-name { flex: 1; }
.preview-slot em { width: 19px; height: 19px; margin-left: auto; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #345000; background: var(--match-lime); font-size: 9px; font-style: normal; font-weight: 850; }
.preview-cabeca { color: #403076; background: #eee8ff; }
.preview-cabeca b { color: white; background: #674fa0; }
.preview-cabeca-possivel { border: 1px dashed #8069b6; color: #59468b; background: #faf8ff; }
.preview-cabeca-possivel b { color: #59468b; background: #e8e0fa; }
.preview-bye { color: #3e590c; background: #eaf5c8; }
.preview-bye b { color: #3e590c; background: #d5eb96; }
.preview-bye-possivel { color: #74560d; background: #fff3cc; }
.drawn-bracket-card { border-color: #b9d8cd; }
.drawn-bracket-card > header { background: linear-gradient(135deg, #f9fbfd, #edf9f4); }
.structural-preview-disclosure { margin-top: 12px; }
.structural-preview-disclosure > summary { width: fit-content; margin-left: auto; padding: 8px 10px; display: flex; align-items: center; gap: 6px; border-radius: 7px; color: #687b8c; font-size: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.structural-preview-disclosure > summary::-webkit-details-marker { display: none; }
.structural-preview-disclosure > summary:hover { color: var(--rally-blue); background: #edf4fa; }
.structural-preview-disclosure > summary span { color: #8069b6; font-size: 13px; }
.structural-preview-disclosure[open] > summary { color: var(--rally-blue); }
.structural-preview-disclosure .bracket-preview-card { margin-top: 8px; }
.complete-bracket-toolbar { padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.complete-bracket-toolbar .preview-legend { justify-content: flex-start; }
.preview-legend .legend-winner { background: var(--match-lime); }
.preview-legend .legend-loser { background: #cbd4dc; opacity: .55; }
.bracket-arrow-controls { display: flex; gap: 6px; }
.bracket-arrow-controls button { width: 32px; height: 30px; border: 1px solid #c5d2dc; border-radius: 7px; color: var(--court-navy); background: white; font-size: 14px; font-weight: 850; cursor: pointer; }
.bracket-arrow-controls button:hover { border-color: var(--rally-blue); color: var(--rally-blue); }
.complete-bracket-viewport { padding: 18px 16px 14px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #7992a7 #e7edf2; }
.complete-bracket-viewport::-webkit-scrollbar { height: 10px; }
.complete-bracket-viewport::-webkit-scrollbar-track { border-radius: 8px; background: #e7edf2; }
.complete-bracket-viewport::-webkit-scrollbar-thumb { border: 2px solid #e7edf2; border-radius: 8px; background: #7992a7; }
.complete-bracket-track { width: max-content; min-width: 100%; display: flex; align-items: stretch; gap: 16px; }
.bracket-round { width: clamp(285px, 29vw, 330px); flex: 0 0 auto; display: flex; flex-direction: column; scroll-snap-align: start; border: 1px solid #cfdae3; border-radius: 11px; background: #f8fafc; }
.bracket-round.active { border-color: #8bbce7; box-shadow: 0 7px 20px rgba(20,115,230,.1); }
.bracket-round.future { background: #f4f6f8; }
.bracket-round > header { min-height: 64px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-content: center; border-bottom: 1px solid var(--line); }
.bracket-round > header span { grid-column: 1 / -1; color: var(--rally-blue); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bracket-round > header h3 { margin: 2px 0 0; color: var(--court-navy); font-size: 16px; }
.bracket-round > header i { align-self: end; color: var(--muted); font-size: 10px; font-style: normal; }
.bracket-round-games { min-height: 0; padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.complete-match { overflow: hidden; border: 1px solid #d4dee6; border-radius: 9px; background: white; box-shadow: 0 3px 10px rgba(7,27,51,.04); }
.complete-match-heading { min-height: 32px; padding: 5px 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e5ebf0; background: #f8fafc; }
.complete-match-heading small { color: var(--rally-blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.complete-match-heading > span:not(.status-pill) { color: #8a98a5; font-size: 10px; }
.complete-match-heading .status-pill { min-height: 24px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d6dfe6; box-sizing: border-box; color: #526879; background: #f0f4f7; font-size: 10px; line-height: 1; }
.complete-match-heading .status-pill::before { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.complete-match-heading .status-a_agendar { color: #526879; border-color: #d6dfe6; background: #f0f4f7; }
.complete-match-heading .status-agendado { color: #654797; border-color: #d9cbed; background: #f3edfc; }
.complete-match-heading .status-em_andamento { color: #456b0d; border-color: #cde393; background: #f0f8d8; }
.complete-match-heading .status-interrompido { color: #80570f; border-color: #ead18c; background: #fff5d8; }
.complete-match-heading .status-concluido { color: #316b5b; border-color: #badacf; background: #eaf6f2; }
.complete-match-heading .status-cancelado { color: #8b3d3d; border-color: #ebc1c1; background: #fff0f0; }
.complete-player-slot { min-height: 45px; padding: 7px 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 7px; align-items: center; border-bottom: 1px solid #edf1f4; transition: opacity .2s ease; }
.complete-player-slot > strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.complete-player-slot > em { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #8069b6; font-size: 9px; font-style: normal; font-weight: 850; }
.complete-player-slot > b { color: #4d7200; font-size: 13px; }
.complete-player-slot.winner { border-left: 3px solid var(--match-lime); background: #fbfff3; }
.complete-player-slot.loser { opacity: .42; filter: grayscale(.7); }
.complete-player-slot.pending { color: #8796a3; background: #f4f6f8; }
.complete-player-slot.bye { color: #66821f; background: #f2f8e5; }
.complete-match > footer { min-height: 33px; padding: 6px 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); background: #fbfcfd; font-size: 10px; }
.complete-match > footer strong { color: var(--court-navy); font-size: 11px; }
.complete-match > footer a { color: var(--rally-blue); font-weight: 800; text-decoration: none; }
.bracket-round-navigation { padding: 11px 18px 15px; display: flex; align-items: flex-start; justify-content: center; gap: 0; overflow-x: auto; border-top: 1px solid var(--line); background: #f9fbfd; }
.bracket-round-navigation button { min-width: 112px; position: relative; padding: 17px 8px 0; border: 0; color: #7f8f9c; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.bracket-round-navigation button::before { height: 2px; position: absolute; top: 6px; right: 50%; left: -50%; background: #d3dce4; content: ''; }
.bracket-round-navigation button:first-child::before { display: none; }
.bracket-round-navigation button > span { width: 13px; height: 13px; position: absolute; z-index: 1; top: 0; left: calc(50% - 6px); border: 3px solid #f9fbfd; border-radius: 50%; background: #b9c5cf; }
.bracket-round-navigation button.active { color: var(--rally-blue); }
.bracket-round-navigation button.active > span { background: var(--rally-blue); }
.structural-preview-disclosure.configuration-changed > summary { color: #674fa0; background: #f2edff; }
.configuration-change-note { margin: 8px 0 0; padding: 11px 13px; border-left: 3px solid #8069b6; border-radius: 6px; color: #594a78; background: #faf8ff; font-size: 11px; line-height: 1.4; }
.tournament-list time strong { display: block; color: var(--court-navy); font-size: 26px; font-variant-numeric: tabular-nums; }
.tournament-list time span { color: var(--rally-blue); font-size: 10px; font-weight: 850; }
.tournament-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tournament-main small { color: var(--muted); }
.category-count { text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.category-count small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; }
.workflow-form { max-width: 920px; }
/* Pontuação pós-torneio: prévia, confirmação e histórico auditável. */
.points-distribution-entry, .points-distribution-status { margin: 0 0 22px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.points-distribution-entry h2, .points-distribution-status h2 { margin: 0 0 8px; font-size: 21px; }
.points-distribution-entry p, .points-distribution-status p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.points-distribution-entry .eyebrow { margin-bottom: 8px; }
.points-distribution-entry > .button { flex: 0 0 auto; }
.points-distribution-status .status-pill { margin-bottom: 12px; }
.points-distribution-status dl { margin: 0; display: flex; gap: 28px; flex-shrink: 0; }
.points-distribution-status dt, .points-distribution-totals dt { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.points-distribution-status dd { margin: 0; font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.points-distribution-note { margin: 0 0 22px; padding: 20px 24px; border: 1px solid #b9dafa; border-radius: 12px; color: #174d7d; background: #eef7ff; font-size: 15px; line-height: 1.55; }
.points-distribution-note p { margin: 6px 0 0; }
.points-distribution-note ul { margin-bottom: 0; padding-left: 22px; }
.points-distribution-regulation, .points-distribution-revert { margin: 0 0 22px; padding: 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; font-size: 15px; line-height: 1.55; }
.points-distribution-regulation > summary, .points-distribution-revert > summary { padding: 18px 0; cursor: pointer; font-weight: 750; }
.points-distribution-regulation > div, .points-distribution-revert > form { padding-bottom: 24px; }
.points-distribution-regulation p { color: var(--muted); }
.points-distribution-regulation dl { margin: 20px 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.points-distribution-regulation dl > div { padding: 14px 12px; border-radius: 9px; background: #f5f8fc; }
.points-distribution-regulation dt { color: var(--muted); font-size: 13px; }
.points-distribution-regulation dd { margin: 7px 0 0; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.points-distribution-totals { margin: 0; padding: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; border-bottom: 1px solid var(--line); }
.points-distribution-totals dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.points-distribution-preview > .error-summary { margin: 20px 24px; }
.points-distribution-category { padding: 24px; }
.points-distribution-category + .points-distribution-category { border-top: 1px solid var(--line); }
.points-distribution-category-heading { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.points-distribution-category-heading h3 { margin: 0; font-size: 18px; }
.points-distribution-muted { margin: -4px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.points-distribution-table { overflow-x: auto; }
.points-distribution-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; line-height: 1.45; }
.points-distribution-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.points-distribution-table th { padding: 12px; color: var(--muted); background: #f5f8fc; font-size: 13px; font-weight: 750; }
.points-distribution-table td { padding: 16px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.points-distribution-table td:first-child { width: 34%; }
.points-distribution-table td:last-child { width: 30%; }
.points-distribution-table td a { color: var(--court-navy); font-weight: 750; text-decoration: none; }
.points-distribution-table td a:hover { color: var(--rally-blue); text-decoration: underline; }
.points-distribution-table td small { margin-top: 4px; display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.points-distribution-table td strong { font-size: 14px; }
.points-distribution-table .points-distribution-number { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.points-distribution-ineligible { background: #fafbfd; }
.points-distribution-table .points-distribution-mobile-status { display: none; }
.points-distribution-empty { padding: 24px; color: var(--muted); }
.points-distribution-confirm { margin: 0 0 24px; padding: 24px; border: 1px solid #b9dafa; border-radius: var(--radius); background: #f5faff; }
.points-distribution-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.points-distribution-check input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--rally-blue); }
.points-distribution-confirm > div { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.points-distribution-confirm p { margin: 0; max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.points-distribution-confirm .button { flex: 0 0 auto; }
.points-distribution-ranking-links { padding: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.points-distribution-ranking-links .button { white-space: normal; }
.points-distribution-revert > p { color: var(--muted); }
.points-distribution-revert .field { max-width: 780px; margin-bottom: 18px; }
.points-distribution-history > details { padding: 0 24px; }
.points-distribution-history > details + details { border-top: 1px solid var(--line); }
.points-distribution-history summary { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; }
.points-distribution-history summary strong { display: block; font-size: 15px; }
.points-distribution-history summary small { margin-top: 5px; display: block; color: var(--muted); font-size: 13px; }
.points-distribution-history-body { padding-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.points-distribution-history-body h3 { color: var(--court-navy); font-size: 16px; }
.points-distribution-history-body ul { padding-left: 22px; }
@media (max-width: 900px) {
  .points-distribution-entry, .points-distribution-status { align-items: flex-start; flex-direction: column; }
  .points-distribution-regulation dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points-distribution-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points-distribution-confirm > div { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
  .points-distribution-entry, .points-distribution-status, .points-distribution-note, .points-distribution-confirm { padding: 20px 16px; }
  .points-distribution-regulation, .points-distribution-revert { padding-right: 16px; padding-left: 16px; }
  .points-distribution-totals { padding: 20px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points-distribution-totals dd { font-size: 20px; }
  .points-distribution-category { padding: 20px 16px; }
  .points-distribution-category-heading { align-items: flex-start; flex-direction: column; }
  .points-distribution-table table { min-width: 0; table-layout: fixed; font-size: 14px; }
  .points-distribution-table th, .points-distribution-table td { padding: 12px 5px; overflow-wrap: anywhere; }
  .points-distribution-table th:first-child, .points-distribution-table td:first-child { width: 43%; }
  .points-distribution-table th:nth-child(2) { width: 40%; }
  .points-distribution-table th:nth-child(3) { width: 17%; white-space: nowrap; text-align: right; }
  .points-distribution-table th:nth-child(4), .points-distribution-table td:nth-child(4) { display: none; }
  .points-distribution-table .points-distribution-number { font-size: 18px; text-align: right; }
  .points-distribution-table .points-distribution-mobile-status { display: block; }
  .points-distribution-entry > .button, .points-distribution-confirm .button { width: 100%; white-space: normal; text-align: center; }
  .points-distribution-ranking-links { padding: 20px 16px; }
  .points-distribution-ranking-links .button { width: 100%; text-align: center; }
  .points-distribution-history > details { padding: 0 16px; }
  .points-distribution-history summary { align-items: flex-start; }
}
.form-section { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7,27,51,.05); }
.form-section > header { padding: 22px 26px; display: flex; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.form-section > header > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--rally-blue); font-size: 11px; font-weight: 850; }
.form-section > header h2 { margin: 0 0 4px; font-size: 19px; }
.form-section > header p { margin: 0; color: var(--muted); font-size: 13px; }
.form-grid { padding: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .field { min-width: 0; margin-bottom: 0; }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: #c33f3f !important; }
.error-summary { margin-bottom: 20px; padding: 17px 20px; border-left: 4px solid #c33f3f; border-radius: 8px; color: #792626; background: #fff1f1; }
.enrollment-error-summary { margin-bottom: 20px; padding: 18px 20px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; border: 1px solid #efc4c4; border-left: 4px solid #c33f3f; border-radius: 11px; color: #6f2929; background: linear-gradient(135deg, #fffafa, #fff0f0); box-shadow: 0 7px 20px rgba(145,39,39,.07); scroll-margin-top: 90px; }
.enrollment-error-summary:focus { outline: 3px solid rgba(195,63,63,.14); outline-offset: 2px; }
.enrollment-error-summary > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: #c33f3f; font-size: 18px; font-weight: 900; }
.enrollment-error-summary strong { color: #762727; font-size: 14px; }
.enrollment-error-summary p { margin: 3px 0 11px; color: #8c5555; font-size: 11px; }
.enrollment-error-summary ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; list-style: none; }
.enrollment-error-summary li a, .enrollment-error-summary li > span { padding: 8px 10px; display: flex; align-items: baseline; gap: 7px; border-radius: 7px; color: #783232; background: rgba(255,255,255,.7); font-size: 11px; text-decoration: none; }
.enrollment-error-summary li a:hover { background: white; }
.enrollment-error-summary li b { flex: 0 0 auto; color: #9d3030; font-size: 10px; text-transform: uppercase; }
.workflow-form .field > .errorlist { margin: 7px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; color: #a52f2f; font-size: 11px; font-weight: 700; list-style: none; }
.workflow-form .field > .errorlist li { padding: 7px 9px 7px 27px; position: relative; border-radius: 6px; background: #fff2f2; }
.workflow-form .field > .errorlist li::before { position: absolute; left: 10px; content: '!'; font-weight: 900; }
.form-section.section-invalid { border-color: #e4adad; box-shadow: 0 8px 28px rgba(169,48,48,.07); }
.form-section.section-invalid > header > span { background: #c33f3f; }
.category-picker.field-invalid label { border-color: #e3aaaa; }
.field-error-message { margin: 10px 0 0; padding: 9px 11px; display: flex; align-items: flex-start; gap: 7px; border-radius: 7px; color: #922f2f; background: #fff0f0; font-size: 11px; font-weight: 750; }
.field-error-message > span { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: #c33f3f; font-size: 10px; }
.toggle-field { padding: 14px 16px; align-self: end; border: 1px solid var(--line); border-radius: 9px; background: #f9fbfd; }
.toggle-field label { display: inline; }
.toggle-field input { width: 20px; height: 20px; margin-right: 9px; vertical-align: middle; accent-color: var(--rally-blue); }
.category-picker { padding: 24px 26px; }
.category-picker > div, .category-picker > ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.category-picker label { min-height: 52px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.category-picker label:hover { border-color: var(--rally-blue); background: #f5faff; }
.category-picker input { width: 19px; height: 19px; accent-color: var(--rally-blue); }
.category-picker label:has(input[data-genero="masculino"]), .category-picker label:has(input[data-genero="feminino"]) { position: relative; padding-right: 48px; }
.category-picker label:has(input[data-genero="masculino"]) { border-left: 3px solid #9dcfeb; background: linear-gradient(90deg, #f2f9fd 0, #fff 34%); }
.category-picker label:has(input[data-genero="feminino"]) { border-left: 3px solid #eab3cb; background: linear-gradient(90deg, #fff4f8 0, #fff 34%); }
.category-picker label:has(input[data-genero="masculino"])::after, .category-picker label:has(input[data-genero="feminino"])::after { width: 25px; height: 25px; position: absolute; right: 12px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 900; letter-spacing: .03em; }
.category-picker label:has(input[data-genero="masculino"])::after { color: #24678f; background: #dceff9; content: "M"; }
.category-picker label:has(input[data-genero="feminino"])::after { color: #98506f; background: #f8dfE9; content: "F"; }
.category-picker label:has(input[data-genero="masculino"]):hover { border-color: #78bce3; background: #eef8fd; }
.category-picker label:has(input[data-genero="feminino"]):hover { border-color: #dda0bb; background: #fff1f6; }
.category-filter { margin: 20px 26px 0; }
.filter-toolbar { min-height: 62px; padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d5e2ed; border-radius: 11px; background: #f3f8fc; }
.filter-toolbar label { margin: 0; color: #4f667b; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.filter-toolbar select, .field.filter-toolbar select { width: auto; min-width: 230px; min-height: 42px; padding: 8px 34px 8px 11px; border: 1px solid #b7c8d7; border-radius: 8px; background-color: white; font-size: 15px; line-height: 1.35; }
.compact-filter { margin-bottom: 2px; }
.partner-gender-filter { margin-bottom: -8px; }
.partner-field[hidden], .partner-gender-filter[hidden] { display: none; }
.form-actions { min-height: 78px; padding: 14px 18px; display: flex; justify-content: flex-end; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 32px rgba(7,27,51,.1); }
.form-actions > a { color: var(--muted); font-weight: 700; }
.ranking-labels { padding: 14px 20px 0; display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 14px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ranking-row { margin: 10px 20px 16px; }
.mobile-field-label { display: none; }
.portal-metrics .attention { border-color: #e4c36d; background: #fffbef; }
.portal-metrics .attention strong { color: #7a5610; }
.split-actions { display: flex; align-items: center; gap: 16px; }
.split-actions > a:first-child { color: var(--rally-blue); font-weight: 750; }
.enrollment-overview { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-callout { min-height: 92px; padding: 18px 22px; display: flex; gap: 16px; align-items: center; border: 1px solid #ead28e; border-radius: 12px; background: #fff9e8; }
.payment-callout > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #6c4c0c; background: #f4da84; font-size: 20px; font-weight: 850; }
.payment-callout > div, .open-tournaments-callout > div { min-width: 0; flex: 1; }
.payment-callout > a { color: #795500; font-size: 12px; font-weight: 800; white-space: nowrap; }
.payment-callout strong { color: #5f440d; }
.payment-callout p { margin: 3px 0 0; color: #856d39; font-size: 13px; }
.payment-callout.success { border-color: #b9d9c8; background: #edf9f3; }
.payment-callout.success > span { color: white; background: #27815d; }
.payment-callout.success strong { color: #195b40; }
.payment-callout.success p { color: #527766; }
.payment-callout.neutral { border-color: var(--line); background: white; }
.payment-callout.neutral > span { color: #617589; background: #edf2f6; }
.payment-callout.neutral strong { color: var(--court-navy); }
.payment-callout.neutral p { color: var(--muted); }
.open-tournaments-callout { min-height: 92px; padding: 18px 20px; display: flex; gap: 13px; align-items: center; border: 1px solid #bcd8ee; border-radius: 12px; background: #eff8ff; }
.open-tournaments-callout > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #2674b6; background: #d9efff; font-size: 11px; }
.open-tournaments-callout strong { color: #174e78; }
.open-tournaments-callout p { margin: 4px 0 0; overflow: hidden; color: #597a94; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.open-tournaments-callout p a { color: #286c9f; font-weight: 700; text-decoration: none; }
.open-tournaments-callout p i { margin: 0 4px; font-style: normal; }
.open-tournaments-callout .button.compact { min-height: 38px; padding: 0 13px; font-size: 12px; white-space: nowrap; }
.open-tournaments-callout.unavailable { border-color: var(--line); background: #f7f9fb; }
.open-tournaments-callout.unavailable > span { color: #748698; background: #e8edf2; }
.open-tournaments-callout.unavailable strong { color: #475d70; }
.open-tournaments-callout.unavailable p { color: var(--muted); }
.enrollment-scope-tabs { margin: 0 0 12px; display: flex; gap: 6px; }
.enrollment-scope-tabs a { padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; color: #607487; font-size: 12px; font-weight: 800; text-decoration: none; }
.enrollment-scope-tabs a:hover { background: #edf4fa; }
.enrollment-scope-tabs a.active { border-color: #c5d7e6; color: var(--court-navy); background: white; box-shadow: 0 3px 10px rgba(7,27,51,.05); }
.filter-panel { margin-bottom: 22px; padding: 18px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto auto; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.filter-panel .field { margin: 0; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #aebdca; border-radius: 8px; color: var(--ink); background: white; font-size: 15px; line-height: 1.35; }
.filter-panel button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 8px; color: white; background: var(--rally-blue); font-weight: 750; }
.filter-panel > a { min-height: 42px; display: inline-flex; align-items: center; color: var(--muted); }
.enrollment-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.enrollment-list > a { min-height: 112px; padding: 18px 20px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 90px 150px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.enrollment-list > a:last-child { border-bottom: 0; }
.enrollment-list > a:hover { background: #f7fbff; }
.enrollment-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.enrollment-main > small, .enrollment-list time { color: var(--muted); font-size: 12px; }
.category-tags { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.category-tags i { padding: 4px 7px; border-radius: 999px; color: #275780; background: #eaf5ff; font-size: 10px; font-style: normal; font-weight: 700; }
.status-aguardando_pagamento { color: #73500b; background: #fff0ba; }
.status-confirmada { color: #25520e; background: #dcf2c9; }
.status-lista_espera { color: #25527c; background: #deefff; }
.status-cancelada { color: #842b2b; background: #ffe1e1; }
.flow-switch { padding: 5px; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.flow-switch a { padding: 10px 13px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.flow-switch a.active { color: white; background: var(--court-navy); }
.tournament-step { max-width: 920px; padding: 26px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 18px; align-items: end; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(7,27,51,.07); }
.tournament-step > span { width: 38px; height: 38px; display: grid; place-items: center; align-self: center; border-radius: 50%; color: white; background: var(--rally-blue); font-size: 11px; font-weight: 850; }
.tournament-step label { margin-bottom: 8px; display: block; font-weight: 750; }
.tournament-step select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aebdca; border-radius: 9px; background: white; font-size: 15px; line-height: 1.35; }
.payment-note { max-width: 920px; margin: 0 0 20px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; border: 1px solid #ead28e; border-radius: 12px; background: #fff9e8; }
.payment-note > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #b78a1e; font-weight: 850; }
.payment-note p { margin: 3px 0 0; color: #80682e; font-size: 13px; }
.enrollment-profile-card { margin-bottom: 22px; padding: 26px 28px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; border: 1px solid #c9d8e5; border-radius: var(--radius); background: linear-gradient(135deg, white 52%, #eef7ff); box-shadow: 0 12px 34px rgba(7,27,51,.08); }
.enrollment-profile-main { min-width: 0; display: flex; gap: 18px; align-items: center; }
.enrollment-profile-main h1 { margin: 0 0 5px; color: var(--court-navy); font-size: clamp(30px, 4vw, 43px); }
.enrollment-profile-main p:last-child { margin: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.enrollment-avatar-action { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.enrollment-profile-avatar { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 4px solid white; border-radius: 50%; color: var(--court-navy); background: linear-gradient(135deg, var(--ace-cyan), var(--match-lime)); box-shadow: 0 5px 18px rgba(7,27,51,.16); font-size: 22px; font-weight: 850; text-decoration: none; }
.enrollment-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.enrollment-avatar-label { color: var(--rally-blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.enrollment-avatar-label:hover { text-decoration: underline; }
.enrollment-status { align-self: center; padding: 8px 12px; font-size: 12px; }
.enrollment-summary { margin: 0 -28px; padding: 18px 28px; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #d9e4ed; background: rgba(255,255,255,.58); }
.enrollment-summary > div { padding: 0 20px; border-left: 1px solid #d9e4ed; }
.enrollment-summary > div:first-child { padding-left: 0; border-left: 0; }
.enrollment-summary dt { margin-bottom: 4px; color: #718598; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.enrollment-summary dd { margin: 0; overflow: hidden; color: var(--court-navy); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.enrollment-detail-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 20px; align-items: stretch; }
.enrollment-categories-panel { height: 100%; margin-bottom: 0; }
.registered-categories { padding: 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.registered-categories article { min-height: 82px; padding: 15px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.registered-categories article > div { display: flex; flex-direction: column; gap: 4px; }
.registered-categories small { color: var(--muted); font-size: 11px; }
.registered-categories article > span { padding-top: 9px; border-top: 1px solid var(--line); color: #436078; font-size: 12px; }
.payment-panel { height: 100%; padding: 22px; position: relative; overflow: hidden; border-radius: var(--radius); color: white; background: var(--court-navy); box-shadow: 0 12px 28px rgba(7,27,51,.16); }
.payment-panel.payment-confirmed { background: linear-gradient(145deg, #0b3c35, #0a5948); }
.payment-panel-icon { width: 36px; height: 36px; position: absolute; top: 19px; right: 20px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--match-lime); background: rgba(255,255,255,.08); font-size: 16px; font-weight: 850; }
.payment-panel .eyebrow { margin-bottom: 10px; padding-right: 44px; }
.payment-panel h2 { max-width: 230px; margin: 0 0 7px; font-size: 20px; line-height: 1.12; }
.payment-panel > p:not(.eyebrow) { margin: 0; color: #b8cada; font-size: 13px; line-height: 1.42; }
.payment-confirmed > p:not(.eyebrow) { color: #c8e6de; }
.payment-button { width: 100%; min-height: 42px; margin-top: 12px; padding: 0 12px; border: 0; border-radius: 8px; color: #1e3100; background: var(--match-lime); font-size: 13px; font-weight: 850; cursor: pointer; }
.secondary-payment { color: #123d35; background: white; }
.compact-form { margin-top: 20px; }
.enrollment-admin-form { width: 100%; max-width: none; }
.enrollment-admin-grid { grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); align-items: start; }
.enrollment-admin-grid textarea { height: 96px; min-height: 96px; }
.enrollment-structure-editor { overflow: visible; }
.enrollment-category-editor { padding: 20px 24px 25px; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.enrollment-category-editor .category-picker { padding: 0; }
.enrollment-category-editor .category-picker > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.enrollment-partner-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.enrollment-partner-fields:empty { display: none; }
.enrollment-partner-fields .field { padding: 14px; border: 1px solid #d4e0e8; border-radius: 10px; background: #f8fbfd; }
.enrollment-partner-fields .field[hidden] { display: none; }
.enrollment-edit-locked { padding: 18px 21px; display: flex; align-items: center; gap: 14px; border: 1px solid #d6e0e7; border-radius: 12px; color: #496174; background: #f7fafc; }
.enrollment-edit-locked > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--rally-blue); background: #e5f2fc; font-size: 18px; }
.enrollment-edit-locked strong { color: var(--court-navy); font-size: 13px; }
.enrollment-edit-locked p { margin: 3px 0 0; font-size: 11px; }
.enrollment-cancel-panel { margin-top: 18px; padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid #f0cccc; border-radius: 12px; background: #fffafa; }
.enrollment-cancel-panel strong { color: #8d2929; font-size: 13px; }
.enrollment-cancel-panel p { margin: 3px 0 0; color: #7f6262; font-size: 11px; }
.enrollment-cancel-panel button { min-height: 39px; padding: 0 14px; border: 1px solid #cf5656; border-radius: 8px; color: #a02c2c; background: white; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.enrollment-cancel-panel button:hover { color: white; background: #b73535; }
.enrollment-profile-main h1 a { text-decoration: none; }
.enrollment-tournament-link { display: inline-flex; align-items: center; gap: 6px; color: var(--rally-blue); font-weight: 750; text-decoration: none; }
.enrollment-tournament-link:hover { text-decoration: underline; }
.registered-categories a { color: var(--rally-blue); text-decoration: none; }
.athlete-reference-link { color: var(--court-navy); text-decoration: none; }
.athlete-reference-link:hover { color: var(--rally-blue); }

.athlete-profile-hero { margin-bottom: 18px; padding: 28px 30px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; border: 1px solid #c9d8e5; border-radius: var(--radius); background: linear-gradient(135deg, white 50%, #eaf6ff); box-shadow: 0 12px 34px rgba(7,27,51,.08); }
.athlete-profile-identity { min-width: 0; display: flex; gap: 20px; align-items: center; }
.athlete-photo-form { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.athlete-photo-picker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.athlete-photo-view-trigger { padding: 0; border: 0; background: transparent; font: inherit; }
.athlete-photo-form input[type="file"] { width: 1px; height: 1px; position: absolute; overflow: hidden; opacity: 0; pointer-events: none; }
.athlete-profile-photo { width: 92px; height: 92px; position: relative; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 5px solid white; border-radius: 50%; color: var(--court-navy); background: linear-gradient(135deg, var(--ace-cyan), var(--match-lime)); box-shadow: 0 7px 22px rgba(7,27,51,.18); font-size: 25px; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease; }
.athlete-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.athlete-photo-hint { color: var(--rally-blue); font-size: 11px; font-weight: 800; white-space: nowrap; }
.athlete-photo-picker:hover .athlete-profile-photo { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(7,27,51,.22); }
.athlete-photo-picker:focus-within .athlete-profile-photo { outline: 3px solid rgba(0,129,207,.25); outline-offset: 2px; }
.athlete-photo-form .errorlist { max-width: 150px; margin: 6px 0 0; padding: 0; color: #a52a2a; font-size: 10px; list-style: none; text-align: center; }
.photo-editor[hidden] { display: none; }
.photo-editor { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.photo-editor-backdrop { position: absolute; inset: 0; background: rgba(5,20,38,.72); backdrop-filter: blur(4px); }
.photo-editor-dialog { width: min(780px, 100%); max-height: calc(100vh - 48px); position: relative; z-index: 1; overflow: auto; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(3,17,32,.35); }
.photo-editor-dialog > header { padding: 22px 26px 18px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.photo-editor-dialog > header h2 { margin: 2px 0 5px; color: var(--court-navy); font-size: 24px; }
.photo-editor-dialog > header p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.photo-editor-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--court-navy); background: white; font-size: 25px; line-height: 1; cursor: pointer; }
.photo-editor-body { padding: 24px 26px 18px; display: grid; grid-template-columns: 360px minmax(180px, 1fr); gap: 30px; align-items: center; }
.photo-crop-stage { width: 360px; height: 360px; position: relative; overflow: hidden; border-radius: 12px; background: #dce4ea; cursor: grab; touch-action: none; user-select: none; }
.photo-crop-stage:active { cursor: grabbing; }
.photo-crop-stage canvas { width: 100%; height: 100%; display: block; }
.photo-crop-guide { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 0 0 90px rgba(4,20,36,.42); pointer-events: none; }
.photo-preview-panel { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.photo-preview-panel > span { color: var(--court-navy); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.photo-circle-preview { width: 140px; height: 140px; overflow: hidden; border: 5px solid white; border-radius: 50%; background: #e7edf2; box-shadow: 0 7px 22px rgba(7,27,51,.18); }
.photo-circle-preview canvas { width: 100%; height: 100%; display: block; }
.photo-preview-panel small { max-width: 190px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.photo-zoom-control { margin: 0 26px; padding: 15px 0; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; border-top: 1px solid var(--line); }
.photo-zoom-control span { color: var(--court-navy); font-size: 12px; font-weight: 800; }
.photo-zoom-control input { width: 100%; accent-color: var(--rally-blue); cursor: pointer; }
.photo-editor-dialog > footer { padding: 18px 26px 22px; display: flex; justify-content: flex-end; gap: 10px; }
body.photo-editor-open { overflow: hidden; }
.photo-viewer[hidden] { display: none; }
.photo-viewer { position: fixed; z-index: 990; inset: 0; display: grid; place-items: center; padding: 24px; }
.photo-viewer-dialog { width: min(560px, 100%); max-height: calc(100vh - 48px); position: relative; z-index: 1; overflow: auto; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(3,17,32,.35); }
.photo-viewer-dialog > header { padding: 20px 24px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); }
.photo-viewer-dialog > header h2 { margin: 2px 0 0; color: var(--court-navy); font-size: 23px; }
.photo-viewer-image { padding: 22px; display: grid; place-items: center; background: #edf2f6; }
.photo-viewer-image img { width: min(420px, 100%); max-height: min(55vh, 420px); display: block; border-radius: 12px; object-fit: contain; box-shadow: 0 10px 30px rgba(7,27,51,.14); }
.photo-viewer-dialog > footer { padding: 17px 24px 21px; display: flex; justify-content: flex-end; gap: 10px; }
.athlete-profile-identity h1 { margin: 0 0 5px; color: var(--court-navy); font-size: clamp(34px, 5vw, 50px); }
.athlete-profile-identity p:last-child { margin: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.athlete-profile-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; justify-content: center; }
.athlete-profile-meta { margin: 0 -30px; padding: 18px 30px; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #d9e4ed; background: rgba(255,255,255,.62); }
.athlete-profile-meta > div { padding: 0 20px; border-left: 1px solid #d9e4ed; }
.athlete-profile-meta > div:first-child { padding-left: 0; border-left: 0; }
.athlete-profile-meta dt { margin-bottom: 4px; color: #718598; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.athlete-profile-meta dd { margin: 0; overflow: hidden; color: var(--court-navy); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.athlete-metrics { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.athlete-metrics article { padding: 17px 20px; display: flex; align-items: baseline; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.athlete-metrics strong { color: var(--rally-blue); font-size: 27px; font-variant-numeric: tabular-nums; }
.athlete-metrics span { color: var(--muted); font-size: 12px; font-weight: 750; }
.athlete-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.athlete-dashboard-main { min-width: 0; grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 12px; }
.athlete-dashboard-grid .points-card { grid-column: 3; }
.athlete-content-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7,27,51,.05); }
.athlete-content-card > header { min-height: 84px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.athlete-content-card > header .eyebrow { margin-bottom: 6px; }
.athlete-content-card > header h2 { margin: 0; font-size: 21px; }
.athlete-content-card > header > a { color: var(--rally-blue); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.athlete-ranking-list > a { min-height: 78px; padding: 14px 20px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.athlete-ranking-list > a:last-child { border-bottom: 0; }
.athlete-ranking-list > a:hover, .athlete-enrollment-list > a:hover { background: #f5faff; }
.athlete-ranking-list > a > strong { color: var(--rally-blue); font-size: 23px; }
.athlete-ranking-list > a > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.athlete-ranking-list small { color: var(--muted); }
.athlete-ranking-points { color: var(--court-navy); font-size: 13px; font-weight: 800; }
.athlete-points-list > div { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.athlete-points-list > div:last-child { border-bottom: 0; }
.athlete-points-list span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.athlete-points-list small { color: var(--muted); }
.athlete-points-list b { color: var(--rally-blue); font-size: 18px; }
.compact-empty { min-height: 130px; padding: 25px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: var(--muted); text-align: center; }
.compact-empty > span { color: var(--rally-blue); font-size: 25px; font-weight: 850; }
.compact-empty p { margin: 0; }
.athlete-enrollments-card { margin-top: 0; }
.athlete-enrollment-list > a { min-height: 88px; padding: 14px 20px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.athlete-enrollment-list > a:last-child { border-bottom: 0; }
.athlete-enrollment-list time { text-align: center; border-right: 1px solid var(--line); }
.athlete-enrollment-list time strong { display: block; font-size: 22px; }
.athlete-enrollment-list time span { color: var(--rally-blue); font-size: 9px; font-weight: 850; }
.athlete-enrollment-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.athlete-enrollment-main small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.athlete-participation-categories { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 7px; }
.athlete-participation-categories > span { min-width: 190px; padding: 7px 9px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--ace-cyan); border-radius: 0 6px 6px 0; background: #f3f8fb; }
.athlete-participation-categories b { color: var(--court-navy); font-size: 11px; }
.athlete-participation-categories small { color: #587084; font-size: 10px; white-space: normal; }

@media (max-width: 767px) {
  .portal-main { padding-top: 36px; }
  .club-context { display: none; }
  .portal-nav { gap: 20px; }
  .page-heading { align-items: start; flex-direction: column; }
  .portal-body { padding-bottom: 74px; }
  .portal-header { min-height: 56px; }
  .user-context > span { display: none; }
  .portal-nav { display: none; }
  .mobile-nav { height: 64px; padding: 0 6px; position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #2d4861; color: white; background: var(--court-navy); }
  .mobile-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; color: #cad9e7; font-size: 10px; text-decoration: none; }
  .mobile-nav span { color: var(--ace-cyan); font-size: 17px; }
  .form-page { padding-bottom: 0; }
  .form-page .mobile-nav { display: none; }
  .portal-metrics { grid-template-columns: repeat(2, 1fr); }
  .quick-actions, .login-shell, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-heading { margin-top: -36px; padding-top: 38px; padding-bottom: 38px; align-items: start; flex-direction: column; }
  .hero-heading .live-indicator { margin-top: 16px; }
  .dashboard-grid .quick-actions { grid-template-columns: 1fr; }
  .quick-actions a { min-height: 130px; }
  .upcoming-panel { margin-top: 12px; }
  .entity-grid { grid-template-columns: 1fr; }
  .athlete-list-filters { padding: 14px; grid-template-columns: 1fr; }
  .athlete-search-field { min-height: 42px; padding: 0 10px; border: 1px solid #b7c8d7; border-radius: 8px; }
  .athlete-gender-field { grid-template-columns: 1fr; gap: 5px; }
  .athlete-gender-field select { min-width: 0; }
  .athlete-list-filters > button { width: 100%; }
  .athlete-results-count { flex-wrap: wrap; }
  .entity-card { grid-template-columns: 48px minmax(0, 1fr); }
  .entity-card .status-pill { grid-column: 2; justify-self: start; }
  .tournament-list > a { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; }
  .tournament-stage-tabs { margin-right: -20px; padding-right: 26px; border-right: 0; border-radius: 10px 0 0 10px; }
  .tournament-stage-tabs .history-tab { margin-left: 0; }
  .tournament-list-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .tournament-list .category-count { display: none; }
  .tournament-list .status-pill { grid-column: 2 / -1; justify-self: start; }
  .tournament-profile-hero { padding: 22px 20px 0; grid-template-columns: 1fr; }
  .tournament-profile-main { align-items: flex-start; }
  .tournament-date-mark { width: 68px; height: 78px; }
  .tournament-date-mark strong { font-size: 25px; }
  .tournament-profile-actions { align-items: stretch; }
  .tournament-profile-actions .status-pill { align-self: flex-start; }
  .tournament-profile-meta { margin: 0 -20px; padding: 4px 20px 18px; grid-template-columns: 1fr; }
  .tournament-profile-meta > div { padding: 11px 0; border-top: 1px solid #d9e4ed; border-left: 0; }
  .tournament-profile-meta > div:first-child { border-top: 0; }
  .tournament-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-action-grid { grid-template-columns: 1fr; }
  .tournament-action-grid.has-games { grid-template-columns: 1fr; }
  .games-stage-panel > header { align-items: stretch; flex-direction: column; }
  .games-stage-panel > header .button { width: 100%; }
  .games-stage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-stage-columns { grid-template-columns: 1fr; }
  .games-stage-columns > section + section { border-top: 1px solid var(--line); border-left: 0; }
  .game-quick-list > a { grid-template-columns: 44px minmax(0, 1fr); }
  .game-quick-list .status-pill { grid-column: 2; justify-self: start; }
  .game-filter-panel { grid-template-columns: 1fr; }
  .games-management-list > a { grid-template-columns: 58px minmax(0, 1fr); }
  .games-management-list .status-pill { grid-column: 2; justify-self: start; }
  .matchup-hero { grid-template-columns: 1fr; text-align: left; }
  .matchup-hero article:last-child { text-align: left; }
  .matchup-hero article:last-child .matchup-participant { flex-direction: row; }
  .matchup-participant { justify-content: space-between; }
  .game-page-heading { align-items: flex-start; }
  .agenda-quick-action { align-items: stretch; flex-direction: column; }
  .agenda-quick-action .button { justify-content: center; }
  .workflow-form.game-workspace { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .game-flow-main { width: 100%; grid-column: 1; }
  .game-sidebar-stack { width: 100%; position: static; grid-column: 1; grid-row: auto; }
  .game-context-line { margin-right: -16px; padding-right: 16px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .game-context-line::-webkit-scrollbar { display: none; }
  .game-context-line > * { flex: 0 0 auto; white-space: nowrap; }
  .game-side-category > header { padding: 16px 18px 14px; }
  .game-side-category > a { min-height: 46px; }
  .game-next-action .button { min-height: 48px; }
  .game-form-actions { margin-bottom: 0; }
  .set-scoreboard { padding: 14px; overflow-x: hidden; }
  .set-scoreboard-head, .set-score-row { grid-template-columns: 72px repeat(2, minmax(0, 1fr)); gap: 6px; }
  .set-scoreboard-head { padding-right: 4px; padding-left: 4px; }
  .set-score-row { padding: 9px 6px; }
  .set-score-row > label { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .set-score-row label > em { display: flex; flex-direction: column; gap: 4px; }
  .score-rules-summary { margin-right: 14px; margin-left: 14px; }
  .tournament-dashboard-grid { grid-template-columns: 1fr; }
  .tournament-dashboard-grid .tournament-content-card:first-child, .tournament-dashboard-grid .tournament-content-card:last-child { grid-column: 1; }
  .tournament-category-list article { grid-template-columns: minmax(0, 1fr) auto; }
  .tournament-category-list article .status-pill, .tournament-category-list .category-bracket-action { grid-column: 1 / -1; justify-self: start; }
  .tournament-workflow ol { padding: 14px 8px; }
  .tournament-workflow li small { display: none; }
  .tournament-next-action { align-items: stretch; flex-direction: column; }
  .tournament-next-action .button { width: 100%; justify-content: center; }
  .tournament-category-config { grid-template-columns: 1fr; }
  .tournament-category-config article { grid-template-columns: 1fr; }
  .bracket-workflow-grid { grid-template-columns: 1fr; }
  .seed-count-card { align-items: stretch; flex-direction: column; }
  .seed-count-control { align-items: stretch; flex-direction: column; }
  .seed-count-control select { width: 100%; }
  .bracket-seed-fields, .draw-match-grid, .bracket-preview-grid { grid-template-columns: 1fr; }
  .bracket-preview-card > header { align-items: flex-start; flex-direction: column; }
  .preview-body-toolbar { grid-template-columns: 1fr; gap: 8px; }
  .preview-legend { justify-content: flex-start; }
  .bracket-seeds-card > footer { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; padding: 20px; }
  .form-grid .span-2 { grid-column: auto; }
  .category-picker > div, .category-picker > ul { grid-template-columns: 1fr; }
  .category-filter { margin: 16px 20px 0; }
  .filter-toolbar { align-items: stretch; flex-direction: column; gap: 7px; }
  .filter-toolbar select, .field.filter-toolbar select { width: 100%; min-width: 0; }
  .ranking-labels { display: none; }
  .ranking-row { margin: 12px; }
  .mobile-field-label { margin-bottom: 6px; display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .data-list > a { align-items: start; flex-direction: column; gap: 6px; }
  .inline-form { grid-template-columns: 1fr; }
  .login-shell > div { padding: 28px; }
  .split-actions { width: 100%; align-items: stretch; flex-direction: column-reverse; }
  .split-actions .button { justify-content: center; }
  .enrollment-overview { grid-template-columns: 1fr; }
  .payment-callout, .open-tournaments-callout { align-items: flex-start; }
  .payment-callout > a, .open-tournaments-callout .button.compact { display: none; }
  .enrollment-scope-tabs { overflow-x: auto; }
  .enrollment-scope-tabs a { white-space: nowrap; }
  .filter-panel { grid-template-columns: 1fr; }
  .enrollment-list > a { grid-template-columns: 48px minmax(0, 1fr); }
  .enrollment-list time { display: none; }
  .enrollment-list .status-pill { grid-column: 2; justify-self: start; }
  .flow-switch { width: 100%; }
  .flow-switch a { flex: 1; text-align: center; }
  .tournament-step { grid-template-columns: 1fr; }
  .tournament-step > span { display: none; }
  .tournament-step .button { justify-content: center; }
  .enrollment-detail-grid { grid-template-columns: 1fr; }
  .payment-panel { height: auto; }
  .enrollment-profile-card { padding: 22px 20px 0; grid-template-columns: 1fr; }
  .enrollment-profile-main { align-items: flex-start; }
  .enrollment-profile-avatar { width: 60px; height: 60px; font-size: 17px; }
  .enrollment-status { justify-self: start; }
  .enrollment-summary { margin: 0 -20px; padding: 4px 20px 18px; grid-template-columns: 1fr; }
  .enrollment-summary > div { padding: 12px 0; border-top: 1px solid #d9e4ed; border-left: 0; }
  .enrollment-summary > div:first-child { border-top: 0; }
  .registered-categories { grid-template-columns: 1fr; }
  .enrollment-admin-grid { grid-template-columns: 1fr; }
  .enrollment-category-editor { padding: 16px; grid-template-columns: 1fr; }
  .enrollment-category-editor .category-picker > div { grid-template-columns: 1fr; }
  .enrollment-cancel-panel { align-items: flex-start; flex-direction: column; }
  .athlete-profile-hero { padding: 22px 20px 0; grid-template-columns: 1fr; }
  .athlete-profile-photo { width: 70px; height: 70px; font-size: 19px; }
  .photo-editor { padding: 12px; }
  .photo-editor-dialog { max-height: calc(100vh - 24px); }
  .photo-editor-dialog > header { padding: 18px 20px 15px; }
  .photo-editor-body { padding: 18px 20px 12px; grid-template-columns: 1fr; gap: 18px; }
  .photo-crop-stage { width: min(100%, 360px); height: auto; aspect-ratio: 1; justify-self: center; }
  .photo-preview-panel { display: none; }
  .photo-zoom-control { margin: 0 20px; }
  .photo-editor-dialog > footer { padding: 16px 20px 20px; }
  .photo-editor-dialog > footer .button { flex: 1; justify-content: center; }
  .photo-viewer { padding: 12px; }
  .photo-viewer-dialog { max-height: calc(100vh - 24px); }
  .photo-viewer-image { padding: 14px; }
  .photo-viewer-dialog > footer .button { flex: 1; justify-content: center; }
  .athlete-profile-actions { align-items: stretch; }
  .athlete-profile-actions .status-pill { align-self: flex-start; }
  .athlete-profile-meta { margin: 0 -20px; padding: 4px 20px 18px; grid-template-columns: 1fr; }
  .athlete-profile-meta > div { padding: 11px 0; border-top: 1px solid #d9e4ed; border-left: 0; }
  .athlete-profile-meta > div:first-child { border-top: 0; }
  .athlete-metrics { grid-template-columns: 1fr; }
  .athlete-dashboard-grid { grid-template-columns: 1fr; }
  .athlete-dashboard-main, .athlete-dashboard-grid .points-card { grid-column: 1; }
  .athlete-enrollment-list > a { grid-template-columns: 48px minmax(0, 1fr); }
  .athlete-enrollment-list .status-pill { grid-column: 2; justify-self: start; }
  .heading-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .heading-actions .button { justify-content: center; }
  .info-callout { flex-direction: column; }
  .filters-bar { grid-template-columns: 1fr; }
  .data-list > .data-row { grid-template-columns: 42px minmax(0, 1fr); }
  .data-row > span:nth-child(3), .data-row > .status-pill { grid-column: 2; justify-self: start; }
  .ranking-board > header { display: none; }
  .ranking-board > a { grid-template-columns: 60px minmax(0, 1fr); }
  .ranking-board > a > :nth-child(3), .ranking-board > a > :nth-child(4) { grid-column: 2; }
  .latest-ranking-grid { grid-template-columns: 1fr; }
  .history-section .section-title { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ranking-history-list > a { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 11px; }
  .history-rank-icon { width: 38px; height: 38px; }
  .history-ranking-meta, .history-ranking-athletes { grid-column: 2; flex-direction: row; align-items: baseline; gap: 6px; }
  .history-ranking-athletes { display: none; }
  .history-ranking-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
