:root {
  --bg: #0F2029; --panel: #1A333F; --panel-2: #21404D; --panel-3: #14262F;
  --line: #EFE9DA; --dim: #9DB0B8; --hairline: rgba(255,255,255,.07);
  --gold: #D9A441; --gold-ink: #D9A441;
  --prata: #B9C6CC; --prata-ink: #B9C6CC;
  --bronze: #B87A4B; --bronze-ink: #D09A6A;
  --win: #5FA777; --win-ink: #6DBB88;
  --out: #D6604D; --out-ink: #EE8A78;
  --live: #C42B31; --on-live: #FFFFFF;
  --on-gold: #241A05;
  --focus: #F2C265;
  --radius: 10px;
  --tint-win: color-mix(in srgb, var(--win) 22%, transparent);
  --tint-out: color-mix(in srgb, var(--out) 16%, transparent);
  --tint-gold: color-mix(in srgb, var(--gold) 20%, transparent);
  --tint-live: color-mix(in srgb, var(--live) 16%, transparent);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--line); font: 400 15px/1.5 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; accent-color: var(--gold); caret-color: var(--gold); }
::selection { background: color-mix(in srgb, var(--gold) 40%, transparent); color: inherit; }
a { color: var(--link, var(--gold-ink)); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
p a, .flash a { text-decoration: underline; }
h1, h2, h3, .display { font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(24px, 6vw, 28px); } h2 { font-size: 19px; } h3 { font-size: 15px; }
.dim { color: var(--dim); } .small { font-size: 13px; } .center { text-align: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tnum-fig, .tbl td, .score-pill, .pts, .b-match .s { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { top: 8px; text-decoration: none; }

.wrap { max-width: 1840px; margin: 0 auto; padding: 24px clamp(16px, 2.4vw, 48px) 64px; }
.narrow { max-width: 620px; }
.wrap.bare { max-width: none; margin: 0; padding: 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.court-rule { height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 26px); border-radius: 2px; margin: 14px 0 0; opacity: .7; }
.quickbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; margin: -24px calc(-1 * clamp(16px, 2.4vw, 48px)) 20px; padding: 10px clamp(16px, 2.4vw, 48px); background: var(--bg); border-bottom: 1px solid var(--hairline); }
@media (max-width: 900px) { .quickbar { top: 53px; margin-top: -24px; } }
.quickbar .ext { width: 12px; height: 12px; }
.qb-gear { margin-left: auto; padding-inline: 12px; }
.qb-gear[aria-current="page"] { color: var(--gold-ink); border-color: var(--gold-ink); }
.topbar { background: var(--panel-3); border-bottom: 1px solid var(--hairline); }
.topbar .in { max-width: 1840px; margin: 0 auto; padding: 4px clamp(16px, 2.4vw, 48px); display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.brand { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 700; color: var(--line); padding: 8px 0; }
.brand span { color: var(--gold-ink); }
.brand:hover { text-decoration: none; }
.topbar nav { margin-left: auto; display: flex; gap: 4px 6px; align-items: center; font-size: 14px; }
.topbar nav a, .linkbtn { color: var(--dim); background: none; border: none; font: inherit; cursor: pointer; padding: 10px 8px; }
.topbar nav a:hover, .linkbtn:hover { color: var(--line); text-decoration: none; }
.card { background: var(--panel); border-radius: var(--radius); padding: 18px; }
.card h2 { margin-bottom: 4px; }
html[data-mode="claro"] .card { box-shadow: 0 0 0 1px var(--hairline); }
label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--panel-2); color: var(--line); border: 1.5px solid transparent; border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 16px; min-height: 44px;
}
input::placeholder, textarea::placeholder { color: var(--dim); opacity: .85; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
.field { margin-bottom: 14px; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--line); margin: 0; min-height: 44px; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--on-gold); font: 700 14.5px 'Inter', sans-serif; border: none; border-radius: 8px; padding: 11px 16px; min-height: 44px; cursor: pointer; text-align: center; text-decoration: none; transition: filter .15s, transform .15s var(--ease-out); }
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--panel-2); color: var(--line); }
.btn.danger { background: transparent; color: var(--out-ink); border: 1px solid var(--out); }
.btn.small { padding: 6px 12px; font-size: 13px; min-height: 36px; }
@media (pointer: coarse) { .btn.small { min-height: 44px; } }
.errors, .flash { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.errors { background: var(--tint-out); border-color: color-mix(in srgb, var(--out) 45%, transparent); }
.errors::before { content: 'Corrija: '; font-weight: 700; color: var(--out-ink); }
.errors div { display: inline; } .errors div + div::before { content: ' · '; }
.flash { background: var(--tint-win); border-color: color-mix(in srgb, var(--win) 45%, transparent); }
.flash.live { background: var(--tint-live); border-color: color-mix(in srgb, var(--live) 50%, transparent); }

.onboarding-banner, .trial-banner { background: var(--tint-gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.onboarding-banner .row.between, .trial-banner .row.between { align-items: center; }
.onboarding-banner .linkbtn.small, .trial-banner .linkbtn.small { padding: 6px 8px; font-size: 13px; }
.ob-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ob-steps li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--dim); }
.ob-steps li.done { background: var(--tint-win); color: var(--win-ink); }
.ob-steps li.current { background: var(--gold); color: var(--on-gold); }
.ob-steps .ic { width: 13px; height: 13px; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--dim); }
.badge.live { background: var(--live); color: var(--on-live); letter-spacing: .04em; }
.badge.gold { background: var(--tint-gold); color: var(--gold-ink); }
.badge.win { background: var(--tint-win); color: var(--win-ink); }
@media (prefers-reduced-motion: no-preference) {
  .badge.live { animation: pulse 1.8s var(--ease-out) infinite; }
  @keyframes pulse { 50% { opacity: .6; } }
  .tcard { transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out); }
  .tcard:hover { transform: translateY(-2px); }
  .flash, .errors { animation: rise .35s var(--ease-out); }
  @keyframes rise { from { opacity: 0; transform: translateY(-4px); } }
  .b-match.just-changed, .game-row.just-changed { animation: settle .8s var(--ease-out); }
  @keyframes settle { from { box-shadow: 0 0 0 3px var(--gold); } }
}
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 18px 0 16px; border-bottom: 1px solid var(--hairline); scrollbar-width: thin; }
.tabs a { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--dim); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--line); text-decoration: none; }
.tabs a[aria-current=page] { color: var(--gold-ink); border-color: var(--gold); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.list li:last-child { border-bottom: none; }
.tnum { font-family: 'Oswald', sans-serif; color: var(--dim); width: 30px; flex-shrink: 0; }
.team-edit { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; align-items: center; }
.team-edit .f-name { flex: 2 1 160px; } .team-edit .f-player { flex: 1 1 130px; } .team-edit .f-seed { flex: 0 0 84px; } .team-edit .f-serie { flex: 0 0 120px; }
.icon-btn { background: none; border: none; color: var(--out-ink); font-size: 22px; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; border-radius: 8px; }
.icon-btn:hover { background: var(--tint-out); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl caption { text-align: left; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--dim); padding: 6px 8px; }
.tbl td { padding: 9px 8px; border-top: 1px solid var(--hairline); vertical-align: middle; }
.tbl .num { text-align: right; }
.tbl tr.q td:first-child { box-shadow: inset 3px 0 0 var(--win); }
.tbl tr.q2 td:first-child { box-shadow: inset 3px 0 0 var(--prata); }
.tbl abbr { text-decoration: none; cursor: help; }
.tscroll { overflow-x: auto; }
.game-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); }
.game-row:first-child { border-top: none; }
.game-row .teams { min-width: 0; }
.game-row .vs { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.game-row .w { font-weight: 700; color: var(--win-ink); }
.game-row .l { color: var(--dim); }
.game-row .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.score-pill { font-family: 'Oswald', sans-serif; font-size: 18px; letter-spacing: .02em; }
.round-title { font-family: 'Oswald', sans-serif; color: var(--gold-ink); font-size: 13px; margin: 18px 0 2px; }
@media (max-width: 560px) {
  .game-row { grid-template-columns: 34px 1fr; }
  .game-row .actions { grid-column: 2; justify-content: flex-start; }
}
.pinned-next { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.pin-row { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--panel-2); border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: background .15s; }
.pin-row:hover, .pin-row:focus-visible { background: color-mix(in srgb, var(--gold) 14%, var(--panel-2)); }
.pin-row.is-live { box-shadow: inset 0 0 0 1.5px var(--live); }
.pin-num { font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--dim); flex: none; font-variant-numeric: tabular-nums; }
.pin-vs { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.pin-tag { font-size: 12px; color: var(--dim); flex: none; }
.pin-go { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--dim); flex: none; }
.pin-go .ic { width: 13px; height: 13px; }
@media (max-width: 560px) { .pin-tag { display: none; } }
.tree-wrap { position: relative; overflow-x: auto; overflow-y: clip; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: var(--panel); padding: 8px 18px 20px; scrollbar-color: var(--dim) transparent; scrollbar-width: thin; }
.tree-wrap:focus-visible { outline-offset: -2px; }
.tree-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin: 0 0 8px; }
.tree-inner { position: relative; width: max-content; color: var(--line); transform-origin: 0 0; user-select: none; }
.flow-link { z-index: 0; }
.jtk-connector path { stroke: var(--dim); opacity: .45; stroke-width: 2; fill: none; }
.lose-link { visibility: hidden; }
.flow-link.hot { z-index: 1; visibility: visible; }
.flow-link.hot path { stroke: var(--gold); opacity: 1; stroke-width: 3; }
.lose-link.hot path { stroke-dasharray: 7 5; }
.far-link path { opacity: .14; }
.far-link.hot path { stroke-dasharray: 7 5; }
.b-match .r[data-team].hl { background: var(--tint-gold); }
.b-match, .flow-link { transition: opacity .15s; }
.team-focus .b-match:not(.in-path) { opacity: .5; }
.team-focus .flow-link:not(.hot) { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .b-match, .flow-link { transition: none; } }
.zones-row { display: flex; align-items: flex-start; gap: 34px; }
.zone.mirror .zone-label { text-align: right; }
.zone-label { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; padding: 14px 4px 8px; }
.zone-gold .zone-label { color: var(--gold-ink); } .zone-silver .zone-label { color: var(--prata-ink); }
.cols-row { display: flex; align-items: stretch; gap: 26px; }
.col-cell { display: flex; flex-direction: column; align-items: center; width: 184px; flex-shrink: 0; }
.col-head { font-family: 'Oswald', sans-serif; font-size: 10.5px; color: var(--dim); text-align: center; min-height: 14px; margin-bottom: 10px; }
.col-body { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-around; gap: 14px; }
.b-match { position: relative; display: block; width: 184px; height: 54px; background: var(--panel-2); border-radius: 8px; z-index: 2; color: var(--line); }
a.b-match:hover { text-decoration: none; box-shadow: 0 0 0 1.5px var(--dim); }
.b-match .r { display: flex; align-items: center; gap: 6px; height: 50%; padding: 0 8px; font-size: 11.5px; }
.b-match .r:first-of-type { border-radius: 8px 8px 0 0; border-bottom: 1px solid rgba(0,0,0,.18); }
.b-match .r:last-child { border-radius: 0 0 8px 8px; }
.b-match .r .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-match .r .s { font-family: 'Oswald', sans-serif; font-size: 14px; min-width: 16px; text-align: center; padding-left: 6px; border-left: 1px solid var(--hairline); }
.b-match .r .pts { display: flex; gap: 2px; flex: none; }
.b-match .r .pts i { font-style: normal; min-width: 17px; text-align: center; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.b-match .r .pts i.w { color: var(--line); font-weight: 700; }
.b-match .r .pts i.cur { color: var(--live-ink, var(--out-ink)); font-weight: 700; box-shadow: inset 0 -2px 0 var(--live); }
.b-match .r.loser .pts, .b-match .r.loser .s { opacity: 1; }
.b-match .r.pending, .b-match .r.bye { color: var(--dim); font-style: italic; }
.b-match .r.winner { background: var(--tint-win); font-weight: 600; }
.b-match .r.loser .n { color: var(--dim); text-decoration: line-through; }
.b-match.is-gold-final { box-shadow: 0 0 0 2px var(--gold); }
.b-match.is-silver-final { box-shadow: 0 0 0 2px var(--prata); }
.b-match.is-live { box-shadow: 0 0 0 2px var(--live); }
.b-match .num { position: absolute; top: -8px; left: 6px; font-size: 9.5px; background: var(--panel-3); color: var(--dim); border-radius: 4px; padding: 0 4px; }
.scroll-hint { font-size: 12px; color: var(--dim); text-align: center; margin-top: 8px; }
.podiums { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.podium { flex: 1; min-width: 210px; background: linear-gradient(135deg, color-mix(in srgb, var(--win) 16%, var(--panel)), var(--panel)); border-radius: var(--radius); padding: 16px; }
.podium.silver { background: linear-gradient(135deg, color-mix(in srgb, var(--prata) 16%, var(--panel)), var(--panel)); }
.podium h2, .podium h3 { font-size: 13px; color: var(--win-ink); margin: 0 0 8px; }
.podium.silver h2, .podium.silver h3 { color: var(--prata-ink); }
.podium ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.podium li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.rank { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; font: 700 12px 'Oswald', sans-serif; color: var(--on-gold); background: var(--gold); }
.rank.r2 { background: var(--prata); } .rank.r3 { background: var(--bronze); color: var(--on-gold); }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { background: var(--panel); border-radius: var(--radius); padding: 16px 12px; text-align: center; }
.side .tname { font-family: 'Oswald', sans-serif; font-size: 18px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.side .pts { font-family: 'Oswald', sans-serif; font-size: clamp(64px, 22vw, 96px); line-height: 1; margin: 6px 0 12px; }
.side .setw { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.side .pts { display: block; width: 100%; min-height: clamp(150px, 30vh, 320px); margin: 6px 0 10px; padding: 0; border: 2px solid var(--gold); border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 14%, var(--panel)); color: var(--line); font-size: clamp(88px, 30vw, 170px); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .08s ease-out, background .12s; }
.side .pts:active:not(:disabled) { transform: scale(.97); background: color-mix(in srgb, var(--gold) 30%, var(--panel)); }
.side .pts:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.side .pts:disabled { opacity: .55; cursor: not-allowed; border-color: var(--hairline); background: var(--panel); }
@media (prefers-reduced-motion: reduce) { .side .pts { transition: none; } }
.side .minus { margin-top: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.chip { background: var(--panel-2); border-radius: 6px; padding: 3px 9px; font-size: 13px; font-variant-numeric: tabular-nums; }
.chip.cur { box-shadow: inset 0 0 0 1.5px var(--gold); }
.sets-input { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.sets-input input { text-align: center; }

.hero { text-align: center; padding: 30px 0 10px; }
.tcard { display: block; background: var(--panel); border-radius: var(--radius); padding: 16px; color: var(--line); }
.tcard:hover { text-decoration: none; box-shadow: 0 0 0 1.5px var(--gold); }
.tcard-wrap { position: relative; }
.tcard-wrap > .tcard { height: 100%; }
.tcard-wrap > .tcard .row.between { padding-right: 38px; }
.tcard-wrap:has([data-open]) { z-index: 10; }
.kebab { position: absolute; top: 8px; right: 8px; z-index: 5; }
.kebab-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--dim); cursor: pointer; }
.kebab-btn:hover, .kebab[data-open] .kebab-btn { background: var(--panel-2); color: var(--line); }
.kebab-btn .ic { width: 20px; height: 20px; }
.kebab-menu { position: absolute; top: 40px; right: 0; min-width: 200px; padding: 6px; border-radius: 10px; background: var(--panel-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 1px var(--hairline); }
.kebab-menu[hidden] { display: none; }
.kebab[data-flip] .kebab-menu { top: auto; bottom: 40px; }
.kebab-menu form { margin: 0; }
.kebab-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--line); font: 600 14px 'Inter', sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.kebab-item:hover, .kebab-item:focus-visible { background: var(--panel); text-decoration: none; }
.kebab-item.danger { color: var(--out-ink); }
.kebab-item .ic { width: 18px; height: 18px; flex: none; }
.tgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.board-shell { position: relative; }
.board-shell.is-max { position: fixed; inset: 0; z-index: 1000; background: var(--bg); padding: 12px 16px 8px; overflow: hidden; display: flex; flex-direction: column; }
.board-shell.is-max [data-swap=board] { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.board-shell.is-max .tree-wrap { height: auto; overflow: auto; flex: 1; min-height: 0; }
.board-shell:fullscreen { background: var(--bg); }
html.has-max, html.has-max body { overflow: hidden; }
.tree-tools .grow { flex: 1; }
.tree-tools { justify-content: flex-start; }

.groups-grid { display: grid; gap: 24px; align-items: start; }
.group-card { background: var(--panel-2); border-radius: var(--radius); padding: 12px 10px 14px; }
.group-card h2, .group-card h3 { font-size: 15px; margin: 0 0 8px; color: var(--gold-ink); }
.group-games { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.group-card .b-match { background: var(--panel); }
.mini-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-tbl th, .mini-tbl td { padding: 4px 3px; text-align: left; font-weight: 400; border-top: 1px solid var(--hairline); }
.mini-tbl thead th { color: var(--dim); font-size: 10.5px; border-top: 0; font-weight: 600; }
.mini-tbl tbody th { font-weight: 600; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-tbl tr.q td:first-child { box-shadow: inset 3px 0 0 var(--win); }
.mini-tbl tr.q2 td:first-child { box-shadow: inset 3px 0 0 var(--prata); }

.b-match .r .s.edit-hint { border-left: 0; opacity: 0; font-size: 12px; color: var(--dim); transition: opacity .15s; }
a.b-match:hover .edit-hint, a.b-match:focus-visible .edit-hint { opacity: 1; }
a.b-match[data-edit] { cursor: pointer; }

.score-pop { position: fixed; z-index: 1100; width: max-content; max-width: min(94vw, 420px); background: var(--panel); color: var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px var(--hairline); }
.score-form h3 { font-size: 15px; margin: 0 0 10px; }
.sf-grid { display: grid; gap: 6px 8px; align-items: center; margin-bottom: 10px; }
.sf-h { font-size: 11px; color: var(--dim); text-align: center; }
.sf-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-grid input { text-align: center; min-height: 40px; padding: 6px 4px; font-size: 16px; }
.sf-err { background: var(--tint-out); border-radius: 6px; padding: 6px 10px; font-size: 13px; color: var(--out-ink); margin: 0 0 10px; }
.score-form .row { gap: 8px; }
.game-row.is-tappable { cursor: pointer; border-radius: 8px; transition: background .15s; }
.game-row.is-tappable:hover { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.game-row .teams[data-open-info]:focus-visible { outline-offset: 4px; }
.hint-set { font-style: italic; }
.info-modal { border: 0; border-radius: var(--radius); padding: 20px; width: min(92vw, 380px); background: var(--panel); color: var(--line); box-shadow: 0 16px 48px rgba(0,0,0,.45); }
.info-modal::backdrop { background: rgba(6, 14, 18, .62); }
.info-form h2 { font-size: 20px; }
.info-form .row { gap: 8px; }
.qr-box { flex: none; width: 150px; height: 150px; border-radius: 10px; overflow: hidden; background: #fff; }
.qr-box svg { display: block; width: 100%; height: 100%; }
.msg-list li { gap: 10px; align-items: center; }
.msg-body { font-size: 15px; overflow-wrap: anywhere; }
.reorder { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: none; }
.ro { display: grid; grid-template-columns: 44px 52px 1fr auto; gap: 8px; align-items: center; background: var(--panel); border-radius: 10px; padding: 6px 10px 6px 4px; }
.ro.dragging { position: fixed; z-index: 1200; box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1.5px var(--gold); cursor: grabbing; margin: 0; }
.ro.ro-ph { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hairline); }
.ro.ro-ph > * { visibility: hidden; }
.ro.just-moved { animation: settle-row .7s var(--ease-out); }
@keyframes settle-row { from { background: var(--tint-gold); } }
.ro-handle { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 8px; cursor: grab; touch-action: none; color: var(--dim); }
.ro-handle:hover { background: var(--panel-2); color: var(--line); }
.grip { width: 14px; height: 20px; background-image: radial-gradient(circle, currentColor 1.6px, transparent 2px); background-size: 7px 7px; background-repeat: repeat; }
.ro-n { font-family: 'Oswald', sans-serif; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.ro-body { min-width: 0; display: flex; flex-direction: column; }
.ro-tag { font-size: 12px; color: var(--dim); }
.ro-vs { font-weight: 600; overflow-wrap: anywhere; }
.ro-vs em { font-style: normal; color: var(--dim); font-weight: 400; margin: 0 4px; }
.ro-meta { font-size: 12px; color: var(--dim); }
.ro-btns { display: flex; gap: 4px; }
.ro-btns .btn { min-width: 44px; padding: 6px 8px; font-size: 16px; }
.ro-btns .btn:disabled { opacity: .3; }
.ro-msg { min-height: 1.5em; margin: 8px 0 0; font-size: 14px; }
.ro-msg.err { color: var(--out-ink); }
.ro-msg.ok { color: var(--win-ink); }
@media (max-width: 560px) { .ro { grid-template-columns: 44px 1fr auto; } .ro-n { display: none; } }
.sched-tbl .sr-handle { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 8px; cursor: grab; touch-action: none; color: var(--dim); }
.sched-tbl .sr-handle:hover { background: var(--panel-2); color: var(--line); }
.sched-tbl tr.dragging { position: fixed; z-index: 1200; background: var(--panel); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1.5px var(--gold); cursor: grabbing; }
.sched-tbl tr.sr-ph td { box-shadow: inset 0 0 0 1.5px var(--hairline); padding: 0; }
.sched-tbl tr.just-moved { animation: settle-row .7s var(--ease-out); }
.sched-tbl tr.is-tappable { cursor: pointer; }
.sched-tbl tr.is-tappable:hover { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.sched-tbl tr.is-tappable td a, .sched-tbl tr.is-tappable td [data-open-info] { color: inherit; text-decoration: none; }
.sched-tbl tr.is-tappable td [data-open-info]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-msg { min-height: 1.5em; margin: 8px 0 0; font-size: 14px; }
.sr-msg.err { color: var(--out-ink); }
.sr-msg.ok { color: var(--win-ink); }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-item { display: flex; gap: 14px; align-items: center; background: var(--panel); border-radius: 10px; padding: 10px 14px; flex-wrap: wrap; }
.sp-item.is-off { opacity: .6; }
.sp-thumb { flex: none; width: 96px; height: 56px; background: #fff; border-radius: 8px; display: grid; place-items: center; overflow: hidden; padding: 6px; }
.sp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-noimg { font-family: 'Oswald', sans-serif; font-weight: 700; color: #4b5a61; font-size: 20px; }
.bulk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0 6px; border-bottom: 1px solid var(--hairline); }
.bulk-bar .check { min-height: 40px; }
.pick { width: 22px; height: 22px; min-height: 0; flex: none; }
.save-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px -18px -18px; padding: 12px 18px; background: var(--panel); border-top: 1px solid var(--hairline); border-radius: 0 0 var(--radius) var(--radius); }
.shell { display: grid; grid-template-columns: 284px minmax(0, 1fr); min-height: 100vh; }
.shell > .wrap { width: 100%; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 12px 12px; background: var(--panel-3); border-right: 1px solid var(--hairline); scrollbar-width: thin; }
html[data-mode="claro"] .sidebar {
  background: var(--gold);
  --line: var(--on-gold);
  --dim: color-mix(in srgb, var(--on-gold) 75%, var(--gold));
  --panel-2: color-mix(in srgb, var(--on-gold) 12%, var(--gold));
  --hairline: color-mix(in srgb, var(--on-gold) 25%, transparent);
  --tint-gold: color-mix(in srgb, var(--on-gold) 20%, transparent);
  --gold-ink: var(--on-gold);
}
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 6px; }
.sb-head .brand { padding: 6px 0; }
.sb-collapse { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
.sb-collapse:hover { background: var(--panel-2); color: var(--line); }
.sb-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.sb-label { margin: 14px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sb-note { margin: 2px 10px 6px; font-size: 13px; color: var(--dim); }
.nav-link { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--dim); font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.nav-link:hover { background: var(--panel-2); color: var(--line); text-decoration: none; }
.nav-link.on { background: var(--tint-gold); color: var(--gold-ink); font-weight: 600; }
.nav-link.sub { padding-left: 22px; }
.nav-link.tour { color: var(--line); }
.nav-link .ext { font-size: 13px; opacity: .7; }
.nav-link .badge { flex: none; }
.sb-tour { margin: 6px 0 8px; padding: 8px 4px 8px; border-radius: 10px; background: color-mix(in srgb, var(--panel-2) 55%, transparent); display: flex; flex-direction: column; gap: 2px; }
.sb-tour-name { margin: 0; padding: 2px 10px 4px; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 17px; color: var(--line); overflow-wrap: anywhere; }
.sb-tour .sb-label { margin-top: 12px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.dot.running { background: var(--gold); } .dot.finished { background: var(--win); }
.sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 12px 8px 0; border-top: 1px solid var(--hairline); }
.sb-user { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--dim); }
.sb-foot .linkbtn { padding: 10px 8px; flex: none; }

.mobilebar { display: none; position: sticky; top: 0; z-index: 30; align-items: center; gap: 12px; padding: 4px 12px; background: var(--panel-3); border-bottom: 1px solid var(--hairline); }
.menu-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--line); font: 600 14px 'Inter', sans-serif; cursor: pointer; }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(6, 14, 18, .6); }
@media (max-width: 900px) {
  .shell { display: block; }
  .mobilebar { display: flex; }
  .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-102%); transition: transform .25s var(--ease-out); box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .shell.nav-open .sidebar { transform: none; }
  .sb-collapse { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
@media (min-width: 1600px) {
  body { font-size: 16px; }
  .shell { grid-template-columns: 312px minmax(0, 1fr); }
}
.ic { width: 20px; height: 20px; flex: none; }
.btn .ic { width: 16px; height: 16px; }
.btn { gap: 8px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; }
.tabs .ic { width: 18px; height: 18px; opacity: .85; }
.meta-ic { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; vertical-align: middle; }
.meta-ic .ic { width: 15px; height: 15px; opacity: .8; }
.flash { display: flex; gap: 10px; align-items: flex-start; }
.flash .fl-ic { color: var(--win-ink); margin-top: 1px; }
.i-min { display: none; }
[data-zoom="full"].is-on .i-max { display: none; }
[data-zoom="full"].is-on .i-min { display: inline; }
.nav-link { position: relative; }
.nav-link .ic { opacity: .9; }
.nav-link .lbl { flex: 1; min-width: 0; }
.nav-link.on .ic { opacity: 1; }
.nav-link.out { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.nav-link .ext { width: 14px; height: 14px; opacity: .6; }
.sb-tour-name { display: flex; align-items: center; gap: 8px; }
.sb-tour-name .ic { color: var(--gold-ink); }
.sb-user { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--dim); }
.sb-user .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-foot { flex-direction: column; align-items: stretch; gap: 2px; }
.brand-mini, .i-rail { display: none; }
@media (min-width: 901px) { .sb-collapse { display: grid; place-items: center; } }
.cat-ini { width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--panel-2); color: var(--line); font: 700 12px 'Oswald', sans-serif; letter-spacing: .02em; box-shadow: inset 0 0 0 2px var(--dim); }
.cat-ini.running { box-shadow: inset 0 0 0 2px var(--gold); }
.cat-ini.finished { box-shadow: inset 0 0 0 2px var(--win); }
.rail-tip { position: fixed; z-index: 90; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; background: var(--panel-2); color: var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 0 1px var(--hairline); pointer-events: none; }

@media (min-width: 901px) {
  .sidebar { z-index: 30; }
  html.nav-collapsed .shell { grid-template-columns: 76px minmax(0, 1fr); }
  html.nav-collapsed .sidebar { padding: 12px 8px; }
  html.nav-collapsed .sb-head { flex-direction: column; gap: 4px; padding: 0 0 6px; }
  html.nav-collapsed .brand-full { display: none; }
  html.nav-collapsed .brand-mini { display: grid; place-items: center; width: 48px; height: 40px; font: 700 20px 'Oswald', sans-serif; color: var(--gold-ink); }
  html.nav-collapsed .sb-collapse { width: 48px; height: 44px; }
  html.nav-collapsed .sb-collapse .i-open { display: none; }
  html.nav-collapsed .sb-collapse .i-rail { display: block; }
  html.nav-collapsed .i-open { display: none !important; }
  html.nav-collapsed .cat-ini.i-rail { display: grid; }
  html.nav-collapsed .lbl, html.nav-collapsed .sb-label span, html.nav-collapsed .sb-tour-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.nav-collapsed .sb-label { height: 1px; margin: 10px 12px; padding: 0; background: var(--hairline); overflow: hidden; }
  html.nav-collapsed .sb-nav { align-items: stretch; }
  html.nav-collapsed .nav-link, html.nav-collapsed .nav-link.sub { justify-content: center; width: 100%; min-height: 44px; padding: 0; }
  html.nav-collapsed .nav-link .badge { position: absolute; top: 2px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; line-height: 17px; text-align: center; }
  html.nav-collapsed .nav-link .badge:not([aria-label]) { display: none; }
  html.nav-collapsed .sb-tour { padding: 4px 0; margin: 4px 0; }
  html.nav-collapsed .sb-foot { align-items: center; padding-top: 10px; }
  html.nav-collapsed .sb-user { justify-content: center; padding: 10px; }
  html.nav-collapsed .sb-foot form { width: 100%; }
  html.nav-collapsed .sb-foot .theme-list { position: fixed; left: 84px; right: auto; bottom: 12px; top: auto; max-height: calc(100svh - 24px); overflow-y: auto; }
}

.badge-ic { display: inline-flex; align-items: center; gap: 5px; }
.badge-ic .ic { width: 12px; height: 12px; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .sidebar { view-transition-name: sidebar; }
  ::view-transition-group(root) { animation-duration: .3s; }
  ::view-transition-old(root) { animation: vt-out .16s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
  @supports not (view-transition-name: none) {
    main.wrap { animation: vt-in .32s var(--ease-out) both; }
  }
  dialog.info-modal {
    opacity: 0; transform: translateY(16px) scale(.97);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), overlay .22s allow-discrete, display .22s allow-discrete;
  }
  dialog.info-modal[open] { opacity: 1; transform: none; }
  @starting-style { dialog.info-modal[open] { opacity: 0; transform: translateY(16px) scale(.97); } }
  dialog.info-modal::backdrop { background-color: rgba(6, 14, 18, 0); transition: background-color .22s, overlay .22s allow-discrete, display .22s allow-discrete; }
  dialog.info-modal[open]::backdrop { background-color: rgba(6, 14, 18, .62); }
  @starting-style { dialog.info-modal[open]::backdrop { background-color: rgba(6, 14, 18, 0); } }
  .score-pop:not([hidden]) { animation: pop-in .18s var(--ease-out); }
  @keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
  .rail-tip:not([hidden]) { animation: fade-in .14s ease-out; }
  @keyframes fade-in { from { opacity: 0; } }
  .shell { transition: grid-template-columns .26s var(--ease-out); }
  .scrim:not([hidden]) { animation: fade-in .22s ease-out; }
  .nav-link, .tabs a, .linkbtn, .sb-collapse, .menu-btn { transition: background-color .15s, color .15s, border-color .2s; }
  input, select, textarea { transition: border-color .15s, background-color .15s; }
  .tgrid > *, .sp-list > li, .podium { animation: rise-in .42s var(--ease-out) both; }
  .tgrid > :nth-child(2), .sp-list > li:nth-child(2) { animation-delay: .05s; }
  .tgrid > :nth-child(3), .sp-list > li:nth-child(3) { animation-delay: .10s; }
  .tgrid > :nth-child(4), .sp-list > li:nth-child(4) { animation-delay: .15s; }
  .tgrid > :nth-child(5), .sp-list > li:nth-child(5) { animation-delay: .20s; }
  .tgrid > :nth-child(n+6), .sp-list > li:nth-child(n+6) { animation-delay: .25s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
}
.flash a { display: inline-block; padding: 12px 6px; margin: -12px 0; }
@media print {
  #sidebar, .sidebar, .mobilebar, .topbar, .tabs, .no-print, .flash, .skip, .scrim { display: none !important; }
  .shell { display: block !important; }
  html, body, .shell, main { min-height: 0 !important; height: auto !important; }
  body, .card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .wrap, main { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .card { border: 0 !important; padding: 0 !important; }
  .tbl td, .tbl th { padding: 4px 6px; color: #000; }
  .tbl tr { break-inside: avoid; }
  .tbl thead { display: table-header-group; }
  .game-row, .round-title { break-inside: avoid; }
  .dim, .small { color: #333 !important; }
  @page { margin: 10mm; }
  body { font-size: 11px; line-height: 1.35; }
  h1 { font-size: 18px; } h2 { font-size: 14px; } h3 { font-size: 12px; }
  .small { font-size: 10px !important; }
  table.tbl { font-size: 11px; }
  .tbl th { font-size: 10px; padding: 3px 6px; }
  .tbl td { padding: 3px 6px; }
  .game-row { padding: 4px 0; gap: 4px 8px; grid-template-columns: 34px 1fr auto; }
  .tnum { width: 26px; }
  .round-title { font-size: 11px; margin: 10px 0 2px; }
  .badge, .score-pill { font-size: 10px !important; padding: 1px 6px !important; }
  .sched-tbl { font-size: 11px; }
}

.mesa-row { color: inherit; text-decoration: none; }
.mesa-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.kpi { background: var(--panel-2, var(--panel)); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; }
.kpi dt { font-size: 12px; color: var(--dim); margin: 0; }
.kpi dd { margin: 4px 0 0; font-family: 'Oswald', sans-serif; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.setline { margin: 14px 0 0; font-weight: 600; }
.setline.done { color: var(--win-ink); }
.newset { font-size: 20px; padding: 18px 28px; }
.side-tools { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; align-items: stretch; }
.to-count { font-variant-numeric: tabular-nums; margin-left: 4px; opacity: .8; }
.tmo { margin-top: 16px; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--tint-live); padding: 14px; text-align: center; }
.tmo.low { border-color: var(--live); }
.tmo-head { font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tmo-clock { font-family: 'Oswald', sans-serif; font-size: clamp(56px, 18vw, 96px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.tmo.low .tmo-clock { color: var(--out-ink); }
.cards-box { text-align: left; }
.cards-box > summary { list-style: none; cursor: pointer; width: 100%; justify-content: center; }
.cards-box > summary::-webkit-details-marker { display: none; }
.cards-form { border: 0; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cards-form legend { padding: 0; margin-bottom: 4px; }
.card-btns { display: grid; gap: 6px; margin-top: 6px; }
.cbtn { display: flex; align-items: center; gap: 8px; text-align: left; padding: 12px; min-height: 44px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--panel-2, transparent); color: inherit; font: inherit; cursor: pointer; }
.cbtn small { margin-left: auto; color: var(--dim); font-size: 12px; }
.cbtn:disabled { opacity: .5; cursor: not-allowed; }
.cardface { display: inline-block; width: 14px; height: 20px; border-radius: 2px; flex: none; }
.cardface.y { background: #F2C500; }
.cardface.r { background: #D3252B; }
.cardface.yr { background: linear-gradient(115deg, #F2C500 50%, #D3252B 50%); }
.cardface.yr.sep { background: linear-gradient(90deg, #F2C500 0 42%, transparent 42% 58%, #D3252B 58%); }
.card-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.card-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .tmo:not([hidden]) { animation: pop-in .25s var(--ease-out, ease-out); } }
.tn-cards { font-size: .85em; color: var(--dim); }
.n .cardface, .vs .cardface, .res-name .cardface, .rg-t .cardface, .nx-vs .cardface, .tname .cardface { width: 8px; height: 12px; vertical-align: -1px; margin-left: 3px; }

.mem-list { display: grid; gap: 4px; }

.card-list li .grow { flex: 1; }
.tname .tn-cards { font-size: 12px; color: var(--dim); }
.tname .cardface { width: 10px; height: 15px; }

.sets-input.to-row { margin-top: -2px; }
.sets-input.to-row input { padding: 6px; font-size: 13px; }
.form-page { max-width: 1500px; }
.form-mid { max-width: 1000px; }
.form-sections { display: grid; gap: 24px 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .form-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .form-sections:not(.two) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fsec > h2 { font-size: 16px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); color: var(--gold-ink); }
.fsec details > summary { font-size: 16px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); color: var(--gold-ink); cursor: pointer; }
.fsec details[open] > summary { margin-bottom: 14px; }
.wiz-stage { container-type: inline-size; }
@container (min-width: 560px) {
  .wiz-step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .wiz-step > * { grid-column: 1 / -1; }
  .wiz-step > .grid2, .wiz-step > .grid3 { display: contents; }
  .wiz-step > [hidden] { display: none !important; }
  .wiz-step :where(.field:not(.copy-from):not(:has(.check, textarea, .pick-cards))) { grid-column: auto; }
  .wiz-step > .field { margin-bottom: 10px; }
}
@container (min-width: 820px) {
  .wiz-step { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wiz-step .field:has(> .check):not(:has(textarea, .pick-cards)):not(.promo-field) { grid-column: span 2; }
  .wiz-step > .field:has(> #name, > #tournament\.name) { grid-column: span 2; }
  .wiz-step .pick-cards.two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@container (min-width: 1240px) {
  .wiz-step { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wiz-step .pick-card { padding: 12px 14px; }
.wiz-step .pick-card strong { font-size: 15px; }
.wiz-step .ta-sm, .wiz-step textarea { min-height: 76px; }
.wiz-step .promo-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 18px; align-items: start; }
@container (min-width: 820px) {
  .wiz-step > .promo-field { grid-column: 3; grid-row: 2 / span 5; margin-bottom: 0; }
  .wiz-step .promo-field .promo-preview { max-height: 170px; margin: 2px 0 6px; }
}
@container (min-width: 1240px) {
  .wiz-step > .promo-field { grid-column: 4; }
}
.wiz-step > .amen-field { grid-column: 1 / -1; }
.wiz-step .amen-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.wiz-step .amen-opt { min-height: 38px; padding: 5px 10px; font-size: 13.5px; }
.wiz-step .fsec-sub, .wiz-step .amen-field legend { margin-top: 12px; }
.wiz-step .field label:not(.check) { margin-bottom: 3px; }
.wiz-step input[type=text], .wiz-step input[type=email], .wiz-step input[type=number], .wiz-step input[type=date], .wiz-step input[type=time], .wiz-step select { min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.wiz-step .help { margin-top: 4px; }
.uni-editor { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 820px) {
  .wiz-step .uni-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.wiz-step[hidden], .pick-card[hidden], .wiz-progress[hidden], .wiz-nav [hidden] { display: none !important; }
.wiz-lede { margin: 0 0 16px; color: var(--dim); }
.wiz-step > h2 { margin: 0 0 6px; font-size: 22px; }
.wiz-step > h2:focus { outline: none; }
.wiz-progress ol { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.wiz-progress li { flex: 1 0 auto; }
.wiz-progress button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 0; box-shadow: inset 0 -3px 0 var(--hairline); background: transparent; color: var(--dim); font: 600 13px 'Inter', sans-serif; text-align: left; cursor: default; }
.wiz-progress li.done button { color: var(--line); box-shadow: inset 0 -3px 0 var(--gold-ink); cursor: pointer; }
.wiz-progress button[aria-current] { color: var(--gold-ink); box-shadow: inset 0 -3px 0 var(--gold-ink); }
.wiz-dot { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); font-size: 12px; }
.wiz-progress li.done .wiz-dot, .wiz-progress button[aria-current] .wiz-dot { background: var(--gold); color: var(--on-gold); }
.wiz-edit .wiz-progress button { cursor: pointer; }
.wiz-edit .wiz-progress button:hover { color: var(--line); }
.wiz-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz-nav .btn { white-space: nowrap; }
.wiz-review { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px 20px; margin: 0 0 14px; }
.wiz-review dt { color: var(--dim); font-size: 13px; }
.wiz-review dd { margin: 0; }
.wiz-review .linkbtn { margin-left: 6px; font-size: 13px; }
.wiz-on .wiz-step { animation: wiz-in .28s var(--ease-out) both; }
.wiz-on.wiz-back .wiz-step { --wiz-dx: -28px; }
@keyframes wiz-in { from { opacity: 0; transform: translateX(var(--wiz-dx, 28px)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz-on .wiz-step { animation: none; } }
@media (max-width: 480px) { #wiz-cancel { display: none; } }
@media (max-width: 700px) {
  .wiz-progress li:not(:has([aria-current])) .wiz-name { display: none; }
  .wiz-progress li { flex: 0 0 auto; }
  .wiz-review { grid-template-columns: 1fr; gap: 2px; }
  .wiz-review dd { margin-bottom: 10px; }
  .wiz-actions .wiz-nav { flex: 1; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .wiz-actions .wiz-nav { flex: 1 1 100%; }
  .wiz-actions .wiz-nav .btn { flex: 1 1 auto; }
  .wiz-actions #wiz-submit, .wiz-actions #wiz-next { order: -1; flex-basis: 100%; }
}
.pick-card:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.pick-card:has(input:disabled:checked) { opacity: 1; }
.pick-card:has(input:disabled) input { cursor: not-allowed; }
.fsec-sub { margin: 20px 0 10px; font-size: 14px; font-weight: 700; color: var(--line); }
.cfg-save { position: sticky; bottom: 0; z-index: 10; }
body:has(.cfg-save) .to-top { bottom: 86px; }
.pick-legend { display: block; margin-bottom: 8px; font-size: 13px; color: var(--dim); }
.pick-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 560px) { .pick-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 16px; border: 2px solid var(--hairline); border-radius: var(--radius); background: var(--panel-2); color: var(--line); font-size: 13px; line-height: 1.4; cursor: pointer; transition: border-color .15s, background .15s; }
.pick-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick-card strong { font-size: 16px; }
.pick-card > span { color: var(--dim); }
.pick-cards + .help { margin-top: 10px; }
.pick-ic { width: 52px; height: 52px; color: var(--gold-ink); }
.pick-card:hover { border-color: var(--gold); }
.pick-card:has(input:checked) { border-color: var(--gold); background: var(--tint-gold); }
.pick-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pick-card { transition: none; } }
.grid1 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.form-page form.card > .btn.block { margin-top: 22px; }
.sumula-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .sumula-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.tools-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tools-grid > .card { margin-top: 0; }
.court-cols { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: flex-start; }
.court-col { flex: 0 0 220px; background: var(--panel); border-radius: var(--radius); padding: 14px; }
.court-col h2 { font-size: 15px; margin: 0; }
.court-col-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.court-col-new { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hairline); }
.court-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.court-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--panel-2); border-radius: 8px; padding: 6px 6px 6px 10px; font-size: 14px; }
.court-item form { display: contents; }
.court-add { display: flex; gap: 6px; }
.court-add input { flex: 1; min-width: 0; }
.theme-pick { position: relative; }
.theme-pick > summary { list-style: none; cursor: pointer; }
.theme-pick > summary::-webkit-details-marker { display: none; }
.theme-list { display: grid; gap: 2px; padding: 8px; background: var(--panel); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.45); min-width: 250px; z-index: 60; }
.sb-foot .theme-list { position: absolute; bottom: calc(100% + 6px); left: 0; }
.topbar .theme-list { position: absolute; right: 0; top: calc(100% + 6px); }
.theme-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--line); font-size: 14px; }
.theme-opt:hover { background: var(--panel-2); }
.theme-opt:has(input:checked) { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--gold); }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt small { color: var(--dim); }
.chips-swatch { display: inline-flex; flex: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--hairline); }
.chips-swatch i { width: 14px; height: 22px; display: block; }
.topbar .theme-pick > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: inherit; }

.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 8px; background: var(--panel-3); border-radius: 10px; }
.mode-opt { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--dim); }
.mode-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mode-opt:has(input:checked) { background: var(--gold); color: var(--on-gold); }
.mode-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.theme-list { min-width: 260px; }

.game-row a.teams { color: inherit; text-decoration: none; }
.game-row a.teams:hover { text-decoration: none; }
.game-row a.teams:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--hairline); border-radius: 50%; background: var(--panel-2); color: var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.4); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease-out), visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--panel); border-color: var(--gold); }
.to-top .ic { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none !important; } }
.flow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin-top: 12px; }
.flow-card { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid transparent; border-radius: var(--radius); padding: 16px; }
.flow-card.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.flow-card.todo { opacity: .86; }
.flow-head { display: flex; align-items: center; gap: 10px; }
.flow-head h2 { margin: 0; font-size: 20px; }
.flow-head .badge { margin-left: auto; }
.flow-n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--dim); font: 700 15px 'Oswald', sans-serif; }
.flow-n .ic { width: 18px; height: 18px; }
.flow-card.done .flow-n { background: var(--tint-win); color: var(--win-ink); }
.flow-card.current .flow-n { background: var(--gold); color: var(--on-gold); }
.flow-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.flow-rows li { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.flow-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.btn.xl { font-size: 19px; min-height: 62px; padding: 16px 28px; border-radius: 12px; gap: 10px; }
.btn.xl .ic { width: 22px; height: 22px; }
.flow-start { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px dashed var(--hairline); }
.flow-start.ready { border: 1px solid var(--win); background: var(--tint-win); }
.flow-live { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--gold); }
.flow-live .progress { height: 8px; margin-top: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.flow-live .progress i { display: block; height: 100%; background: var(--win); border-radius: 99px; }
@media print { .flow-start, .flow-live .flow-actions { display: none !important; } }
.sponsors-pub { scroll-margin-top: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hairline); text-align: center; }
.sponsors-pub h2 { font-size: 18px; margin-bottom: 14px; }
.sp-tier-block + .sp-tier-block { margin-top: 18px; }
.sp-tier-label { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sp-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sp-grid li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-card { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; background: #fff; color: #17303C; border-radius: 12px; padding: 10px 16px; width: 150px; height: 76px; }
a.sp-card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--gold); }
.sp-card img { width: 100%; height: 100%; object-fit: contain; }
.sp-nm { font: 700 15px 'Oswald', sans-serif; line-height: 1.1; }
.sp-tag { margin: 0; font-size: 12.5px; color: var(--dim); max-width: 24ch; }
.t-master .sp-card { width: min(300px, 80vw); height: 130px; padding: 14px 22px; }
.t-master .sp-nm { font-size: 24px; }
.t-gold .sp-card { width: 200px; height: 96px; }
.t-support .sp-card { width: 120px; height: 60px; padding: 8px 12px; }
.t-support .sp-nm { font-size: 13px; }
.sp-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--hairline); }
.sp-chip { display: grid; place-items: center; flex: none; width: 112px; height: 44px; padding: 5px 10px; overflow: hidden; border-radius: 8px; background: #fff; color: #17303C; }
a.sp-chip:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--gold); }
.sp-chip img { width: 100%; height: 100%; object-fit: contain; }
.sp-chip .sp-nm { font-size: 13px; text-align: center; }
.sp-bar-fixed .sp-chip { width: 128px; }
.sp-bar-rot { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.sp-bar-rot li[hidden] { display: none; }
.sp-bar-rot.is-rotating { overflow: visible; }
.sp-bar-rot.is-rotating li { animation: sp-in .45s var(--ease-out) both; }
@keyframes sp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-bar-rot.is-rotating li { animation: none; } }
.sp-bar-all { flex: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
body:has(.sp-bar) { padding-bottom: 72px; }
body:has(.sp-bar) .to-top { bottom: 82px; }
@media (max-width: 480px) { .sp-chip { width: 96px; } .sp-bar-fixed .sp-chip { width: 108px; } .sp-bar { gap: 8px; padding-inline: 8px; } }
@media print { .sp-bar { display: none !important; } body:has(.sp-bar) { padding-bottom: 0; } }
.groups-body { margin: 0 0 28px; }
.groups-body h2 { font-size: 19px; }
.groups-body-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; margin-top: 12px; }
.grp-games { margin-top: 10px; border-top: 1px solid var(--hairline); padding-top: 8px; }
.grp-games > summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
.grp-games > summary::-webkit-details-marker { display: none; }
.grp-games > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(-45deg); transition: transform .15s; }
.grp-games[open] > summary::before { transform: rotate(45deg); }
.gg-round { font: 600 11px 'Oswald', sans-serif; color: var(--gold-ink); letter-spacing: .04em; margin: 10px 0 4px; text-transform: uppercase; }
.gg-list { list-style: none; margin: 0; padding: 0; }
.gg-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--hairline); font-size: 13px; }
.gg-row:first-child { border-top: 0; }
.gg-row.is-live { box-shadow: inset 3px 0 0 var(--live); padding-left: 8px; }
.gg-n { font-family: 'Oswald', sans-serif; color: var(--dim); min-width: 28px; }
.gg-teams { flex: 1 1 10ch; min-width: 0; }
.gg-teams em { font-style: normal; color: var(--dim); }
.gg-teams .w { font-weight: 700; color: var(--win-ink); }
.gg-meta { flex-basis: 100%; padding-left: 36px; }
.gg-go { margin-left: auto; }
.gt-ic { transition: transform .15s; }
[data-groups-toggle][aria-expanded=true] .gt-ic { transform: rotate(180deg); }
.stack-top { margin-top: 18px; }
.help { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--dim); max-width: 62ch; }
.fsec-sum { margin: -6px 0 14px; font-size: 12.5px; color: var(--dim); }
.subfield { margin-left: 26px; padding-left: 14px; border-left: 1px solid var(--hairline); }
.rare { margin-top: 6px; }
.rare > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--dim); padding: 6px 0; }
.rare[open] > summary { margin-bottom: 8px; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--out); box-shadow: 0 0 0 1px var(--out); }
.error-summary strong { display: block; margin-bottom: 4px; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.danger-zone { margin-top: 36px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--out) 45%, transparent); border-radius: var(--radius); }
.danger-zone h2 { font-size: 15px; color: var(--out-ink); margin: 0 0 6px; }
.dz-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--hairline); }
.dz-row:first-of-type { border-top: 0; }
.dz-row .help { margin-top: 2px; }
@media (max-width: 600px) { .form-actions .btn, .dz-row .btn { width: 100%; } .form-actions { flex-direction: column-reverse; align-items: stretch; } }
.ta-sm { min-height: 70px; } .ta-lg { min-height: 160px; }

