/* Navegación 4.34: los módulos heredados no seleccionados no deben ocupar espacio. */
#extraRoot429 > section:not(.private-selected) {
  display: none !important;
}
main .private-page:not(.private-selected),
main .private-page.hidden,
main #dashboard [hidden] {
  display: none !important;
}
main[data-private-active^='grupo-'] #alerts428,
.gate-group-hidden434 {
  display: none !important;
}
main #dashboard {
  padding: 14px;
}
main #dashboard > h2 {
  margin: 3px 0 10px;
}
main #dashboard .private-menu {
  margin-top: 9px;
  gap: 9px !important;
}
main #dashboard .nav-tile434 {
  margin: 0 !important;
  min-height: 76px;
  padding: 8px 5px;
  gap: 4px;
  justify-content: center;
  line-height: 1.2;
}
main #dashboard .nav-tile434 span:first-child {
  font-size: 22px;
}
main #dashboard .nav-tile434 span:nth-child(2) {
  font-size: 14px;
  font-weight: 700;
}
main #dashboard .nav-tile434 small {
  font-size: 11px;
  line-height: 1.15;
  opacity: 0.85;
}
main #dashboard #alerts428 {
  margin: 0 0 12px;
  padding: 8px 10px;
}
#alerts428 summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  list-style: none;
}
#alerts428 summary::after {
  content: '⌄';
  font-size: 20px;
}
#alerts428 details[open] summary::after {
  content: '⌃';
}
#alerts428 .alerts-count434 {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}
#alerts428 .role {
  padding: 9px 0;
}
#alerts428 .role p {
  margin: 6px 0;
}
#accountDetails434 #pushRoot433 {
  margin-top: 12px;
}
@media (max-width: 550px) {
  body[data-page='acceso_seguro'] main {
    padding: 10px 12px 36px;
  }
  body[data-page='acceso_seguro'] header {
    padding: 3px 0;
  }
  body[data-page='acceso_seguro'] header h1 {
    font-size: 1.15rem;
    margin: 5px 0;
  }
  body[data-page='acceso_seguro'] header p {
    font-size: 0.78rem;
    margin: 4px 0;
  }
  body[data-page='acceso_seguro'] .private-toolbar {
    margin: 4px 0;
  }
  body[data-page='acceso_seguro'] #profileChooser427 {
    margin: 2px 0 8px;
  }
  main #dashboard {
    margin: 8px 0;
  }
  main #dashboard .nav-tile434 {
    min-height: 76px;
  }
}
:root[data-liga-theme='prensa'] main #dashboard .nav-tile434,
:root[data-liga-theme='clasico'] main #dashboard .nav-tile434 {
  justify-content: flex-start;
  min-height: 48px;
  flex-direction: row;
  gap: 8px;
  padding: 8px 12px;
}

