/* View-specific styles (squad, lineup, training, transfers, schedule, stats). Variables from style.css with fallbacks. */
.hint { color: #555; margin: 6px 0; }
.dim { color: #888; }
.btns { margin: 8px 0 0; }
.inp { font: inherit; padding: 2px 4px; border: 1px solid var(--c-border, #9fb2d6); }
.btn { font: inherit; padding: 3px 12px; border: 1px solid #9fb2d6; background: #eef1f8; cursor: pointer; margin-right: 6px; }
.btn.primary { background: var(--c-nav, #41649f); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.yes { color: var(--c-yes, #0a9a1a); } .no { color: var(--c-no, #e21200); }
.pos { color: var(--c-yes, #0a9a1a); font-weight: bold; } .neg { color: var(--c-no, #e21200); font-weight: bold; }
.nation { display: inline-block; background: #fff; color: #1b1b1b; border: 1px solid #333; padding: 0 3px; font-size: 10px; font-weight: bold; }
.avatar { border: 2px solid var(--c-border, #9fb2d6); background: #fff; image-rendering: pixelated; vertical-align: middle; }
.special { cursor: help; color: #a05a00; font-weight: bold; }
tr.mine td, .fx-box.mine { background: #fff4c8; }
table.compact td, table.compact th { padding: 2px 3px; font-size: 11px; }

/* transfers: dynamic filter rows + scrollable market table */
.tf-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; padding: 6px 8px; background: #eef1f8; border: 1px solid var(--c-border, #9fb2d6); }
.tf-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-row { display: inline-flex; align-items: center; gap: 2px; }
.tf-key { max-width: 130px; }
.tf-op { width: 48px; }
.tf-num { width: 64px; }
.tf-del { padding: 2px 7px; }
.tf-count { display: block; margin: 0 0 6px; }
.tbl-scroll { overflow-x: auto; }
.tf-buy { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tf-buy .price { color: var(--c-nav, #41649f); }
.tf-buy .price.free { color: var(--c-yes, #0a9a1a); }
.tf-buy .btn { margin: 0; }

/* player card */
.pcard { margin-bottom: 14px; }
.pcard-top { display: flex; gap: 14px; padding: 8px; align-items: flex-start; }
.pcard-left { width: 124px; text-align: center; }
.pcard-actions a { display: block; margin-top: 4px; }
.pcard-mid { flex: 1; } .pcard-right { flex: 1; }
.pcard-bottom { display: flex; gap: 14px; padding: 0 8px 8px; }
.pcard-bottom > div { flex: 1; }
.pcard h4, .fx-day h4, .br-col h4 { margin: 4px 0; color: var(--c-nav, #41649f); }
.skills { width: 100%; border-collapse: collapse; }
.skills th { text-align: left; font-weight: normal; width: 100px; }
.skills .num { width: 28px; text-align: right; font-weight: bold; }

/* lineup */
.lu-cell { display: block; padding: 4px 6px; }
.pick-list { min-width: 300px; }
.pick-row { display: block; padding: 4px 6px; border-bottom: 1px solid #e6ebf5; }
.pick-row:hover, .pick-row.cur { background: #e6ebf5; }
.pick-row i { color: #777; }

/* training */
tr.row-open td { background: #e3f3d8; }
.tr-floors { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-room { background: #2b2f3a; border: 3px solid #555b6b; padding: 6px; min-width: 190px; }
.tr-room-title { color: #fff; font-weight: bold; margin-bottom: 4px; text-align: center; }
.tr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tr-slot { position: relative; background: #3a4050; border: 1px dashed #6b7388; min-height: 64px; text-align: center; padding: 4px 2px; cursor: pointer; }
.tr-slot.taken { border-style: solid; border-color: #7bc96f; }
.tr-slot:hover { background: #4a5266; }
.tr-slot .desk { display: block; margin: 0 auto 2px; image-rendering: pixelated; }
.tr-slot .avatar { position: absolute; right: 2px; top: 2px; width: 28px !important; height: 28px !important; }
.tr-nick { display: block; color: #fff; font-size: 10px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chip { border: 1px solid #9fb2d6; background: #eef1f8; padding: 4px; text-align: center; cursor: grab; width: 84px; }
.tr-chip.sel { outline: 2px solid var(--c-nav-active, #e21200); }
.tr-chip small { display: block; color: #666; }

/* schedule */
.fx-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fx-box { border: 1px solid #9fb2d6; width: 170px; padding: 3px; background: #fff; }
.fx-team { display: flex; justify-content: space-between; }
.fx-team.me { font-weight: bold; } .fx-team.win b { color: var(--c-yes, #0a9a1a); }
.fx-meta { font-size: 10px; color: #666; margin-top: 2px; }
.bracket { display: flex; gap: 40px; } .br-col .fx-box { margin-bottom: 20px; }
.hist-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-bottom: 1px solid #e6ebf5; }
.hist-row.champ { background: #fff4c8; } .hist-noicon { display: inline-block; width: 64px; }

/* stats */
.round-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; align-items: center; max-width: 520px; }
.rd { height: 20px; line-height: 20px; padding-left: 8px; font-size: 11px; font-weight: bold; color: #fff; cursor: help; }
.rd-T { background: var(--c-t); color: #fff; } .rd-CT { background: var(--c-ct); color: #10305a; }
.rd-T.rd-lost { background: #ffc4c4; color: #7a1010; } .rd-CT.rd-lost { background: #e0efff; color: #4a6a90; }
.rd-name { padding-right: 8px; font-weight: bold; white-space: nowrap; }

/* map editor */
.maped-head { flex-wrap: wrap; }
.maped-actions { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 8px; }
.maped-main { display: flex; gap: 12px; align-items: flex-start; }
.maped-wrap { flex: 1; overflow: auto; max-height: 78vh; border: 1px solid #9fb2d6; background: #bccae1; }
.maped-canvas { image-rendering: pixelated; display: block; cursor: crosshair; }
.maped-side { width: 330px; }
.maped-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.maped-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0; }
.maped-opts .btn { margin: 0; }
.section.maped-fs { position: fixed; inset: 0; z-index: 1000; margin: 0; display: flex; flex-direction: column; background: var(--c-content, #fff); }
.section.maped-fs .sec-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.section.maped-fs .maped-main { flex: 1; min-height: 0; align-items: stretch; }
.section.maped-fs .maped-wrap { max-height: none; height: 100%; }
.section.maped-fs .maped-side { max-height: 100%; overflow: auto; }
.maped-pal { display: flex; flex-wrap: wrap; gap: 3px; max-height: 260px; overflow: auto; padding: 4px; border: 1px solid #c2cee4; background: #f7f9fd; }
.maped-group { width: 100%; font-size: 10px; font-weight: bold; color: #4a5b7c; margin-top: 4px; text-transform: uppercase; }
.maped-sw { display: flex; flex-direction: column; align-items: center; width: 66px; padding: 3px; border: 1px solid #9fb2d6; background: #fff; font-size: 9px; line-height: 1.1; cursor: pointer; }
.maped-sw.on { outline: 2px solid var(--c-nav-active, #e21200); }
.maped-sw img { width: 24px; height: 24px; image-rendering: pixelated; }
.maped-tile { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #2b2b2b; font-weight: bold; }
.maped-tile.wall { background: #8a6a45; color: #fff; } .maped-tile.cover { background: #c58b45; }
.maped-tile.floor { background: #e3cf9c; } .maped-tile.site { background: #c8955a; } .maped-tile.spawn { background: #2fb344; color: #fff; }
.maped-co { display: flex; justify-content: space-between; font-size: 11px; padding: 2px 0; border-bottom: 1px solid #e6ebf5; }
.maped-errors { color: #8a1010; font-size: 11px; margin-top: 6px; }
.maped-warn { color: #6b4a10; font-size: 11px; margin-top: 6px; }

/* public front page (login) + team logos */
.pub-select { min-width: 240px; }
.pub-league { margin-bottom: 8px; }
.leaders { list-style: none; margin: 0; padding: 0; columns: 2; }
.leaders li { padding: 3px 0; border-bottom: 1px solid #e6ebf5; break-inside: avoid; }
.cl-summary { margin: 3px 0 0; }
.team-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.team-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 2px solid var(--c-border, #9fb2d6); }
.logo-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.logo-edit .hint { margin: 0; }
.tbl-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 4px; background: #fff; }