.sched-form { margin-top: 12px; }
.fgroup { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.fgroup > legend { font: 700 14px 'Oswald', sans-serif; letter-spacing: .02em; color: var(--gold-ink); padding: 0 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--hairline); width: 100%; }
.grid4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.replace-box { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 8%, transparent); }
.sched-estimate { margin: 0 0 6px; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.warn { color: var(--gold-ink); }
.reg-card { margin-top: 12px; padding: 4px 16px; overflow-x: auto; }
.reg-actions { gap: 6px; flex-wrap: wrap; }
.reg-actions form, .reg-note { margin: 0; }
.reg-note { display: flex; gap: 6px; margin-top: 6px; }
.reg-note input { min-width: 12rem; }
@media (max-width: 700px) {
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack tr { padding: 12px 0; border-top: 1px solid var(--hairline); }
  .tbl-stack tr:first-child { border-top: 0; }
  .tbl-stack td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: 8px; }
  .tbl-stack td::before { content: attr(data-label); color: var(--dim); font-size: 12px; font-weight: 600; }
  .reg-note input { min-width: 0; flex: 1; }
}

.mt-0{margin-top:0}.mt-10{margin-top:10px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mb-8{margin-bottom:8px}.mb-10{margin-bottom:10px}

.court-col-narrow { max-width: 340px; }
.copy-from { margin-bottom: 20px; padding: 12px 14px; border-radius: 8px; background: var(--panel-2); max-width: 520px; }
.page-stack { margin-top: 18px; }
.page-stack > * { margin-top: 0; }
.page-stack > * + * { margin-top: 28px; }
.page-stack > [data-pinned-wrap]:not(:has(.pinned-next)) { display: none; }
.page-stack > [data-pinned-wrap] .pinned-next { margin-bottom: 0; }
.sched-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.sched-toolbar h2 { font-size: 19px; margin-bottom: 2px; }
.sched-adjust { margin: 0; text-align: right; }
.sched-adjust .help { max-width: 30ch; margin-left: auto; }
.sched-card { margin-top: 0; padding: 4px 16px; }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--bg); color: var(--line); box-shadow: -14px 0 40px rgba(0, 0, 0, .45); transform: translateX(100%); transition: transform .24s var(--ease-out); }
.drawer.in { transform: none; }
.drawer::backdrop { background: rgba(6, 14, 18, .55); opacity: 0; transition: opacity .24s; }
.drawer.in::backdrop { opacity: 1; }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); background: var(--bg); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 32px; overscroll-behavior: contain; }
.drawer .sumula-grid { grid-template-columns: 1fr; gap: 0; }
.drawer .cards-side { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer::backdrop { transition: none; } }
@media print { .drawer { display: none !important; } }
.sched-tbl tr.is-live td { background: var(--tint-live); }
.sched-tbl tr.is-live td:first-child { border-radius: 8px 0 0 8px; }
.sched-tbl tr.is-live td:last-child { border-radius: 0 8px 8px 0; }
.grp-games::details-content { block-size: 0; overflow: hidden; transition: block-size .28s var(--ease-out), content-visibility .28s allow-discrete; }
.grp-games[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes grp-row-in { from { opacity: 0; transform: translateY(-6px); } }
  .grp-games[open] .gg-round, .grp-games[open] .gg-row { animation: grp-row-in .32s var(--ease-out) both; }
  .grp-games[open] .gg-row:nth-child(1) { animation-delay: .04s; } .grp-games[open] .gg-row:nth-child(2) { animation-delay: .09s; }
  .grp-games[open] .gg-row:nth-child(3) { animation-delay: .14s; } .grp-games[open] .gg-row:nth-child(n+4) { animation-delay: .19s; }
}
@media (prefers-reduced-motion: reduce) { .grp-games::details-content { transition: none; } }

