/* ChessFlow · modo escuro (escolhido pelo usuário no botão 🌙/☀️ da barra; fica gravado no aparelho).
   O Bootstrap 5.3 cuida dos componentes com data-bs-theme="dark"; aqui ficam as cores próprias do ChessFlow.
   Documentos (prévia do relatório, tabelas de classificação) continuam claros, como papel. A impressão sai sempre no modo claro. */

/* Cores de estado (DESIGN.md · Tons de apoio dos estados): um papel por variável, com o par escuro escolhido à mão.
   Use estas variáveis em vez de tons soltos: verde = lançada/feita, vermelho = erro/alerta, amarelo = aviso, laranja = ausência/W.O., violeta = bye. */
:root {
  /* Cores estruturais (DESIGN.md: navy-ink, flow-blue, action-blue). Valem igual nos dois temas: onde o marinho some no escuro, a regra
     escura da tela troca por --cf-blue. Estilo novo usa a variável, nunca o tom por extenso. */
  --cf-navy: #0b1f4b; --cf-flow: #38a3ff; --cf-action: #1e6fe0;
  /* Paleta fixa do DESIGN.md (o mesmo nome de lá, com o prefixo --cf-p-). NÃO muda no modo escuro: serve para cada cor ter um nome e um
     lugar só. Cor que precisa trocar de tom no escuro usa as variáveis de estado abaixo ou uma regra [data-bs-theme=dark]. */
  --cf-p-navy-deep: #1e3a7a; --cf-p-select-blue: #0d6efd; --cf-p-tint-blue: #eaf2ff; --cf-p-row-hover: #cfe0ff; --cf-p-page-gray: #f4f6f9; --cf-p-zebra:
  #dfe4ec; --cf-p-gray-300: #dee2e6; --cf-p-ink: #212529; --cf-p-muted: #6c757d; --cf-p-done-bg: #dff3e4; --cf-p-alert-red: #dc3545; --cf-p-alert-bg:
  #f8d3d7; --cf-p-pending-amber: #ffe082; --cf-p-bye-violet: #8e6bd1; --cf-p-bye-bg: #f6f2fd; --cf-p-mine-bg: #e8f4fd; --cf-p-final-slate: #343a40;
  --cf-p-final-bg: #eef0f3; --cf-p-tour-gold: #ffd54f; --cf-p-back-sand: #f7e4a1; --cf-p-dark-bg: #0e1522; --cf-p-dark-surface: #172234;
  --cf-p-dark-surface-2: #1b2638; --cf-p-dark-line: #2e3d55; --cf-p-dark-muted: #9aa6b5; --cf-p-dark-nav: #081329; --cf-p-dark-blue: #8fb8ff;
  --cf-p-done-tint: #d1e7dd; --cf-p-done-soft: #e8f5ee; --cf-p-done-ink: #0f5132; --cf-p-alert-tint: #f8d7da; --cf-p-alert-soft: #fdecee;
  --cf-p-alert-edge: #f1aeb5; --cf-p-alert-deep: #b02a37; --cf-p-alert-ink: #842029; --cf-p-alert-night: #58151c; --cf-p-locked-bg: #fff5f5;
  --cf-p-locked-ink: #6a1a21; --cf-p-warn-tint: #fff3cd; --cf-p-warn-edge: #ffda6a; --cf-p-warn-ink: #664d03; --cf-p-absence-orange: #d9480f;
  --cf-p-irregular-orange: #fd7e14; --cf-p-orange-bg: #fff4e6; --cf-p-orange-ink: #8a3b00; --cf-p-training-violet: #6f42c1; --cf-p-training-bg: #efe7fb;
  --cf-p-training-ink: #4b2a86; --cf-p-hover-blue: #eef4ff; --cf-p-gray-100: #f1f3f5; --cf-p-gray-200: #e9ecef; --cf-p-gray-400: #ced4da;
  --cf-p-gray-500: #adb5bd; --cf-p-gray-700: #495057; --cf-p-dark-panel: #2a3340; --cf-p-dark-panel-line: #4a5566; --cf-p-dark-well: #1c232c;
  --cf-p-dark-piece-line: #8a94a3; --cf-p-dark-orange-bg: #3a2412; --cf-p-dark-orange-text: #ffd8a8; --cf-p-dark-warn-text: #ffe08a;
  --cf-p-dark-alert-text: #f1a3ab;
  --cf-done: #198754; --cf-done-ink: #0f5132; --cf-done-bg: #d1e7dd; --cf-done-soft: #e8f5ee;
  --cf-alert: #dc3545; --cf-alert-ink: #842029; --cf-alert-bg: #f8d7da;
  --cf-warn: #ffc107; --cf-warn-edge: #e0a800; --cf-warn-ink: #664d03; --cf-warn-bg: #fff3cd;
  --cf-orange: #d9480f; --cf-orange-ink: #8a3b00; --cf-orange-bg: #fff4e6;
  --cf-bye: #8e6bd1; --cf-bye-ink: #5f3dc4; --cf-bye-bg: #f6f2fd;
}
[data-bs-theme=dark] {
  --cf-done: #198754; --cf-done-ink: #75b798; --cf-done-bg: #15301f; --cf-done-soft: #15301d;
  --cf-alert: #b02a37; --cf-alert-ink: #f1a3ab; --cf-alert-bg: #4a1f24;
  --cf-warn: #ffc107; --cf-warn-edge: #c99700; --cf-warn-ink: #ffe08a; --cf-warn-bg: #4a3a10;
  --cf-orange: #d9480f; --cf-orange-ink: #ffd8a8; --cf-orange-bg: #3a2412;
  --cf-bye: #8e6bd1; --cf-bye-ink: #d0bfff; --cf-bye-bg: #2b2445;
}
/* Seletor do torneio em uso (select name="t"): destacado em todas as telas, com o troféu, para ser achado num só olhar */
select.form-select[name="t"] {
  border: 2px solid var(--cf-action); background-color: var(--cf-p-tint-blue); color: var(--cf-navy); font-weight: 700;
  box-shadow: 0 2px 10px rgba(30, 111, 224, .25); padding-left: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ctext y='16' font-size='16'%3E%F0%9F%8F%86%3C/text%3E%3C/svg%3E"), var(--bs-form-select-bg-img);
  background-repeat: no-repeat, no-repeat; background-position: left .7rem center, right .75rem center; background-size: 1.15rem 1.15rem, 16px 12px;
}
select.form-select[name="t"]:hover { background-color: #dbe9ff; }
select.form-select[name="t"]:focus { border-color: var(--cf-navy); box-shadow: 0 0 0 .25rem rgba(30, 111, 224, .35); }
select.form-select-sm[name="t"] { padding-left: 2.1rem; background-position: left .55rem center, right .5rem center; background-size: 1rem 1rem, 16px 12px; }
.cf-tsel-label { font-size: .75rem; font-weight: 700; color: color-mix(in srgb, var(--cf-action) 85%, #000); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
[data-bs-theme=dark] select.form-select[name="t"] { background-color: #15305e; color: #fff; border-color: var(--cf-flow); box-shadow: 0 2px 10px rgba(56, 163, 255, .25); }
[data-bs-theme=dark] select.form-select[name="t"]:hover { background-color: var(--cf-p-navy-deep); }
[data-bs-theme=dark] .cf-tsel-label { color: var(--cf-p-dark-blue); }
/* ⇄ Trocar de torneio (cf_tour_pick, assets/tour_pick.js): cartão do torneio em uso + janela de troca (embaixo no celular) */
.cf-tp:not(.cf-tp-sm) { max-width: 560px; }
.cf-tp-btn { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; background: var(--cf-p-tint-blue); border: 2px solid var(--cf-action); border-radius: 12px;
  padding: .5rem .55rem .5rem .75rem; color: var(--cf-navy); box-shadow: 0 2px 8px rgba(30, 111, 224, .15); }
.cf-tp-btn:hover { background: #dbe9ff; }
.cf-tp-btn:focus-visible { outline: 0; box-shadow: 0 0 0 .25rem rgba(30, 111, 224, .35); }
.cf-tp-ic { font-size: 1.35rem; flex: 0 0 auto; width: 1.7rem; text-align: center; }
.cf-tp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cf-tp-name, .cf-tp-n { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cf-tp-tx small { color: #5b6b80; font-size: .8rem; margin-top: 1px; }
.cf-tp-sw { flex: 0 0 auto; background: var(--cf-action); color: #fff; border-radius: 8px; padding: .4rem .65rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
dialog.cf-tp-dlg { border: 0; padding: 0; border-radius: 16px; width: min(560px, 94vw); max-width: 94vw; max-height: 80vh; background: var(--bs-body-bg);
  color: var(--bs-body-color); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
dialog.cf-tp-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.cf-tp-sh { display: flex; flex-direction: column; gap: .5rem; max-height: 80vh; padding: .75rem .9rem .9rem; }
.cf-tp-grip { display: none; width: 42px; height: 4px; border-radius: 2px; background: #c4cad2; margin: 0 auto; flex: 0 0 auto; }
.cf-tp-top { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.cf-tp-top b { flex: 1; }
.cf-tp-q { flex: 0 0 auto; }
.cf-tp-list { overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.cf-tp-it { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 54px; text-align: left; background: var(--bs-body-bg); color: inherit;
  border: 1px solid var(--bs-border-color); border-radius: 10px; padding: .55rem .7rem; margin-bottom: .45rem; }
.cf-tp-it:hover { background: #f5f9ff; border-color: #9ec5fe; }
.cf-tp-it.on { border: 2px solid var(--cf-action); background: var(--cf-p-tint-blue); }
.cf-tp-it.on .cf-tp-ic { color: var(--cf-action); font-weight: 700; }
.cf-tp-go { flex: 0 0 auto; color: var(--cf-p-gray-500); font-size: 1.4rem; line-height: 1; }
.cf-tp-g { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: .35rem 0 .35rem; color: var(--cf-done); }
.cf-tp-g-sched { color: #b26b00; }
.cf-tp-g-cf { color: #0b1f4b; }
/* ♟ Torneio emparceirado pelo ChessFlow: selo ao lado do nome na janela de troca; ⇄ em destaque no emparceirador */
.cf-tp-cf { display: inline-block; font-size: .68rem; font-weight: 600; line-height: 1.4; padding: 0 7px; border-radius: 999px; background: #e3e8f3; color: #0b1f4b; vertical-align: 1px; white-space: nowrap; }
/* ⇄ Trocar torneio (20/11/2026): tom pêssego suave, filete laranja da pílula do título e o número de torneios */
.cf-tp-go { display: inline-flex; align-items: center; gap: 8px; background: #fff1e6; color: #8a3a06; border: 1px solid #f5c49e; border-bottom: 3px solid #e8590c; border-radius: 10px; padding: .4rem .85rem; font-size: .92rem; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 3px rgba(232,89,12,.12); transition: background .15s, transform .15s, box-shadow .15s; }
.cf-tp-go:hover { background: #ffe4cf; color: #7a3205; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(232,89,12,.18); }
.cf-tp-go:active { transform: none; }
.cf-tp-go:focus-visible { outline: 3px solid #ffa94d; outline-offset: 2px; }
.cf-tp-go-ic { font-size: 1.05rem; line-height: 1; }
.cf-tp-go-n { background: #e8590c; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; }
.cf-tp-go.cf-tp-big { padding: .5rem 1rem; font-size: 1rem; }
[data-bs-theme=dark] .cf-tp-go { background: #3a2416; color: #ffd8bd; border-color: #6b3c1d; border-bottom-color: #e8590c; box-shadow: none; }
[data-bs-theme=dark] .cf-tp-go:hover { background: #4a2e1b; color: #ffe6d4; }
@media (prefers-reduced-motion: reduce) { .cf-tp-go { transition: none; } .cf-tp-go:hover { transform: none; } }
[data-bs-theme=dark] .cf-tp-cf { background: #24304a; color: #cfd6e4; }
[data-bs-theme=dark] .cf-tp-g-cf { color: #a9b8d6; }
.cf-tp-g-pin { color: #0b5ed7; }
.cf-tp-g-done { color: var(--cf-p-muted); display: inline; }
/* 🔗 Trocar de torneio num evento (torneios interconectados): grupo do evento em cima, os demais recolhidos em "Outros torneios" */
.cf-tp-g-ev { color: #5a3fb0; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.cf-tp-evl { background: #ece7fa; color: #3f2a86; }
details.cf-tp-rest { margin-top: .25rem; }
details.cf-tp-rest > summary { cursor: pointer; padding: .6rem .25rem; border-top: 1px solid var(--bs-border-color); margin-bottom: .35rem; font-size: .85rem; font-weight: 600; color: var(--bs-secondary-color); }
[data-bs-theme=dark] .cf-tp-g.cf-tp-g-ev { color: #c3b3f5; } [data-bs-theme=dark] .cf-tp-evl { background: #33285a; color: #d9cffa; }
details.cf-tp-grp > summary { cursor: pointer; padding: .55rem .25rem; border-top: 1px solid var(--bs-border-color); margin-bottom: .35rem; }
@media (max-width: 575.98px), (max-height: 500px) {
  dialog.cf-tp-dlg { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; }
  .cf-tp-sh { max-height: 88vh; padding-top: .5rem; }
  .cf-tp-grip { display: block; }
}
[data-bs-theme=dark] .cf-tp-btn { background: #15305e; color: #fff; border-color: var(--cf-flow); }
[data-bs-theme=dark] .cf-tp-btn:hover { background: var(--cf-p-navy-deep); }
[data-bs-theme=dark] .cf-tp-tx small { color: var(--cf-p-dark-muted); }
[data-bs-theme=dark] .cf-tp-it:hover { background: var(--cf-p-dark-surface-2); border-color: var(--cf-flow); }
[data-bs-theme=dark] .cf-tp-it.on { background: #15305e; border-color: var(--cf-flow); }
/* ◔ Progresso dos lançamentos no ⇄ Trocar de torneio (anel .cf-ring no lugar da seta) e grupo ✓ Lançamentos completos */
.cf-tp-ring { cursor: inherit; }
.cf-tp-ring text { font-size: 14px; }
.cf-tp-ring .tr { stroke: var(--bs-border-color); }
.cf-tp-ring text.ok { font-size: 20px; fill: var(--bs-success); }
.cf-tp-g-full { color: var(--bs-success-text-emphasis); }
/* 🕘 Horários das rodadas (Editar torneio): grade que vira 1 coluna no celular */
.cf-rs { border: 1px solid var(--bs-border-color); border-radius: 10px; padding: .6rem .75rem; }
.cf-rs-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.cf-rs-r { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 6.5rem; gap: 6px; align-items: center; }
.cf-rs-r b { font-size: .85rem; }
[data-bs-theme=dark] .cf-tp-it.on .cf-tp-ic { color: var(--cf-p-dark-blue); }
[data-bs-theme=dark] .cf-tp-g { color: #75d69c; } [data-bs-theme=dark] .cf-tp-g-sched { color: #ffc46b; } [data-bs-theme=dark] .cf-tp-g-done { color: var(--cf-p-dark-muted); } [data-bs-theme=dark] .cf-tp-g-pin { color: var(--cf-p-dark-blue); }

[data-bs-theme=dark] {
  --cf-bg: #0e1522; --cf-surface: #172234; --cf-surface2: #1b2638; --cf-line: #2e3d55; --cf-muted: #9aa6b5; --cf-text: #dee2e6;
  --cf-zebra: #1f2c42; --cf-hover: #26406b; --cf-blue: #8fb8ff;
  --bs-body-bg: #0e1522; --bs-body-color: #dee2e6; --bs-border-color: #2e3d55; --bs-secondary-bg: #1b2638; --bs-tertiary-bg: #131c2b;
}
[data-bs-theme=dark] body { background: var(--cf-bg) !important; color: var(--cf-text); }
[data-bs-theme=dark] .bg-white, [data-bs-theme=dark] .bg-light { background-color: var(--cf-surface) !important; }
[data-bs-theme=dark] .card, [data-bs-theme=dark] .modal-content, [data-bs-theme=dark] .list-group-item { background-color: var(--cf-surface); border-color: var(--cf-line); }
[data-bs-theme=dark] .text-dark { color: var(--cf-p-gray-200) !important; }
[data-bs-theme=dark] .text-muted { color: var(--cf-muted) !important; }
[data-bs-theme=dark] .border, [data-bs-theme=dark] .border-top, [data-bs-theme=dark] .border-bottom { border-color: var(--cf-line) !important; }
[data-bs-theme=dark] .card[style*="#f5f9ff"] { background: var(--cf-p-dark-surface) !important; border-color: #3d5a8c !important; }
[data-bs-theme=dark] footer { border-color: var(--cf-line) !important; }

/* Tabelas (cabeçalho azul-marinho continua; zebrado e destaque escuros) */
[data-bs-theme=dark] .table { --bs-table-bg: var(--cf-surface); --bs-table-color: var(--cf-text); --bs-table-border-color: var(--cf-line); }
[data-bs-theme=dark] body .table > tbody > tr:nth-child(even):not([class*="table-"]) > * { --bs-table-bg-type: var(--cf-zebra); }
[data-bs-theme=dark] body .table > tbody > tr:hover:not([class*="table-"]) > * { --bs-table-bg-state: var(--cf-hover); }
[data-bs-theme=dark] .table-light { --bs-table-bg: var(--cf-navy); --bs-table-color: #fff; }
[data-bs-theme=dark] .cf-hint, [data-bs-theme=dark] .cf-tbar { color: var(--cf-muted); }

/* Menus da barra */
[data-bs-theme=dark] .cfn { background: var(--cf-p-dark-nav); }
[data-bs-theme=dark] .cfn-menu { background: var(--cf-surface); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
[data-bs-theme=dark] .cfn-menu a { color: #dbe6ff; } [data-bs-theme=dark] .cfn-menu a small, [data-bs-theme=dark] .cfn-menu .h, [data-bs-theme=dark] .cfn-menu .txt { color: var(--cf-muted); }
[data-bs-theme=dark] .cfn-menu a:hover { background: #22324d; } [data-bs-theme=dark] .cfn-menu a.on { background: #2b4570; }
[data-bs-theme=dark] .cfn-menu hr { border-top-color: var(--cf-line); }

/* Janelas próprias: créditos, conectar aparelhos, encerrar/reabrir, link das planilhas */
[data-bs-theme=dark] #cfAbout .cf-box, [data-bs-theme=dark] .about { background: var(--cf-surface); }
[data-bs-theme=dark] .cf-person { background: var(--cf-surface2); border-color: var(--cf-line); }
[data-bs-theme=dark] .cf-idea span { color: var(--cf-blue); }
[data-bs-theme=dark] #cfPair .cfp-box, [data-bs-theme=dark] #cfSt .cfs-box, [data-bs-theme=dark] #cfShare > div { background: var(--cf-surface) !important; color: var(--cf-text); }
[data-bs-theme=dark] #cfPair .cfp-tabs { background: #131c2b; border-color: var(--cf-line); } [data-bs-theme=dark] #cfPair .cfp-tabs button { color: var(--cf-muted); }
[data-bs-theme=dark] #cfPair .cfp-tabs button.on { background: var(--cf-surface); color: #fff; }
[data-bs-theme=dark] #cfPair .cfp-ci { background: #16213a; border-color: #2b4a7a; color: var(--cf-text); } [data-bs-theme=dark] #cfPair .cfp-ci small { color: var(--cf-muted); }
[data-bs-theme=dark] #cfPair .cfp-ci.no, [data-bs-theme=dark] #cfPair .cfp-ci.off { background: #131c2b; border-color: var(--cf-line); color: var(--cf-muted); }
[data-bs-theme=dark] #cfPair .cfp-row { border-color: var(--cf-line); } [data-bs-theme=dark] #cfPair .cfp-row:nth-child(even) { background: var(--cf-zebra); }
[data-bs-theme=dark] #cfSt .cfs-hist { border-color: var(--cf-line); color: var(--cf-muted); }

/* ---- Módulo do árbitro ---- */
[data-bs-theme=dark] .board-card.completed, [data-bs-theme=dark] .cr.completed { background-color: #15301f; border-color: #25563a; }
[data-bs-theme=dark] .board-card.deleted, [data-bs-theme=dark] .cr.deleted { background-color: #3a1a1f; border-color: #6e2a32; }
[data-bs-theme=dark] .board-card.modified, [data-bs-theme=dark] .cr.modified { background-color: var(--cf-p-dark-surface); border-color: #3d4f73;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px); }
[data-bs-theme=dark] .board-card.locked, [data-bs-theme=dark] .cr.locked { background-color: #33181b; border-color: #6e2a32; }
[data-bs-theme=dark] .board-card.bye, [data-bs-theme=dark] .cr.bye { background-color: #251d38; border-color: #4b3a7a; }
[data-bs-theme=dark] .board-card.mine, [data-bs-theme=dark] .cr.mine { background-color: #13263d; border-color: #2d5a8f; }
[data-bs-theme=dark] .board-card.final, [data-bs-theme=dark] .cr.final { background-color: var(--cf-p-dark-well); border-color: #3a4352; }
[data-bs-theme=dark] .cr, [data-bs-theme=dark] .cr.pending { background: var(--cf-surface); border-color: var(--cf-line); }
[data-bs-theme=dark] .cr-d { background: rgba(23,34,52,.92); border-color: var(--cf-line); }
[data-bs-theme=dark] .cr-info { color: #b8c2cf; }
[data-bs-theme=dark] .round-box { background: var(--cf-surface); border-color: #3d5a8c; }
[data-bs-theme=dark] .round-num .n { color: var(--cf-blue); } [data-bs-theme=dark] .round-bar, [data-bs-theme=dark] .cbar { background: var(--cf-p-dark-panel); }
[data-bs-theme=dark] .vw-seg { border-color: #3d5a8c; } [data-bs-theme=dark] .vw-seg button { background: var(--cf-surface); color: var(--cf-p-row-hover); }
[data-bs-theme=dark] .vw-seg button.on { background: var(--cf-action); color: #fff; }
[data-bs-theme=dark] .vw-flt button { background: var(--cf-surface); color: var(--cf-p-gray-400); border-color: #34445e; } [data-bs-theme=dark] .vw-flt button.on { background: var(--cf-action); color: #fff; }
[data-bs-theme=dark] .cr-res6 button { background: var(--cf-surface2); color: var(--cf-p-tint-blue); border-color: #34445e; } [data-bs-theme=dark] .cr-res6 button small { color: var(--cf-muted); }
[data-bs-theme=dark] .cr-res6 button:hover { background: #22324d; }
/* Azul-marinho some no fundo escuro: versões mais claras */
[data-bs-theme=dark] .c-modified { background: #3b4fa0; color: #fff; }
[data-bs-theme=dark] .btn-adv { background: var(--cf-p-navy-deep); } [data-bs-theme=dark] .btn-adv:hover { background: #1e4fa0; }
[data-bs-theme=dark] .btn-outline-dark { --bs-btn-color: #dee2e6; --bs-btn-border-color: #6c7a91; --bs-btn-hover-bg: #dee2e6; --bs-btn-hover-color: #0e1522; --bs-btn-hover-border-color: #dee2e6; }
/* Faixa do check-in (cores fixas no HTML) */
[data-bs-theme=dark] #ciTitle { color: #75d69c !important; } [data-bs-theme=dark] #ciBanner .d-flex[style*="#e9ecef"] { background: var(--cf-p-dark-panel) !important; }
[data-bs-theme=dark] .btn-occ-has { background: var(--cf-p-dark-orange-bg); } [data-bs-theme=dark] .occ-count { border-color: var(--cf-surface); }
/* Ocorrências */
[data-bs-theme=dark] table.occ { border-color: #3a4a63; } [data-bs-theme=dark] .occ td, [data-bs-theme=dark] .occ td.lbl { border-color: var(--cf-line); }
[data-bs-theme=dark] .occ tbody tr:nth-child(even) td { background: var(--cf-zebra); } [data-bs-theme=dark] .occ tbody tr:hover td { background: var(--cf-hover); }
[data-bs-theme=dark] .occ .box { background: var(--cf-bg); border-color: var(--cf-p-dark-piece-line); } [data-bs-theme=dark] .occ .cell.on { background: #3d3212 !important; }
[data-bs-theme=dark] .fide-cfg, [data-bs-theme=dark] .fide-kb.ok, [data-bs-theme=dark] .fide-kw.hint { background: var(--cf-p-dark-surface); border-color: #2e4166; color: var(--cf-p-row-hover); }
[data-bs-theme=dark] tr.fide-dec > td { background: #262214 !important; }
[data-bs-theme=dark] .fide-box { background: var(--cf-surface2); border-color: #5a4a12; }
[data-bs-theme=dark] .fide-art, [data-bs-theme=dark] .fide-q span { color: #b8c2cf; } [data-bs-theme=dark] .fide-art b { color: var(--cf-blue); }
[data-bs-theme=dark] .fide-read { color: var(--cf-p-zebra); } [data-bs-theme=dark] .fide-lines li { border-color: #3a4352; } [data-bs-theme=dark] .fl-art { background: var(--cf-p-dark-surface); color: var(--cf-p-row-hover); }
[data-bs-theme=dark] .fide-lines li.tor { background: #352d12; color: #f0d27a; }
[data-bs-theme=dark] .occ-zoom button { background: var(--cf-surface2); border-color: var(--cf-p-dark-panel-line); color: var(--cf-p-row-hover); }
[data-bs-theme=dark] .fide-man { background: var(--cf-p-dark-surface); }
[data-bs-theme=dark] .fide-seal.ok { background: #123524; color: #75d69c; } [data-bs-theme=dark] .fide-seal.bad { background: #3a1a1f; color: var(--cf-p-dark-alert-text); }
[data-bs-theme=dark] .fide-seal.nd { background: #2a2f38; color: #c4cad2; } [data-bs-theme=dark] .fide-seal.info { background: #10323a; color: #7fdcf0; }
[data-bs-theme=dark] .fide-seal.arb { background: #1d2550; color: #b3c0ff; }
[data-bs-theme=dark] .fide-kb.warn, [data-bs-theme=dark] .fide-kw.warn, [data-bs-theme=dark] .sh-warn { background: #352d12; border-color: #6b5a1f; color: #f0d27a; }
[data-bs-theme=dark] .occ-foot { background: #131c2b; box-shadow: 0 -4px 12px rgba(0,0,0,.4); }
[data-bs-theme=dark] .occ-reg { background: var(--cf-surface); border-color: var(--cf-line); } [data-bs-theme=dark] .occ-reg-i { border-top-color: var(--cf-line); }
[data-bs-theme=dark] .occ-reg-i.ill, [data-bs-theme=dark] .pen-alert, [data-bs-theme=dark] #lfSheet .pp-i.ill { background: #2a1719; }
[data-bs-theme=dark] .occ-reg-i.irr, [data-bs-theme=dark] #lfSheet .pp-i.irr { background: #2a2014; }
[data-bs-theme=dark] .occ-reg-i.ill.ord1 { background: var(--cf-surface); } [data-bs-theme=dark] .occ-reg-i.ill.ord2 { background: #4a1a1d; border-left-color: #e5484d; }
[data-bs-theme=dark] .occ-reg-i.ill.has-ord .occ-reg-t { background: transparent; color: #ff8a8f; border-color: #ff8a8f; }
[data-bs-theme=dark] .occ-reg-t { background: var(--cf-p-dark-panel); color: var(--cf-p-gray-400); } [data-bs-theme=dark] #occModal .occ-reg-m { color: var(--cf-p-gray-500); } [data-bs-theme=dark] .occ-del { border-color: #6e2a32; color: var(--cf-p-dark-alert-text); } [data-bs-theme=dark] .occ-del:hover { background: #2a1719; color: var(--cf-p-dark-alert-text); } [data-bs-theme=dark] .occ-reg-n { color: var(--cf-p-gray-400); } [data-bs-theme=dark] .occ-edit { border-color: #2b4a7a; color: var(--cf-p-dark-blue); } [data-bs-theme=dark] .occ-edit:hover { background: #16213a; color: var(--cf-p-dark-blue); } [data-bs-theme=dark] .occ-hist { color: var(--cf-p-gray-500); }
/* Ocorrências passo a passo (arbiter/index.php) */
[data-bs-theme=dark] .ow-chip, [data-bs-theme=dark] .ow-ch, [data-bs-theme=dark] .ow-opt { border-color: #4a5870; }
[data-bs-theme=dark] .ow-ch:active { background: #3d3212; } [data-bs-theme=dark] .ow-back { background: #2a4a8f; }
[data-bs-theme=dark] .ow-rule { background: #352d12; border-color: #8a6d00; color: #f0d27a; }
[data-bs-theme=dark] .ow-rule.loss { background: #3a1a1f; border-color: #a33a45; color: var(--cf-p-dark-alert-text); }
[data-bs-theme=dark] .ow-opt.on { background: #123524; border-color: #2f9e64; color: #75d69c; }
[data-bs-theme=dark] .ow-cnt { background: #3a1a1f; color: var(--cf-p-dark-alert-text); }
[data-bs-theme=dark] .ow .disc { border-color: var(--cf-p-gray-400); } [data-bs-theme=dark] .ow .disc.b { background: #000; }
[data-bs-theme=dark] .ow-why > summary { color: var(--cf-blue); }
/* Ilegalidades/irregularidades */
[data-bs-theme=dark] .pen-alert { border-color: #6e2a32; color: var(--cf-p-alert-edge); } [data-bs-theme=dark] .pen-alert .pen-what { color: var(--cf-p-dark-alert-text); } [data-bs-theme=dark] .pen-alert .pen-irr { color: #ffc38a; }
[data-bs-theme=dark] .pen.ill1 { background: #3a2a10; color: #ffb3b3; } [data-bs-theme=dark] .pen.irr { background: var(--cf-p-dark-orange-bg); color: #ffc38a; }
[data-bs-theme=dark] .pen.prev { background: var(--cf-p-dark-panel); color: var(--cf-p-gray-400); }
/* Leitura fácil: aviso grande, quem lançou e painel que sobe de baixo (arbiter/index.php) */
[data-bs-theme=dark] .pen-big { background: #2a1719; border-color: #a33a45; color: var(--cf-p-dark-alert-text); } [data-bs-theme=dark] .pen-big .pb-s { color: #ff9aa4; }
[data-bs-theme=dark] .pen-big.ill2 { background: var(--cf-p-alert-deep); border-color: var(--cf-p-alert-deep); color: #fff; } [data-bs-theme=dark] .pen-big.ill2 .pb-s { color: #fff; }
[data-bs-theme=dark] .pen-big.irr { background: #2a2014; border-color: #b35a12; color: #ffc38a; } [data-bs-theme=dark] .pen-big.irr .pb-s { color: #ffc38a; }
[data-bs-theme=dark] .pen-big.prev { background: var(--cf-p-dark-panel); border-color: #4a5870; color: var(--cf-p-gray-400); }
[data-bs-theme=dark] .who-btn { background: #123524; color: #b9ecd0; } [data-bs-theme=dark] .who-btn .wb-s { color: #9be3b8; }
[data-bs-theme=dark] .who-btn.mod { background: #1c2a44; color: #c9d6ee; } [data-bs-theme=dark] .who-btn.mod .wb-s { color: #a9b9d8; }
[data-bs-theme=dark] .who-btn.del { background: #3a1a1f; color: var(--cf-p-dark-alert-text); } [data-bs-theme=dark] .who-btn.del .wb-s { color: #ff9aa4; }
[data-bs-theme=dark] #lfSheet { background: rgba(0,0,0,.65); }
[data-bs-theme=dark] #lfSheet .lf-sh { background: var(--cf-surface); color: var(--cf-text); }
[data-bs-theme=dark] #lfSheet .lf-grip { background: #4a5870; } [data-bs-theme=dark] #lfSheet .lf-k, [data-bs-theme=dark] #lfSheet .lf-f, [data-bs-theme=dark] #lfSheet .lf-pl small { color: #b8c2cf; }
[data-bs-theme=dark] #lfSheet .lf-box.g { background: #123524; color: #b9ecd0; }
[data-bs-theme=dark] #lfSheet .lf-box.r { background: #2a1719; border-color: #a33a45; color: var(--cf-p-dark-alert-text); }
[data-bs-theme=dark] #lfSheet .lf-box.rr { background: var(--cf-p-alert-deep); color: #fff; }
[data-bs-theme=dark] #lfSheet .lf-box.a { background: #352d12; border-color: #8a6d00; color: #f0d27a; }
[data-bs-theme=dark] #lfSheet .lf-box.o { background: #2a2014; border-color: #b35a12; color: #ffc38a; }
[data-bs-theme=dark] #lfSheet details > summary { color: var(--cf-blue); }
[data-bs-theme=dark] #lfSheet .pp-d { color: var(--cf-text); } [data-bs-theme=dark] #lfSheet .pp-n, [data-bs-theme=dark] #lfSheet .pp-prev, [data-bs-theme=dark] #lfSheet .pp-at, [data-bs-theme=dark] #lfSheet .pp-by { color: #b8c2cf; }
/* Fotos das planilhas */
[data-bs-theme=dark] .btn-sheet-ok { background: #123524; color: #75d69c; } [data-bs-theme=dark] .btn-sheet-part { background: #33230f; color: #ffc38a; }
[data-bs-theme=dark] .sh-chip { background: #232b3a; color: #8f9bab; border-color: #34445e; }
[data-bs-theme=dark] .sh-chip.ok { background: var(--cf-done); color: #fff; border-color: var(--cf-done); }
[data-bs-theme=dark] .sh-kinds button { background: var(--cf-surface2); color: var(--cf-p-tint-blue); border-color: #34445e; }
[data-bs-theme=dark] .sh-kinds button.sent { background: #123524; } [data-bs-theme=dark] .sh-kinds button.on { background: var(--cf-done); }
[data-bs-theme=dark] .sh-warn.info { background: var(--cf-p-dark-surface); border-color: #2e4166; color: var(--cf-p-row-hover); }
[data-bs-theme=dark] .sh-sent, [data-bs-theme=dark] .sh-item { border-color: var(--cf-line); }
/* Check-in */
[data-bs-theme=dark] .ck-title { color: var(--cf-blue) !important; }
[data-bs-theme=dark] .st, [data-bs-theme=dark] .ck-card, [data-bs-theme=dark] .pl, [data-bs-theme=dark] .mk, [data-bs-theme=dark] .sticky-tools { background: var(--cf-surface); border-color: var(--cf-line); }
[data-bs-theme=dark] .st .n { background: var(--cf-p-dark-panel); color: var(--cf-p-gray-400); }
[data-bs-theme=dark] .pl.present { background: #15301f; } [data-bs-theme=dark] .pl.absent { background: #3a1a1f; }
[data-bs-theme=dark] .ck-bd { background: var(--cf-surface); border-color: var(--cf-line); } [data-bs-theme=dark] .ck-top small, [data-bs-theme=dark] .ck-pl .inf, [data-bs-theme=dark] .ck-pl .by { color: var(--bs-secondary-color); }
[data-bs-theme=dark] .ck-mesa { background: var(--cf-flow); color: var(--cf-navy); }
[data-bs-theme=dark] .ck-pl { background: var(--cf-p-dark-panel); border-color: var(--cf-p-dark-panel-line); color: var(--cf-p-gray-200); } [data-bs-theme=dark] .ck-pl.bye { color: var(--bs-secondary-color); }
[data-bs-theme=dark] .ck-pl.present { background: #15301f; border-color: #2f9e64; } [data-bs-theme=dark] .ck-pl.absent { background: #3a1a1f; border-color: #c7535f; }
[data-bs-theme=dark] .ck-pc { background: var(--cf-p-gray-100); color: var(--cf-p-ink); border-right-color: var(--cf-p-gray-100); box-shadow: 2px 0 4px rgba(0,0,0,.35); }
[data-bs-theme=dark] .ck-pl.b .ck-pc { background: #000; color: #fff; border-right-color: var(--cf-p-dark-piece-line); }
[data-bs-theme=dark] .dl { border-color: var(--cf-line); } [data-bs-theme=dark] .dl td { border-color: var(--cf-line); } [data-bs-theme=dark] .dl tr:nth-child(even) td { background: var(--cf-zebra); }

/* ---- Relatórios ---- */
[data-bs-theme=dark] .sc-wrap { border-color: var(--cf-line); } [data-bs-theme=dark] .sc-t td { border-color: var(--cf-line); }
[data-bs-theme=dark] .sc-t tbody tr:nth-child(even) td { background: var(--cf-zebra); } [data-bs-theme=dark] .sc-t tbody tr:hover td { background: var(--cf-hover); }
[data-bs-theme=dark] .sc-t input:focus { background: var(--cf-bg); }
[data-bs-theme=dark] .fn-t tbody tr.pod1 td, [data-bs-theme=dark] .fn-t tbody tr.pod2 td, [data-bs-theme=dark] .fn-t tbody tr.pod3 td { color: var(--cf-p-ink); }
/* Documento (prévia do relatório do árbitro-chefe) continua como papel branco */
[data-bs-theme=dark] .cr-paper { background: #fff; color: #1a1a1a; }
[data-bs-theme=dark] .cr-paper .text-muted { color: #666 !important; }

/* Página das planilhas (equipe remota) */
[data-bs-theme=dark] .bd { background: var(--cf-surface); border-color: var(--cf-line); } [data-bs-theme=dark] .flt .q button { color: var(--bs-secondary-color); }
[data-bs-theme=dark] .bd .pn { background: var(--cf-zebra); border-color: var(--cf-line); color: var(--bs-body-color); } [data-bs-theme=dark] .bd .pn span.k i { background: #000; border-color: var(--cf-p-dark-piece-line); }

/* Botão do tema na barra */
.cfn-theme { font-size: 1.15rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1) !important; color: #fff; }
.cfn-theme:hover { background: rgba(255,255,255,.2) !important; }

/* Logotipo: versão com "CHESS" branco no modo escuro (a normal, com "CHESS" azul-marinho, sumiria no fundo escuro) */
.cf-logo-dark { display: none !important; }
[data-bs-theme=dark] .cf-logo-light { display: none !important; }
[data-bs-theme=dark] .cf-logo-dark { display: block !important; }
/* Slogan ("ChessFlow: …"): o "Chess" azul-marinho fica branco no modo escuro */
[data-bs-theme=dark] .cf-sl-c { color: #fff !important; }
[data-bs-theme=dark] .cf-sl-f { color: #6cb6ff !important; }
/* Quadros de ajuda (ex.: "Como informar as mesas" na distribuição do PGN) */
[data-bs-theme=dark] .cf-help-box{background:#16213a!important;border-color:#3a5487!important}
[data-bs-theme=dark] .cf-help-box .bg-white{background:var(--cf-p-dark-nav)!important}
[data-bs-theme=dark] .cf-help-box .fw-semibold{color:#9ec5fe!important}

/* ---- Telas responsivas (celular, tablet, TV e notebook com poucos pixels) ----
   Tabelas largas ganham rolagem própria em assets/tables.js (cfFitTables); aqui o que vale para todas as páginas. */
.form-select.w-auto, .form-control.w-auto, .input-group.w-auto { max-width: 100%; }
.container img, .container video { max-width: 100%; }
.container pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.d-flex > .flex-grow-1, .d-flex > .flex-fill { min-width: 0; }
.d-flex.flex-wrap > * { max-width: 100%; }
.cf-fit-wrap { max-width: 100%; }
@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 1rem; }
  .card-body { padding: .75rem; }
  h1, .h1 { font-size: 1.6rem; } h2, .h2 { font-size: 1.4rem; } h3, .h3 { font-size: 1.25rem; }
  .btn-group { flex-wrap: wrap; }
  .nav-tabs, .nav-pills { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
  .nav-tabs .nav-link, .nav-pills .nav-link { white-space: nowrap; }
}

/* ---- Título padrão das páginas (cf_title): ícone + título à esquerda, botões à direita ---- */
.cf-title h1, .cf-title h4 { overflow-wrap: anywhere; }
.cf-title-desc { max-width: 980px; }
@media (max-width: 575.98px) {
  .cf-title h1, .cf-title h4 { font-size: 1.2rem; }
  .cf-title-act { width: 100%; }
}

/* Coordenador(a) da equipe de PGN (⭐, organizer/pgn_split.php) */
.badge.cf-coord { background: var(--cf-warn); color: #3d3000; font-weight: 600; }
/* ⭐ Coordena o PGN: botão de ligar/desligar na lista da equipe (Distribuição das mesas e Editar torneio → Árbitros) */
.cf-coord-tg { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; line-height: 1.2; padding: .15rem .55rem; border-radius: 999px;
  border: 1px dashed #c9a227; background: transparent; color: #7a5a00; white-space: nowrap; margin-top: 2px; }
.cf-coord-tg:hover { background: #fff3c4; }
.cf-coord-tg.on { background: var(--cf-warn); border: 1px solid #e0a800; color: #3d3000; font-weight: 600; }
[data-bs-theme=dark] .cf-coord-tg { color: var(--cf-p-warn-edge); border-color: #8a6d1f; }
[data-bs-theme=dark] .cf-coord-tg:hover { background: #3d3212; }
[data-bs-theme=dark] .cf-coord-tg.on { background: #b8860b; color: #fff; border-color: var(--cf-warn); }
[data-bs-theme="dark"] .cf-coord-box { background: #3d3212 !important; border-color: #8a6d1f !important; }

/* Abas: a aba selecionada fica destacada (fundo azul da marca, texto branco) em todas as telas */
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
  background: var(--cf-action); color: #fff !important; border-color: var(--cf-action); font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--cf-navy);
}
.nav-tabs .nav-link.active .badge { background: #fff !important; color: var(--cf-action) !important; }
.nav-tabs .nav-link:not(.active):hover { background: rgba(30, 111, 224, .08); }
[data-bs-theme="dark"] .nav-tabs .nav-link.active, [data-bs-theme="dark"] .nav-tabs .nav-item.show .nav-link {
  background: var(--cf-flow); color: var(--cf-navy) !important; border-color: var(--cf-flow); box-shadow: inset 0 -3px 0 var(--cf-action);
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active .badge { background: var(--cf-navy) !important; color: #fff !important; }
[data-bs-theme="dark"] .nav-tabs .nav-link:not(.active):hover { background: rgba(56, 163, 255, .12); }
@media print { .nav-tabs .nav-link.active { background: none; color: #000 !important; box-shadow: none; } }

/* Cadastro do torneio: faixa "Mostrar no portal público" */
[data-bs-theme=dark] div[style*="#e6f6ee"] { background: #173326 !important; border-color: #2d6a45 !important; }
[data-bs-theme=dark] div[style*="#eef4ff"] { background: #1c2a44 !important; border-color: #2b4a7a !important; }

/* Distintivo 🤝 ao lado do nome de quem colabora com o projeto (collab_badge(); leva ao mural dos colaboradores) */
.cf-collab-b{display:inline-block;font-size:.8em;line-height:1;padding:2px 5px;border-radius:10px;background:var(--cf-p-warn-tint);border:1px solid var(--cf-warn);text-decoration:none;vertical-align:middle}
.cf-collab-b:hover{background:var(--cf-p-dark-warn-text)}
[data-bs-theme=dark] .cf-collab-b{background:#3d3212;border-color:#b8860b}
@media print{.cf-collab-b{display:none}}
/* ✍️ "Feito por" nas Novidades (collab_author_html()) e selos da titulação FIDE/CBX (collab_title_pills()) */
.cf-au{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:.8rem;color:var(--bs-secondary-color);margin-left:2px;vertical-align:middle}
.cf-au-who{display:inline-flex;align-items:center;gap:4px;text-decoration:none;font-weight:600}
.cf-au-ph{border-radius:50%;object-fit:cover;flex:none;display:inline-block;box-shadow:0 0 0 1.5px var(--cf-action)}
.cf-au-ini{display:inline-flex;align-items:center;justify-content:center;background:var(--cf-navy);color:#fff;font-weight:700;line-height:1}
.cf-ttl-pill{display:inline-block;font-size:.75rem;font-weight:700;line-height:1.2;border-radius:10px;padding:2px 7px;white-space:nowrap;border:1px solid transparent}
.cf-ttl-fide{background:var(--cf-p-warn-tint);color:var(--cf-p-warn-ink);border-color:var(--cf-warn)}
.cf-ttl-cbx{background:var(--cf-p-tint-blue);color:#084298;border-color:#9ec5fe}
[data-bs-theme=dark] .cf-ttl-fide{background:#3d3212;color:var(--cf-p-warn-edge);border-color:#b8860b}
[data-bs-theme=dark] .cf-ttl-cbx{background:#12294a;color:#9ec5fe;border-color:#2d5a8f}
[data-bs-theme=dark] .cf-au-ph{box-shadow:0 0 0 1.5px var(--cf-flow)}

/* Caixas de marcar e botões de opção com borda visível em todas as telas (o cinza-claro padrão do Bootstrap some no fundo branco) */
.form-check-input { border-color: #7b879c; }
.form-check-input:focus { border-color: var(--cf-action); }
[data-bs-theme=dark] .form-check-input { border-color: #8597bd; }

/* Mensagem depois de gravar (flash, cf_flash_html() no config.php): aviso flutuante com ícone e cor por tipo */
.cf-toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 2050; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.cf-toast { pointer-events: auto; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 44px 16px 16px; border-radius: 12px;
  color: #fff; box-shadow: 0 14px 34px rgba(11, 31, 75, .35), 0 0 0 1px rgba(255, 255, 255, .15) inset; overflow: hidden; animation: cfToastIn .35s cubic-bezier(.2, .9, .3, 1); }
.cf-toast-success { background: var(--cf-done); }
.cf-toast-warning { background: var(--cf-warn); color: #2b2100; }
.cf-toast-danger { background: #c62828; }
.cf-toast-info { background: var(--cf-action); }
.cf-toast-ic { font-size: 1.9rem; line-height: 1; flex: 0 0 auto; }
.cf-toast-body { min-width: 0; }
.cf-toast-body b { display: block; font-size: 1.08rem; margin-bottom: 2px; }
.cf-toast-body div { overflow-wrap: anywhere; line-height: 1.4; }
.cf-toast-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: inherit; font-size: 1.7rem; line-height: 1; opacity: .85; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.cf-toast-x:hover, .cf-toast-x:focus-visible { opacity: 1; background: rgba(255, 255, 255, .2); outline: none; }
.cf-toast-warning .cf-toast-x:hover, .cf-toast-warning .cf-toast-x:focus-visible { background: rgba(0, 0, 0, .1); }
.cf-toast-bar { position: absolute; right: 0; bottom: 0; /* presa à direita: a barra some da esquerda para a direita */ height: 4px; width: 100%; background: rgba(255, 255, 255, .65); }
.cf-toast.out { animation: cfToastOut .25s forwards; }
@keyframes cfToastIn { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes cfToastOut { to { opacity: 0; transform: translateY(-12px); } }
[data-bs-theme=dark] .cf-toast { box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .18) inset; }
[data-bs-theme=dark] .cf-toast-success { background: var(--cf-done); }
[data-bs-theme=dark] .cf-toast-danger { background: #d03535; }
[data-bs-theme=dark] .cf-toast-info { background: #2a7be8; }
@media (max-width: 575px) { /* celular: embaixo, perto do polegar */
  .cf-toast-wrap { top: auto; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); } /* acima do botão 💡 dos colaboradores (canto, 42 px) */
  .cf-toast { animation-name: cfToastUp; }
  @keyframes cfToastUp { from { opacity: 0; transform: translateY(18px) scale(.96); } }
}
@media (prefers-reduced-motion: reduce) { .cf-toast, .cf-toast.out { animation: none; } .cf-toast-bar { transition: none !important; } }
@media print { .cf-toast-wrap { display: none !important; } }

/* Ícone do WhatsApp (wa_ico() em config.php) nos botões e links que abrem o WhatsApp */
.cf-wa { width: 1.1em; height: 1.1em; vertical-align: -.17em; flex: none; }

/* Item desativado (pessoas, catálogos, anúncios): linha listrada em âmbar ("fita de interditado"), nome riscado e selo 🚫 (off_badge() em config.php).
   Uso: <tr class="cf-off">, o nome em <span class="cf-off-name">, e o botão de reativar em verde (btn-outline-success). */
.table > tbody > tr.cf-off > *, tr.cf-off > td {
  --bs-table-bg-type: transparent; --bs-table-bg-state: transparent; --bs-table-accent-bg: transparent; box-shadow: none !important;
  background: repeating-linear-gradient(135deg, #fff8e1 0 10px, #fdeeb8 10px 20px) !important; color: var(--cf-p-warn-ink) !important;
}
tr.cf-off .text-muted, tr.cf-off small { color: #8a6d1f !important; }
tr.cf-off .cf-off-name, .cf-off-name.on { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cf-off-badge { display: inline-block; background: #e0a100; color: #3d3000; border-radius: .375rem; padding: .25em .55em; font-size: .75em; font-weight: 700; line-height: 1; white-space: nowrap; }
[data-bs-theme="dark"] .table > tbody > tr.cf-off > *, [data-bs-theme="dark"] tr.cf-off > td {
  background: repeating-linear-gradient(135deg, #3d3000 0 10px, #4a3c12 10px 20px) !important; color: #ffd877 !important;
}
[data-bs-theme="dark"] tr.cf-off .text-muted, [data-bs-theme="dark"] tr.cf-off small { color: #e8c45a !important; }
[data-bs-theme="dark"] .cf-off-badge { background: #e0a100; color: #2b2100; }
@media print { .table > tbody > tr.cf-off > *, tr.cf-off > td { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Espaços de patrocínio do portal (config.php ads_strip_html / ads_tour_html / ads_corner_html; assets/ad_slots.js) */
.cf-ads-tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d6416; }
.cf-ads-strip { position: relative; height: 96px; margin: 12px 0 14px; border-radius: 14px; overflow: hidden; background: var(--bs-body-bg); border: 1px solid rgba(214,160,23,.45); }
.cf-ads-strip > .cf-ads-tag { position: absolute; top: 6px; left: 12px; z-index: 2; }
.cf-ads-sl { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding: 14px 18px 10px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
  background: linear-gradient(90deg, rgba(30,111,224,.08), transparent 70%); color: inherit; text-decoration: none; }
.cf-ads-sl.on { opacity: 1; visibility: visible; }
.cf-ads-sl .im, .cf-ads-cs .im { flex: none; display: flex; align-items: center; justify-content: center; }
.cf-ads-sl .im img { max-height: 62px; max-width: 170px; object-fit: contain; border-radius: 6px; }
.cf-ads-sl .im.w { flex: 1; height: 100%; } .cf-ads-sl .im.w img { max-height: 76px; max-width: 100%; }
.cf-ads-alt { font-size: 1.15rem; font-weight: 800; color: var(--bs-body-color); } /* nome do anunciante quando a imagem não carrega */
.cf-ads-sl .tx, .cf-ads-cs .tx { min-width: 0; line-height: 1.3; } .cf-ads-sl .tx b { display: block; font-size: 1rem; }
.cf-ads-sl .tx small, .cf-ads-cs .tx small { display: block; color: var(--bs-secondary-color); font-size: .82rem; }
.cf-ads-sl .go, .cf-ads-cs .go { margin-left: auto; flex: none; background: var(--cf-action); color: #fff; border-radius: 8px; padding: 6px 14px; font-weight: 600; font-size: .85rem; }
.cf-ads-sl:hover .go, .cf-ads-cs:hover .go { background: #1757b3; }
/* pontinho de 8 px, mas área de toque de 24 px (o ::after desenha o ponto) */
.cf-ads-dots { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 0; z-index: 2; }
.cf-ads-dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
.cf-ads-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c5cfdd; } .cf-ads-dots button.on::after { background: var(--cf-action); }
.cf-ads-dots button:focus-visible { outline: 2px solid var(--cf-action); outline-offset: -4px; border-radius: 50%; }
.cf-ads-tour { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 7px 14px; margin: 0 0 10px; border-top: 1px solid #f5e6bd; border-bottom: 1px solid #f5e6bd; background: #fffaf0; }
.cf-ads-tour img { max-height: 40px; max-width: 130px; object-fit: contain; display: block; }
.cf-ads-tour a:hover img { transform: translateY(-1px); }
.cf-ads-corner { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 290px; background: var(--bs-body-bg); color: var(--bs-body-color); border: 1px solid rgba(214,160,23,.55);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.22); padding: 10px 12px; opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s; }
.cf-ads-corner.in { opacity: 1; transform: none; }
.cf-ads-corner .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cf-ads-corner .x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-secondary-color); line-height: 1; padding: 0; }
.cf-ads-cs { display: none; align-items: center; gap: 10px; color: inherit; text-decoration: none; } .cf-ads-cs.on { display: flex; }
.cf-ads-cs .im img { max-height: 54px; max-width: 110px; object-fit: contain; border-radius: 6px; } .cf-ads-cs .tx b { font-size: .92rem; }
.cf-ads-cs .go { padding: 4px 10px; font-size: .78rem; }
.cf-ads-corner .nx { display: block; margin: 6px 0 0 auto; border: 0; background: none; color: var(--bs-secondary-color); font-size: .78rem; padding: 0; }
@media (max-width: 576px) {
  .cf-ads-strip { height: 84px; } .cf-ads-sl { gap: 10px; padding: 14px 12px 12px; } .cf-ads-sl .im img { max-width: 90px; max-height: 48px; } .cf-ads-sl .tx b { font-size: .88rem; }
  .cf-ads-sl .tx small { display: none; } .cf-ads-sl .go { padding: 5px 9px; font-size: .78rem; }
  .cf-ads-corner { left: 0; right: 0; bottom: 0; width: auto; border-radius: 12px 12px 0 0; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
  .cf-ads-corner .hd { order: 3; margin: 0; } .cf-ads-corner .hd .cf-ads-tag { display: none; } .cf-ads-cs { flex: 1; min-width: 0; } .cf-ads-cs .im img { max-height: 34px; max-width: 80px; }
  .cf-ads-cs .tx small { display: none; } .cf-ads-cs .tx b { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .cf-ads-corner .nx { display: none; } .cf-ads-corner.no-m { display: none !important; }
}
[data-bs-theme="dark"] .cf-ads-tag { color: #ffc83d; }
[data-bs-theme="dark"] .cf-ads-strip, [data-bs-theme="dark"] .cf-ads-corner { border-color: rgba(245,197,66,.35); }
[data-bs-theme="dark"] .cf-ads-tour { background: rgba(245,197,66,.08); border-color: rgba(245,197,66,.25); }
[data-bs-theme="dark"] .cf-ads-dots button::after { background: var(--cf-p-dark-panel-line); } [data-bs-theme="dark"] .cf-ads-dots button.on::after { background: var(--cf-flow); }
@media print { .cf-ads-strip, .cf-ads-corner, .cf-ads-tour { display: none !important; } }
/* ♟ Partidas (PGN): faixa do link público das planilhas da rodada */
[data-bs-theme="dark"] .pg-pub { background: #12294a; border-color: #2c5aa0; color: #dbe6ff; }
/* ▦ Modo blocos (blocos.php): cor fixa por grupo (BLK_GROUPS em blocks_lib.php), texto branco; grade de 2 colunas no celular até 6 na TV */
.blk-g-mesas { --blk: #18794a; } .blk-g-rodada { --blk: var(--cf-action); } .blk-g-ocorr { --blk: #e8590c; } .blk-g-planilhas { --blk: #0c8599; }
.blk-g-equipe { --blk: #0f766e; } .blk-g-docs { --blk: #7048e8; } .blk-g-prev { --blk: #d6336c; } .blk-g-config { --blk: #5c677d; }
.blk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 104px; grid-auto-flow: dense; gap: 12px; }
@media (min-width: 576px) { .blk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 128px; } }
@media (min-width: 900px) { .blk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .blk-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 132px; } }
.blk { position: relative; display: flex; flex-direction: column; justify-content: space-between; background: var(--blk); color: #fff; border-radius: 14px;
  padding: 12px 14px; text-decoration: none; overflow: hidden; box-shadow: 0 2px 6px rgba(11,31,75,.18); transition: transform .12s, box-shadow .12s; cursor: pointer; min-width: 0; border: 0; text-align: left; }
.blk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0) 60%); pointer-events: none; }
.blk:hover, .blk:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,31,75,.28); outline: none; }
.blk:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blk); }
.blk.s-w { grid-column: span 2; } .blk.s-b { grid-column: span 2; grid-row: span 2; }
.blk .ic { font-size: 1.9rem; line-height: 1; } .blk.s-b .ic { font-size: 3rem; }
.blk .nm { font-weight: 700; font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; } .blk.s-b .nm { font-size: 1.35rem; }
.blk .sb { display: none; font-size: .78rem; opacity: .9; line-height: 1.25; margin-top: 2px; } .blk.s-w .sb, .blk.s-b .sb { display: block; }
.blk .num { position: absolute; top: 10px; right: 12px; text-align: right; max-width: 60%; }
.blk .num b { display: inline-block; background: rgba(255,255,255,.95); color: var(--cf-navy); border-radius: 999px; padding: 2px 10px; font-size: .95rem; }
.blk .num b.a { background: var(--cf-p-tour-gold); color: #5c3c00; } .blk .num small { display: none; font-size: .74rem; margin-top: 3px; opacity: .95; }
.blk.s-w .num small, .blk.s-b .num small { display: block; } .blk.s-b .num b { font-size: 1.5rem; padding: 4px 16px; }
.blk .top { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; position: relative; z-index: 1; }
.blk .top a { color: #fff; background: rgba(255,255,255,.16); border-radius: 8px; padding: 4px 9px; text-decoration: none; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk .top a:hover { background: rgba(255,255,255,.3); }
/* ⭐ Mais usados: ícone na linha do título e os links em 2 colunas (2×1 e 2×2), para caber na altura do bloco */
.blk.blk-top { justify-content: flex-start; padding: 10px 12px; }
.blk-top .hd { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.blk-top .hd .ic { font-size: 1.15rem; } .blk-top .hd .nm { font-size: .98rem; }
.blk-top .hd .sb { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.blk-top .top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 6px; }
.blk-top.s-w .top, .blk-top.s-b .top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-top .top a { padding: 3px 8px; font-size: .82rem; line-height: 1.35; }
.blk-top .emp { font-size: .78rem; opacity: .9; white-space: normal; }
.blk-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: #5a6577; margin-top: 16px; }
.blk-leg span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--blk); margin-right: 5px; vertical-align: -1px; }
/* Personalizar: controles sobre cada bloco */
.blk-edit .blk { cursor: grab; animation: blk-wob .9s ease-in-out infinite alternate; } .blk-edit .blk.drag { opacity: .45; }
@keyframes blk-wob { from { transform: rotate(-.4deg); } to { transform: rotate(.4deg); } }
@media (prefers-reduced-motion: reduce) { .blk-edit .blk { animation: none; } }
.blk .ed { display: none; position: absolute; left: 6px; right: 6px; top: 6px; gap: 4px; justify-content: space-between; z-index: 2; flex-wrap: wrap; }
.blk-edit .blk .ed { display: flex; } .blk-edit .blk .sb, .blk-edit .blk .top, .blk-edit .blk .ic, .blk-edit .blk .num { display: none; }
.blk-edit .blk { justify-content: flex-end; }
.blk .ed button { border: 0; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--cf-navy); font-size: .8rem; font-weight: 600; padding: 3px 7px; min-width: 30px; min-height: 30px; }
.blk .ed button.off { opacity: .55; text-decoration: line-through; } .blk .ed .rm { background: var(--cf-alert-bg); color: var(--cf-alert-ink); }
.blk-add { display: flex; flex-wrap: wrap; gap: 8px; }
.blk-add button { border: 2px solid var(--blk); background: #fff; color: var(--cf-p-ink); border-radius: 10px; padding: 6px 10px; font-size: .88rem; text-align: left; }
.blk-add button:hover { background: var(--blk); color: #fff; }
[data-bs-theme="dark"] .blk-g-mesas { --blk: #18794a; } [data-bs-theme="dark"] .blk-g-rodada { --blk: #1a5bb8; } [data-bs-theme="dark"] .blk-g-ocorr { --blk: #c24c0c; }
[data-bs-theme="dark"] .blk-g-planilhas { --blk: #0b6c7c; } [data-bs-theme="dark"] .blk-g-equipe { --blk: #0d6159; } [data-bs-theme="dark"] .blk-g-docs { --blk: #5b3cc4; }
[data-bs-theme="dark"] .blk-g-prev { --blk: #b02a5b; } [data-bs-theme="dark"] .blk-g-config { --blk: #4a5468; }
[data-bs-theme="dark"] .blk { box-shadow: 0 2px 8px rgba(0,0,0,.45); } [data-bs-theme="dark"] .blk-leg { color: #a9b4c8; }
[data-bs-theme="dark"] .blk-add button { background: var(--cf-p-dark-surface); color: var(--cf-p-zebra); } [data-bs-theme="dark"] .blk .ed .rm { background: var(--cf-alert-bg); color: var(--cf-alert-ink); }
/* 🎯 Modo salão (arbiter/salao.php): mesa com botões grandes; celular = uma mesa por tela (mapa por cima, botão ▦), a partir de 900 px = mapa à esquerda */
.sl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; font-size: .95rem; }
.sl-faltam { background: #fff3c4; color: #5c3c00; border-radius: 999px; padding: 3px 12px; } .sl-ok { color: var(--cf-done-ink); font-weight: 600; }
.sl-clock span { border-radius: 999px; padding: 3px 12px; background: var(--cf-p-tint-blue); color: var(--cf-navy); } .sl-clock .warn { background: #ffe8cc; color: #7a3a00; }
.sl-clock .end { background: var(--cf-alert-bg); color: var(--cf-alert-ink); } .sl-clock .wait { background: var(--cf-p-gray-100); color: #5a6577; }
.sl-sec { display: inline-flex; gap: 6px; align-items: center; margin: 0; cursor: pointer; }
.sl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.sl-map { display: none; background: #fff; border: 1px solid var(--cf-p-gray-300); border-radius: 14px; padding: 12px; }
body.sl-mapon .sl-map { display: block; position: fixed; inset: 0; z-index: 1050; border-radius: 0; overflow: auto; }
.sl-maph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sl-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .75rem; color: #5a6577; margin-bottom: 8px; }
.sl-leg span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid var(--cf-p-gray-500); }
.sl-leg .t-pend::before { background: #fff; } .sl-leg .t-done::before { background: var(--cf-done); border-color: var(--cf-done); } .sl-leg .t-abs::before { background: var(--cf-alert); border-color: var(--cf-alert); }
.sl-leg .t-lock::before { background: #868e96; border-color: #868e96; } .sl-leg .t-bye::before { background: var(--cf-bye-bg); border-color: var(--cf-bye); }
.sl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.sl-t { border: 1.5px solid var(--cf-p-gray-500); background: #fff; color: var(--cf-p-ink); border-radius: 10px; min-height: 50px; font-weight: 700; font-size: 1rem; line-height: 1.1; padding: 4px 2px; }
.sl-t small { display: block; font-size: .68rem; font-weight: 600; opacity: .9; }
.sl-t.t-done { background: var(--cf-done); border-color: var(--cf-done); color: #fff; } .sl-t.t-abs { background: var(--cf-alert); border-color: var(--cf-alert); color: #fff; }
.sl-t.t-lock { background: #868e96; border-color: #868e96; color: #fff; } .sl-t.t-bye { background: var(--cf-bye-bg); border-color: var(--cf-bye); color: var(--cf-bye-ink); }
.sl-t.cur { outline: 3px solid var(--cf-action); outline-offset: 2px; }
.sl-board { background: #fff; border: 1px solid var(--cf-p-gray-300); border-radius: 16px; padding: 14px; box-shadow: 0 2px 8px rgba(11,31,75,.06); min-width: 0; }
.sl-nav { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.sl-arrow { width: 56px; flex: 0 0 56px; border: 1.5px solid var(--cf-p-gray-400); background: #f8f9fa; border-radius: 12px; font-size: 2rem; line-height: 1; color: var(--cf-navy); }
.sl-arrow:disabled { opacity: .35; }
.sl-no { flex: 1; min-width: 0; border: 1.5px solid var(--cf-action); background: var(--cf-p-tint-blue); color: var(--cf-navy); border-radius: 12px; padding: 6px 8px; }
.sl-no b { display: block; font-size: 1.6rem; line-height: 1.1; } .sl-no small { display: block; font-size: .75rem; color: var(--cf-p-gray-700); }
.sl-tm { text-align: center; font-weight: 600; color: var(--cf-p-gray-700); margin: -4px 0 8px; font-size: .9rem; }
.sl-pl { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--cf-p-final-bg); flex-wrap: wrap; }
.sl-c { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px; border: 2px solid var(--cf-p-gray-700); } .sl-c.white { background: #fff; } .sl-c.black { background: var(--cf-p-ink); }
.sl-pn { flex: 1; min-width: 150px; } .sl-pn b { font-size: 1.15rem; overflow-wrap: anywhere; } .sl-pn small { display: block; color: var(--cf-p-muted); font-size: .8rem; }
.sl-team { display: block; font-size: .78rem; color: var(--cf-action); }
.sl-ab { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; font-size: .85rem; }
.sl-abs { border: 1.5px solid var(--cf-orange); background: #fff; color: var(--cf-orange-ink); border-radius: 10px; padding: 6px 10px; font-weight: 600; min-height: 40px; }
.sl-abs.on { border-color: var(--cf-done); color: var(--cf-done-ink); } .sl-absl { color: var(--cf-alert-ink); font-weight: 600; } .sl-arr { color: var(--cf-done-ink); }
.sl-body { padding-top: 12px; }
.sl-rs, .sl-wo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sl-wo { margin-top: 10px; }
.sl-r { border: 2px solid var(--cf-p-gray-400); border-radius: 14px; min-height: 96px; background: #fff; color: var(--cf-p-ink); padding: 6px 4px; }
.sl-r b { display: block; font-size: 1.9rem; line-height: 1.1; white-space: nowrap; } .sl-r small { display: block; font-size: .78rem; color: var(--cf-p-gray-700); }
.sl-r.w { background: #fff; } .sl-r.d { background: #f5f9ff; } .sl-r.k { background: var(--cf-p-ink); color: #fff; border-color: var(--cf-p-ink); } .sl-r.k small { color: var(--cf-p-gray-400); }
.sl-r.f { min-height: 62px; background: #fffaf0; border-color: #ffc078; } .sl-r.f b { font-size: 1.25rem; }
.sl-r.sel { outline: 4px solid var(--cf-action); outline-offset: 2px; border-color: var(--cf-action); }
.sl-r.sug { border-color: var(--cf-alert); box-shadow: 0 0 0 3px rgba(224,49,49,.25); }
.sl-sug { background: var(--cf-alert-bg); color: var(--cf-alert-ink); border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; font-size: .88rem; }
.sl-cf { position: sticky; bottom: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--cf-done-soft); border: 2px solid var(--cf-done); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.sl-cf span { flex: 1 1 100%; font-size: 1.05rem; } .sl-cf .btn { flex: 1; min-height: 54px; font-weight: 700; }
@media (min-width: 576px) { .sl-cf span { flex: 1 1 auto; } .sl-cf .btn { flex: 0 0 auto; min-width: 140px; } }
.sl-res { text-align: center; padding: 10px 0 12px; } .sl-res span { display: block; font-size: 2.6rem; font-weight: 800; color: var(--cf-done-ink); } .sl-res small { color: var(--cf-p-gray-700); }
.sl-alt { width: 100%; min-height: 50px; font-weight: 600; }
.sl-msg { padding: 16px; text-align: center; background: #f8f9fa; border-radius: 12px; color: var(--cf-p-gray-700); }
.sl-sh { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; } .sl-sh .btn { flex: 1; min-height: 48px; font-weight: 600; }
.sl-pad { position: fixed; inset: 0; z-index: 1060; background: rgba(5,13,32,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sl-pad[hidden] { display: none; }
.sl-padc { background: #fff; border-radius: 16px; padding: 14px; width: 100%; max-width: 320px; }
.sl-padv { font-size: 2rem; font-weight: 700; text-align: center; border: 1.5px solid var(--cf-p-gray-400); border-radius: 10px; margin-bottom: 10px; min-height: 56px; }
.sl-padk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sl-padk button { min-height: 58px; font-size: 1.5rem; font-weight: 700; border: 1.5px solid var(--cf-p-gray-400); border-radius: 12px; background: #f8f9fa; color: var(--cf-p-ink); }
.sl-padk .ok { background: var(--cf-action); border-color: var(--cf-action); color: #fff; }
.sl-toast { position: fixed; left: 50%; bottom: 76px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 1070; background: var(--cf-navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: all .2s; max-width: calc(100% - 32px); text-align: center; }
.sl-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 400px) { .sl-r { min-height: 84px; } .sl-r b { font-size: 1.55rem; } .sl-r small { font-size: .7rem; } .sl-arrow { width: 48px; flex-basis: 48px; } .sl-no b { font-size: 1.35rem; } }
@media (min-width: 900px) {
  .sl { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .sl-map { display: block; position: sticky; top: 10px; max-height: calc(100vh - 30px); overflow: auto; }
  .sl-mapbtn, .sl-mapx { display: none; }
  body.sl-mapon .sl-map { position: sticky; inset: auto; border-radius: 14px; }
}
@media (min-width: 1200px) { .sl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sl-tiles { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); } }
[data-bs-theme="dark"] .sl-faltam { background: #4a3c12; color: var(--cf-p-back-sand); } [data-bs-theme="dark"] .sl-ok { color: var(--cf-done-ink); }
[data-bs-theme="dark"] .sl-clock span { background: #13254a; color: var(--cf-p-row-hover); } [data-bs-theme="dark"] .sl-clock .warn { background: #4a2e16; color: var(--cf-p-dark-orange-text); }
[data-bs-theme="dark"] .sl-clock .end { background: var(--cf-alert-bg); color: var(--cf-alert-ink); } [data-bs-theme="dark"] .sl-clock .wait { background: #2a2f38; color: var(--cf-p-gray-500); }
[data-bs-theme="dark"] .sl-map, [data-bs-theme="dark"] .sl-board, [data-bs-theme="dark"] .sl-padc { background: #1b2230; border-color: #343d4f; }
[data-bs-theme="dark"] .sl-t { background: #232b3a; color: var(--cf-p-zebra); border-color: var(--cf-p-dark-panel-line); } [data-bs-theme="dark"] .sl-t.t-done { background: var(--cf-done); border-color: var(--cf-done); }
[data-bs-theme="dark"] .sl-t.t-abs { background: var(--cf-alert); border-color: var(--cf-alert); } [data-bs-theme="dark"] .sl-t.t-done, [data-bs-theme="dark"] .sl-t.t-abs { color: #fff; } [data-bs-theme="dark"] .sl-t.t-bye { background: #2b2445; color: var(--cf-bye-ink); }
[data-bs-theme="dark"] .sl-t.cur { outline-color: var(--cf-flow); } [data-bs-theme="dark"] .sl-leg { color: #a9b4c8; }
[data-bs-theme="dark"] .sl-arrow { background: #232b3a; border-color: var(--cf-p-dark-panel-line); color: var(--cf-p-zebra); } [data-bs-theme="dark"] .sl-no { background: #13254a; border-color: var(--cf-flow); color: var(--cf-p-zebra); }
[data-bs-theme="dark"] .sl-no small, [data-bs-theme="dark"] .sl-tm, [data-bs-theme="dark"] .sl-pn small, [data-bs-theme="dark"] .sl-res small { color: #a9b4c8; }
[data-bs-theme="dark"] .sl-pl { border-color: #2b3242; } [data-bs-theme="dark"] .sl-c { border-color: var(--cf-p-gray-500); } [data-bs-theme="dark"] .sl-c.black { background: #000; }
[data-bs-theme="dark"] .sl-team { color: #74c0fc; }
[data-bs-theme="dark"] .sl-abs { background: var(--cf-orange-bg); color: var(--cf-orange-ink); } [data-bs-theme="dark"] .sl-abs.on { color: var(--cf-done-ink); border-color: var(--cf-done); }
[data-bs-theme="dark"] .sl-absl { color: var(--cf-alert-ink); } [data-bs-theme="dark"] .sl-arr { color: var(--cf-done-ink); }
[data-bs-theme="dark"] .sl-r { background: #232b3a; color: var(--cf-p-zebra); border-color: var(--cf-p-dark-panel-line); } [data-bs-theme="dark"] .sl-r small { color: #a9b4c8; }
[data-bs-theme="dark"] .sl-r.w { background: var(--cf-p-gray-100); color: var(--cf-p-ink); } [data-bs-theme="dark"] .sl-r.w small { color: var(--cf-p-gray-700); }
[data-bs-theme="dark"] .sl-r.d { background: #2b3242; } [data-bs-theme="dark"] .sl-r.k { background: #000; border-color: var(--cf-p-muted); }
[data-bs-theme="dark"] .sl-r.f { background: #262214; border-color: #8a5a1a; } [data-bs-theme="dark"] .sl-r.sel { outline-color: var(--cf-flow); border-color: var(--cf-flow); }
[data-bs-theme="dark"] .sl-sug { background: var(--cf-alert-bg); color: var(--cf-alert-ink); } [data-bs-theme="dark"] .sl-cf { background: #15301f; border-color: var(--cf-done); }
[data-bs-theme="dark"] .sl-res span { color: var(--cf-done-ink); } [data-bs-theme="dark"] .sl-msg { background: #232b3a; color: #c5cfdd; }
[data-bs-theme="dark"] .sl-padv, [data-bs-theme="dark"] .sl-padk button { background: #232b3a; border-color: var(--cf-p-dark-panel-line); color: var(--cf-p-zebra); } [data-bs-theme="dark"] .sl-padk .ok { background: var(--cf-action); color: #fff; }
/* Mesas (tela de sempre): botão para o modo salão e volta da foto/ocorrência aberta a partir dele */
.sl-go { border: 1.5px solid var(--cf-action); color: var(--cf-action); background: #fff; border-radius: 999px; font-weight: 600; }
.sl-go:hover { background: var(--cf-action); color: #fff; }
.sl-back { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1045; background: var(--cf-action); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.sl-back:hover { color: #fff; background: var(--cf-navy); }
.sl-shot { position: fixed; inset: 0; z-index: 1065; background: rgba(5,13,32,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sl-shot > div { background: #fff; border-radius: 16px; padding: 18px; max-width: 360px; width: 100%; text-align: center; }
[data-bs-theme="dark"] .sl-go { background: #13254a; color: #74c0fc; border-color: var(--cf-flow); } [data-bs-theme="dark"] .sl-go:hover { background: var(--cf-flow); color: var(--cf-navy); }
[data-bs-theme="dark"] .sl-shot > div { background: #1b2230; }
@media print { .sl-back, .sl-go { display: none !important; } }
/* ▦ Favoritar a tela (blk_fav_btn, ao lado do título): quatro bloquinhos, um de cada cor; vazios = fora dos blocos, preenchidos = nos blocos */
.cf-fav { display: inline-grid; grid-template-columns: 9px 9px; gap: 2px; padding: 5px; margin-left: 8px; border: 1px solid var(--cf-p-gray-400); border-radius: 8px; background: #fff;
  vertical-align: middle; cursor: pointer; transition: transform .12s; line-height: 0; }
.cf-fav:hover, .cf-fav:focus-visible { transform: scale(1.1); }
.cf-fav span { width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid; background: transparent; transition: background .15s; }
.cf-fav span:nth-child(1) { border-color: #1f9d55; } .cf-fav span:nth-child(2) { border-color: var(--cf-action); }
.cf-fav span:nth-child(3) { border-color: #e8590c; } .cf-fav span:nth-child(4) { border-color: #7048e8; }
.cf-fav.on span:nth-child(1) { background: #1f9d55; } .cf-fav.on span:nth-child(2) { background: var(--cf-action); }
.cf-fav.on span:nth-child(3) { background: #e8590c; } .cf-fav.on span:nth-child(4) { background: #7048e8; }
.cf-fav-t { position: fixed; left: 50%; bottom: 72px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 1075; background: var(--cf-navy); color: #fff;
  border-radius: 999px; padding: 9px 18px; font-size: .92rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: all .2s; max-width: calc(100% - 24px); text-align: center; }
.cf-fav-t.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cf-fav-t a { color: #9ec5fe; margin-left: 8px; white-space: nowrap; }
.cf-fav-dlg { position: fixed; inset: 0; z-index: 1080; background: rgba(5,13,32,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cf-fav-dlg > div { background: #fff; border-radius: 14px; padding: 16px; width: 100%; max-width: 380px; }
[data-bs-theme="dark"] .cf-fav { background: #1b2230; border-color: var(--cf-p-dark-panel-line); }
[data-bs-theme="dark"] .cf-fav span:nth-child(1) { border-color: #2fb36b; } [data-bs-theme="dark"] .cf-fav span:nth-child(2) { border-color: #3d8bfd; }
[data-bs-theme="dark"] .cf-fav span:nth-child(3) { border-color: #f27a35; } [data-bs-theme="dark"] .cf-fav span:nth-child(4) { border-color: #9775fa; }
[data-bs-theme="dark"] .cf-fav.on span:nth-child(1) { background: #2fb36b; } [data-bs-theme="dark"] .cf-fav.on span:nth-child(2) { background: #3d8bfd; }
[data-bs-theme="dark"] .cf-fav.on span:nth-child(3) { background: #f27a35; } [data-bs-theme="dark"] .cf-fav.on span:nth-child(4) { background: #9775fa; }
[data-bs-theme="dark"] .cf-fav-dlg > div { background: #1b2230; }
@media print { .cf-fav, .cf-fav-t { display: none !important; } }
/* 🦉 Modo aprendizado: coruja de óculos (blk_owl(), SVG); no modo escuro o corpo clareia e ganha contorno */
.blk-owl { width: 1.25em; height: 1.25em; vertical-align: -.25em; --owl-b: var(--cf-navy); --owl-s: none; }
.btn-primary .blk-owl { --owl-s: #ffffff; }
.blk-owl.lg { width: 2em; height: 2em; vertical-align: -.6em; margin: -.35em .1em -.3em -.15em; } /* coruja grande no botão "Ligar o aprendizado" */
[data-bs-theme="dark"] .blk-owl { --owl-b: #24427f; --owl-s: var(--cf-flow); }
/* Animação "Modo aprendizado ativado", no estilo do aviso de leitura do Chess-Results (busy.js): lendo… → ✓ ativado */
.blk-act { position: fixed; inset: 0; z-index: 2000; background: rgba(11,31,75,.45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: blkActIn .2s ease-out; }
.blk-act.out { opacity: 0; transition: opacity .25s; }
@keyframes blkActIn { from { opacity: 0; } }
.blk-act-c { background: #fff; color: var(--cf-navy); border: 3px solid var(--cf-action); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35); padding: 24px 28px; text-align: center; max-width: 460px; width: 100%;
  animation: blkActPop .3s cubic-bezier(.2,.9,.3,1); }
@keyframes blkActPop { from { transform: scale(.85); opacity: 0; } }
.blk-act-r { position: relative; width: 96px; height: 96px; margin: 0 auto 10px; }
.blk-act-sp { position: absolute; inset: 0; border: .35rem solid var(--cf-action); border-right-color: transparent; border-radius: 50%; animation: cfBusySpin .75s linear infinite; }
@keyframes cfBusySpin { to { transform: rotate(360deg); } }
.blk-act-o { position: absolute; left: 18px; top: 16px; width: 60px; height: 60px; animation: blkOwlBob 1.2s ease-in-out infinite; }
.blk-act-o .owl-eye { transform-box: fill-box; transform-origin: center; animation: blkOwlBlink 2.4s infinite; }
@keyframes blkOwlBob { 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes blkOwlBlink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.blk-act-h { font-size: 1.35rem; font-weight: 700; }
.blk-act-s { font-size: .95rem; color: var(--cf-p-gray-700); margin-top: 6px; }
.blk-act-bar { height: 6px; border-radius: 999px; background: var(--cf-p-tint-blue); overflow: hidden; margin: 10px auto 0; max-width: 260px; }
.blk-act-bar span { display: block; height: 100%; width: 0; background: var(--cf-action); border-radius: 999px; animation: blkActBar 1.6s ease-in-out forwards; }
@keyframes blkActBar { to { width: 100%; } }
.blk-act.done .blk-act-c { border-color: var(--cf-done); }
.blk-act.done .blk-act-sp { border-color: var(--cf-done); animation: none; }
.blk-act.done .blk-act-h { color: var(--cf-done-ink); } .blk-act.done .blk-act-bar span { background: var(--cf-done); width: 100%; }
.blk-act.done .blk-act-o { animation: blkOwlHop .5s ease-out 1; }
@keyframes blkOwlHop { 40% { transform: translateY(-10px) scale(1.08); } }
[data-bs-theme="dark"] .blk-act-c { background: #16213a; color: var(--cf-p-row-hover); border-color: var(--cf-flow); } [data-bs-theme="dark"] .blk-act-sp { border-color: var(--cf-flow); border-right-color: transparent; }
[data-bs-theme="dark"] .blk-act-s { color: var(--cf-p-gray-500); } [data-bs-theme="dark"] .blk-act-bar { background: #22324d; } [data-bs-theme="dark"] .blk-act-bar span { background: var(--cf-flow); }
[data-bs-theme="dark"] .blk-act.done .blk-act-c { border-color: #40c057; } [data-bs-theme="dark"] .blk-act.done .blk-act-h { color: var(--cf-done-ink); }
[data-bs-theme="dark"] .blk-act.done .blk-act-sp { border-color: #40c057; }
@media (prefers-reduced-motion: reduce) { .blk-act-sp, .blk-act-o, .blk-act-o .owl-eye, .blk-act-c { animation: none !important; } }
@media print { .blk-act { display: none !important; } }
/* "✓ Gravado!" no botão do resultado (assets/gravado.js: Mesas — janela e visão condensada — e Modo salão) */
.btn.gv, button.gv { position: relative; overflow: hidden; transition: background .2s, border-color .2s, color .2s; }
.gv-saving { background: var(--cf-p-tint-blue) !important; border-color: var(--cf-action) !important; color: var(--cf-navy) !important; }
.gv-saving small { color: var(--cf-navy) !important; }
.gv-sp { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--cf-action); border-right-color: transparent; border-radius: 50%; vertical-align: -3px; animation: gvSpin .7s linear infinite; }
@keyframes gvSpin { to { transform: rotate(360deg); } }
.gv-ok { background: var(--cf-done) !important; border-color: var(--cf-done) !important; color: #fff !important; animation: gvPulse .6s ease-out; }
.gv-ok small { color: var(--cf-p-done-soft) !important; }
@keyframes gvPulse { 0% { box-shadow: 0 0 0 0 rgba(47,158,68,.6); } 100% { box-shadow: 0 0 0 16px rgba(47,158,68,0); } }
.gv-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #fff; opacity: .85; transform-origin: left; animation: gvBar 1s linear forwards; }
@keyframes gvBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gv-warn { background: var(--cf-warn) !important; border-color: var(--cf-warn-edge) !important; color: var(--cf-p-ink) !important; } /* aviso = amarelo com texto escuro (branco no âmbar ficava em 2.4:1) */
.gv-err { background: var(--cf-alert) !important; border-color: var(--cf-alert) !important; color: #fff !important; }
.gv-err small { color: #fff !important; opacity: .95; } .gv-warn small { color: var(--cf-p-ink) !important; }
button.gv-warn b, button.gv-err b { font-size: .92rem !important; line-height: 1.2; display: block; } button.gv-ok b { line-height: 1.15; }
.gv-dim { opacity: .4; }
.gv-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; text-align: left; }
.gv-msg > div { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.gv-msg.gv-warn { background: var(--cf-warn-bg) !important; border: 1.5px solid var(--cf-warn-edge) !important; color: var(--cf-warn-ink) !important; }
.gv-msg.gv-err { background: var(--cf-alert-bg) !important; border: 1.5px solid var(--cf-alert) !important; color: var(--cf-alert-ink) !important; }
.gv-msg .gv-okbtn { background: var(--cf-navy); color: #fff; border: 0; min-height: 40px; padding: 6px 18px; font-weight: 600; }
.gv-msg .gv-okbtn:hover { background: var(--cf-action); color: #fff; }
.gv-msg .gv-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.gv-msg .gv-cpbtn { background: transparent; color: inherit; border: 1.5px solid currentColor; min-height: 40px; padding: 6px 14px; font-weight: 600; }
/* Janela com o texto inteiro e "📋 Copiar" (cfErrBox, gravado.js) */
.gv-box-bg { position: fixed; inset: 0; z-index: 2600; /* acima dos botões flutuantes 💡/🧪 (2400–2500) */ background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gv-box { background: #fff; color: var(--cf-p-ink); border-radius: 12px; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.gv-box-h { padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--cf-p-gray-300); }
.gv-box-t { padding: 12px 16px; overflow: auto; flex: 1 1 auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; -webkit-user-select: text; user-select: text; }
.gv-box-f { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--cf-p-gray-300); }
.gv-box-f .btn { min-height: 42px; min-width: 100px; }
[data-bs-theme="dark"] .gv-box { background: var(--cf-p-dark-well); color: var(--cf-p-zebra); } [data-bs-theme="dark"] .gv-box-h, [data-bs-theme="dark"] .gv-box-f { border-color: #3a4352; }
[data-bs-theme="dark"] .gv-saving { background: #13254a !important; border-color: var(--cf-flow) !important; color: var(--cf-p-row-hover) !important; }
[data-bs-theme="dark"] .gv-saving small { color: var(--cf-p-row-hover) !important; } [data-bs-theme="dark"] .gv-sp { border-color: var(--cf-flow); border-right-color: transparent; }
[data-bs-theme="dark"] .gv-ok { background: var(--cf-done) !important; border-color: var(--cf-done) !important; }
[data-bs-theme="dark"] .gv-warn { background: var(--cf-warn) !important; border-color: var(--cf-warn-edge) !important; } [data-bs-theme="dark"] .gv-err { background: var(--cf-alert) !important; border-color: var(--cf-alert) !important; }
[data-bs-theme="dark"] .gv-msg.gv-warn { background: var(--cf-warn-bg) !important; color: var(--cf-warn-ink) !important; border-color: var(--cf-warn-edge) !important; }
[data-bs-theme="dark"] .gv-msg.gv-err { background: var(--cf-alert-bg) !important; color: var(--cf-alert-ink) !important; border-color: var(--cf-alert) !important; }
[data-bs-theme="dark"] .gv-msg .gv-okbtn { background: var(--cf-flow); color: var(--cf-navy); }
@media (prefers-reduced-motion: reduce) { .gv-sp, .gv-ok, .gv-bar { animation: none !important; } .gv-bar { transform: scaleX(1); } }
/* 🔊 Áudio DV da rodada (assets/pgn_tts_lote.js): carimbo "Gravado!" por cima da lista ao terminar o envio e faixa forte que fica na janela (verde: tudo gravado; âmbar: parte ficou de fora) */
.dv-stamp { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(var(--bs-body-bg-rgb), .78); cursor: pointer; animation: dvFade .2s ease-out; }
.dv-stamp > div { background: var(--cf-done); color: #fff; border-radius: 16px; padding: 14px 30px; text-align: center; box-shadow: 0 8px 24px rgba(11,31,75,.25); animation: dvPop .35s ease-out; max-width: calc(100% - 24px); }
.dv-stamp b { display: block; font-size: 1.6rem; line-height: 1.2; } .dv-stamp i { display: block; font-style: normal; font-size: 2.2rem; line-height: 1; }
.dv-stamp small { display: block; color: var(--cf-p-done-soft); font-size: .9rem; }
.dv-stamp.warn > div { background: var(--cf-orange); } .dv-stamp.warn small { color: var(--cf-p-orange-bg); }
@keyframes dvPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes dvFade { from { opacity: 0; } to { opacity: 1; } }
.dv-band { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; background: var(--cf-done); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.dv-band b.big { font-size: 1.15rem; } .dv-band .ic { font-size: 1.4rem; line-height: 1; }
.dv-band a { color: #fff; font-weight: 600; margin-left: auto; } .dv-band a:hover { color: var(--cf-p-done-soft); }
.dv-band.warn { background: var(--cf-orange); }
[data-bs-theme="dark"] .dv-stamp > div, [data-bs-theme="dark"] .dv-band { background: var(--cf-done); }
[data-bs-theme="dark"] .dv-stamp.warn > div, [data-bs-theme="dark"] .dv-band.warn { background: #c26a00; }
@media (prefers-reduced-motion: reduce) { .dv-stamp, .dv-stamp > div { animation: none !important; } }

/* Distribuição das mesas do PGN (organizer/pgn_split.php): 🖌 pincel por árbitro e mapa das mesas */
.ps-tools { position: sticky; top: 0; z-index: 20; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 12px; padding: 8px; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(11, 31, 75, .08); }
.ps-tool { border: 2px solid var(--c, var(--bs-border-color)); background: var(--bs-body-bg); color: var(--bs-body-color); border-radius: 20px; padding: 3px 10px; font-size: .88rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; user-select: none; -webkit-user-select: none; }
.ps-tool .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--cf-p-gray-500)); margin-right: 4px; }
.ps-tool.on { background: var(--c, var(--cf-p-gray-700)); color: #fff; } .ps-tool.on .dot { background: #fff; }
.ps-tool .cnt { font-size: .75rem; opacity: .85; }
.ps-map { display: flex; flex-wrap: wrap; gap: 3px; user-select: none; -webkit-user-select: none; }
.ps-map.paint .ps-b { touch-action: none; cursor: crosshair; }
.ps-b { position: relative; width: 38px; height: 32px; border-radius: 5px; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; }
.ps-b.none { background: repeating-linear-gradient(45deg, var(--cf-p-alert-tint), var(--cf-p-alert-tint) 4px, #fff 4px, #fff 8px); color: var(--cf-p-alert-ink); }
.ps-b.dup { background: repeating-linear-gradient(45deg, var(--cf-p-alert-red), var(--cf-p-alert-red) 4px, #fff 4px, #fff 8px); color: var(--cf-p-alert-ink); }
.ps-b.fin::after { content: "✓"; position: absolute; top: -1px; right: 2px; font-size: .6rem; }
.ps-b.rng { outline: 3px solid var(--cf-warn); outline-offset: 1px; }
@media (max-width: 575px) { .ps-tools { padding: 6px; } .ps-tool { font-size: .8rem; padding: 2px 8px; } }
[data-bs-theme="dark"] .ps-b.none { background: repeating-linear-gradient(45deg, var(--cf-alert-bg), var(--cf-alert-bg) 4px, #1b1f24 4px, #1b1f24 8px); color: var(--cf-alert-ink); }
[data-bs-theme="dark"] .ps-b.dup { background: repeating-linear-gradient(45deg, var(--cf-p-alert-red), var(--cf-p-alert-red) 4px, #1b1f24 4px, #1b1f24 8px); color: #fff; }

/* Fase da versão (cf_stage_tag): etiqueta pequena e com contorno ao lado do número — alfa cinza, beta laranja, RC azul; a estável não tem */
.cf-stage { display: inline-block; font-size: max(.62em, .75rem); font-weight: 700; letter-spacing: .06em; line-height: 1; padding: .2em .5em; border: 1px solid currentColor; border-radius: 999px; vertical-align: .2em; white-space: nowrap; cursor: help; }
.cf-stage-alfa { color: var(--cf-p-muted); }
.cf-stage-beta, .cf-stage-beta_open { color: #c2410c; }
.cf-stage-rc { color: #1971c2; }
[data-bs-theme="dark"] .cf-stage-alfa { color: var(--cf-p-gray-500); }
[data-bs-theme="dark"] .cf-stage-beta, [data-bs-theme="dark"] .cf-stage-beta_open { color: #ffa94d; }
[data-bs-theme="dark"] .cf-stage-rc { color: #74c0fc; }
.cf-about-ver .cf-stage { color: #ffa94d; } /* cabeçalho azul-escuro da janela "Sobre" */

/* % do andamento (Partidas PGN e 📊 Andamento): anel (padrão) ou pílula com a cor do avanço; seletor ◯ Anel | ▭ Pílula (localStorage cf_pct_vis) */
.cf-pct { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; padding: 1px 12px; font-weight: 700; font-size: 1rem; line-height: 1.5; margin-left: 6px; vertical-align: 1px; border: 1px solid; white-space: nowrap; }
button.cf-pct { cursor: pointer; }
.cf-pct.lo { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); border-color: var(--bs-danger-border-subtle); }
.cf-pct.mid { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border-color: var(--bs-warning-border-subtle); }
.cf-pct.hi { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); border-color: var(--bs-success-border-subtle); }
.cf-pct.done { background: var(--bs-success); color: #fff; border-color: var(--bs-success); }
.cf-pct.sm { font-size: .8rem; padding: 0 8px; margin-left: 4px; }
.cf-ring { background: none; border: 0; padding: 0; cursor: pointer; flex: 0 0 auto; line-height: 0; }
.cf-ring .tr { stroke: var(--bs-tertiary-bg); }
.cf-ring.lo .ar { stroke: var(--bs-danger); } .cf-ring.mid .ar { stroke: var(--bs-warning); } .cf-ring.hi .ar, .cf-ring.done .ar { stroke: var(--bs-success); }
.cf-ring text { font-size: 13px; font-weight: 700; fill: var(--bs-body-color); }
.cf-ring-w { display: flex; align-items: center; gap: 12px; }
.cf-ring-w > div { flex: 1; min-width: 0; }
.cf-pct-sw { display: inline-flex; border: 1px solid var(--bs-border-color); border-radius: 999px; overflow: hidden; margin-left: auto; font-weight: 400; vertical-align: middle; }
.cf-pct-sw button { border: 0; background: var(--bs-body-bg); color: var(--bs-secondary-color); font-size: .75rem; line-height: 1.2; padding: 3px 10px; white-space: nowrap; }
.cf-pct-sw button + button { border-left: 1px solid var(--bs-border-color); }
.cf-pct-sw button.on { background: var(--bs-primary); color: #fff; }
/* Cartões dos árbitros (📊 Andamento e 🏅 Desempenho do PGN): estilo da ficha da partida; a cor do fundo é a situação (lv-*), a do avatar é a do árbitro (--c).
   Usa as cores "subtle" do Bootstrap, que já trocam sozinhas no modo escuro. */
.cf-acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.cf-acard { --lv-bg: var(--bs-tertiary-bg); --lv-bd: var(--bs-border-color); --lv-tx: var(--bs-body-color); --lv-e: var(--bs-secondary-color);
  background: var(--lv-bg); border: 1px solid var(--lv-bd); color: var(--lv-tx); border-radius: 12px; padding: 10px 14px; min-width: 0; transition: outline-color .2s; }
.cf-acard.lv-done, .cf-acard.lv-hi { --lv-bg: var(--bs-success-bg-subtle); --lv-bd: var(--bs-success-border-subtle); --lv-tx: var(--bs-success-text-emphasis); --lv-e: var(--bs-success-text-emphasis); }
.cf-acard.lv-mid { --lv-bg: var(--bs-warning-bg-subtle); --lv-bd: var(--bs-warning-border-subtle); --lv-tx: var(--bs-warning-text-emphasis); --lv-e: var(--bs-warning-text-emphasis); }
.cf-acard.lv-lo { --lv-bg: var(--bs-danger-bg-subtle); --lv-bd: var(--bs-danger-border-subtle); --lv-tx: var(--bs-danger-text-emphasis); --lv-e: var(--bs-danger-text-emphasis); }
.cf-acard.lv-help { --lv-bg: var(--bs-primary-bg-subtle); --lv-bd: var(--bs-primary-border-subtle); --lv-tx: var(--bs-primary-text-emphasis); --lv-e: var(--bs-primary-text-emphasis); }
.cf-acard.lv-gold { --lv-bg: #fdf6dc; --lv-bd: #e9cf73; --lv-tx: #5c4708; --lv-e: #8a6a0c; }
[data-bs-theme=dark] .cf-acard.lv-gold { --lv-bg: #33290b; --lv-bd: #7a6418; --lv-tx: #f3dc8e; --lv-e: #e9c75a; }
.cf-acard.lv-pro { --lv-bg: #f3effc; --lv-bd: #cdbdf0; --lv-tx: #3b2a73; --lv-e: #4a3590; }
[data-bs-theme=dark] .cf-acard.lv-pro { --lv-bg: #241c3d; --lv-bd: #5a479c; --lv-tx: #ddd2ff; --lv-e: #c4b3ff; }
.cf-acard.drop { outline: 3px dashed var(--bs-primary); outline-offset: 2px; }
.cf-acard-h { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; min-width: 0; }
.cf-aav { --c: var(--bs-secondary); width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--c); color: var(--c); background: var(--bs-body-bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; flex: none; letter-spacing: .02em; }
.cf-acard-n { font-weight: 700; font-size: 1.02rem; line-height: 1.2; overflow-wrap: anywhere; }
.cf-acard-tg { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; border-radius: 10px; padding: 1px 9px; margin-top: 3px; background: var(--lv-e); color: var(--bs-body-bg); max-width: 100%; line-height: 1.25; } /* quebra em duas linhas quando falta espaço (o selo laranja ocupa o canto) */
.cf-acard-tg.ol { background: var(--bs-body-bg); color: var(--lv-e); border: 1px solid var(--lv-bd); }
.cf-acard-s { font-size: .78rem; opacity: .8; margin-top: 1px; overflow-wrap: anywhere; }
.cf-acard-r { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .88rem; padding: 2px 0; }
.cf-acard-r > span:first-child { opacity: .85; }
.cf-acard-r > b { text-align: right; font-weight: 700; white-space: nowrap; }
.cf-acard-r .cmp { font-size: .72rem; font-weight: 600; margin-left: 4px; }
.cf-acard-r .cmp.up { color: var(--bs-success-text-emphasis); } .cf-acard-r .cmp.dn { color: var(--bs-danger-text-emphasis); }
/* ♟ Selo laranja "N partidas" no canto do cartão: partidas que o árbitro de planilhas gravou (próprias + apoio). .inl = no meio do texto (tela do árbitro) */
.pgm-hastot { position: relative; } .pgm-hastot .cf-acard-h { padding-right: 62px; }
.pgm-tot { position: absolute; top: 10px; right: 10px; min-width: 52px; text-align: center; line-height: 1.05; border-radius: 14px; padding: 4px 8px 5px;
  background: linear-gradient(#ff8a3d, var(--cf-orange)); color: #fff; border: 1px solid #b54708; border-bottom: 4px solid #9a3a06;
  box-shadow: 0 3px 5px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.45); text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.pgm-tot b { display: block; font-size: 1.3rem; font-weight: 800; } .pgm-tot span { display: block; font-size: .68rem; font-weight: 600; }
.pgm-tot-pill { background: var(--cf-orange); color: #fff; font-weight: 700; }
[data-bs-theme=dark] .pgm-tot-pill { background: var(--cf-orange); }
.pgm-tot.inl { position: static; display: inline-block; vertical-align: middle; }
.pgm-tot.inl small { display: block; font-size: .62rem; font-weight: 600; opacity: .95; }
[data-bs-theme=dark] .pgm-tot { background: linear-gradient(#ff9a52, #f76707); border-color: #ffa94d; border-bottom-color: #ffc078; box-shadow: 0 3px 6px rgba(0,0,0,.6); }
/* ♟ Origem das partidas ("12 das suas mesas + 58 de colegas") e partes da pontuação em barrinhas (pgm_orig_html / pgm_parts_html) */
/* a origem é só informação: tom neutro (o laranja do cartão é da pontuação: selo do total e barrinhas) */
.pgm-orig { font-size: .78rem; background: var(--bs-tertiary-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 3px 8px; margin: 2px 0 6px; }
.pgm-parts { border-top: 1px dashed var(--bs-border-color); margin-top: 6px; padding-top: 6px; }
.pgm-pt { display: grid; grid-template-columns: 6.6em minmax(0,1fr) 2.2em; align-items: center; gap: 6px; font-size: .78rem; margin: 2px 0; }
.pgm-pt > span { white-space: nowrap; } .pgm-pt > em { font-style: normal; font-weight: 700; text-align: right; }
.pgm-pt > i { height: 6px; border-radius: 3px; background: var(--bs-tertiary-bg); overflow: hidden; } .pgm-pt > i > b { display: block; height: 100%; background: var(--cf-orange); }
.pgm-pt.pgm-sc { grid-template-columns: minmax(0,1fr) auto; font-weight: 600; margin-top: 4px; }
@media print { .pgm-tot { box-shadow: none; text-shadow: none; } }
.cf-acard-bar { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--bs-body-bg) 70%, transparent); overflow: hidden; display: flex; margin: 4px 0 6px; }
.cf-acard-bar i { display: block; height: 100%; transition: width .4s; }
.cf-acard-f { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 7px; }
.cf-acard-chip { font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--bs-body-bg); color: var(--lv-e); border: 1px solid var(--lv-bd); white-space: nowrap; }
.cf-acard-f .btn { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .78rem; }

/* Abas de pasta no estilo das dos relatórios (.rep-tabs em _rlib.php): cinza-azulado, ativa azul-marinho, faixa marinho embaixo.
   Uso: <ul class="nav nav-tabs cf-ftabs"> (Distribuição das mesas do PGN, individual e por equipes) */
ul.nav-tabs.cf-ftabs { gap: 4px; border-bottom: 4px solid var(--cf-navy); padding-left: 4px; }
ul.cf-ftabs > li > .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 7px; border-radius: 9px 9px 0 0; background: var(--cf-p-zebra); color: var(--cf-navy); font-weight: 600; font-size: .92rem; border: 1px solid #c5cfdd; border-bottom: 0; margin-bottom: 0; transition: background .12s; }
ul.cf-ftabs > li > .nav-link:not(.active):hover { background: #d6e0f0; color: var(--cf-navy); }
ul.cf-ftabs > li > .nav-link.active { background: var(--cf-navy); color: #fff !important; border-color: var(--cf-navy); box-shadow: none; }
ul.cf-ftabs > li > .nav-link.active .badge { background: #fff !important; color: var(--cf-navy) !important; }
[data-bs-theme=dark] ul.nav-tabs.cf-ftabs { border-bottom-color: var(--cf-flow); }
[data-bs-theme=dark] ul.cf-ftabs > li > .nav-link { background: #1c2a44; color: var(--cf-p-row-hover); border-color: #2e4166; }
[data-bs-theme=dark] ul.cf-ftabs > li > .nav-link:not(.active):hover { background: #2b3a5a; color: #fff; }
[data-bs-theme=dark] ul.cf-ftabs > li > .nav-link.active { background: var(--cf-flow); color: var(--cf-navy) !important; border-color: var(--cf-flow); }
/* 🧮 Pendências (pgn_split.php): leve destaque âmbar enquanto a aba não está aberta */
ul.cf-ftabs > li > .nav-link.pp-tab:not(.active) { background: var(--cf-p-warn-tint); border-color: #f0c36d; box-shadow: inset 0 3px 0 #ef9f27; }
ul.cf-ftabs > li > .nav-link.pp-tab:not(.active):hover { background: var(--cf-p-back-sand); }
[data-bs-theme=dark] ul.cf-ftabs > li > .nav-link.pp-tab:not(.active) { background: #3d3212; color: var(--cf-p-dark-warn-text); border-color: #7a5c1a; box-shadow: inset 0 3px 0 #ef9f27; }
[data-bs-theme=dark] ul.cf-ftabs > li > .nav-link.pp-tab:not(.active):hover { background: #4a3c12; color: #fff; }
@media (max-width: 767.98px) { ul.nav-tabs.cf-ftabs { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 575.98px) { ul.cf-ftabs > li > .nav-link { padding: 6px 10px 5px; font-size: .85rem; } }
@media print { ul.cf-ftabs > li > .nav-link { background: none; } }
/* 🔗 Torneios interconectados (organizer/tournaments.php): bloco lavanda e lista dos torneios do organizador */
.cf-ev-box { background: var(--cf-p-training-bg); border: 1px solid #cdbcf3; }
.cf-ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 2px 14px; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid #e2d6fb; border-radius: 8px; padding: 6px 10px; }
.cf-ev-list .form-check-label { font-size: .88rem; overflow-wrap: anywhere; }
[data-bs-theme=dark] .cf-ev-box { background: #241a3d; border-color: #4b3a7a; }
[data-bs-theme=dark] .cf-ev-list { background: #131c2b; border-color: #3d3263; }
.cf-ev-ord { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.cf-ev-ord li { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e2d6fb; border-radius: 8px; padding: 4px 6px 4px 10px; min-width: 0; }
.cf-ev-ord .n { font-weight: 800; color: #5a32a8; min-width: 1.8em; }
.cf-ev-ord .t { flex: 1 1 auto; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.cf-ev-ord .btn { padding: 0 .45rem; line-height: 1.5; }
[data-bs-theme=dark] .cf-ev-ord li { background: #131c2b; border-color: #3d3263; }
[data-bs-theme=dark] .cf-ev-ord .n { color: #c8b2f5; }
/* 🧮 Pendências do PGN (organizer/_pgn_pend.php): todas as rodadas, um quadradinho por mesa */
.pp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.pp-kpi { background: var(--bs-tertiary-bg); border-radius: .5rem; padding: .5rem .75rem; }
.pp-kpi .l { font-size: .8rem; color: var(--bs-secondary-color); }
.pp-kpi .v { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.pp-kpi .v small { font-size: .8rem; font-weight: 400; color: var(--bs-secondary-color); }
.pp-leg { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8rem; color: var(--bs-secondary-color); }
.pp-leg span { display: inline-flex; align-items: center; gap: .3rem; }
.pp-leg .pp-c { width: 14px; height: 14px; }
.pp-rds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: .6rem; align-items: start; }
.pp-rd { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .6rem .8rem; background: var(--bs-body-bg); break-inside: avoid; }
.pp-rd .cf-ring { cursor: default; }
.pp-bd { flex: 1; min-width: 0; }
.pp-hd { display: flex; flex-direction: column; gap: 0; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); gap: 3px; margin: .5rem 0 .35rem; }
.pp-c { display: inline-flex; align-items: center; justify-content: center; height: 24px; border-radius: 4px; font-size: .75rem; font-weight: 600; text-decoration: none;
        background: var(--cf-p-gray-200); color: var(--cf-p-gray-700); border: 1px solid var(--cf-p-gray-300); }
.pp-c.final { background: var(--cf-done); border-color: var(--cf-done); color: #fff; }
.pp-c.draft { background: var(--cf-warn); border-color: var(--cf-warn-edge); color: #5c3c00; }
.pp-c.ready { background: #fff; border: 2px solid #1c7ed6; color: #185fa5; }
.pp-c.off { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--cf-p-gray-300) 3px 5px); color: var(--cf-p-gray-500); border-style: dashed; }
a.pp-c:hover { outline: 2px solid var(--cf-p-final-slate); outline-offset: 1px; }
.pp-ln { margin-top: .15rem; overflow-wrap: anywhere; }
[data-bs-theme=dark] .pp-c { background: #2b3035; color: var(--cf-p-gray-500); border-color: var(--cf-p-gray-700); }
[data-bs-theme=dark] .pp-c.final { background: var(--cf-done); border-color: var(--cf-done); color: #fff; }
[data-bs-theme=dark] .pp-c.draft { background: #c98a00; border-color: var(--cf-warn); color: #1a1300; }
[data-bs-theme=dark] .pp-c.ready { background: #1b2a3a; border-color: #4dabf7; color: #a5d8ff; }
[data-bs-theme=dark] .pp-c.off { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--cf-p-final-slate) 3px 5px); color: var(--cf-p-muted); }
[data-bs-theme=dark] a.pp-c:hover { outline-color: #f8f9fa; }
@media print { .pr-noprint { display: none !important; } .pp-c { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* 📈 Gráficos do PGN (organizer/_pgn_graf.php, pgn_split.php?tab=graf) */
.gr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: .75rem; }
.gr-card { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .75rem .9rem; background: var(--bs-body-bg); min-width: 0; }
.gr-card h6 { font-weight: 700; margin: 0 0 .1rem; }
.gr-card .gr-sub { font-size: .8rem; color: var(--bs-secondary-color); margin-bottom: .6rem; }
.gr-tip { font-size: .85rem; background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); border-radius: .5rem; padding: .4rem .6rem; margin-top: .6rem; }
.gr-row { display: grid; grid-template-columns: 4.2rem 1fr 3rem; align-items: center; gap: .5rem; font-size: .82rem; margin-bottom: .3rem; }
.gr-row a { color: inherit; text-decoration: none; } .gr-row a:hover { text-decoration: underline; }
.gr-bar { display: flex; height: 1.35rem; border-radius: .35rem; overflow: hidden; background: var(--bs-tertiary-bg); }
.gr-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .72rem; font-weight: 600; color: #fff; min-width: 0; }
.gr-lg { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .75rem; color: var(--bs-secondary-color); margin-bottom: .5rem; }
.gr-lg i { display: inline-block; width: .7rem; height: .7rem; border-radius: .15rem; margin-right: .25rem; vertical-align: -1px; }
.st-final { background: var(--cf-done); } .st-draft { background: repeating-linear-gradient(45deg, #e0a800, #e0a800 4px, #f3c74f 4px, #f3c74f 8px); color: #533f03 !important; }
.st-ready { background: var(--cf-p-select-blue); } .st-none { background: var(--cf-p-alert-red); }
.rs-w { background: var(--cf-p-gray-100); color: var(--cf-p-ink) !important; box-shadow: inset 0 0 0 1px var(--cf-p-gray-500); } .rs-d { background: #868e96; } .rs-b { background: var(--cf-p-ink); } .rs-wo { background: repeating-linear-gradient(45deg, var(--cf-p-gray-400), var(--cf-p-gray-400) 3px, var(--cf-p-gray-200) 3px, var(--cf-p-gray-200) 6px); color: var(--cf-p-gray-700) !important; }
.gr-hm { display: grid; gap: 2px; font-size: .68rem; }
.gr-hm b { font-weight: 400; font-size: .62rem; color: var(--bs-secondary-color); text-align: center; white-space: nowrap; overflow: hidden; }
.gr-hm b.d { text-align: right; padding-right: .3rem; }
.gr-hm span { aspect-ratio: 1; border-radius: 3px; background: var(--bs-tertiary-bg); }
.gr-svg { width: 100%; height: auto; display: block; max-height: 260px; }
.gr-svg text { font-size: 11px; fill: var(--bs-secondary-color); }
.gr-svg .ax { stroke: var(--bs-border-color); } .gr-svg .gd { stroke: var(--bs-border-color); stroke-dasharray: 2 3; }
.gr-hist { display: flex; align-items: flex-end; gap: 4px; height: 140px; border-bottom: 1px solid var(--bs-border-color); }
.gr-hist > div { flex: 1; display: flex; flex-direction: column-reverse; min-width: 0; position: relative; }
.gr-hist > div i { display: block; }
.gr-hist .n { position: absolute; top: -1.1rem; left: 0; right: 0; text-align: center; font-size: .72rem; font-weight: 600; }
.gr-hx { display: flex; gap: 4px; font-size: .68rem; color: var(--bs-secondary-color); } .gr-hx span { flex: 1; text-align: center; }
.gr-short { font-size: .8rem; margin: .4rem 0 0; padding-left: 1.1rem; } .gr-short a { text-decoration: none; }
.gr-op { display: grid; grid-template-columns: 3.4rem 1fr 4.8rem; gap: .5rem; align-items: center; font-size: .82rem; margin-bottom: .3rem; }
.gr-op .b { height: 1.1rem; border-radius: .3rem; background: var(--bs-primary); opacity: .8; }
.gr-op .s { font-size: .72rem; color: var(--bs-secondary-color); text-align: right; }
/* 📖 Aberturas e defesas mais jogadas: nome e números em cima, barra, variante mais comum embaixo */
.gr-ab { margin-bottom: .45rem; }
.gr-ab .t { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; }
.gr-ab .t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-ab .t .s { font-size: .72rem; color: var(--bs-secondary-color); white-space: nowrap; }
.gr-ab .b { height: .9rem; border-radius: .3rem; background: var(--cf-p-training-violet); opacity: .8; margin: .1rem 0; }
[data-bs-theme="dark"] .gr-ab .b { background: #a98eda; }
.gr-ab .v { font-size: .72rem; color: var(--bs-secondary-color); display: flex; justify-content: space-between; gap: .5rem; }
.gr-ab .v > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Lista de mesas da abertura (details/summary): ▸ fechada, ▾ aberta; cada linha leva ao editor de PGN */
.gr-ab summary { list-style: none; cursor: pointer; }
.gr-ab summary::-webkit-details-marker { display: none; }
.gr-ab .v .go { color: var(--bs-link-color); white-space: nowrap; }
.gr-ab .v .go::before { content: '▸ '; } .gr-ab[open] .v .go::before { content: '▾ '; }
.gr-abl { list-style: none; padding: .3rem 0 .2rem .6rem; margin: .2rem 0 .4rem; border-left: 3px solid var(--cf-p-training-violet); font-size: .76rem; }
[data-bs-theme="dark"] .gr-abl { border-left-color: #a98eda; }
.gr-abl li { display: grid; grid-template-columns: 5.6rem 1fr auto; gap: .4rem; padding: .12rem 0; border-bottom: 1px dashed var(--bs-border-color); }
.gr-abl li:last-child { border-bottom: 0; }
.gr-abl .p { min-width: 0; }
.gr-abl .nm, .gr-abl .gv { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-abl .gv { color: var(--bs-secondary-color); font-size: .7rem; }
.gr-abl .rs { font-weight: 600; white-space: nowrap; }
.gr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; margin-bottom: .75rem; }
/* ⚠️ Painel das ocorrências (organizer/_occ_graf.php): famílias (cores da janela de ocorrências, mais fortes) e selos da FIDE */
.ocf-inf, [data-bs-theme] .gr-ab .b.ocf-inf { background: #e35d5d; } .ocf-tmp, [data-bs-theme] .gr-ab .b.ocf-tmp { background: #e0a800; color: #3d3000 !important; }
.ocf-ped, [data-bs-theme] .gr-ab .b.ocf-ped { background: #3d8bfd; } .ocf-cnd, [data-bs-theme] .gr-ab .b.ocf-cnd { background: #7c6fd6; }
.ocf-out, [data-bs-theme] .gr-ab .b.ocf-out { background: var(--cf-p-gray-500); color: var(--cf-p-ink) !important; }
.ocs-ok { background: var(--cf-done); } .ocs-val { background: #20c997; color: #04342c !important; } .ocs-arb { background: var(--cf-p-training-violet); } .ocs-bad { background: var(--cf-p-alert-red); }
.ocs-nd { background: var(--cf-p-gray-500); color: var(--cf-p-ink) !important; } .ocs-info { background: #7fdcf0; color: #052c33 !important; }
.ocs-old { background: repeating-linear-gradient(45deg, var(--cf-p-gray-400), var(--cf-p-gray-400) 3px, var(--cf-p-gray-200) 3px, var(--cf-p-gray-200) 6px); color: var(--cf-p-gray-700) !important; }
[data-bs-theme=dark] .ocs-old { background: repeating-linear-gradient(45deg, var(--cf-p-final-slate), var(--cf-p-final-slate) 3px, var(--cf-p-gray-700) 3px, var(--cf-p-gray-700) 6px); color: var(--cf-p-gray-400) !important; }
.oc-op { grid-template-columns: minmax(0, 11rem) 1fr 4.6rem; }
.oc-op b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-sub { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-secondary-color); margin: .45rem 0 .2rem; }
@media (max-width: 420px) { .oc-op { grid-template-columns: minmax(0, 7.5rem) 1fr 3.8rem; } }
@media print { .gr-card { break-inside: avoid; } .gr-card i, .gr-hm span { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
[data-bs-theme=dark] .rs-w { background: var(--cf-p-gray-300); color: var(--cf-p-ink) !important; box-shadow: none; }
[data-bs-theme=dark] .rs-b { background: #000; box-shadow: inset 0 0 0 1px var(--cf-p-muted); }
[data-bs-theme=dark] .rs-wo { background: repeating-linear-gradient(45deg, var(--cf-p-final-slate), var(--cf-p-final-slate) 3px, var(--cf-p-gray-700) 3px, var(--cf-p-gray-700) 6px); color: var(--cf-p-gray-400) !important; }
[data-bs-theme=dark] .gr-hist .n { color: var(--bs-body-color); }
/* 🚦 Ritmo por rodada (semáforo) e ⏱ faixas de tempo de gravação (_pgn_graf.php) */
.gr-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; font-size: .82rem; margin-bottom: .6rem; }
.gr-sem { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.gr-sm { border: 2px solid; border-radius: .7rem; padding: .45rem .6rem; min-width: 0; }
.gr-sm .r { font-weight: 700; font-size: .8rem; } .gr-sm .t { font-size: 1.3rem; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; } .gr-sm .s { font-size: .72rem; }
.gr-sm.ok { background: var(--cf-done-soft); border-color: var(--cf-done); color: var(--cf-done-ink); } .gr-sm.md { background: var(--cf-warn-bg); border-color: var(--cf-warn-edge); color: var(--cf-warn-ink); }
.gr-sm.bad { background: var(--cf-alert-bg); border-color: var(--cf-alert); color: var(--cf-alert-ink); } .gr-sm.run { background: var(--bs-tertiary-bg); border-color: var(--cf-p-gray-500); color: var(--bs-secondary-color); }
.bd-ok { background: var(--cf-done); } .bd-md { background: #94d82d; color: #1b3d00 !important; } .bd-late { background: var(--cf-warn); color: #4a3200 !important; } .bd-bad { background: var(--cf-alert); }
.bd-none { background: var(--cf-p-gray-300); color: var(--cf-p-gray-700) !important; }
[data-bs-theme=dark] .gr-sm.ok { background: #15301f; color: #b2f2bb; } [data-bs-theme=dark] .gr-sm.md { background: #3d3212; color: #ffe066; }
[data-bs-theme=dark] .gr-sm.bad { background: #3d1518; color: var(--cf-alert-ink); } [data-bs-theme=dark] .bd-none { background: var(--cf-p-gray-700); color: var(--cf-p-gray-300) !important; }
/* Bye: o jogador não tem adversário — "bye" numa pílula vermelha no lugar do resultado (relatórios) */
.bye-pill { display: inline-block; background: var(--cf-p-alert-red); color: #fff; font-weight: 800; font-size: max(.85em, .75rem); border-radius: 999px; padding: 2px 12px; line-height: 1.3; }
/* Painel da rodada (mesas do árbitro): cartões com ícone em círculo suave e número em pílula; cor só quando pede atenção */
.dk { display: flex; align-items: center; gap: 8px; height: 100%; border: 1px solid var(--cf-p-gray-300); border-radius: 8px; padding: 6px 8px; line-height: 1.2; background: #fff; transition: background .2s, border-color .2s; }
.dk-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--cf-p-gray-100); }
.dk-n { display: table; min-width: 2.2em; text-align: center; font-size: 1.05rem; font-weight: 700; line-height: 1.45; border-radius: 999px; padding: 0 10px; margin-bottom: 3px; color: #fff; background: var(--cf-p-muted); }
.dk-blue .dk-ic { background: var(--cf-p-tint-blue); } .dk-blue .dk-n { background: var(--cf-p-select-blue); }
.dk-purple .dk-ic { background: var(--cf-p-training-bg); } .dk-purple .dk-n { background: #6741d9; }
.dk-gray .dk-n { background: var(--cf-p-gray-500); }
.dk-amber .dk-ic { background: var(--cf-p-warn-tint); } .dk-amber .dk-n { background: var(--cf-orange); }
.dk-green .dk-ic { background: var(--cf-p-done-tint); } .dk-green .dk-n { background: var(--cf-done); }
.dk-red { background: var(--cf-p-alert-soft); border-color: var(--cf-p-alert-edge); color: var(--cf-p-alert-ink); } .dk-red .dk-ic { background: var(--cf-p-alert-tint); } .dk-red .dk-n { background: var(--cf-p-alert-red); }
[data-bs-theme=dark] .dk { background: #1b1f24; border-color: #3a4047; }
[data-bs-theme=dark] .dk-ic { background: #2b3035; }
[data-bs-theme=dark] .dk-blue .dk-ic { background: #12294a; } [data-bs-theme=dark] .dk-blue .dk-n { background: var(--cf-action); }
[data-bs-theme=dark] .dk-purple .dk-ic { background: #2e1f4d; } [data-bs-theme=dark] .dk-purple .dk-n { background: #7048e8; }
[data-bs-theme=dark] .dk-gray .dk-n { background: var(--cf-p-gray-700); }
[data-bs-theme=dark] .dk-amber .dk-ic { background: #3d3212; } [data-bs-theme=dark] .dk-amber .dk-n { background: var(--cf-p-absence-orange); }
[data-bs-theme=dark] .dk-green .dk-ic { background: #15301f; } [data-bs-theme=dark] .dk-green .dk-n { background: var(--cf-done); }
[data-bs-theme=dark] .dk-red { background: #3d1518; border-color: var(--cf-p-alert-ink); color: var(--cf-alert-ink); } [data-bs-theme=dark] .dk-red .dk-ic { background: var(--cf-p-alert-night); } [data-bs-theme=dark] .dk-red .dk-n { background: var(--cf-alert); }
[data-bs-theme=dark] #lfSheet .pp-sig { border-top-color: #4a5870; } [data-bs-theme=dark] #lfSheet .pp-sn small { color: #b8c2cf; }
[data-bs-theme=dark] #lfSheet .pp-i.ill .pp-sig { border-top-color: #6e2a32; } [data-bs-theme=dark] #lfSheet .pp-i.irr .pp-sig { border-top-color: #6b4316; }
[data-bs-theme=dark] #lfSheet .pp-tm { background: #2b4a7a; }
/* Painel do admin: cartões de indicadores com ícone em círculo colorido por grupo e linha de contexto */
.cf-kpi { --kb: #f1efe8; --kf: #444441; }
.cf-kpi .card { border-top: 3px solid var(--kf); transition: transform .12s, box-shadow .12s; }
.cf-kpi:hover .card, .cf-kpi:focus-visible .card { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.cf-kpi .kp-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; background: var(--kb); color: var(--kf); }
.cf-kpi .kp-n { font-size: 1.85rem; font-weight: 700; line-height: 1.15; margin-top: .35rem; }
.cf-kpi .kp-sub { font-size: .75rem; line-height: 1.25; }
.cf-kpi.kp-pes { --kb: #eeedfe; --kf: #534ab7; }
.cf-kpi.kp-tor { --kb: #eaf3de; --kf: #3b6d11; }
.cf-kpi.kp-fim { --kb: #f1efe8; --kf: #888780; }
.cf-kpi.kp-enx { --kb: #e6f1fb; --kf: #185fa5; }
.cf-kpi.kp-atv { --kb: #e1f5ee; --kf: #0f6e56; }
.cf-kpi.kp-alr { --kb: #faeeda; --kf: #ba7517; }
.cf-kpi.kp-red { --kb: #fcebeb; --kf: #a32d2d; }
@media (max-width: 575.98px) { .cf-kpi .kp-ic { flex-basis: 28px; width: 28px; height: 28px; font-size: 15px; } .cf-kpi .kp-n { font-size: 1.5rem; } }
[data-bs-theme=dark] .cf-kpi:hover .card { box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
[data-bs-theme=dark] .cf-kpi.kp-pes { --kb: #26215c; --kf: #afa9ec; } [data-bs-theme=dark] .cf-kpi.kp-tor { --kb: #173404; --kf: #97c459; }
[data-bs-theme=dark] .cf-kpi.kp-fim { --kb: #2c2c2a; --kf: #b4b2a9; } [data-bs-theme=dark] .cf-kpi.kp-enx { --kb: #042c53; --kf: #85b7eb; }
[data-bs-theme=dark] .cf-kpi.kp-atv { --kb: #04342c; --kf: #5dcaa5; } [data-bs-theme=dark] .cf-kpi.kp-alr { --kb: #412402; --kf: #ef9f27; }
[data-bs-theme=dark] .cf-kpi.kp-red { --kb: #501313; --kf: #f09595; }

/* 👁 Padrões de conduta nas Mesas (assets/conduta_mesas.js): selo roxo no nome e no botão da mesa, lista da rodada e janela com histórico */
.cdm-pill { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: 5px; border-radius: 10px; background: var(--cf-p-bye-bg); color: #5f3dc4; border: 1px solid #b197fc; vertical-align: 1px; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.cdm-pill.sm { padding: 0 5px; } .cdm-pill.ok { background: transparent; color: #868e96; border-color: var(--cf-p-gray-400); }
.cdm-bd { position: absolute; top: -8px; left: -8px; width: 17px; height: 17px; border-radius: 50%; background: #6741d9; color: #fff; font-size: .58rem; line-height: 14px; text-align: center; border: 1.5px solid #fff; }
.cdm-bd.s { position: static; display: inline-block; vertical-align: -3px; }
.sl-t { position: relative; }
.cdm-box { background: var(--cf-p-bye-bg); border: 1px solid #d0bfff; border-left: 4px solid #6741d9; color: #3d2a7a; padding: 5px 8px; margin-top: 6px; line-height: 1.6; font-size: .85rem; }
.cdm-box.off { background: transparent; border-color: var(--cf-p-gray-300); border-left-color: #b197fc; color: var(--cf-p-muted); }
.cdm-box a { color: #6741d9; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cdm-fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 2px 0; }
.cdm-fold > summary::-webkit-details-marker { display: none; }
.cdm-cnt { font-size: .78rem; font-weight: 600; background: #e2d6fb; color: #5f3dc4; border-radius: 10px; padding: 0 8px; }
.cdm-tg { margin-left: auto; color: #6741d9; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.cdm-tg::after { content: "mostrar ▾"; } .cdm-fold[open] .cdm-tg::after { content: "recolher ▴"; }
.cdm-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--cf-p-muted); font-size: .72rem; }
.cdm-ov { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 10px; }
.cdm-dlg { background: #fff; color: var(--cf-p-ink); border-radius: 12px; width: 100%; max-width: 560px; max-height: calc(100vh - 20px); overflow-y: auto; padding: 14px 16px; }
.cdm-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cdm-nm { font-weight: 700; font-size: 1.1rem; } .cdm-nm small { font-weight: 400; color: var(--cf-p-muted); font-size: .8rem; }
.cdm-lv { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.cdm-lv.hi { background: var(--cf-alert-bg); color: var(--cf-alert-ink); } .cdm-lv.mid { background: #fff3c4; color: #7a5a00; }
.cdm-chips { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.cdm-chip { font-size: .74rem; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--cf-p-gray-400); color: var(--cf-p-gray-700); }
.cdm-chip.rec { background: #6741d9; border-color: #6741d9; color: #fff; font-weight: 600; }
.cdm-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.cdm-kpi div { background: var(--cf-p-gray-100); border-radius: 8px; padding: 5px 8px; } .cdm-kpi small { display: block; color: var(--cf-p-muted); font-size: .72rem; } .cdm-kpi b { font-size: 1rem; }
.cdm-sec { font-weight: 700; font-size: .85rem; margin: 6px 0 4px; }
.cdm-tl { border-left: 2px solid #d0bfff; padding-left: 12px; margin-left: 4px; }
.cdm-ev { position: relative; font-size: .82rem; line-height: 1.45; padding-bottom: 8px; }
.cdm-ev::before { content: ""; position: absolute; left: -17px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #6741d9; }
.cdm-note { color: var(--cf-p-muted); font-style: italic; }
.cdm-how { background: var(--cf-p-mine-bg); border: 1px solid #a5d8ff; border-radius: 8px; padding: 6px 10px; margin-top: 8px; color: #0b3d66; font-size: .82rem; }
.cdm-tip ol { margin: 2px 0 6px; padding-left: 18px; }
.cdm-pv { font-size: .72rem; color: var(--cf-p-muted); margin-top: 8px; }
.cdm-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
[data-bs-theme=dark] .cdm-pill { background: #2b2445; color: #d0bfff; border-color: #7950f2; } [data-bs-theme=dark] .cdm-pill.ok { background: transparent; color: #868e96; border-color: var(--cf-p-gray-700); }
[data-bs-theme=dark] .cdm-bd { border-color: #1b1f24; }
[data-bs-theme=dark] .cdm-box { background: #241d3d; border-color: #5f3dc4; border-left-color: #9775fa; color: #e2d6fb; } [data-bs-theme=dark] .cdm-box.off { background: transparent; border-color: var(--cf-p-gray-700); color: var(--cf-p-gray-500); }
[data-bs-theme=dark] .cdm-box a { color: #b197fc; } [data-bs-theme=dark] .cdm-cnt { background: #3d3263; color: #d0bfff; } [data-bs-theme=dark] .cdm-tg { color: #b197fc; } [data-bs-theme=dark] .cdm-lg { color: var(--cf-p-gray-500); }
[data-bs-theme=dark] .cdm-dlg { background: var(--cf-p-dark-well); color: var(--cf-p-zebra); } [data-bs-theme=dark] .cdm-nm small, [data-bs-theme=dark] .cdm-kpi small, [data-bs-theme=dark] .cdm-note, [data-bs-theme=dark] .cdm-pv { color: #a9b4c8; }
[data-bs-theme=dark] .cdm-lv.hi { background: #5c1a1a; color: #f7c1c1; } [data-bs-theme=dark] .cdm-lv.mid { background: #4a3b00; color: #ffe066; }
[data-bs-theme=dark] .cdm-chip { border-color: var(--cf-p-gray-700); color: var(--cf-p-gray-400); } [data-bs-theme=dark] .cdm-kpi div { background: var(--cf-p-dark-panel); }
[data-bs-theme=dark] .cdm-tl { border-left-color: #5f3dc4; } [data-bs-theme=dark] .cdm-how { background: #10273a; border-color: #1c5582; color: #a5d8ff; }

/* 📅 Minha agenda (agenda.php): cores pelas variáveis do Bootstrap, que já trocam no modo escuro */
.ag-s-done { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border-color: var(--bs-border-color) !important; }
.ag-s-open { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); border-color: var(--bs-success-border-subtle) !important; }
.ag-s-sched { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); border-color: var(--bs-primary-border-subtle) !important; }
.ag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 0; }
.ag-dot.ag-s-done { background: var(--bs-secondary-color); } .ag-dot.ag-s-open { background: var(--bs-success); } .ag-dot.ag-s-sched { background: var(--bs-primary); }
.ag-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* Atalhos de situação: cartão com faixa de cor e ícone; tocar filtra a agenda (tocar de novo volta a mostrar tudo) */
.ag-kpi { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-left: 4px solid var(--ag-kc, var(--bs-border-color)); border-radius: 0; padding: 8px 10px; display: flex; align-items: center; gap: 10px;
          text-align: left; color: var(--bs-body-color); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.ag-kpi:hover { border-color: var(--ag-kc); } .ag-kpi.on { background: var(--bs-tertiary-bg); box-shadow: inset 0 0 0 2px var(--ag-kc); }
.ag-kpi:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.ag-kpi > div { min-width: 0; display: flex; flex-direction: column; }
.ag-kpi small { color: var(--bs-secondary-color); font-size: .75rem; line-height: 1.2; } .ag-kpi b { font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ag-k-open { --ag-kc: var(--bs-success); } .ag-k-sched { --ag-kc: var(--bs-primary); } .ag-k-done { --ag-kc: var(--bs-secondary-color); } .ag-k-warn { --ag-kc: var(--bs-warning); }
.ag-k-open b { color: var(--bs-success-text-emphasis); } .ag-k-sched b { color: var(--bs-primary-text-emphasis); } .ag-k-warn b { color: var(--bs-warning-text-emphasis); }
.ag-kpi .ag-ic { width: 34px; height: 34px; font-size: 1rem; }
/* Filtros: um painel só, busca e contador em cima; cada opção mostra quantos torneios tem */
.ag-filters { display: flex; flex-direction: column; gap: 8px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 12px; padding: 10px 12px; }
.ag-ftop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-fcnt { font-size: .8rem; color: var(--bs-secondary-color); white-space: nowrap; } .ag-fcnt b { color: var(--bs-body-color); }
.ag-ftog { display: none; }
.ag-frows { display: flex; flex-direction: column; gap: 6px; }
.ag-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ag-fl { font-size: .75rem; color: var(--bs-secondary-color); width: 70px; flex-shrink: 0; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { border: 1px solid var(--bs-border-color); background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border-radius: 999px; padding: 2px 6px 2px 11px; font-size: .82rem;
           display: inline-flex; align-items: center; gap: 5px; transition: background .15s, border-color .15s; }
/* Filtro ligado = verde cheio; desligado = cinza (ícone em tons de cinza) */
.ag-chip:hover { border-color: var(--cf-done); }
.ag-chip.on { background: var(--cf-done); border-color: #146c43; color: #fff; font-weight: 600; }
.ag-chip:not(.on) .ag-dot { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--bs-secondary-color); }
.ag-chip.on .ag-dot { box-shadow: 0 0 0 1.5px #fff; }
.ag-chip:not(.on) :is(img, svg, i, .ag-ic) { filter: grayscale(1); opacity: .6; }
.ag-chip .n { font-size: .7rem; font-weight: 600; min-width: 1.6em; text-align: center; border-radius: 999px; padding: 0 5px; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.ag-chip.on .n { background: #fff; color: #146c43; }
.ag-q { width: auto; flex: 1 1 220px; min-width: 0; }
.ag-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ag-per { display: flex; align-items: center; gap: 6px; } .ag-per b { min-width: 9.5em; text-align: center; }
.ag-leg { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; } .ag-leg .ag-dot { margin-right: 4px; }
.ag-cal { border: 1.5px solid rgba(var(--bs-emphasis-color-rgb), .35); border-radius: 8px; overflow: hidden; background: var(--bs-body-bg); }
/* Mês: faixas com o nome (computador e tablet) · semanas em cartões (celular) · Linha do tempo. Cores da situação em .ag-b-* */
.ag-b-done { background: var(--cf-p-gray-400); color: var(--cf-p-final-slate); border-color: var(--cf-p-gray-500); }
.ag-b-open { background: var(--cf-done); color: #fff; border-color: #146c43; }
.ag-b-sched { background: var(--cf-p-select-blue); color: #fff; border-color: #0a58ca; }
.ag-b-done.fol, .ag-b-open.fol, .ag-b-sched.fol { background: transparent; border-style: dashed !important; border-width: 1.5px; }
.ag-b-done.fol { color: var(--bs-secondary-color); border-color: var(--cf-p-muted); } .ag-b-open.fol { color: var(--bs-success-text-emphasis); } .ag-b-sched.fol { color: var(--bs-primary-text-emphasis); }
[data-bs-theme=dark] .ag-b-done { background: var(--cf-p-gray-700); color: var(--cf-p-gray-200); border-color: var(--cf-p-muted); }
.ag-bar.ag-b-open .ag-live { background: #fff; } .ag-bar:is(.ag-b-open, .ag-b-sched):not(.fol) b { color: var(--cf-p-warn-edge); }
.ag-c-done { color: var(--bs-secondary-color); } .ag-c-open { color: var(--bs-success); } .ag-c-sched { color: var(--bs-primary); }
.ag-ma-h, .ag-wg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ag-ma-h { background: var(--bs-tertiary-bg); font-size: .78rem; font-weight: 600; color: var(--bs-emphasis-color); border-bottom: 1.5px solid rgba(var(--bs-emphasis-color-rgb), .35); }
.ag-ma-h div { padding: 4px 8px; border-right: 1px solid rgba(var(--bs-emphasis-color-rgb), .18); } .ag-ma-h div:last-child { border-right: 0; }
.ag-ma-w { border-top: 1.5px solid rgba(var(--bs-emphasis-color-rgb), .35); } .ag-ma-h + .ag-ma-w { border-top: 0; }
.ag-wg { min-height: 86px; }
.ag-day { grid-row: 1 / -1; border: 0; border-right: 1px solid rgba(var(--bs-emphasis-color-rgb), .18); background: transparent; color: var(--bs-emphasis-color); display: flex; align-items: flex-start; padding: 4px 8px; font-size: .9rem; font-weight: 600; text-align: left; }
.ag-day:nth-child(7) { border-right: 0; } .ag-day:nth-child(1), .ag-day:nth-child(7) { background: rgba(var(--bs-emphasis-color-rgb), .05); }
.ag-day.out .ag-dn { color: var(--bs-tertiary-color); }
.ag-day.today { background: var(--bs-primary-bg-subtle); } .ag-day.today .ag-dn { background: var(--bs-primary); color: #fff; border-radius: 999px; padding: 0 6px; font-weight: 600; }
.ag-day.sel { box-shadow: inset 0 0 0 2px var(--bs-primary); } .ag-day:hover { background: var(--bs-secondary-bg); }
.ag-bar { position: relative; z-index: 1; align-self: center; height: 22px; margin: 0 3px; min-width: 0; border: 1px solid; border-radius: 5px; padding: 0 6px; display: flex; align-items: center; gap: 4px;
          font-size: .74rem; line-height: 1; white-space: nowrap; overflow: hidden; text-align: left; transition: opacity .15s, box-shadow .15s; }
.ag-bar i { font: normal 13px/1 "Segoe UI Symbol", "DejaVu Sans", system-ui, sans-serif; font-variant-emoji: text; flex: none; }
.ag-bar span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.ag-bar small { overflow: hidden; text-overflow: ellipsis; flex: 0 100 auto; min-width: 0; opacity: .85; }
.ag-bar b { color: var(--bs-warning-text-emphasis); flex: none; } .ag-bar s { text-decoration: none; opacity: .7; flex: none; } .ag-bar .ag-live { margin-left: 0; flex: none; }
.ag-bar.cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 0; }
.ag-bar.cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-width: 0; }
.ag-bar:hover, .ag-bar.hv, .ag-bar.hl { box-shadow: 0 0 0 1.5px currentColor; } .ag-bar:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.ag-free { padding: 6px 10px; font-size: .78rem; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); }
.ag-lg0 { font-size: .75rem; color: var(--bs-tertiary-color); padding: 4px; }
.ag-itx { min-width: 0; } .ag-itx b { display: block; font-weight: 600; font-size: .82rem; line-height: 1.3; overflow-wrap: anywhere; }
.ag-itx small { display: block; font-size: .72rem; color: var(--bs-secondary-color); } .ag-itx small.ag-itw { color: var(--bs-warning-text-emphasis); }
.ag-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bs-success); margin-left: 5px; vertical-align: 1px; animation: agPulse 1.6s ease-in-out infinite; }
@keyframes agPulse { 50% { opacity: .35; } }
/* Celular: semanas em cartões */
.ag-cal.ag-wcs { border: 0; background: transparent; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
.ag-wcs .ag-free { border: 1px dashed var(--bs-border-color); border-radius: 10px; background: transparent; }
.ag-wc { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 12px; padding: 8px 10px; }
.ag-wc.now { border-color: var(--bs-primary); }
.ag-wdots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 4px; }
.ag-wdot { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; color: var(--bs-body-color); }
.ag-wdot small { font-size: .66rem; color: var(--bs-secondary-color); }
.ag-wdot b { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .88rem; font-weight: 600; }
.ag-wdot.today b { background: var(--bs-primary); color: #fff; } .ag-wdot.sel b { box-shadow: 0 0 0 2px var(--bs-primary); } .ag-wdot.out { opacity: .45; }
.ag-wdot .ag-dot { width: 6px; height: 6px; }
.ag-wcard { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--bs-border-color);
            background: transparent; color: var(--bs-body-color); padding: 8px 0; transition: opacity .15s; }
.ag-wpc { width: 34px; height: 34px; border-radius: 8px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex: none;
          font: normal 19px/1 "Segoe UI Symbol", "DejaVu Sans", system-ui, sans-serif; font-variant-emoji: text; }
/* Linha do tempo */
.ag-tl-r { display: grid; grid-template-columns: minmax(170px, 27%) minmax(0, 1fr); border-top: 1px solid var(--bs-border-color); }
.ag-tl-r:first-child { border-top: 0; } .ag-tl-hd { background: var(--bs-tertiary-bg); }
.ag-tl-l { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 0; background: transparent; text-align: left; color: var(--bs-body-color); min-width: 0; transition: opacity .15s; }
.ag-tl-l .ag-wpc { width: 28px; height: 28px; font-size: 16px; }
.ag-tl-l .ag-itx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-tl-t { display: grid; grid-template-columns: repeat(var(--nd), minmax(0, 1fr)); grid-template-rows: minmax(34px, 1fr); border-left: 1px solid var(--bs-border-color); }
.ag-tl-c { grid-row: 1; align-self: stretch; font-size: .66rem; color: var(--bs-tertiary-color); text-align: center; display: flex; align-items: center; justify-content: center; }
.ag-tl-c.we { background: var(--bs-tertiary-bg); }
.ag-tl-c.now { background-image: linear-gradient(var(--bs-danger), var(--bs-danger)); background-size: 2px 100%; background-repeat: no-repeat; background-position: center; }
.ag-tl-hd .ag-tl-c.now { color: var(--bs-danger); font-weight: 700; background-image: none; }
.ag-tl .ag-bar { grid-row: 1; height: 16px; margin: 0 1px; padding: 0; border-radius: 8px; }
.ag-tl .ag-bar.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; } .ag-tl .ag-bar.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ag-cal.hov :is(.ag-bar, .ag-wcard, .ag-tl-l):not(.hv), .ag-cal.dim:not(.hov) :is(.ag-bar, .ag-wcard, .ag-tl-l):not(.hl) { opacity: .3; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ag-sw { display: inline-block; width: 18px; height: 9px; border-radius: 3px; border: 1px solid; margin-right: 5px; vertical-align: 0; } .ag-sw.ag-now { width: 2px; height: 12px; border: 0; background: var(--bs-danger); }
@media (prefers-reduced-motion: reduce) { .ag-bar, .ag-wcard, .ag-tl-l { transition: none; } .ag-live { animation: none; } }
.ag-mlist { margin-top: 12px; } .ag-group { margin-bottom: 14px; }
.ag-gh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; border: 0; border-bottom: 1px solid var(--bs-border-color); background: transparent; color: var(--bs-body-color); text-align: left; font-weight: 600; font-size: .9rem; margin: 4px 0; padding: 4px 2px; }
.ag-gh:hover { color: var(--bs-primary); } .ag-gc { width: 1em; color: var(--bs-secondary-color); } .ag-gh small { font-weight: 400; font-size: .75rem; color: var(--bs-secondary-color); } .ag-gh small.ag-gw { color: var(--bs-warning-text-emphasis); }
.ag-group.shut { margin-bottom: 4px; } .ag-lgby { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; } .ag-mh { font-size: .75rem; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 2px; }
.ag-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: var(--bs-body-bg); color: var(--bs-body-color);
          border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; }
.ag-row:hover { border-color: var(--bs-primary); } .ag-r-open { border-left: 4px solid var(--bs-success); } .ag-r-done { color: var(--bs-secondary-color); }
.ag-date { text-align: center; line-height: 1.1; } .ag-date b { display: block; font-size: 1.2rem; } .ag-date small { font-size: .7rem; color: var(--bs-secondary-color); }
.ag-main { min-width: 0; display: flex; flex-direction: column; } .ag-nm { font-weight: 600; overflow-wrap: anywhere; } .ag-sub { font-size: .78rem; color: var(--bs-secondary-color); overflow-wrap: anywhere; }
.ag-warns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ag-warn, .ag-tag.warn { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border-radius: 999px; padding: 0 8px; font-size: .72rem; }
.ag-when { font-size: .75rem; border-radius: 999px; padding: 1px 9px; white-space: nowrap; border: 1px solid; }
.ag-yr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ag-mo { border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color); border-radius: 8px; padding: 8px 10px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.ag-mo.now { border-color: var(--bs-success); } .ag-mo:hover { border-color: var(--bs-primary); }
.ag-mb { height: 5px; border-radius: 3px; background: var(--bs-secondary-bg); overflow: hidden; } .ag-mb i { display: block; height: 100%; border-radius: 3px; }
.ag-mb i.ag-s-done { background: var(--bs-secondary-color); } .ag-mb i.ag-s-open { background: var(--bs-success); } .ag-mb i.ag-s-sched { background: var(--bs-primary); }
.ag-dlg { border: 1px solid var(--bs-border-color); border-radius: 12px; padding: 16px; width: min(540px, calc(100vw - 24px)); background: var(--bs-body-bg); color: var(--bs-body-color); }
.ag-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.ag-dlg-h { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; } .ag-dlg-h h5 { overflow-wrap: anywhere; margin-top: 4px; }
.ag-dlg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ag-tag { background: var(--bs-secondary-bg); border-radius: 999px; padding: 1px 9px; font-size: .78rem; }
.ag-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ag-act { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 10px 4px; font-size: .8rem; color: var(--bs-body-color); text-decoration: none; }
.ag-act span { font-size: 1.35rem; line-height: 1; } .ag-act:hover { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.min-w-0 { min-width: 0; }
@media (max-width: 767.98px) { .ag-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-yr { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ag-leg { margin-left: 0; } .ag-q { max-width: none; margin-left: 0; } }
@media (max-width: 575.98px) {
  .ag-tl-r { grid-template-columns: minmax(0, 1fr); } .ag-tl-hd .ag-tl-l { display: none; } .ag-tl-t { border-left: 0; grid-template-rows: 22px; } .ag-tl-l { padding-bottom: 0; }
  .ag-fl { width: 100%; } .ag-ftog { display: inline-flex; align-items: center; gap: 4px; } .ag-filters:not(.open) .ag-frows { display: none; } .ag-q { flex-basis: 100%; order: -1; }
  .ag-kpi { padding: 7px 8px; gap: 8px; } .ag-kpi .ag-ic { width: 28px; height: 28px; font-size: .85rem; } .ag-yr { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-row { grid-template-columns: 48px minmax(0, 1fr); } .ag-row .ag-when { grid-column: 2; justify-self: start; }
  .ag-dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; max-height: 88vh; }
}
@media print { .ag-filters, .ag-nav .btn-group, .ag-per .btn { display: none !important; } }

/* ⓘ cf_info(): botãozinho de explicação e a caixa flutuante (assets/info.js). Fundo escuro no tema claro; cinza-claro no tema escuro. */
.cf-info{display:inline-flex;align-items:center;justify-content:center;width:1.35em;height:1.35em;padding:0;margin:0 .15em;border:0;border-radius:50%;
  background:transparent;color:var(--bs-secondary-color);font-size:.95em;line-height:1;vertical-align:-.12em;cursor:help;position:relative}
.cf-info:hover,.cf-info[aria-expanded=true]{color:var(--bs-primary);background:var(--bs-tertiary-bg)}
.cf-info:focus-visible{outline:2px solid var(--bs-primary);outline-offset:1px}
.cf-info::after{content:"";position:absolute;inset:-.55em} /* área de toque maior sem ocupar espaço */
.cf-info-tip{display:none!important}
.cf-info-pop{position:fixed;z-index:6000;max-width:min(300px,calc(100vw - 16px));padding:.55rem .7rem;border-radius:.45rem;background:var(--cf-p-ink);color:#fff;
  font-size:.82rem;font-weight:400;line-height:1.45;text-align:left;white-space:normal;box-shadow:0 .4rem 1.2rem rgba(0,0,0,.28);pointer-events:auto}
.cf-info-pop[hidden]{display:none}
.cf-info-pop::after{content:"";position:absolute;left:var(--ax,50%);top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:var(--cf-p-ink)}
.cf-info-pop.below::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:var(--cf-p-ink)}
.cf-info-pop code{color:var(--cf-p-dark-orange-text)}.cf-info-pop a{color:#9ec5fe}
[data-bs-theme=dark] .cf-info-pop{background:var(--cf-p-gray-200);color:var(--cf-p-ink);box-shadow:0 .4rem 1.2rem rgba(0,0,0,.5)}
[data-bs-theme=dark] .cf-info-pop::after{border-top-color:var(--cf-p-gray-200)}
[data-bs-theme=dark] .cf-info-pop.below::after{border-top-color:transparent;border-bottom-color:var(--cf-p-gray-200)}
[data-bs-theme=dark] .cf-info-pop code{color:var(--cf-p-alert-deep)}[data-bs-theme=dark] .cf-info-pop a{color:#0a58ca}
@media (pointer:coarse){.cf-info{width:1.6em;height:1.6em}}
/* Caixa de fundo claro fixo (Titulares, regras das equipes): o ⓘ e o texto cinza continuam legíveis no tema escuro */
[data-bs-theme=dark] #lnTitBox .cf-info,[data-bs-theme=dark] #lnTitBox .text-muted{color:var(--cf-p-gray-700)!important}
/* 📅 Agenda: abas, temporada, 🗺 Rotas, 🧳 Mala do árbitro e 🪑 Banco de reservas (variáveis do Bootstrap: o modo escuro vem junto) */
.ag-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--bs-border-color)}
.ag-tab{padding:6px 12px;border-radius:8px 8px 0 0;text-decoration:none;color:var(--bs-secondary-color);border:1px solid transparent;margin-bottom:-1px;white-space:nowrap}
.ag-tab:hover{color:var(--bs-body-color);background:var(--bs-tertiary-bg)}
.ag-tab.on{color:var(--bs-body-color);background:var(--bs-body-bg);border-color:var(--bs-border-color);border-bottom-color:var(--bs-body-bg);font-weight:600}
.ag-sea-h{font-size:.8rem;color:var(--bs-secondary-color);margin-bottom:4px}
.ag-sea-k{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.ag-sk{background:var(--bs-tertiary-bg);border-radius:12px;padding:10px 14px;display:flex;flex-direction:column;min-width:0}
.ag-sk small{color:var(--bs-secondary-color);font-size:.8rem}
.ag-sk b{font-size:1.6rem;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-sk em{font-style:normal;font-size:.72rem;color:var(--bs-secondary-color);line-height:1.2}
.ag-sk.warn{background:var(--bs-warning-bg-subtle)}.ag-sk.warn b,.ag-sk.warn small{color:var(--bs-warning-text-emphasis)}
/* Temporada com ícone colorido (agenda.php): .ag-sk.ic + .ag-ic.c-* (cada número tem a sua cor) */
.ag-sea-h b{font-weight:600;color:var(--bs-body-color)}
.ag-sk.ic{flex-direction:row;align-items:center;gap:10px;background:var(--bs-body-bg);border:1px solid var(--bs-border-color)}
.ag-sk.ic>div{min-width:0;display:flex;flex-direction:column}
.ag-sk em a{text-decoration:none}.ag-sk em a:hover{text-decoration:underline}
.ag-ic{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;font-size:1.15rem;line-height:1}
.ag-ic.c-gold{background:var(--bs-warning-bg-subtle)}.ag-ic.c-blue{background:var(--bs-primary-bg-subtle)}.ag-ic.c-teal{background:var(--bs-info-bg-subtle)}
.ag-ic.c-coral{background:var(--bs-danger-bg-subtle)}.ag-ic.c-purple{background:var(--cf-p-training-bg)}.ag-ic.c-green{background:var(--bs-success-bg-subtle)}.ag-ic.c-gray{background:var(--bs-secondary-bg)}
[data-bs-theme=dark] .ag-ic.c-purple{background:#2a2552}
@media (max-width:575.98px){.ag-sk.ic{padding:8px 10px;gap:8px}.ag-sk.ic:last-child:nth-child(odd){grid-column:span 2}.ag-ic{width:32px;height:32px;font-size:1rem}}
.ag-rt-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.ag-rt-top .ag-per{display:flex;align-items:center;gap:6px}
.ag-rt{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;align-items:start}
.ag-rt-map{background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:12px}
.ag-map{width:100%;height:auto;display:block}
.ag-leg-l{stroke:var(--bs-primary);stroke-width:2.5}.ag-leg-l.back{stroke:var(--bs-secondary-color);stroke-dasharray:5 4;stroke-width:1.5}
.ag-leg-t{font-size:11px;fill:var(--bs-secondary-color);paint-order:stroke;stroke:var(--bs-body-bg);stroke-width:3px}
.ag-pin circle{fill:var(--bs-primary-bg-subtle);stroke:var(--bs-primary);stroke-width:1.5}.ag-pin.home circle{fill:var(--bs-success-bg-subtle);stroke:var(--bs-success)}
.ag-pin-p{font-size:13px;fill:var(--bs-primary-text-emphasis)}.ag-pin.home .ag-pin-p{fill:var(--bs-success-text-emphasis)}
.ag-pin-t{font-size:12px;fill:var(--bs-body-color);paint-order:stroke;stroke:var(--bs-body-bg);stroke-width:3px}
.ag-rt-ev{background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:8px;padding:8px 10px;margin-bottom:8px;overflow-wrap:anywhere}
.ag-rt-ev .form-control{max-width:220px}
.ag-home .form-control{min-width:0}
.ag-box{background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:12px;padding:10px 12px}
.ag-box-h{font-weight:600;margin-bottom:6px}
.ag-trip{border:1px solid var(--bs-border-color);border-radius:12px;padding:10px 12px;background:var(--bs-tertiary-bg)}
.ag-trip-h{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.ag-trip-h .ag-when{margin-left:6px}
.ag-trip-ev{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.ag-trip-ev .ag-tag{display:inline-flex;align-items:center;flex-wrap:wrap;gap:2px}
.ag-trip-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px}
.ag-num{width:90px}
.ag-chk-i{display:flex;align-items:center;gap:4px;padding:2px 0}
.ag-inv{border-top:1px solid var(--bs-border-color);padding:6px 0}.ag-inv:first-of-type{border-top:0}
.ag-inv summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;cursor:pointer}
.ag-inv-n{min-width:180px}
.ag-inv-bar{flex:1;min-width:200px;display:flex;height:22px;border-radius:6px;overflow:hidden;font-size:.72rem}
.ag-inv-bar i{font-style:normal;display:flex;align-items:center;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ag-inv-bar .h{background:var(--bs-success-bg-subtle);color:var(--bs-success-text-emphasis)}
.ag-inv-bar .o{background:var(--bs-warning-bg-subtle);color:var(--bs-warning-text-emphasis)}
.ag-inv-bar .f{background:var(--bs-danger-bg-subtle);color:var(--bs-danger-text-emphasis)}
.ag-inv-f{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:6px;margin-top:8px}
.ag-team{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.ag-seat{background:var(--bs-tertiary-bg);border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.ag-seat small{color:var(--bs-secondary-color);font-size:.75rem}
.ag-seat.open{background:transparent;border:1px dashed var(--bs-danger);color:var(--bs-danger-text-emphasis)}
.ag-seat-f{background:transparent;border:1px dashed var(--bs-border-color)}
.ag-inv-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 0;border-top:1px solid var(--bs-border-color)}.ag-box-h+.ag-inv-r{border-top:0}
.ag-note{max-width:200px}
.ag-cand{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--bs-border-color)}
.ag-cand:first-child{border-top:0}.ag-cand.busy{opacity:.75}
.ag-av{width:38px;height:38px;border-radius:50%;background:var(--bs-primary-bg-subtle);color:var(--bs-primary-text-emphasis);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.85rem;flex:none}
.ag-cand-t{flex:1;min-width:170px}.ag-cand-t small{display:block;color:var(--bs-secondary-color)}
.ag-cand-f{display:flex;gap:4px;align-items:center}.ag-role{max-width:190px}
@media (max-width:991.98px){.ag-rt{grid-template-columns:minmax(0,1fr)}.ag-sea-k{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:575.98px){.ag-sea-k{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-sk b{font-size:1.3rem}.ag-cand-f{width:100%}.ag-role{max-width:none;flex:1}.ag-tab{padding:6px 8px;font-size:.85rem}}
@media print{.ag-trip{break-inside:avoid;background:#fff}}
/* 🏛 Entidades e circuitos (organizer/entities.php) */
.ent-sug{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 0;border-top:1px solid var(--bs-border-color)}
.ent-sug-t{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}.ent-sug .form-select{width:auto;max-width:100%;flex:0 1 200px}
.ent-ic{font-size:1.1rem}
.ent-circ{display:flex;flex-wrap:wrap;gap:4px}
.ent-chip{background:var(--bs-secondary-bg);border-radius:999px;padding:1px 9px;font-size:.78rem}.ent-chip.off{opacity:.55;text-decoration:line-through}
.ent-cr{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:4px}.ent-cr>form:first-child{flex:1 1 220px}.ent-cr button{white-space:nowrap}
.ent-t td{overflow-wrap:anywhere}
.ent-act{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}.ent-act .btn{white-space:nowrap}
/* 📅 Agenda › Entidades: um cartão por quem contrata */
.ag-ents{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:10px}
.ag-ent{background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;min-width:0}
.ag-ent.none{border-style:dashed;background:transparent}
.ag-ent-h{display:flex;align-items:center;gap:10px;min-width:0}.ag-ent-h b{display:block;line-height:1.2;overflow-wrap:anywhere}.ag-ent-h small{color:var(--bs-secondary-color);font-size:.75rem}
.ag-ent-av{width:38px;height:38px;border-radius:10px;background:var(--bs-primary-bg-subtle);display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex:none}
.ag-ent-n{display:flex;gap:14px;flex-wrap:wrap}.ag-ent-n small{display:block;color:var(--bs-secondary-color);font-size:.72rem}.ag-ent-n b{font-size:1.15rem;font-variant-numeric:tabular-nums}
.ag-ent-nx{background:var(--bs-tertiary-bg);border-radius:8px;padding:6px 8px;font-size:.8rem;display:flex;flex-direction:column;min-width:0}
.ag-ent-nx small{color:var(--bs-secondary-color);font-size:.7rem}.ag-ent-nx span{color:var(--bs-secondary-color)}
.ag-ent-go{border:0;background:transparent;padding:0;text-align:left;font-weight:600;color:var(--bs-body-color);overflow-wrap:anywhere}.ag-ent-go:hover{color:var(--bs-primary)}
.ag-ent-ch{display:flex;flex-wrap:wrap;gap:4px}.ag-ent-ch span{background:var(--bs-secondary-bg);border-radius:999px;padding:1px 8px;font-size:.72rem;color:var(--bs-secondary-color)}
.ag-ent-w{font-size:.8rem;color:var(--bs-warning-text-emphasis)}.ag-ent-ok{font-size:.8rem;color:var(--bs-success-text-emphasis)}
.ag-ent-a{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.ag-rep-h{display:flex;gap:10px;align-items:center}.ag-rep .table td{overflow-wrap:anywhere}
@media screen and (max-width:575.98px){.ag-rep-t thead{display:none}.ag-rep-t,.ag-rep-t tbody,.ag-rep-t tr,.ag-rep-t td{display:block;width:100%}
.ag-rep-t tr{border:1px solid var(--bs-border-color);border-radius:10px;padding:6px 10px;margin-bottom:8px}
.ag-rep-t td{border:0;padding:1px 0;text-align:left!important;display:flex;gap:8px}.ag-rep-t td[data-l]::before{content:attr(data-l);color:var(--bs-secondary-color);font-size:.78rem;min-width:76px}
.ag-rep-t td.ag-rep-nm{font-weight:600;display:block}}
/* ⚙️ Gerenciar as fotos (📷 Planilhas e fotos do PGN por equipes): pílula 3D dourada; a borda de baixo some ao apertar ou abrir */
.cf-mgr>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;list-style:none;cursor:pointer;padding:2px 0 7px}
.cf-mgr>summary::-webkit-details-marker{display:none}
.cf-mgr-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 20px;border-radius:999px;font-weight:700;font-size:.95rem;color:#0b1f44;white-space:nowrap;background:linear-gradient(180deg,var(--cf-p-dark-warn-text) 0%,var(--cf-warn) 48%,#ef9f27 100%);border:1px solid #d98a06;box-shadow:inset 0 2px 1px rgba(255,255,255,.65),0 5px 0 #b45309,0 8px 14px rgba(180,83,9,.4);transition:transform .08s,box-shadow .08s,filter .15s}
.cf-mgr-pill::after{content:"▾";font-size:.85rem;transition:transform .15s}
.cf-mgr>summary:hover .cf-mgr-pill{filter:brightness(1.06)}
.cf-mgr>summary:active .cf-mgr-pill,.cf-mgr[open]>summary .cf-mgr-pill{transform:translateY(4px);box-shadow:inset 0 2px 1px rgba(255,255,255,.65),0 1px 0 #b45309,0 2px 4px rgba(180,83,9,.4)}
.cf-mgr[open]>summary .cf-mgr-pill::after{transform:rotate(180deg)}
.cf-mgr>summary:focus-visible{outline:0}.cf-mgr>summary:focus-visible .cf-mgr-pill{outline:3px solid #2563eb;outline-offset:2px}
.cf-mgr-info{font-size:.82rem;color:var(--bs-secondary-color);min-width:0}
[data-bs-theme=dark] .cf-mgr-pill{box-shadow:inset 0 2px 1px rgba(255,255,255,.65),0 5px 0 #92400e,0 8px 14px rgba(0,0,0,.55)}
[data-bs-theme=dark] .cf-mgr>summary:active .cf-mgr-pill,[data-bs-theme=dark] .cf-mgr[open]>summary .cf-mgr-pill{box-shadow:inset 0 2px 1px rgba(255,255,255,.65),0 1px 0 #92400e,0 2px 4px rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){.cf-mgr-pill,.cf-mgr-pill::after{transition:none}}
/* Circuitos: "↻ Atualizar" (etapa já importada) em amarelo-ouro, para não confundir com "⬇ Importar" (verde) */
.btn.cf-btn-atualizar{--bs-btn-color:#412402;--bs-btn-bg:#ef9f27;--bs-btn-border-color:#ef9f27;--bs-btn-hover-color:#412402;--bs-btn-hover-bg:#e08f14;--bs-btn-hover-border-color:#e08f14;--bs-btn-active-color:#412402;--bs-btn-active-bg:#c97f1c;--bs-btn-active-border-color:#c97f1c;--bs-btn-focus-shadow-rgb:239,159,39}
[data-bs-theme=dark] .btn.cf-btn-atualizar{--bs-btn-bg:#f0a83a;--bs-btn-border-color:#f0a83a;--bs-btn-hover-bg:#f5b752;--bs-btn-hover-border-color:#f5b752}

/* Ícones SVG de copiar / abrir em nova aba (cf_ic_copy, cf_ic_open): alinhados ao texto do botão */
.cf-ic{vertical-align:-.125em;flex-shrink:0}

/* Botões de contorno com contraste AA: o cinza do Bootstrap (#6c757d) fica em 4.0:1 no fundo cinza da página e 3.4:1 no escuro;
   no modo escuro o azul, o verde e o vermelho de contorno usam os tons claros do próprio Bootstrap */
.btn-outline-secondary { --bs-btn-color: #495057; }
.btn-outline-primary { --bs-btn-color: #0a58ca; } /* azul do contorno um tom abaixo: 4.3:1 → 6:1 no fundo cinza da página */
[data-bs-theme=dark] .btn-outline-secondary { --bs-btn-color: #adb5bd; --bs-btn-border-color: #6c757d; }
[data-bs-theme=dark] .btn-outline-primary { --bs-btn-color: #6ea8fe; }
[data-bs-theme=dark] .btn-outline-success { --bs-btn-color: #75b798; }
[data-bs-theme=dark] .btn-outline-danger { --bs-btn-color: #ea868f; }

/* Piso do texto (DESIGN.md · Label 0.75rem): o selo do Bootstrap é .75em, e dentro de .small ou de btn-sm caía para 9,6-10,5 px */
body .badge { font-size: max(.75em, .75rem); } /* também em botões pequenos (btn-sm) e outros contêineres de letra menor */

/* Toque (celular e tablet): botões e campos pequenos do Bootstrap com altura de dedo (~40 px). No computador (mouse) nada muda.
   Vale para as telas do organizador e do admin, que usam btn-sm / form-*-sm em todo lugar; as do árbitro já têm regras próprias. */
@media (pointer: coarse) {
  .btn-sm, .btn-group-sm > .btn { --bs-btn-padding-y: .5rem; --bs-btn-padding-x: .75rem; }
  .btn.btn-sm { padding-top: .5rem !important; padding-bottom: .5rem !important; } /* ganha do py-0 e das regras compactas das páginas */
  .form-control-sm, .form-select-sm { min-height: 40px; font-size: 1rem; } /* 16 px: o iPhone não amplia a tela ao focar o campo */
  .btn-close { padding: .65em; }
  body .cfs-btns button { min-width: 36px; min-height: 36px; margin-right: 4px; } /* ▲ ▼ ⤒ ⤓ dos catálogos (sortlist.js) */
  .cfs-h { padding: 8px 10px; font-size: 1.3rem; } /* alça ⠿ de arrastar */
}

/* Lista ou tela vazia (cf_empty() no PHP e as telas vazias montadas por JS): o mesmo quadro tracejado em toda página */
.cf-empty { border: 1px dashed #9db8e6; background: #f5f9ff; } .cf-empty h5 { color: var(--cf-navy); }
[data-bs-theme=dark] .cf-empty { background: #16213a; border-color: #3a5487; } [data-bs-theme=dark] .cf-empty h5 { color: #9ec5fe; }

/* 📝 Aba Inscrições e portal (organizer/tournaments.php, cadastro do torneio) */
.cf-ip { background: #fffaf0; border: 1.5px solid #ef9f27; border-radius: 12px; padding: .6rem .75rem; }
.cf-ip-url { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; background: #fff; border: 1px solid #fbd18d; border-radius: 6px; padding: .2rem .5rem; word-break: break-all; }
.cf-ip-p { font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 99px; white-space: nowrap; }
.cf-ip-ok { background: #d9f2df; color: #145c2c; } .cf-ip-warn { background: #ffe5d0; color: var(--cf-p-orange-ink); } .cf-ip-off { background: var(--cf-p-gray-200); color: var(--cf-p-gray-700); }
[data-bs-theme=dark] .cf-ip { background: #2e1f0a; border-color: #ba7517; }
[data-bs-theme=dark] .cf-ip-url { background: #1f1609; border-color: #6e4a12; color: #ffd8a0; }
[data-bs-theme=dark] .cf-ip-ok { background: #183d22; color: #9fe0b0; } [data-bs-theme=dark] .cf-ip-warn { background: #4a2408; color: #ffbf94; } [data-bs-theme=dark] .cf-ip-off { background: var(--cf-p-final-slate); color: var(--cf-p-gray-400); }

/* ==== Auditoria de 11/11/2026 (contraste AA, modo escuro, toque, leitor de tela) ==== */
/* Pular para o conteúdo: só aparece quando recebe o foco do teclado */
.cf-skip { position: absolute; left: 8px; top: -60px; z-index: 3000; background: #fff; color: var(--cf-navy); font-weight: 700; padding: 8px 14px; border-radius: 8px; border: 2px solid var(--cf-action); text-decoration: none; }
.cf-skip:focus { top: 8px; }
main:focus { outline: 0; }

/* Modo claro: o azul de link do Bootstrap (#0d6efd) fica em 4,16:1 sobre o cinza da página; um tom abaixo passa de 5:1 */
:root:not([data-bs-theme=dark]) { --bs-link-color: #0b5ed7; --bs-link-color-rgb: 11, 94, 215; --bs-link-hover-color: #0a53be; --bs-link-hover-color-rgb: 10, 83, 190; }
:root:not([data-bs-theme=dark]) .nav-tabs, :root:not([data-bs-theme=dark]) .nav-pills { --bs-nav-link-color: #0b5ed7; --bs-nav-link-hover-color: #0a53be; }
/* Botões de contorno: o texto usa o tom escuro da família (o contorno continua na cor do estado) */
:root:not([data-bs-theme=dark]) .btn-outline-success { --bs-btn-color: #146c43; }
:root:not([data-bs-theme=dark]) .btn-outline-danger { --bs-btn-color: #b02a37; }
:root:not([data-bs-theme=dark]) .btn-outline-warning { --bs-btn-color: #664d03; --bs-btn-border-color: #e0a800; }
:root:not([data-bs-theme=dark]) .btn-outline-info { --bs-btn-color: #055160; --bs-btn-border-color: #0aa2c0; }
/* Amarelo como cor de texto não se lê no branco (1,63:1): texto de aviso em âmbar escuro; sobre fundo escuro continua amarelo */
:root:not([data-bs-theme=dark]) .text-warning { color: #8a6400 !important; }
:root:not([data-bs-theme=dark]) :is(.bg-dark, .bg-primary, .bg-secondary, .bg-success, .bg-danger, .table-dark, thead, .cfn, .navbar) .text-warning { color: var(--cf-warn) !important; }
/* Selo amarelo ou ciano: texto sempre escuro, nos dois temas */
.badge.bg-warning, .badge.bg-info { color: var(--cf-p-ink) !important; }

/* Modo escuro */
[data-bs-theme=dark] .text-dark:is(.bg-warning, .bg-info, .btn-warning, .btn-info), [data-bs-theme=dark] :is(.bg-warning, .bg-info) .text-dark { color: var(--cf-p-ink) !important; }
[data-bs-theme=dark] .text-bg-light { background-color: var(--cf-surface2) !important; color: var(--cf-text) !important; }
[data-bs-theme=dark] .text-success { color: #75b798 !important; }
[data-bs-theme=dark] .text-danger { color: #ea868f !important; }
[data-bs-theme=dark] .text-primary { color: var(--cf-blue) !important; }
[data-bs-theme=dark] .text-secondary { color: var(--cf-muted) !important; }
[data-bs-theme=dark] :is(.bg-success, .bg-danger, .bg-primary, .btn-success, .btn-danger, .btn-primary) :is(.text-success, .text-danger, .text-primary) { color: inherit !important; }
[data-bs-theme=dark] .btn-outline-warning { --bs-btn-color: #ffda6a; }
[data-bs-theme=dark] .btn-outline-info { --bs-btn-color: #6edff6; }
[data-bs-theme=dark] .cfs-pos, [data-bs-theme=dark] .cf-fide { color: var(--cf-blue); border-bottom-color: var(--cf-blue); }
/* Marinho escrito direto no elemento (style="color:var(--cf-navy)") some no fundo escuro */
[data-bs-theme=dark] :is(h1, h2, h3, h4, h5, h6, span):is([style^="color:var(--cf-navy, #0b1f4b)"], [style^="color:var(--cf-navy"]) { color: var(--cf-blue) !important; } /* só títulos e trechos de texto: quadros com fundo claro próprio continuam como estão */
/* Quadro do 🧪 Modo treino no cadastro do torneio (violeta treino) */
[data-bs-theme=dark] div[style*="#efe7fb"] { background: #241a3d !important; border-color: #5b479a !important; color: #e2d6fb !important; }
/* Linhas coloridas de tabela: fundos escuros da mesma família, com o texto claro do tema */
[data-bs-theme=dark] .table-warning { --bs-table-bg: var(--cf-warn-bg); --bs-table-color: var(--cf-text); --bs-table-border-color: var(--cf-line); }
[data-bs-theme=dark] .table-success { --bs-table-bg: var(--cf-done-bg); --bs-table-color: var(--cf-text); --bs-table-border-color: var(--cf-line); }
[data-bs-theme=dark] .table-danger { --bs-table-bg: var(--cf-alert-bg); --bs-table-color: var(--cf-text); --bs-table-border-color: var(--cf-line); }
[data-bs-theme=dark] .table-info { --bs-table-bg: #12343b; --bs-table-color: var(--cf-text); --bs-table-border-color: var(--cf-line); }
[data-bs-theme=dark] .table-primary { --bs-table-bg: #15305e; --bs-table-color: var(--cf-text); --bs-table-border-color: var(--cf-line); }

/* Toque: a marca da barra e o ⓘ com pelo menos 24 px; caixas de marcar soltas com área de dedo */
.cfn-brand { min-height: 24px; display: inline-flex; align-items: center; }
@media (pointer: coarse) {
  .cf-info { min-width: 24px; min-height: 24px; }
  td > .form-check-input:only-child, th > .form-check-input:only-child { width: 24px; height: 24px; margin: 4px; }
  details > summary { min-height: 28px; padding-block: 3px; }
}
@media (pointer: coarse) {
  /* links soltos em tabelas e os "✏️ alterar" pequenos: altura de pelo menos 24 px */
  .table td > a:not(.btn), a.small:not(.btn) { display: inline-block; padding-block: 3px; }
}
.chg-row { content-visibility: auto; contain-intrinsic-size: auto 150px; } /* 📝 Mudanças (novidades.php): centenas de cartões; o navegador só desenha os que estão na tela */
@media (pointer: coarse) { .rr-b { width: 24px; height: 24px; } } /* caixas de marcar das mesas no Reinício de rodada */
/* Ciano como cor de texto no modo claro (1,96:1 sobre branco): tom escuro da família; sobre fundo escuro continua claro */
:root:not([data-bs-theme=dark]) .text-info { color: #087990 !important; }
:root:not([data-bs-theme=dark]) :is(.bg-dark, .bg-primary, .bg-secondary, .bg-success, .bg-danger, .table-dark, thead, .cfn, .navbar) .text-info { color: #0dcaf0 !important; }
/* Foco do teclado em botão sem variante do Bootstrap (.btn puro, ex.: "⇅ Posição das abas"): o Bootstrap só define o anel de foco nas
   variantes (btn-primary, btn-outline-…); sem isto o botão não mostrava onde o foco estava. :where() não ganha das variantes. */
:where(.btn) { --bs-btn-focus-shadow-rgb: 30, 111, 224; }

/* 🔎 Busca de atleta: cor de cada ritmo nos quadros de rating (busca_atleta.php), mais clara no modo escuro */
[data-bs-theme=dark] .rf-t-clas { --rf-c: #2dd4bf; }
[data-bs-theme=dark] .rf-t-rap { --rf-c: #f1868f; }
[data-bs-theme=dark] .rf-t-blitz { --rf-c: #b79ce6; }
/* Emparceiramento: cartão "Outras bases ⋯" (cor --pc) e o ponto roxo do menu */
[data-bs-theme=dark] .pj-obb { --pc: #b79ce6; }
[data-bs-theme=dark] .pj-dot { background: #b79ce6; }

/* ♟ Emparceiramento → Configuração: cor de cada família de desempate (organizer/emparceiramento.php), tons escuros no modo escuro */
[data-bs-theme=dark] .tbf-cd { --tf: #f0997b; --tf-bg: #4a1b0c; --tf-tx: #f5c4b3; }
[data-bs-theme=dark] .tbf-bh { --tf: #5dcaa5; --tf-bg: #04342c; --tf-tx: #9fe1cb; }
[data-bs-theme=dark] .tbf-sb { --tf: #afa9ec; --tf-bg: #26215c; --tf-tx: #cecbf6; }
[data-bs-theme=dark] .tbf-ar { --tf: #85b7eb; --tf-bg: #042c53; --tf-tx: #b5d4f4; }
[data-bs-theme=dark] .tbf-ot { --tf: #b4b2a9; --tf-bg: #2c2c2a; --tf-tx: #d3d1c7; }


/* ✎ Textos de exemplo dos campos (placeholder) em vermelho claro na plataforma inteira (19/11/2026): separa o exemplo do valor digitado */
::placeholder, .form-control::placeholder, .form-select::placeholder { color: #c04848; opacity: 1; }
[data-bs-theme=dark] ::placeholder, [data-bs-theme=dark] .form-control::placeholder { color: #c97a7a; opacity: 1; }
/* 🏆 Nome do torneio no título (cf_title): pílula laranja em relevo, a mesma do selo "N partidas" (.pgm-tot-pill) */
.cf-tname { display: inline-block; max-width: 100%; vertical-align: middle; margin: 2px 0 6px; padding: .22rem .95rem .15rem; border-radius: 999px; font-size: 1rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25);
  background: linear-gradient(#ff8a3d, var(--cf-orange)); border: 1px solid #b54708; border-bottom: 4px solid #9a3a06; box-shadow: 0 2px 4px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35); }
.cf-tname-id { font-size: .8em; font-weight: 500; opacity: .9; white-space: nowrap; }
[data-bs-theme=dark] .cf-tname { border-color: #9a3a06; border-bottom-color: #6e2a04; box-shadow: 0 2px 4px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.25); }
@media (max-width: 575.98px) { .cf-tname { font-size: .9rem; } }
@media print { .cf-tname { background: none; color: #212529; text-shadow: none; box-shadow: none; border: 1px solid #212529; } }