/* 4.41: encuestas, centro del entrenador, pizarras y cambios. */
.poll441 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.poll441-btn {
  flex: 1 1 90px;
  min-height: 44px;
  margin: 0;
  background: var(--t-raised, #193b4e);
  color: var(--t-text, #f5f1e8);
  border: 2px solid var(--t-edge, #527181);
}
.poll441-btn[aria-pressed='true'] {
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
  border-color: var(--t-accent, #e9c46a);
  font-weight: 700;
}
.poll441-count {
  font-weight: 700;
  margin: 6px 0;
}
.poll441-names {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.hub441-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.hub441-links button {
  margin: 0;
}
.hub441-block h3 {
  margin-top: 0;
}
.hub441-poll {
  border-top: 1px solid var(--t-edge, #527181);
  padding-top: 8px;
  margin-top: 8px;
}
.hub441-ask button {
  display: block;
  width: 100%;
  text-align: left;
}
.minutes441 {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  margin: 3px 0;
  border-radius: 6px;
  overflow: hidden;
}
.minutes441 > span:not(.minutes441-bar) {
  position: relative;
  z-index: 1;
}
.minutes441-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--t-raised, #193b4e);
  opacity: 0.9;
}
.pitch441 {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 450px;
  margin: 12px auto;
  background: repeating-linear-gradient(0deg, #216a3c 0 12.5%, #287a46 12.5% 25%);
  border-radius: 6px;
  touch-action: none;
  user-select: none;
}
.pitch441-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.token441 {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  touch-action: none;
  font-weight: 700;
  z-index: 2;
}
.token441.own {
  background: #e9c46a;
  color: #102030;
  border: 2px solid #fff;
}
.token441.rival {
  background: #c8553d;
  border: 2px solid #fff;
  width: 26px;
  height: 26px;
}
.token441.ball {
  background: transparent;
  border: 0;
  width: 26px;
  height: 26px;
  font-size: 20px;
}
.token441-name {
  position: absolute;
  transform: translate(-50%, 0);
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}
.board441-bar,
.board441-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
}
.board441-bar label {
  flex: 1 1 200px;
}
.board441-tools button {
  margin: 0;
}
.board441-tools button[aria-pressed='true'] {
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
}
.board441-check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.board441-check input {
  width: auto;
}
.rotation441-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}
.rotation441-row input {
  width: 70px;
}
.rotation441-row select {
  flex: 1 1 120px;
  width: auto;
}

/* 4.42: entrenamiento y táctica más compactos */
details.new442,
details.callup442,
details.session442,
details.past442,
details.fold442,
details.more442,
details.exercise-fold442,
details.poll441-who {
  margin: 8px 0;
}
details.new442 > summary,
details.callup442 > summary,
details.session442 > summary,
details.past442 > summary,
details.fold442 > summary,
details.more442 > summary,
details.exercise-fold442 > summary,
details.poll441-who > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 4px;
  min-height: 44px;
  box-sizing: border-box;
  list-style-position: inside;
}
details.new442 > summary {
  color: var(--t-accent, #e9c46a);
  font-size: 1.05em;
}
details.new442[open] {
  border: 1px solid var(--t-edge, #3a4a63);
  border-radius: 12px;
  padding: 0 10px 10px;
}
details.past442 > summary,
details.fold442 > summary,
details.poll441-who > summary,
details.more442 > summary {
  font-weight: 500;
  color: var(--t-muted, #9aa7bd);
}
details.past442 > details {
  opacity: 0.85;
}
.actions442 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.actions442 button {
  margin: 0;
  flex: 1 1 auto;
}
.exrow442 {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  border-bottom: 1px solid var(--t-edge, #3a4a63);
  padding: 4px 0;
}
.exrow442 > details {
  flex: 1 1 auto;
  min-width: 0;
}
.exrow442 > details > summary {
  cursor: pointer;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.exrow442-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: 50%;
}
.exrow442-actions button {
  margin: 0;
  padding: 6px 10px;
  min-height: 40px;
}
button.icon442 {
  min-width: 40px;
  padding: 6px;
}
.drills442-filters {
  margin: 8px 0;
}
.chips442 {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.chips442 button.chip442 {
  flex: 0 0 auto;
  margin: 0;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.chips442 button.chip442[aria-pressed='true'] {
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
}
details.more442 {
  margin: 0;
}
details.more442 > summary {
  padding: 8px 6px;
}
details.callup442 details > summary,
details.session442 details > summary {
  cursor: pointer;
  padding: 10px 4px;
  min-height: 44px;
  box-sizing: border-box;
}

/* 4.44: acta en directo del árbitro */
details.live444-fold > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 4px;
  min-height: 44px;
  color: var(--t-accent, #e9c46a);
}
.live444 {
  display: grid;
  gap: 12px;
}
.live444-board {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--t-raised, #13283f);
  border: 1px solid var(--t-edge, #3a4a63);
  text-align: center;
}
.live444-team {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.live444-score {
  font-size: 40px;
  line-height: 1;
  min-width: 40px;
}
.live444-dash {
  font-size: 28px;
  opacity: 0.6;
}
.live444-clock {
  display: grid;
  gap: 6px;
}
.live444-clock > strong {
  font-size: 22px;
  text-align: center;
}
.live444-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.live444-row button {
  flex: 1 1 140px;
  margin: 0;
}
.live444-teamrow {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}
.live444-teamname {
  font-weight: 700;
}
.live444-btns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.live444-btns button {
  margin: 0;
  min-height: 56px;
  padding: 6px 2px;
  font-size: 14px;
  white-space: normal;
}
.live444-btns .live444-goal {
  background: var(--t-good, #2e9a52) !important;
  color: #fff !important;
}
.live444-picker {
  border: 2px solid var(--t-accent, #e9c46a);
  border-radius: 14px;
  padding: 10px;
}
.live444-picker h4 {
  margin: 0 0 8px;
}
.live444-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.live444-players button {
  margin: 0;
  min-height: 48px;
  white-space: normal;
}
.live444-status {
  font-weight: 600;
  min-height: 1em;
}
.live444-error {
  color: #ff8a80;
}
.live444-event {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--t-edge, #3a4a63);
}
.live444-event small {
  grid-column: 1;
  opacity: 0.75;
}
.live444-event button {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}
.live444-submit {
  min-height: 56px;
  font-size: 17px;
}

/* 4.44: «Lo próximo» del jugador */
.home444 h3 {
  margin-top: 0;
}
.home444-item {
  border: 1px solid var(--t-edge, #3a4a63);
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
}
.home444-item p {
  margin: 4px 0;
}
.home444-todo {
  border-color: var(--t-accent, #e9c46a);
  border-width: 2px;
}
.home444-pending {
  font-weight: 700;
  color: var(--t-accent, #e9c46a);
}
.home444-alert {
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  background: #ff8a8022;
  border: 1px solid #ff8a80;
}
.home444-error {
  color: #ff8a80;
}
.home444-error:empty {
  display: none;
}
.home444-stats {
  font-weight: 600;
}
.live444 [hidden],
.live444-status:empty {
  display: none !important;
}

/* 4.45: entrada por sesión y portada por rol */
.welcome445 {
  text-align: center;
  margin-bottom: 8px;
}
.welcome445 img {
  border-radius: 20px;
  box-shadow: 0 6px 20px #0006;
}
.welcome445 h2 {
  margin: 10px 0 4px;
}
.welcome445 p {
  margin: 0 0 8px;
  color: var(--t-muted, #9aa7bd);
}
#login #signin {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}
a.guest445 {
  display: block;
  margin: 18px 0 6px;
  padding: 12px;
  border: 1px dashed var(--t-edge, #3a4a63);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: var(--t-text, #e8eef7);
}
a.guest445 small {
  display: block;
  font-weight: 400;
  color: var(--t-muted, #9aa7bd);
  margin-top: 2px;
}
details.advanced445 > summary {
  font-size: 14px;
}
.rolebar445 {
  display: grid;
  gap: 6px;
  margin: 4px 0 10px;
}
.rolebar445 p {
  margin: 0;
  font-size: 16px;
}
.rolechange445 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rolechange445 button {
  margin: 0;
  flex: 1 1 auto;
}
.role-pick445 {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.role-pick445 button {
  margin: 0;
  min-height: 64px;
  font-size: 19px;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
}
#roleMain445 .main445 {
  margin-top: 6px;
}
#roleMain445 .nav-tile434 {
  min-height: 96px;
}
#roleMain445 .nav-tile434 span:first-child {
  font-size: 28px;
}
#roleMain445 .nav-tile434 span:nth-child(2) {
  font-size: 16px;
  font-weight: 700;
}
h3.more445 {
  margin: 18px 0 6px;
  font-size: 15px;
  color: var(--t-muted, #9aa7bd);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.league445 {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--t-edge, #3a4a63);
}
.league445 h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--t-muted, #9aa7bd);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.league445-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.league445-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--t-edge, #3a4a63);
  border-radius: 999px;
  text-decoration: none;
  color: var(--t-text, #e8eef7);
  font-size: 14px;
}

/* 4.45.1: barra inferior fija en la zona privada */
nav.bottom445 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  padding: 5px 4px calc(7px + env(safe-area-inset-bottom));
  background: var(--t-nav, #091c32);
  border-top: 2px solid var(--t-edge, #4a6376);
  box-shadow: 0 -5px 22px #0008;
}
nav.bottom445[hidden] {
  display: none;
}
nav.bottom445 a {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--t-muted, #b5c8df);
  font-size: 12px;
  font-weight: 700;
}
nav.bottom445 a .nav-icon {
  font-size: 21px;
  line-height: 1.1;
}
nav.bottom445 a.active {
  color: var(--t-accent, #ffd46c);
  background: var(--t-raised, #1b3e48);
}
body.has-bottom445 {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* 4.46: aviso de versión nueva, código de equipo */
.update446 {
  margin: 10px 0;
  padding: 12px;
  border: 2px solid var(--t-accent, #e9c46a);
  border-radius: 14px;
  background: var(--t-raised, #13283f);
}
.update446 p {
  margin: 6px 0;
}
.update446-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.update446-row > * {
  flex: 1 1 140px;
  margin: 0;
}
a.update446-get,
a.teamcode446-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
}
.join446,
.teamcode446 {
  border: 2px solid var(--t-accent, #e9c46a);
}
.join446 h3,
.teamcode446 h3 {
  margin-top: 0;
}
.join446 input {
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}
.join446-status {
  font-weight: 700;
}
.teamcode446-code {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 4px;
  text-align: center;
  margin: 6px 0;
  font-family: ui-monospace, monospace;
}
.teamcode446-off {
  opacity: 0.4;
  text-decoration: line-through;
}
details.roster446 > summary {
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
  list-style-position: inside;
}
details.roster446 > summary small {
  display: block !important;
  margin-left: 18px;
  opacity: 0.8;
}
details.roster446[open] > summary {
  border-bottom: 1px solid var(--t-edge, #3a4a63);
  margin-bottom: 8px;
}

/* 4.48: pizarra táctica más cómoda en el móvil */
.pitch441 {
  max-width: 520px;
  border-radius: 12px;
  box-shadow:
    0 0 0 3px #ffffff22 inset,
    0 8px 22px #0006;
  overflow: hidden;
}
.token441.own {
  width: 38px;
  height: 38px;
  font-size: 16px;
  box-shadow: 0 3px 8px #0007;
}
.token441.rival {
  box-shadow: 0 3px 8px #0007;
}
.token441-name {
  transform: translate(-50%, 21px);
  padding: 1px 6px;
  border-radius: 8px;
  background: #000a;
  font-size: 11.5px;
  font-weight: 600;
  text-shadow: none;
}
.pitch448-edit .token441 {
  cursor: grab;
}
.token441.token448-drag {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 10px 22px #000a;
  z-index: 5;
  cursor: grabbing;
}
.board448-stage {
  margin: 10px -8px 6px;
}
.board448-forms {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.board448-forms::-webkit-scrollbar {
  display: none;
}
main .board448-chip {
  flex: 0 0 auto;
  min-height: 38px;
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--t-raised, #193b4e);
  color: var(--t-text, #f5f1e8);
  border: 1px solid var(--t-edge, #527181);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
main .board448-chip[aria-pressed='true'] {
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
  border-color: var(--t-accent, #e9c46a);
}
.board448-tools {
  position: sticky;
  top: 0;
  z-index: 6;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--t-surface, #10283b);
  border: 1px solid var(--t-edge, #527181);
}
main .board448-tools > button {
  flex: 1 1 auto;
  min-height: 42px;
  margin: 0;
  padding: 4px 8px;
  white-space: nowrap;
  font-size: 14px;
}
main .board448-tools > button.board448-icon {
  flex: 0 0 42px;
  padding: 0;
  font-size: 18px;
}
main .board448-tools > button.board448-save {
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
}
.board448-tools > details.more442 {
  position: relative;
  flex: 0 0 auto;
}
.board448-tools > details.more442 > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  white-space: nowrap;
}
.board448-tools > details.more442 > .board448-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  width: 220px;
}
.board448-menu {
  display: grid !important;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: var(--t-surface, #10283b);
  border: 1px solid var(--t-edge, #527181);
  box-shadow: 0 12px 30px #0008;
}
main .board448-menu button {
  margin: 0;
  width: 100%;
  text-align: left;
}
.board441-bar {
  align-items: end;
}
.board448-new {
  position: relative;
}
.board448-new > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--t-raised, #193b4e);
  border: 1px solid var(--t-edge, #527181);
  font-weight: 700;
  list-style: none;
}
.board448-new > summary::-webkit-details-marker {
  display: none;
}
.board448-new > .board448-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  width: 260px;
}
.board448-pitch .pitch441 {
  margin: 10px auto 4px;
}
.board448-hint {
  margin: 2px 6px 0;
  font-size: 13.5px;
  text-align: center;
}
.board448-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}
main .board448-actions button {
  margin: 0;
  flex: 1 1 140px;
}
main .board448-actions button:first-child {
  flex-basis: 100%;
  min-height: 50px;
  font-size: 16px;
}
.board448-status:empty {
  display: none;
}
.board448-status {
  font-weight: 600;
}
/* Pantalla completa */
.board448-stage.board448-full {
  position: fixed;
  inset: 0;
  z-index: 300;
  margin: 0;
  padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--t-bg, #071526);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.board448-full .board448-pitch {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.board448-full .pitch441 {
  width: min(100%, calc((100dvh - 190px) * 0.75));
  max-width: none;
}
body.board448-open {
  overflow: hidden;
}
body.board448-open nav.bottom445,
body.board448-open .nav {
  display: none !important;
}
/* Elegir jugador */
.board448-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  background: #0009;
}
.board448-sheet[hidden] {
  display: none;
}
.board448-sheet-box {
  width: 100%;
  max-width: 560px;
  max-height: 78vh;
  margin: 0 auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 20px 20px 0 0;
  background: var(--t-surface, #10283b);
  color: var(--t-text, #f5f1e8);
  box-shadow: 0 -10px 30px #0008;
}
.board448-sheet-box h3 {
  margin: 0 0 4px;
}
.board448-sheet-list {
  display: grid;
  gap: 6px;
  overflow: auto;
  min-height: 0;
}
main .board448-sheet button {
  margin: 0;
  text-align: left;
}
main .board448-sheet .board448-sheet-list button.board448-current {
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
}
#playerBoards441 .pitch441 {
  margin: 10px auto;
}
.pitch441-lines {
  pointer-events: none;
}
main .board448-tools > button {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  padding: 4px 6px;
}
.board448-tools > details.more442 > summary {
  justify-content: center;
  width: 42px;
  padding: 0;
  font-size: 20px;
  font-weight: 800;
}
.board448-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.board448-full .board448-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 0;
}
.board448-full .board448-pitch {
  flex: 0 0 auto;
}
main .board448-full-btn {
  position: absolute;
  top: 18px;
  right: 8px;
  z-index: 4;
  width: 40px;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: #000a;
  color: #fff;
  border: 1px solid #fff5;
  font-size: 18px;
}
.board448-full .board448-full-btn {
  top: 4px;
}
main .board448-save {
  position: absolute;
  right: 10px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
  font-weight: 800;
  box-shadow: 0 8px 20px #0009;
}
main .board448-save[hidden] {
  display: none;
}
/* Las fichas no se encogen al pulsarlas (se moverían de sitio) y son redondas */
main .pitch441 .token441,
main .pitch441 .token441:active {
  min-height: 0;
  transform: translate(-50%, -50%);
}
main .pitch441 .token441.token448-drag {
  transform: translate(-50%, -50%) scale(1.25);
}
/* En el móvil la pizarra ocupa todo el ancho de la pantalla, fuera de la tarjeta */
@media (max-width: 640px) {
  .board448-stage:not(.board448-full) {
    width: calc(100vw - 12px);
    margin-left: calc(50% - 50vw + 6px);
    margin-right: 0;
  }
}
.board448-full .board448-wrap {
  justify-content: flex-start;
}
.board448-full .board448-full-btn {
  top: 18px;
}

/* 4.49: árbitros del administrador deportivo */
.ref449-summary {
  font-weight: 700;
}
.ref449-card {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--t-raised, #193b4e);
  border: 1px solid var(--t-edge, #527181);
}
.ref449-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}
details.ref449-item {
  margin: 8px 0;
  padding: 0;
  border-radius: 14px;
  background: var(--t-surface, #10283b);
  border: 1px solid var(--t-edge, #527181);
}
details.ref449-item > summary {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  cursor: pointer;
}
details.ref449-item > summary small {
  color: var(--t-muted, #b9cbd8);
  font-size: 13.5px;
  line-height: 1.35;
}
.ref449-name {
  font-weight: 700;
  font-size: 16.5px;
}
details.ref449-item > :not(summary) {
  margin-left: 14px;
  margin-right: 14px;
}
details.ref449-item .actions442 {
  margin-bottom: 12px;
}
details.ref449-off {
  opacity: 0.75;
}
.ref449-status:empty {
  display: none;
}

/* 4.50: carga en dos tiempos. El menú se usa enseguida; el resto se avisa sin tapar nada. */
.private-loading.soft450 {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--t-raised, #193b4e);
  color: var(--t-muted, #b9cbd8);
  font-size: 13px;
}
.private-loading.soft450::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  vertical-align: -1px;
  animation: spin450 0.8s linear infinite;
}
@keyframes spin450 {
  to {
    transform: rotate(360deg);
  }
}
.page-wait450[hidden] {
  display: none;
}

/* 4.51 · Usuarios y roles */
.users451-search {
  width: 100%;
  margin: 4px 0 10px;
}
.users451-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}
.users451-chips::-webkit-scrollbar {
  display: none;
}
main .users451-chips .users451-chip {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--t-edge, #527181);
  background: transparent;
  color: var(--t-text, #f5f1e8);
  font-size: 14px;
  font-weight: 600;
}
main .users451-chips .users451-chip[aria-pressed='true'] {
  background: var(--t-accent, #e9c46a);
  border-color: var(--t-accent, #e9c46a);
  color: var(--t-on, #10283b);
}
.users451-count {
  margin: 2px 2px 8px;
  font-size: 13px;
  color: var(--t-muted, #b9cbd8);
}
.users451-list,
.users451-log {
  display: grid;
  gap: 8px;
}
.users451-card {
  border: 1px solid var(--t-edge, #527181);
  border-radius: calc(var(--t-radius, 12px) + 2px);
  background: var(--t-raised, #193b4e);
  overflow: hidden;
}
.users451-card > summary {
  display: grid;
  gap: 4px;
  padding: 12px 40px 12px 14px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.users451-card > summary::-webkit-details-marker {
  display: none;
}
.users451-card > summary::after {
  content: '›';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--t-muted, #b9cbd8);
  transition: transform 0.15s ease;
}
.users451-card[open] > summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.users451-head strong {
  font-size: 16px;
}
.users451-mail {
  color: var(--t-muted, #b9cbd8);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.users451-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.users451-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--t-surface, #10283b);
  border: 1px solid var(--t-edge, #527181);
  font-size: 12.5px;
  line-height: 1.6;
}
.users451-tag-pending {
  border-style: dashed;
}
.users451-tag-none {
  color: var(--t-muted, #b9cbd8);
}
.users451-body {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--t-edge, #527181);
}
.users451-body h4 {
  margin: 12px 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-muted, #b9cbd8);
}
.users451-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--t-edge, #527181);
}
.users451-role:last-of-type {
  border-bottom: 0;
}
.users451-role small {
  text-align: right;
  font-size: 12px;
}
main .users451-role .users451-remove {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 4px 14px;
}
.users451-add label {
  display: block;
  margin: 6px 0;
}
/* 4.62: borrar cuenta sin rol */
.users451-delete {
  margin: 14px 0 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}
main .users451-delete .users451-delbtn {
  width: 100%;
  margin: 0 0 4px;
  color: #c62828;
  border-color: #c62828;
}
/* 4.62: el campo Equipo se oculta para Árbitro y Adm. deportivo (antes «display:block» lo dejaba visible). */
.users451-add label[hidden] {
  display: none !important;
}
.users451-add select {
  width: 100%;
}
main .users451-add .users451-addbtn {
  width: 100%;
  margin: 8px 0 4px;
}
.users451-past {
  font-size: 13px;
}
.users451-histbox {
  margin-top: 10px;
}
.users451-histbox > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.users451-hist {
  margin: 4px 0;
  font-size: 13.5px;
}
.users451-logitem {
  padding: 10px 12px;
  border: 1px solid var(--t-edge, #527181);
  border-radius: var(--t-radius, 12px);
  background: var(--t-raised, #193b4e);
}
.users451-logitem small {
  color: var(--t-muted, #b9cbd8);
}
.users451-logitem p {
  margin: 2px 0 0;
}

/* 4.63: «📲 Actualización» (descargar e instalar dentro de la app) y subida del APK */
.update463-install {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 100%;
}
.update463-install button.update463-go {
  min-height: 48px;
  font-weight: 700;
  background: var(--t-accent, #e9c46a);
  color: var(--t-on, #101827);
}
.update463-bar {
  width: 100%;
  height: 14px;
  accent-color: var(--t-accent, #e9c46a);
}
.update463-bar[hidden] {
  display: none;
}
.update463-status,
.update463-notes {
  margin: 4px 0;
  line-height: 1.4;
}
.update463-now,
.update463-new,
.update463-ok {
  margin: 0 0 6px;
  font-weight: 700;
}
.apk463 {
  border: 2px solid var(--t-accent, #e9c46a);
}
.apk463 label {
  display: block;
  margin-top: 10px;
}
.apk463 input[type='file'] {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.apk463-info {
  margin: 8px 0 0;
  font-weight: 700;
  overflow-wrap: break-word;
}