.logo-prev { background: #fff; border-radius: 10px; padding: 10px 14px; display: inline-block; margin-bottom: 8px; }
.logo-prev img { display: block; max-height: 56px; max-width: 220px; }
.stand-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; align-items: start; }
@media (min-width: 900px) { .stand-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.switch-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); opacity: 0.8; cursor: pointer; text-align: center; padding: 24px; }
.switch-overlay[hidden] { display: none; }
.so-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.so-arrows { width: min(46vw, 280px); height: min(46vw, 280px); }
.so-text { margin: 0; font: 800 clamp(34px, 9vw, 72px)/1 'Oswald', sans-serif; letter-spacing: .04em; color: var(--on-gold); }
.so-sub { margin: 0; font-size: clamp(18px, 4.4vw, 26px); font-weight: 700; color: var(--on-gold); }
@media (prefers-reduced-motion: no-preference) {
  .switch-overlay.go { animation: so-in .25s var(--ease-out) both; }
  .switch-overlay.out { animation: so-out .25s ease both; }
  .switch-overlay.go .so-arrows { animation: so-spin .9s cubic-bezier(.45, 0, .2, 1) both; }
  .switch-overlay.go .so-text { animation: so-text .35s var(--ease-out) .7s both; }
  .switch-overlay.go .so-sub { animation: so-text .35s var(--ease-out) .82s both; }
}
@keyframes so-in { from { opacity: 0; } }
@keyframes so-out { to { opacity: 0; } }
@keyframes so-spin { from { transform: rotate(-160deg) scale(.4); opacity: 0; } 25% { opacity: 1} to { transform: rotate(380deg) scale(1); } }
@keyframes so-text { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .switch-overlay .so-arrows { transform: none; } }
.serve-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.serve-row[hidden] { display: none; }
.sv-label { font: 700 12px 'Oswald', sans-serif; letter-spacing: .12em; color: var(--dim); }
.serve-row.is-serving .sv-label { color: var(--gold-ink); }
.sv-m { flex: 1 1 0; min-width: 0; max-width: 11rem; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--panel-2); color: var(--dim); font: 600 14px 'Inter', sans-serif; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .65; }
.sv-m:hover { opacity: 1; }
.sv-m.on { opacity: 1; background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 800; }
.scoreboard.flipped > section.side:first-of-type { order: 2; }
.scoreboard.flipped > section.side:last-of-type { order: 1; }

