/* Tablero de Pintar (js/tablero.js): pantalla sobre el mapa, con la barra de pestañas a la vista.
   Piel Prova: un solo acento, tinta y grises; los colores de equipo son la excepción de siempre (anillo de su color). */
.pt-tablero-btn { position: absolute; right: 14px; top: calc(14px + var(--sa-arriba, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--surf); color: var(--ink); box-shadow: var(--csh); display: grid; place-items: center; cursor: pointer; pointer-events: auto; z-index: 2; }
.pt-tablero-btn svg { width: 22px; height: 22px; }
.pt-tabs2.con-tablero { right: 70px; }

.tb { position: fixed; left: 0; right: 0; top: 0; bottom: calc(62px + var(--sa-abajo, 0px)); z-index: 1245;   /* sobre el panel de Pintar (1240), bajo la barra de pestañas (1250) */ background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; font-family: inherit; }
.tb[hidden] { display: none; }
.tb-in { width: 100%; max-width: 560px; margin: 0 auto; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: calc(12px + var(--sa-arriba, 0px)) 14px 0; }
.tb-cab { display: flex; align-items: center; gap: 10px; }
.tb-redondo { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surf); box-shadow: var(--csh); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.tb-redondo svg { width: 20px; height: 20px; }
.tb-tit { min-width: 0; flex: 1; }
.tb-tit b { display: block; font-weight: 500; font-size: 17px; line-height: 1.15; }
.tb-tit small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-desps { display: flex; gap: 6px; flex: none; }
.tb-desp { height: 42px; padding: 0 7px 0 10px; border-radius: 999px; border: 0; background: var(--surf); box-shadow: var(--csh); color: var(--ink);
  display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.tb-desp svg { width: 20px; height: 20px; }
.tb-desp svg.flecha { width: 14px; height: 14px; color: var(--muted); }
.tb-desp.abierto { background: var(--ink); color: var(--surf); }
.tb-desp.abierto svg.flecha { color: inherit; opacity: .7; }

.tb-tabs { display: flex; background: var(--surf); border-radius: 999px; padding: 4px; box-shadow: var(--csh); margin-top: 12px; }
.tb-tabs button { flex: 1; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.tb-tabs button.on { background: var(--ink); color: var(--surf); }

.tb-cols, .tb-fila { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) 48px 50px; gap: 8px; align-items: center; }
.tb-cols { padding: 12px 6px 4px; font-size: 12px; color: var(--muted); }
.tb-cols span:nth-child(4), .tb-cols span:nth-child(5) { text-align: right; }
.tb-lista { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 96px; -webkit-overflow-scrolling: touch; }
.tb-fila { padding: 6px; border-top: 1px solid var(--line); font-size: 13px; min-height: 50px; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0;
  font-family: inherit; color: inherit; text-align: left; }
.tb-fila:first-child { border-top: 0; }
button.tb-fila { cursor: pointer; }
.tb-fila.tu { background: var(--surf); border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ink); border-top-color: transparent; }
.tb-fila.tu + .tb-fila { border-top-color: transparent; }
.tb-pos { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-pos.p1 { background: #C9A44C; color: #fff; } .tb-pos.p2 { background: #B9B5AD; color: #fff; } .tb-pos.p3 { background: #B98A63; color: #fff; }
.tb-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--surf); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 500; overflow: hidden; }
.tb-ava img { width: 100%; height: 100%; object-fit: cover; }
.tb-ava.anon { background: transparent; box-shadow: none; border: 1.5px dashed var(--muted2); color: var(--muted); }
.tb-ava.anon svg { width: 16px; height: 16px; }
.tb-ava.eq { width: 32px; height: 32px; margin: 2px; color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--c, var(--ink)); background: var(--c, var(--ink)); }
.tb-nm { min-width: 0; line-height: 1.2; }
.tb-nm b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-nm small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-fila.anon .tb-nm b { color: var(--muted); font-weight: 400; }
.tb-num { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }

.tb-fijo { position: absolute; left: 12px; right: 12px; bottom: 10px; max-width: 536px; margin: 0 auto; background: var(--ink); color: var(--surf); border-radius: 16px; padding: 4px 6px 6px; box-shadow: 0 12px 30px rgba(31,29,26,.25); }
.tb-fijo .tb-fila { border-top: 0; color: inherit; min-height: 48px; }
.tb-fijo .tb-pos { width: auto; min-width: 24px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.14); color: inherit; }
.tb-fijo .tb-ava { background: var(--acc); color: #fff; box-shadow: none; }
.tb-fijo .tb-ava.eq { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--c, #fff); }
.tb-fijo .tb-nm small { color: rgba(255,255,255,.65); }
.tb-fijo .tb-nota { font-size: 12px; color: rgba(255,255,255,.72); padding: 0 6px 2px 76px; line-height: 1.35; }

.tb-vacio { text-align: center; padding: 36px 18px 10px; }
.tb-vacio .circ { width: 72px; height: 72px; border-radius: 50%; background: var(--surf); box-shadow: var(--csh); display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted); }
.tb-vacio .circ svg { width: 30px; height: 30px; }
.tb-vacio b { display: block; font-size: 18px; font-weight: 400; line-height: 1.25; }
.tb-vacio p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 8px auto 16px; max-width: 300px; }
.tb-btn { min-height: 44px; border-radius: 999px; border: 0; background: var(--acc); color: #fff; font: inherit; font-weight: 500; font-size: 14px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.tb-btn.sec { background: var(--surf); color: var(--ink); box-shadow: var(--csh); }
.tb-btn.ink { background: var(--ink); color: var(--surf); }
.tb-btn[disabled] { opacity: .5; cursor: default; }

/* Menú de los íconos desplegables */
.tb-velo { position: fixed; inset: 0; z-index: 1300; background: rgba(31,29,26,.12); }
.tb-menu { position: fixed; z-index: 1301; width: 264px; max-width: calc(100vw - 24px); background: var(--surf); color: var(--ink); border-radius: 18px; padding: 6px; box-shadow: 0 18px 40px rgba(31,29,26,.22); }
.tb-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 0; background: none; font: inherit; font-size: 14px; color: inherit; text-align: left; cursor: pointer; }
.tb-menu button small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.tb-menu button > svg:first-child { width: 20px; height: 20px; color: var(--muted); flex: none; }
.tb-menu button.on { background: var(--field); }
.tb-menu button.on > svg:first-child { color: var(--ink); }
.tb-menu button .ok { margin-left: auto; width: 16px; height: 16px; color: var(--ok); }
.tb-menu .sep { height: 1px; background: var(--line); margin: 4px 8px; }

/* Hojas: perfil corto y buscador de lugares */
.tb-hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1301; max-width: 560px; margin: 0 auto; max-height: 86vh; overflow-y: auto; background: var(--bg); color: var(--ink);
  border-radius: 26px 26px 0 0; padding: 10px 16px calc(18px + var(--sa-abajo, 0px)); box-shadow: 0 -10px 40px rgba(31,29,26,.2); }
.tb-hoja .asa { width: 40px; height: 4px; border-radius: 999px; background: var(--muted2); margin: 0 auto 12px; }
.tb-hoja h4 { font-size: 22px; font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.tb-perfil { display: flex; gap: 12px; align-items: center; }
.tb-perfil .tb-ava { width: 56px; height: 56px; font-size: 18px; flex: none; }
.tb-perfil .tb-ava.eq { width: 52px; height: 52px; margin: 3px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c, var(--ink)); }
.tb-perfil small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.tb-perfil .lema { font-style: italic; color: var(--muted); font-size: 13px; margin-top: 3px; }
.tb-cif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tb-cif div { background: var(--surf); border-radius: 14px; padding: 9px 8px; text-align: center; box-shadow: var(--csh); }
.tb-cif b { display: block; font-size: 21px; font-weight: 300; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tb-cif small { font-size: 12px; color: var(--muted); line-height: 1.25; display: block; }
.tb-linea { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 10px 0; border-top: 1px solid var(--line); }
.tb-linea:first-child { border-top: 0; }
.tb-tarjeta { background: var(--surf); border-radius: 18px; padding: 4px 14px; box-shadow: var(--csh); margin-top: 12px; }
.tb-dos { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.tb-dos > * { flex: 1; }
.tb-nota-c { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; line-height: 1.4; }
.tb-pild { display: inline-flex; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); margin-top: 6px; }
.tb-pild.gris { background: var(--field); color: var(--muted); }
.tb-buscar { display: flex; align-items: center; gap: 8px; background: var(--surf); border-radius: 12px; padding: 0 12px; min-height: 44px; margin: 12px 0 6px; }
.tb-buscar input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); flex: 1; min-width: 0; }
.tb-buscar svg { width: 16px; height: 16px; color: var(--muted); }
.tb-op { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 14px; color: inherit; text-align: left; cursor: pointer; }
.tb-op small { display: block; color: var(--muted); font-size: 12px; }
.tb-cod { width: 34px; height: 34px; border-radius: 10px; background: var(--surf); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; flex: none; }
.tb-k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 12px 4px 2px; }