.brand-only { display: inline-flex; align-items: center; margin: 0 auto; }
.brand-logo { display: block; max-height: 34px; max-width: 200px; width: auto; }
.scoreboard { position: relative; }
.flip-btn { position: absolute; z-index: 3; left: 50%; top: 4rem; transform: translate(-50%, -50%); width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--hairline); background: var(--panel-3); color: var(--dim); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.flip-btn .ic { width: 18px; height: 18px; }
.flip-btn:hover { color: var(--line); }
.flip-btn.is-on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
@media (pointer: coarse) { .flip-btn { width: 44px; height: 44px; } }
.side { position: relative; overflow: hidden; }
.pts-wrap { position: relative; }
.side .setw { position: absolute; right: 10px; bottom: 8px; margin: 0; font-size: 12px; color: var(--dim); pointer-events: none; }
.adj { display: grid; grid-template-columns: 1fr 1fr; margin: 10px -12px -16px; }
.adj .btn { border-radius: 0; margin: 0; min-height: 54px; font-size: 22px; font-weight: 800; }
.top-actions { margin-top: 12px; }
.top-actions .btn[hidden] { display: none; }
.ctl { margin-top: 22px; }
.ctl-h { margin: 0 0 8px; font: 700 13px 'Oswald', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cell { min-width: 0; }
.cell-name { margin: 0 0 6px; font-size: 13px; text-align: center; color: var(--dim); overflow-wrap: anywhere; }
.pair-row.flipped > :first-child { order: 2; }
.pair-row.flipped > :last-child { order: 1; }
.ctl .btn.block { width: 100%; }
.sv-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: center; }
.sv-name { font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sv-col .sv-m { max-width: none; width: 100%; font-size: 13px; letter-spacing: .06em; text-overflow: clip; }
.cards-modal { border: 0; border-radius: 12px; padding: 0; width: min(440px, 94vw); max-height: 90dvh; background: var(--panel); color: var(--line); }
.cards-modal::backdrop { background: rgba(6, 14, 18, .6); }
.cm-in { padding: 16px; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cm-head h2 { margin: 0; font-size: 17px; }
.live-foot { margin-top: 22px; }
.live-foot p { margin: 6px 0 0; }
.wo-row { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.wo-row .btn { width: 100%; }
.ctl > .card { margin-bottom: 12px; }
.serve-row .sv-m { max-width: none; width: 100%; min-height: 52px; padding: 8px 10px; font-size: 14px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; display: grid; place-items: center; text-align: center; }
.ctl .btn.block { min-height: 48px; }
.live-page > .small:first-child { margin: 0 0 4px; }
.live-page h1 { font-size: 22px; }
.live-page .court-rule { margin-top: 8px; }
.live-page .top-actions { margin-top: 8px; }
.live-page .scoreboard { margin-top: 8px !important; gap: 8px; }
.live-page .side { padding: 8px 8px 8px; }
.live-page .side .tname { min-height: 32px; font-size: 16px; }
.live-page .adj { margin: 6px -8px -8px; }
.live-page .adj .btn { min-height: 46px; font-size: 20px; }
.live-page .ctl { margin-top: 8px; }
.live-page .ctl-h { margin-bottom: 4px; }
.live-page .pair-row { gap: 8px; }
.live-page .serve-row { gap: 6px; }
.live-page .serve-row .sv-m { min-height: 44px; padding: 6px 8px; font-size: 13px; }
.live-page .ctl .btn.block { min-height: 44px; }
.live-page .wo-row { margin-top: 8px; padding-top: 8px; }
.live-page .live-foot { margin-top: 10px; }
.live-page .live-foot p { margin: 4px 0 0; }
.live-page > .row { margin-top: 8px !important; }
.live-page #cardsCard { margin-top: 10px !important; }
.emoji-bar { margin-top: 6px; align-items: center; }
.emoji-box { margin-top: 8px; }
emoji-picker.emoji-pick { width: 100%; height: 320px; --background: var(--panel); --border-color: var(--hairline); --input-border-color: var(--hairline); --input-font-color: var(--line); --button-hover-background: var(--panel-2); --button-active-background: var(--panel-3); --indicator-color: var(--gold); --category-font-color: var(--dim); --num-columns: 8; }
.ta-emoji { position: relative; }
.ta-emoji textarea { padding-right: 52px; }
.emoji-btn { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--dim); cursor: pointer; }
.emoji-btn:hover, .emoji-btn[aria-expanded=true] { color: var(--gold-ink); background: var(--tint-gold); }
.emoji-btn .ic { width: 22px; height: 22px; }
.score-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.score-wrap .score-sub { font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.maint-bar { position: sticky; top: 0; z-index: 90; padding: 8px 16px; text-align: center; font-size: 14px; background: var(--live); color: var(--on-live); }
.maint-bar a { color: inherit; text-decoration: underline; margin-left: 8px; }
.maint-box { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }
.maint-box legend { padding: 0 8px; font: 700 14px 'Oswald', sans-serif; color: var(--gold-ink); }
.admin-tabs, .admin-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; background: var(--panel-2); color: var(--line); font-weight: 600; font-size: 14px; text-decoration: none; min-height: 40px; }
.admin-tabs a[aria-current=page] { background: var(--gold); color: var(--on-gold); }
.admin-subtabs { margin-top: -6px; padding: 0 0 12px; border-bottom: 1px solid var(--hairline); }
.admin-subtabs a { padding: 6px 12px; border-radius: 99px; font-size: 13px; color: var(--dim); text-decoration: none; border: 1px solid var(--hairline); }
.admin-subtabs a:hover { color: var(--line); }
.admin-subtabs a[aria-current=page] { color: var(--line); border-color: var(--gold); background: var(--panel-2); font-weight: 600; }
.site-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.site-card { display: flex; flex-direction: column; gap: 6px; }
.site-card h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.site-card p { margin: 0; }
.site-card .row { margin-top: auto; padding-top: 10px; }
.site-form { display: grid; gap: 18px; max-width: 980px; }
.site-group { border: 0; margin: 0; min-width: 0; }
.site-group > legend { font: 700 15px 'Oswald', sans-serif; letter-spacing: .02em; color: var(--gold-ink, var(--gold)); padding: 0 0 8px; float: left; width: 100%; }
.site-group > legend + * { clear: both; }
.site-actions { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }
.site-reset { margin: 28px 0 8px; }
.rep { margin: 4px 0 18px; }
.rep-title { margin-bottom: 6px; }
.rep-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.rep-item { background: var(--panel-2); border-radius: 10px; padding: 12px 14px; }
.rep-item input[type=text], .rep-item select, .rep-item textarea { background: var(--panel-3); }
.rep-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rep-ctl { display: flex; gap: 6px; flex: none; }
.rep-ctl .btn[disabled] { opacity: .4; cursor: default; }
.btn.flip .ic { transform: rotate(180deg); }
.rep-body { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.rep-body .img-field, .rep-body .field:has(textarea) { grid-column: 1 / -1; }
.rep-inline { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rep-inline .rep-body { flex: 1 1 320px; grid-template-columns: 1fr; }
.rep-inline .field { margin-bottom: 8px; }
.img-field { display: grid; gap: 6px; justify-items: start; }
.img-prev { background: var(--panel-3); border-radius: 8px; padding: 6px; min-height: 48px; display: flex; align-items: center; }
.img-prev img { display: block; max-width: min(100%, 320px); max-height: 140px; height: auto; border-radius: 4px; }
.plan-forms { display: grid; gap: 18px; }
.plan-flags { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-top: 8px; }
.site-form code { background: var(--panel-3); padding: 1px 6px; border-radius: 4px; }
.errors:focus { outline: none; }
.reg-perks { margin: 18px 0 0; }
.reg-perks h2 { font-size: 16px; margin: 0 0 8px; }
.reg-perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reg-perks li { display: flex; gap: 8px; align-items: flex-start; color: var(--line); }
.reg-perks li .ic { color: var(--gold); margin-top: 2px; }
.testi { margin: 0; }
.testi blockquote { margin: 0; }
.testi blockquote p { margin: 0 0 10px; }
.testi figcaption { display: flex; flex-direction: column; font-size: 14px; }
.testi figcaption small { color: var(--dim); font-size: 13px; }
.reg-testi { margin: 22px 0 0; padding: 14px 16px; background: var(--panel-2); border-radius: var(--radius); }
.reg-testi blockquote p { font-style: italic; }
.plan-admin { display: grid; gap: 18px; margin-top: 18px; max-width: 980px; }
.kind-pick { border: 0; margin: 0 0 12px; padding: 0; display: flex; gap: 6px 24px; flex-wrap: wrap; }
.kind-pick .check { min-height: 40px; }
[data-kind][hidden] { display: none; }
.legal-wrap { max-width: 760px; }
.legal h1 { margin-bottom: 4px; }
.legal-body { margin-top: 18px; line-height: 1.65; }
.legal-body h2 { font-size: 20px; margin: 28px 0 8px; }
.legal-body h3 { font-size: 16px; margin: 20px 0 6px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 4px; }
.legal-body a, .contact-channels a { color: var(--gold-ink, var(--gold)); text-underline-offset: 3px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13px; }
.legal-links a { color: var(--dim); }
.legal-links a:hover, .legal-links a[aria-current=page] { color: var(--line); }
.legal .legal-links { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.site-foot { padding: 22px 16px 34px; border-top: 1px solid var(--hairline); }
.contact-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-channels li { display: flex; gap: 10px; align-items: flex-start; }
.contact-channels .ic { margin-top: 2px; color: var(--gold-ink, var(--gold)); }
.tn-page { max-width: 760px; margin-inline: auto; }
.tn-board { position: relative; margin-top: 14px; display: grid; gap: 10px; }
.tn-board.flipped { display: flex; flex-direction: column-reverse; }
.tn-mode { text-align: center; font: 700 14px 'Oswald', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tn-mode.hot { color: var(--gold-ink, var(--gold)); }
.tn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--panel); border-radius: var(--radius); padding: 14px 16px; border: 2px solid transparent; }
.tn-row.winner { border-color: var(--gold); }
.tn-team { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tn-name { font: 700 clamp(18px, 4.6vw, 26px)/1.15 'Oswald', sans-serif; overflow-wrap: anywhere; }
.tn-members { font-size: 13px; color: var(--dim); }
.tn-serve { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--gold-ink, var(--gold)); text-transform: uppercase; letter-spacing: .06em; }
.tn-serve .ic { width: 14px; height: 14px; }
.tn-sets { display: flex; gap: 6px; }
.tn-set { min-width: 32px; text-align: center; font: 600 clamp(22px, 6vw, 34px)/1 'Oswald', sans-serif; color: var(--dim); font-variant-numeric: tabular-nums; }
.tn-set.now, .tn-set.won { color: var(--line); }
.tn-set sup { font-size: .5em; margin-left: 1px; }
.tn-game { min-width: 76px; text-align: center; font: 700 clamp(40px, 12vw, 64px)/1 'Oswald', sans-serif; background: var(--panel-3); border-radius: 12px; padding: 10px 10px; color: var(--gold-ink, var(--gold)); font-variant-numeric: tabular-nums; }
.tn-pts { display: flex; gap: 12px; margin-top: 14px; }
.tn-pts.flipped { flex-direction: row-reverse; }
.tn-btn { flex: 1; min-height: 116px; border-radius: var(--radius); border: 2px solid var(--gold); cursor: pointer; background: var(--gold); color: var(--on-gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; font-family: inherit; transition: transform .1s var(--ease-out), filter .15s; }
.tn-btn-b { background: var(--panel-2); color: var(--line); }
.tn-btn small { opacity: .8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tn-btn b { font: 700 clamp(18px, 5vw, 26px)/1.15 'Oswald', sans-serif; text-align: center; overflow-wrap: anywhere; }
.tn-btn:active:not(:disabled) { transform: scale(.98); }
.tn-btn:disabled { opacity: .4; cursor: default; }
.tn-change { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font: 700 20px 'Oswald', sans-serif; letter-spacing: .06em; }
.tn-change[hidden] { display: none; }
.tn-tools { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.tn-first { margin-top: 14px; }
.tn-first[hidden] { display: none; }
.tn-first-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tn-first button[aria-pressed=true] { outline: 2px solid var(--gold); outline-offset: 1px; }
.tn-more summary { cursor: pointer; font-weight: 600; }
.small a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tree-tools { flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
  .tree-tools .grow, .tree-tools .ext { display: none; }
  .tree-tools .bl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tree-tools .btn { padding-inline: 10px; }
}
.zone-phase1 .zone-label { color: var(--line); }
.oc { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; font: 700 10px/1 'Inter', sans-serif; font-style: normal; vertical-align: middle; cursor: help; }
.b-match .r .oc { margin-left: 0; }
.oc-C { color: var(--win-ink); background: var(--tint-win); }
.oc-E { color: var(--out-ink); background: var(--tint-out); }
.oc-R { color: var(--gold-ink); background: var(--tint-gold); }
.tlink { color: inherit; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, currentColor 65%, transparent); }
.tlink:hover, .tlink:focus-visible { text-decoration: none; border-bottom-style: solid; border-bottom-color: currentColor; }
.row-ic { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; color: var(--dim); }
td [data-open-info].no-print, td a.no-print:has(.row-ic) { display: inline-block; }
td a.no-print:has(.row-ic):hover .row-ic, td [data-open-info]:hover .row-ic { color: var(--gold-ink); }
.place-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.place-row select { width: 100%; }
@media (max-width: 560px) { .place-row { grid-template-columns: 1fr; } }
.sb-grp-row { display: flex; align-items: center; gap: 2px; }
.sb-grp-row > .nav-link { flex: 1; min-width: 0; }
.sb-toggle { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--dim); cursor: pointer; }
.sb-toggle:hover { background: var(--panel-2); color: var(--line); }
.sb-toggle .ic { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
@media (max-width: 900px) { .sb-toggle { width: 44px; height: 44px; } }
.sb-grp:not(.open) .sb-toggle .ic { transform: rotate(-90deg); }
.sb-sub { display: grid; gap: 6px; margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--hairline); }
.sb-sub { display: none; }
.sb-grp.open .sb-sub { display: grid; }
.sb-find { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--panel); color: var(--line); font: inherit; font-size: 13.5px; }
.sb-tours { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: min(46vh, 420px); overflow-y: auto; scrollbar-width: thin; }
.nav-link.tour-item { align-items: flex-start; padding: 6px 8px; color: var(--line); }
.tour-item .t-name { display: grid; gap: 3px; min-width: 0; flex: 1; }
.tour-item .lbl { overflow-wrap: anywhere; line-height: 1.25; }
.tour-item .badge.small { justify-self: start; font-size: 11px; padding: 1px 8px; }
.sb-sub .badge.win { background: var(--tint-win); color: var(--win-ink); }
html.nav-collapsed .sb-toggle, html.nav-collapsed .sb-find, html.nav-collapsed .tour-item .badge, html.nav-collapsed .sb-grp-row .badge { display: none; }
html.nav-collapsed .sb-sub { display: grid; margin: 2px 0; padding-left: 0; border-left: 0; }
html.nav-collapsed .tour-item { align-items: center; }
.cat-ini.running { background: var(--tint-gold); color: var(--gold-ink); } .cat-ini.finished { background: var(--tint-win); color: var(--win-ink); }

.pub { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.pub-side { position: sticky; top: 16px; display: grid; gap: 14px; min-width: 0; }
.pub-art { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: var(--radius); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.pub-id h1 { margin: 0; overflow-wrap: anywhere; }
.pub-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.pub-facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pub-facts li { display: flex; align-items: flex-start; gap: 10px; color: var(--dim); font-size: 14.5px; line-height: 1.35; }
.pub-facts .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold-ink); }
.pub-desc { margin: 0; color: var(--dim); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pub-actions { display: grid; gap: 8px; }
.pub-actions .btn { width: 100%; justify-content: center; }
.pub-rules p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pub-main { min-width: 0; }
@media (max-width: 900px) {
  .pub { grid-template-columns: 1fr; }
  .pub-side { position: static; }
  .pub-art { width: auto; max-width: 100%; max-height: 42vh; margin: 0 auto; }
}
.promo-preview { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0 10px; box-shadow: 0 0 0 1px var(--hairline); }

.fchat { position: fixed; right: 18px; bottom: 18px; z-index: 45; }
body:has(.sp-bar) .fchat { bottom: 76px; }
body:has(.fchat) .to-top { bottom: 84px; }
body:has(.fchat):has(.sp-bar) .to-top { bottom: 142px; }
.fchat-fab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font: 700 15px 'Inter', sans-serif; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32); }
.fchat-fab:hover { text-decoration: none; filter: brightness(1.07); }
.fchat-fab .ic { width: 22px; height: 22px; }
.fchat-badge { position: absolute; top: -7px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--live); color: var(--on-live); font: 700 12px/22px 'Inter', sans-serif; text-align: center; }
.fchat-panel { position: absolute; right: 0; bottom: 66px; width: min(380px, calc(100vw - 24px)); height: min(540px, 74vh); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--panel); color: var(--line); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--hairline); }
.fchat-panel[hidden] { display: none; }
.fchat.admin { z-index: 44; }
.fchat-panel { transform-origin: bottom right; }
.fchat-panel:not([hidden]) { animation: fchat-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fchat-panel.closing { animation: fchat-out 0.17s ease-in both; }
.fchat-fab { transition: transform 0.15s ease, filter 0.15s ease; }
.fchat-fab:active { transform: scale(0.95); }
@keyframes fchat-in { from { opacity: 0; transform: translateY(16px) scale(0.94); } }
@keyframes fchat-out { to { opacity: 0; transform: translateY(16px) scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .fchat-panel:not([hidden]), .fchat-panel.closing { animation: none; } .fchat-fab { transition: none; } }
.fchat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 16px; background: var(--gold); color: var(--on-gold); }
.fchat-head strong { display: block; font-size: 16px; }
.fchat-head small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; opacity: 0.85; }
.fchat-close { flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.fchat-close:hover { background: rgba(0, 0, 0, 0.12); }
.fchat-list { flex: 1; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 12px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.fchat-msg { align-self: flex-start; max-width: 88%; padding: 8px 12px 9px; border-radius: 4px 16px 16px 16px; background: var(--panel-2); }
.fchat-msg.mine { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: var(--tint-gold); }
.fchat-author { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--gold-ink); }
.fchat-msg p { margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.fchat-note, .fchat-empty { align-self: center; max-width: 92%; text-align: center; font-size: 13px; line-height: 1.35; color: var(--dim); }
.fchat-form { display: grid; gap: 6px; padding: 10px; border-top: 1px solid var(--hairline); }
.fchat-form input[name="author"] { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.fchat-row { display: flex; align-items: flex-end; gap: 6px; }
.fchat-row textarea { flex: 1; min-height: 46px; max-height: 110px; padding: 10px 12px; resize: none; }
.fchat-icon, .fchat-send { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; }
.fchat-icon { background: var(--panel-2); color: var(--dim); }
.fchat-icon:hover { color: var(--line); }
.fchat-send { background: var(--gold); color: var(--on-gold); }
.fchat-send:disabled { opacity: 0.6; cursor: default; }
.fchat-emoji { max-height: 250px; overflow: auto; border-radius: 12px; }
.fchat-emoji[hidden] { display: none; }
.fchat-error { margin: 0; font-size: 13px; font-weight: 600; color: var(--out-ink); }
.fchat-error[hidden] { display: none; }
.fchat-count { margin: 0; font-size: 12px; color: var(--dim); }
@media (max-width: 520px) {
  .fchat { right: 12px; bottom: 12px; }
  body:has(.sp-bar) .fchat { bottom: 70px; }
  .fchat-panel { position: fixed; inset: auto 8px 72px 8px; width: auto; height: min(72vh, 540px); }
}

.fchat-msg.pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
.fchat-actions { display: flex; gap: 6px; margin-top: 8px; }
.fchat-del { margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.fchat-del:hover { color: var(--out-ink); }
.fchat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--hairline); font-size: 13px; }
.fchat-foot [hidden] { display: none; }
.fchat-fab.attn { animation: fchat-pulse 1s ease-in-out 3; }
@keyframes fchat-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .fchat-fab.attn { animation: none; } }

.fchat-mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); font-size: 14px; font-weight: 600; }
.fchat-switch { flex: none; position: relative; width: 46px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: var(--panel-3, #888); box-shadow: inset 0 0 0 1px var(--hairline); cursor: pointer; transition: background-color 0.2s ease; }
.fchat-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.fchat-switch[aria-checked="true"] { background: var(--gold); }
.fchat-switch[aria-checked="true"] span { transform: translateX(18px); }
.fchat-switch:disabled { opacity: 0.6; cursor: default; }
.fchat-switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .fchat-switch, .fchat-switch span { transition: none; } }

.amen-field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.amen-field legend { padding: 0; margin: 20px 0 10px; font-size: 14px; font-weight: 700; color: var(--line); }
.amen-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.amen-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 8px 12px; border: 1.5px solid var(--hairline); border-radius: 10px; background: var(--panel-2); color: var(--line); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.amen-opt input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; }
.amen-opt .ic { width: 18px; height: 18px; flex: none; color: var(--gold-ink); }
.amen-opt:hover { border-color: var(--gold); }
.amen-opt:has(input:checked) { border-color: var(--gold); background: var(--tint-gold); }
.amen-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pub-amen h2, .pub-block h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--line); }
.amen-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.amen-list li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14.5px; line-height: 1.3; }
.amen-list .ic { flex: none; width: 18px; height: 18px; color: var(--gold-ink); }
.pub-art-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); background: none; cursor: zoom-in; }
.pub-art-btn .pub-art { transition: filter .15s; }
.pub-art-btn:hover .pub-art { filter: brightness(1.05); }
.pub-art-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pub-art-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.62); color: #fff; pointer-events: none; }
.pub-art-zoom .ic { width: 20px; height: 20px; }
dialog.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(6, 10, 14, 0.94); color: #fff; }
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: rgba(6, 10, 14, 0.94); }
dialog.lightbox img { max-width: 96vw; max-height: 94dvh; width: auto; height: auto; object-fit: contain; border-radius: 6px; cursor: zoom-out; }
.lightbox-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close .ic { width: 22px; height: 22px; }
.btn.whats { background: #1faa59; color: #fff; border-color: transparent; }
.btn.whats:hover { filter: brightness(1.08); }
.rules-link { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .amen-opt, .pub-art-btn .pub-art { transition: none; } }

.avatar { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; background: var(--panel-2); box-shadow: 0 0 0 1px var(--hairline); }
.reg-ath { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.reg-ath small { font-size: 12px; }

.reg-wrap { max-width: 1120px; }
.reg-page { display: grid; gap: 16px 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "when" "window" "cats" "form" "more" "amen" "insc"; align-items: start; }
.reg-hero { grid-area: hero; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reg-art-btn { flex: none; padding: 0; border: 0; border-radius: 14px; background: none; cursor: zoom-in; }
.reg-art-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.reg-art { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--hairline); }
.reg-hero-text { flex: 1; min-width: 12rem; }
.reg-hero-text h1 { margin: 2px 0 0; overflow-wrap: anywhere; }
.reg-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); }
.reg-share .btn { white-space: nowrap; }
.reg-when { grid-area: when; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.reg-when-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.reg-when-item .ic { flex: none; width: 28px; height: 28px; color: var(--gold-ink); }
.reg-when-item > div { display: grid; gap: 2px; min-width: 0; }
.reg-when-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.reg-when-item strong { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.reg-time { white-space: nowrap; }
.reg-window { grid-area: window; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); font-weight: 600; }
.reg-window .ic { flex: none; width: 20px; height: 20px; color: var(--gold-ink); }
.reg-window.is-off { background: var(--tint-gold); }
.reg-block { padding: 16px; border-radius: var(--radius); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.reg-block h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--line); }
.reg-cats { grid-area: cats; }
.reg-cat-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reg-cat-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.reg-cat-main { display: grid; gap: 2px; flex: 1; min-width: 10rem; }
.reg-fee { display: grid; justify-items: end; font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--line); }
.reg-fee small { font-size: 11px; font-weight: 600; color: var(--dim); }
.reg-form-area { grid-area: form; display: grid; gap: 14px; min-width: 0; }
.reg-form-h { margin: 0 0 14px; font-size: 20px; }
.reg-athletes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-bottom: 8px; }
.reg-athlete { margin: 0; padding: 12px 14px 4px; border: 1.5px solid var(--hairline); border-radius: 12px; min-width: 0; }
.reg-athlete legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.reg-athlete input[type=file] { max-width: 100%; }
.reg-more { grid-area: more; display: grid; gap: 14px; min-width: 0; }
.reg-more .pub-amen h2 { margin-top: 0; }
.reg-rules { margin-top: 12px; }
.reg-rules p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reg-insc-cat { margin: 14px 0 6px; font-size: 15px; }
.reg-insc-cat:first-of-type { margin-top: 0; }
.reg-insc { display: grid; gap: 4px; margin: 0; padding-left: 20px; }
.reg-insc li { overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .reg-page { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-areas: "hero form" "when form" "window form" "cats form" "more form"; grid-template-rows: auto auto auto auto 1fr; }
  .reg-hero { flex-direction: column; align-items: flex-start; }
  .reg-art { width: 100%; height: auto; max-width: 400px; aspect-ratio: 1 / 1; }
  .reg-art-btn { width: 100%; max-width: 400px; }
  .reg-hero-text { min-width: 0; }
  .reg-when { grid-template-columns: 1fr; }
}

.avatars { display: inline-flex; flex: none; vertical-align: middle; margin-right: 8px; }
.avatars .avatar { width: var(--av, 28px); height: var(--av, 28px); }
.avatars .avatar + .avatar { margin-left: calc(var(--av, 28px) * -0.3); box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--hairline); }
.team-head { display: flex; align-items: center; gap: 16px; }
.team-head .avatars { margin-right: 0; }
.team-edit .f-photo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-edit .f-photo input[type=file] { max-width: 14rem; font-size: 12px; }
.team-edit .f-photo .avatars { margin-right: 0; }

input[type=time], input[type=date], input[type=datetime-local] { font-variant-numeric: tabular-nums; cursor: text; }
input[type=time] { max-width: 11rem; font-size: 20px; font-weight: 700; letter-spacing: .02em; padding-inline: 14px; }
input[type=time]::-webkit-calendar-picker-indicator, input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { cursor: pointer; padding: 6px; border-radius: 6px; opacity: .75; }
input[type=time]::-webkit-calendar-picker-indicator:hover, input[type=date]::-webkit-calendar-picker-indicator:hover, input[type=datetime-local]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--tint-gold); }
input[type=time]::-webkit-datetime-edit-hour-field:focus, input[type=time]::-webkit-datetime-edit-minute-field:focus { background: var(--tint-gold); color: var(--gold-ink); border-radius: 4px; outline: none; }
html[data-mode="escuro"] input[type=time], html[data-mode="escuro"] input[type=date], html[data-mode="escuro"] input[type=datetime-local] { color-scheme: dark; }
html[data-mode="claro"] input[type=time], html[data-mode="claro"] input[type=date], html[data-mode="claro"] input[type=datetime-local] { color-scheme: light; }
.uni-editor { display: grid; gap: 14px; }
.uni-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.uni-item { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.uni-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.uni-name { flex: 1; min-width: 12rem; }
.uni-name label, .uni-adders label { margin-bottom: 4px; }
.uni-groups { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; }
.uni-group { margin: 0; padding: 8px 10px 10px; border: 1.5px solid var(--hairline); border-radius: 12px; min-width: 0; }
.uni-group legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--dim); }
.uni-sizes-row { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-bottom: 4px; }
.uni-sizes-row:empty { display: none; }
.uni-size { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 0 8px 0 2px; color: var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.uni-size input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; }
.uni-size:has(input:checked) { font-weight: 800; }
.uni-size:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.uni-custom { display: flex; gap: 8px; }
.uni-custom input { min-width: 0; }
.uni-custom .btn { flex: none; }
.uni-item select, .uni-item input[type=text] { background: var(--panel); }
.promo-preview { width: auto; max-height: 220px; }

.amen-custom { display: grid; gap: 8px; margin-top: 12px; max-width: 640px; }
.amen-custom-label { font-size: 13px; color: var(--dim); }
.amen-custom .uni-chips:empty { display: none; }
.amen-custom .uni-custom { max-width: 520px; }

.round-nav { position: sticky; top: 0; z-index: 8; display: flex; gap: 6px; margin: 0 0 8px; padding: 6px 0; background: var(--bg); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.round-nav[hidden] { display: none; }
.round-chip { flex: none; min-height: 38px; padding: 0 16px; border: 1.5px solid var(--hairline); border-radius: 999px; background: var(--panel-2); color: var(--dim); font: 700 13px 'Inter', sans-serif; white-space: nowrap; cursor: pointer; scroll-snap-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.round-chip:hover { color: var(--line); border-color: var(--gold); }
.round-chip[aria-current="true"] { background: var(--tint-gold); color: var(--gold-ink); border-color: var(--gold); }
.round-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tree-wrap.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.tree-wrap.is-dragging .b-match { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .tree-wrap { cursor: grab; } .tree-wrap .b-match { cursor: pointer; } }
@media (prefers-reduced-motion: reduce) { .round-chip { transition: none; } }

.uni-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.uni-chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); font-weight: 700; font-size: 14px; }
.uni-chip button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--gold-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.uni-chip button:hover { background: var(--panel); }
.uni-chip button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.uni-sum { display: grid; gap: 10px; }
.uni-sum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.uni-sum-row > strong { min-width: 8rem; }
.uni-sum-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 1; }
.uni-sum-sizes li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); font-weight: 700; }
.uni-sum-sizes li b { font-size: 16px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.uni-sum-sizes li.is-zero { opacity: .45; }
.uni-sum-total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.team-uni { flex-basis: 100%; margin-top: 4px; }
.team-uni > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--dim); padding: 4px 0; }
.team-uni[open] > summary { margin-bottom: 6px; }
.team-uni-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.team-uni-player { margin: 0; padding: 6px 10px 8px; border: 1.5px solid var(--hairline); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.team-uni-player legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--line); }
.team-uni-player label { display: grid; gap: 2px; margin: 0; font-size: 12px; }
.team-uni-player select { min-height: 36px; padding: 4px 8px; font-size: 14px; }
.np-size { margin-top: 6px; }
.uni-missing { padding: 10px 12px; border-radius: 10px; background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.uni-missing > summary { cursor: pointer; }
.uni-missing ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.uni-missing li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.uni-sum-sizes li.is-stale { box-shadow: inset 0 0 0 1.5px var(--out); color: var(--out-ink); }
.uni-cats { margin: 0; padding: 8px 10px 10px; border: 1.5px solid var(--hairline); border-radius: 12px; min-width: 0; }
.uni-cats legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--dim); }
.uni-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--line); }
.uni-note .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-ink); }
.uni-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 14px 0; padding: 14px 18px; border-radius: var(--radius); background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.uni-prompt-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); color: var(--gold-ink); }
.uni-prompt-ic .ic { width: 24px; height: 24px; }
.uni-prompt-text { flex: 1; min-width: 14rem; }
.uni-prompt-text h2 { margin: 0 0 2px; font-size: 16px; }
.uni-prompt-text p { margin: 0; color: var(--line); font-size: 14px; line-height: 1.4; }
.uni-prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.uni-prompt-actions form { margin: 0; }

.pitch-wrap { max-width: 1120px; }
.pitch { display: grid; gap: clamp(20px, 3vw, 36px); }
.pitch-hero { display: grid; gap: clamp(18px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.pitch-art { min-width: 0; }
.pitch-art .pub-art-btn { max-width: 440px; margin-inline: auto; }
.pitch-art .pub-art { max-height: 520px; }
.pitch-art-ph { display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 440px; margin-inline: auto; border-radius: var(--radius); background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-ink); }
.pitch-art-ph svg, .pitch-art-ph .ic { width: 38%; height: 38%; }
.pitch-intro { display: grid; gap: 16px; min-width: 0; align-content: start; }
.pitch-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pitch-intro h1 { margin: 0; font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pitch-facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pitch-facts li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pitch-facts li > span:last-child { display: grid; gap: 1px; min-width: 0; }
.pitch-facts strong { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.2; overflow-wrap: anywhere; }
.pitch-facts small { font-size: 13.5px; color: var(--dim); }
.pitch-date { display: grid; place-items: center; align-content: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--gold); color: var(--on-gold); line-height: 1; }
.pitch-date b { font-size: 1.5rem; font-weight: 800; }
.pitch-date i { margin-top: 2px; font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pitch-ic { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--tint-gold); color: var(--gold-ink); }
.pitch-ic .ic { width: 26px; height: 26px; }
.pitch-desc { margin: 0; color: var(--dim); line-height: 1.55; font-size: 1.02rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.pitch-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pitch-cta .btn { min-height: 48px; }
.btn.pitch-main { min-height: 52px; padding-inline: 26px; font-size: 1.05rem; }
.pitch-how h2, .pitch-block h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--line); }
.pitch-how ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pitch-how li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.pitch-how p { margin: 4px 0 0; color: var(--dim); font-size: 14px; line-height: 1.4; }
.pitch-step { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 800 15px 'Oswald', sans-serif; }
.pitch-block .pub-amen h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--line); }
.pitch-block .amen-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; }
.pitch-rules > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.pitch-rules p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.pitch-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: clamp(20px, 3vw, 34px); border-radius: var(--radius); background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.pitch-final h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.pitch-final p { margin: 0; color: var(--line); max-width: 52ch; }
.pitch-sticky { display: none; }
@media (min-width: 900px) {
  .pitch-hero { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); }
  .pitch-art .pub-art-btn { margin-inline: 0; }
}
@media (max-width: 700px) {
  .pitch-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--hairline), 0 -8px 24px rgba(0, 0, 0, .18); }
  .pitch-sticky .btn { width: 100%; justify-content: center; }
  body:has(.pitch-sticky) .fchat { bottom: 86px; }
  body:has(.pitch-sticky) .to-top { bottom: 150px; }
  .pitch { padding-bottom: 72px; }
}
.pitch .reg-cats, .pitch .reg-window { grid-area: auto; }
.pitch-cols { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.pitch-cols:empty { display: none; }
@media (min-width: 900px) { .pitch-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prize-list { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.prize-row { display: grid; gap: 10px; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) auto; align-items: end; }
.prize-row label { margin-bottom: 3px; }
@media (max-width: 640px) { .prize-row { grid-template-columns: 1fr auto; } .prize-row .prize-place-field { grid-column: 1 / -1; } }
.prizes { display: grid; gap: 12px; }
.prizes > h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: var(--line); }
.prizes > h2 .ic { width: 18px; height: 18px; color: var(--gold-ink); }
.prize-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.prize-cat { padding: 16px 18px; border-radius: var(--radius); background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.prize-cat h3 { margin: 0 0 8px; font-size: 1.1rem; }
.prize-cat ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.prize-cat li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.prize-place { min-width: 5.2rem; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--gold-ink); }
.prize-cat li strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.prize-cat li.is-first strong { font-size: 1.2rem; }
.prizes.is-compact .prize-cats { grid-template-columns: 1fr; gap: 8px; }
.prizes.is-compact .prize-cat { padding: 12px 14px; }
.prizes.is-compact .prize-cat h3 { font-size: 1rem; margin-bottom: 4px; }
.reg-cat-prize { display: flex; align-items: flex-start; gap: 6px; margin-top: 2px; color: var(--gold-ink); font-weight: 600; }
.reg-cat-prize .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.uni-pieces { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.uni-pieces li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.uni-pieces li > strong { min-width: 7rem; }
.uni-pieces .badge { margin-left: auto; }
.uni-empty-card p { max-width: 62ch; color: var(--line); }
.uni-alert { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.uni-cat { display: grid; gap: 12px; }
.uni-group { display: grid; gap: 8px; }
.uni-group h3 { margin: 0; font-size: 15px; font-weight: 700; }
.uni-group.is-missing { padding: 10px 12px 12px; border-radius: 12px; background: var(--tint-gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.uni-ath-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.uni-ath { display: grid; align-content: start; gap: 8px; padding: 10px 12px 12px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); min-width: 0; }
.uni-ath-who { display: grid; gap: 1px; min-width: 0; }
.uni-ath-who strong { overflow-wrap: anywhere; }
.uni-kit { font-size: 13px; color: var(--dim); }
.uni-pick { display: grid; gap: 8px; margin: 0; }
.uni-f { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 4px; }
.uni-f legend { padding: 0; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--dim); }
.uni-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.uni-pill { position: relative; margin: 0; cursor: pointer; }
.uni-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.uni-pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.uni-pill:hover span { box-shadow: inset 0 0 0 1.5px var(--gold); }
.uni-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.uni-c0 { --pc: var(--gold); }
.uni-c1 { --pc: var(--prata); }
.uni-c2 { --pc: var(--bronze); }
.uni-c3 { --pc: var(--win); }
.uni-c4 { --pc: var(--link, var(--gold-ink)); }
.uni-c5 { --pc: var(--out); }
.uni-f legend { display: inline-flex; align-items: center; gap: 6px; }
.uni-f legend::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--gold)); }
.uni-pill span { background: color-mix(in srgb, var(--pc, var(--gold)) 10%, var(--panel)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pc, var(--gold)) 55%, transparent); }
.uni-pill:hover span { box-shadow: inset 0 0 0 2px var(--pc, var(--gold)); }
.uni-pill input:checked + span { background: color-mix(in srgb, var(--pc, var(--gold)) 38%, var(--panel)); color: var(--line); box-shadow: inset 0 0 0 2.5px var(--pc, var(--gold)); }
.uni-pill input:checked + span::before { content: '\2713'; margin-right: 6px; font-weight: 800; }
.uni-sum-row[class*="uni-c"] { box-shadow: inset 4px 0 0 var(--pc); }
.uni-f.is-empty legend { color: var(--gold-ink); }
.uni-f.is-empty legend::after { content: ' · escolha'; font-weight: 400; }
.uni-edit > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--gold-ink); padding: 2px 0; }
.uni-edit[open] > summary { margin-bottom: 6px; }
.uni-pick[data-busy] { opacity: 0.6; }
@media (max-width: 820px) { .uni-ath-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .uni-pill span { transition: none; } }
.reg-pair { display: flex; align-items: center; gap: 10px; }
.cat-c0 { --pc: var(--gold); }
.cat-c1 { --pc: var(--prata); }
.cat-c2 { --pc: var(--out); }
.cat-c3 { --pc: var(--bronze); }
.cat-c4 { --pc: color-mix(in srgb, var(--gold) 50%, var(--prata)); }
.cat-c5 { --pc: color-mix(in srgb, var(--out) 55%, var(--prata)); }
.cat-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--gold)); }
.cat-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.cat-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.sched-tbl tr[class*="cat-c"]:not(.is-live):not(.dragging):not(.sr-ph) td { background: color-mix(in srgb, var(--pc) 9%, transparent); }
.sched-tbl tr[class*="cat-c"] td:first-child { box-shadow: inset 5px 0 0 var(--pc); }
.sched-tbl tr[class*="cat-c"]:not(.is-live):not(.dragging):not(.sr-ph):hover td { background: color-mix(in srgb, var(--pc) 16%, transparent); }
.pin-row[class*="cat-c"] { box-shadow: inset 5px 0 0 var(--pc); }
.pin-row.is-live[class*="cat-c"] { box-shadow: inset 5px 0 0 var(--pc), inset 0 0 0 1.5px var(--live); }
.pin-tag { display: inline-flex; align-items: center; gap: 6px; }
.sched-filters { display: grid; gap: 10px; margin: 0 0 12px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; color: var(--line); cursor: pointer; background: color-mix(in srgb, var(--pc) 12%, var(--panel)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pc) 55%, transparent); transition: background-color 0.15s ease; }
.cat-chip:hover { box-shadow: inset 0 0 0 2px var(--pc); }
.cat-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--pc) 38%, var(--panel)); box-shadow: inset 0 0 0 2.5px var(--pc); }
.cat-chip[aria-pressed="true"]::before { content: '\2713'; font-weight: 800; }
.cat-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sched-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.sched-tbl tr[hidden] { display: none !important; }
.sched-tbl.is-filtered .sr-handle { visibility: hidden; }
.sched-empty { margin: 0; padding: 18px 16px; text-align: center; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .cat-chip { transition: none; } }
input[type=file] { width: 100%; max-width: 100%; padding: 8px; border: 1.5px dashed var(--hairline); border-radius: 10px; background: transparent; color: var(--dim); font: inherit; font-size: 14px; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--line); font: 700 14px 'Inter', sans-serif; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: color-mix(in srgb, var(--gold) 18%, var(--panel-2)); }
.team-edit .f-photo input[type=file] { width: auto; max-width: 100%; border: 0; padding: 0; }
@media (max-width: 700px) {
  .tbl-stack td { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .tbl-stack td > * + * { grid-column: 2; }
  .tbl-stack td .reg-note { grid-column: 1 / -1; margin-top: 8px; }
  .tbl-stack td .reg-note input { min-width: 0; flex: 1; }
  .reg-actions form { flex: 1 1 6.2rem; }
  .reg-actions .btn { width: 100%; }
  .reg-cats .flow-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 12px 0; }
  .reg-cats .flow-rows li .rc-spots { grid-column: 1 / -1; grid-row: 2; }
  .reg-cats .flow-rows li .rc-act { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 14px; margin-top: 4px; }
  .reg-cats .flow-rows li .rc-act form { flex: 1; }
  .reg-cats .flow-rows li .rc-act form .btn { width: 100%; }
  .bulk-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bulk-bar .btn { width: 100%; }
  #team-list li { flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 0; }
  #team-list li .tnum { width: auto; flex: 1; }
  #team-list li > .btn { order: 2; margin-left: auto; }
  #team-list li .team-edit { order: 3; flex: 1 1 100%; }
  .team-edit .f-name { flex: 1 1 100%; }
  .team-edit .f-player { flex: 1 1 calc(50% - 4px); }
  .team-edit .f-seed, .team-edit .f-serie { flex: 1 1 calc(50% - 4px); }
  .team-edit .f-photo { flex: 1 1 100%; flex-wrap: nowrap; }
  .team-edit .f-photo input[type=file] { flex: 1; min-width: 0; }
  .team-uni { flex: 1 1 100%; }
  .uni-sum-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .uni-sum-row > strong { min-width: 0; }
  .uni-sum-row .uni-sum-total { margin-left: 0; text-align: right; }
  .uni-sum-row .uni-sum-sizes { grid-column: 1 / -1; grid-row: 2; }
  .pitch-cta .btn, .pitch-final .btn { width: 100%; justify-content: center; }
  .pitch-cta, .pitch-final { display: grid; grid-template-columns: minmax(0, 1fr); }
}
.topbar { position: sticky; top: 0; z-index: 50; }
body:has(.topbar) .round-nav { top: 56px; }
body:has(.topbar) .pub-side { top: 72px; }
html:has(.topbar) { scroll-padding-top: 64px; }
.sw-form { margin: 0; flex: none; display: inline-flex; }
.sw { flex: none; position: relative; width: 46px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: var(--panel-3, #888); box-shadow: inset 0 0 0 1px var(--hairline); cursor: pointer; transition: background-color 0.2s ease; }
.sw span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.sw[aria-checked="true"] { background: var(--gold); }
.sw[aria-checked="true"] span { transform: translateX(18px); }
.sw:disabled { opacity: 0.45; cursor: not-allowed; }
.sw[data-busy] { opacity: 0.7; cursor: progress; }
.sw:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sw-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; }
.sw-row + .sw-row, .pt-card .sw-row + .pt-link { border-top: 1px solid var(--hairline); }
.sw-text { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 14.5px; font-weight: 600; }
.sw-text small { font-size: 12.5px; font-weight: 400; color: var(--dim); }
.sw-row.is-off .sw-text { opacity: 0.55; }
.sw-row.sw-sub { padding-left: 30px; }
.sw-live { margin: 0; min-height: 0; font-size: 13px; color: var(--dim); }
.sw-live:empty { display: none; }
.sw-live.bad { color: var(--out-ink); }
@media (prefers-reduced-motion: reduce) { .sw, .sw span { transition: none; } }
.sw-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 300; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px; background: var(--panel); color: var(--line); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--hairline); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.sw-toast.on { opacity: 1; transform: translate(-50%, 0); }
.sw-toast.bad { box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1.5px var(--out); }
.sw-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sw-line .sw-text { flex: 1; min-width: 12rem; }
@media (prefers-reduced-motion: reduce) { .sw-toast { transition: none; } }
.sw-stack { display: grid; gap: 4px; margin-top: 10px; max-width: 560px; }
.sw-stack .sw-line { padding: 6px 0; border-top: 1px solid var(--hairline); }
.tbl td .sw-line { flex-wrap: nowrap; }
.reg-insc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: start; }
.reg-insc-box { padding: 12px 14px 14px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); min-width: 0; }
.reg-insc-box .reg-insc-cat { margin: 0 0 8px; }
.reg-insc-box .reg-insc { padding-left: 22px; }
.reg-insc-box .reg-insc.is-long { display: block; columns: 2 13rem; column-gap: 28px; }
.reg-insc-box .reg-insc li { break-inside: avoid; padding: 2px 0; }
.reg-insc-area { grid-area: insc; }
.pitch-cols .pitch-insc { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .reg-page { grid-template-areas: "hero form" "when form" "window form" "cats form" "more form" "insc insc"; grid-template-rows: auto auto auto auto 1fr auto; }
}
.reg-amen-area { grid-area: amen; }
.reg-amen-area .amen-list, .pitch-amen .amen-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px 20px; }
.pitch-cols .pitch-amen { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .reg-page { grid-template-areas: "hero form" "when form" "window form" "cats form" "more form" "amen amen" "insc insc"; grid-template-rows: auto auto auto auto 1fr auto auto; }
}
.ath-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--tint-gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); font-size: 14px; }
.ath-bar .ic { flex: none; width: 18px; height: 18px; color: var(--gold-ink); }
.ath-bar span { flex: 1; min-width: 12rem; }
.ath-bar a { font-weight: 700; white-space: nowrap; }
.ath-wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.ath-wrap h1 { margin: 4px 0 0; }
.ath-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.ath-code { font-size: 28px; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.ath-reg { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.ath-reg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ath-reg-head .ath-num { font-family: 'Oswald', sans-serif; font-size: 20px; }
.ath-reg-head .grow { min-width: 12rem; }
.ath-reg-head .avatar { width: 48px; height: 48px; }
.ath-edit > summary { cursor: pointer; font-weight: 700; color: var(--gold-ink); padding: 6px 0; }
.ath-edit form { display: grid; gap: 12px; margin-top: 10px; }
.ath-pair { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ath-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ath-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
@media (max-width: 600px) { .ath-actions .btn { width: 100%; } .ath-reg-head .badge { margin-left: 0; } }
.ath-group { display: grid; gap: 12px; }
.ath-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.ath-group-head h2 { margin: 0; font-size: 20px; }
.ath-group-head .grow { min-width: 12rem; }
.reg-extra-box { display: grid; gap: 10px; margin-bottom: 12px; }
.reg-extra { margin: 0; }
.reg-extra-row { display: flex; gap: 8px; align-items: center; }
.reg-extra-row select { flex: 1; min-width: 0; }
.reg-also { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.reg-also ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.auto-rules { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14.5px; }
.auto-rules li { padding: 8px 12px; border-radius: 10px; background: var(--tint-gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
.reg-col { display: contents; }
@media (min-width: 1200px) {
  .reg-wrap { max-width: 1560px; }
  .reg-page { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(300px, 420px); grid-template-areas: "info form side" "amen amen amen" "insc insc insc"; grid-template-rows: auto auto auto; gap: 20px 32px; }
  .reg-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
  .reg-col-info { grid-area: info; }
  .reg-col-side { grid-area: side; }
  .reg-col > * { grid-area: auto; }
}
.kebab[data-open] { z-index: 40; }
@media (min-width: 1200px) {
  .pitch-wrap { max-width: 1560px; }
  .pitch { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); column-gap: 32px; align-items: start; }
  .pitch > * { grid-column: 1 / -1; }
  .pitch > .pitch-hero { grid-column: 1; grid-row: 1; }
  .pitch > .reg-cats { grid-column: 2; grid-row: 1; }
  .pitch-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pitch-cols .pitch-insc { grid-column: span 2; }
}
.reg-block-form { display: grid; gap: 10px; }
.reg-block-form + .reg-block-form, [data-extra-list] > .reg-block-form { margin-top: 6px; padding-top: 16px; border-top: 1.5px dashed var(--hairline); }
.reg-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uni-wrap { margin-top: 4px; }
.uni-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--dim); }
.uni-picker { display: grid; gap: 8px; }
.uni-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); }
.uni-row[hidden] { display: none; }
.uni-check { flex: 1; min-width: 9rem; min-height: 36px; margin: 0; }
.uni-check span { font-weight: 600; }
.uni-price { margin-left: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.uni-row select { flex: 0 1 9rem; min-height: 38px; padding: 4px 8px; font-size: 14px; }
.uni-row.is-single .uni-check input { display: none; }
.uni-total { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; background: var(--tint-gold); }
.uni-price-field { flex: 0 1 11rem; }
.uni-price { white-space: nowrap; }
.uni-sum-value { font-weight: 700; color: var(--gold-ink); }
.uni-grand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--tint-gold); }
.uni-grand strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.uni-grand small { flex-basis: 100%; }
.uni-cat-value { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.uni-pieces .uni-price { font-style: normal; font-weight: 700; color: var(--gold-ink); }
.f-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1 1 100%; min-width: 0; }
.team-edit .f-photo .photo-btn { white-space: nowrap; }
.photo-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-name:empty { display: none; }
.tr-sel { width: 20px; }
@media (min-width: 1000px) {
  #team-list.list { display: grid; gap: 8px; margin-top: 10px; }
  #team-list li.team-row { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; align-items: start; gap: 8px 14px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hairline); }
  #team-list li.team-row .pick { margin-top: 12px; }
  #team-list li.team-row .tnum { width: auto; padding-top: 10px; font-size: 18px; }
  #team-list li.team-row > .btn { margin-top: 2px; }
  #team-list .team-edit { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(190px, 0.7fr) 84px 120px; gap: 8px 12px; align-items: start; }
  #team-list .team-edit .f-players { flex: none; grid-column: 1; grid-row: 1; }
  #team-list .team-edit .f-name { grid-column: 2; grid-row: 1; flex: none; }
  #team-list .team-edit .f-photo { grid-column: 3; grid-row: 1; flex-wrap: wrap; min-height: 44px; }
  #team-list .team-edit .f-seed { grid-column: 4; grid-row: 1; flex: none; }
  #team-list .team-edit .f-serie { grid-column: 5; grid-row: 1; flex: none; }
  #team-list .team-edit .badge { grid-column: 4 / span 2; grid-row: 1; justify-self: start; margin-top: 10px; }
  #team-list .team-edit .team-uni { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  #team-list .team-edit input[type=text], #team-list .team-edit input[type=number] { min-height: 44px; }
  .team-uni > summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); list-style: none; }
}
.f-photo { display: grid; justify-items: center; align-content: start; gap: 4px; width: 64px; flex: none; }
.photo-circle { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0; border-radius: 50%; overflow: hidden; cursor: pointer; color: var(--dim); background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.photo-circle:not(.has-photo) { box-shadow: inset 0 0 0 1.5px var(--hairline), inset 0 0 0 4px var(--panel-2); border: 1.5px dashed var(--dim); }
.photo-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-circle .ic { width: 22px; height: 22px; }
.photo-circle.has-photo .ic { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity .15s; }
.photo-circle:hover, .photo-circle:focus-within { color: var(--gold-ink); box-shadow: inset 0 0 0 2px var(--gold); }
.photo-circle.has-photo:hover .ic, .photo-circle.has-photo:focus-within .ic { opacity: 1; }
.photo-circle:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.f-photo.is-busy .photo-circle { opacity: 0.5; cursor: progress; }
.photo-remove { padding: 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.photo-remove:hover { color: var(--out-ink); }
.photo-remove[hidden] { display: none; }
.photo-msg { font-size: 11px; color: var(--out-ink); text-align: center; max-width: 9rem; }
.photo-msg:empty { display: none; }
.team-edit .f-photo { flex-wrap: nowrap; }
@media (max-width: 999px) {
  .team-edit .f-photo { order: -1; flex: 0 0 64px; }
  .team-edit .f-players { flex: 1 1 calc(100% - 80px); }
}
@media (min-width: 1000px) {
  #team-list .team-edit { grid-template-columns: 64px minmax(0, 1.7fr) minmax(0, 1fr) 84px 120px; }
  #team-list .team-edit .f-photo { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
  #team-list .team-edit .f-players { grid-column: 2; }
  #team-list .team-edit .f-name { grid-column: 3; }
  #team-list .team-edit .f-seed { grid-column: 4; }
  #team-list .team-edit .f-serie { grid-column: 5; }
  #team-list .team-edit .badge { grid-column: 4 / span 2; }
  #team-list .team-edit .team-uni { grid-column: 2 / -1; }
}
.uni-price.is-included { font-weight: 600; color: var(--dim); }
.team-uni-player .uni-picker { flex: 1 1 100%; }
#new-players .uni-wrap { margin-top: 6px; }
#new-players.grid2 { grid-template-columns: minmax(0, 1fr); }
.cfg-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cfg-count { font-size: 13px; font-weight: 700; color: var(--dim); }
.cfg-save-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cfg-steps .btn:disabled { opacity: 0.4; cursor: default; }
@media (max-width: 640px) {
  .btn:has(> .ic) { font-size: 0 !important; gap: 0; min-width: 44px; padding-inline: 12px; }
  .btn:has(> .ic) > .ic { width: 20px; height: 20px; }
  .btn.block, .pitch-cta .btn, .pitch-final .btn, .pitch-sticky .btn, .form-actions .btn, .dz-row .btn { font-size: 14.5px !important; gap: 8px; }
  .btn.block > .ic, .pitch-cta .btn > .ic, .pitch-final .btn > .ic, .pitch-sticky .btn > .ic, .form-actions .btn > .ic, .dz-row .btn > .ic { width: 16px; height: 16px; }
  .cfg-save { flex-direction: column; align-items: stretch; }
  .cfg-steps { justify-content: space-between; flex-wrap: nowrap; }
  .cfg-steps .cfg-count { flex: 1; text-align: center; font-size: 12px; }
  .cfg-save-actions { margin-left: 0; justify-content: flex-end; }
}
.ht-mark .brand-logo { max-height: 40px; max-width: 220px; }
.sb-head .brand-logo { max-height: 36px; max-width: 170px; }
.mobilebar .brand-logo { max-height: 30px; max-width: 160px; }
