.lineup-manager{width:min(1680px,98vw)}.lineup-manager .tactical-team-layout{width:100%;max-width:590px;margin-inline:auto;grid-template-columns:90px minmax(0,1fr) 170px;gap:10px;align-items:stretch}.lineup-manager .tactical-bench{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden}.lineup-manager .tactical-bench [data-slots]{min-height:0;flex:1;gap:16px;overflow-y:auto;overflow-x:hidden;align-content:flex-start}.lineup-manager .lineup-out{background:#f9e9e7;border:1px dashed #d69e97}.lineup-manager .lineup-out [data-slots]:empty::after{content:'Arraste para justificar a ausência'}.lineup-manager .tactical-bench h3{font-size:11px}.lineup-manager [data-feedback]{color:#a53827}.lineup-arrow{font-size:9px;background:#fff;padding:3px;border-radius:4px}.entered{color:#147a38;font-weight:700}.left{color:#ba2525;font-weight:700}.lineup-reason{font-size:9px;color:#6c2620}.lineup-question{max-width:460px}.lineup-events{margin-top:18px;padding:15px;border:1px solid #d5e1d8;border-radius:8px}.lineup-manager .tactical-player{width:70px}.lineup-manager .player-photo{width:40px;height:40px}@media(max-width:1250px){.lineup-manager .tactical-teams{grid-template-columns:1fr}.lineup-manager .tactical-team-layout{max-width:620px;grid-template-columns:100px minmax(0,1fr) 170px}}@media(max-width:650px){.lineup-manager .tactical-team-layout{max-width:100%;grid-template-columns:85px minmax(0,1fr)}.lineup-manager .tactical-pitch{grid-column:2;grid-row:1}.lineup-manager .lineup-out{grid-column:1;grid-row:1}.lineup-manager [data-bench]{grid-column:1/-1;grid-row:2;min-height:150px;overflow:visible}.lineup-manager [data-bench] [data-slots]{flex-direction:row;overflow:visible}.lineup-manager .player-photo{width:30px;height:30px}.lineup-manager .tactical-player{width:56px}.lineup-manager .player-name{font-size:7px}}
.match-editor .lineup-inline{width:100%;min-width:0;margin:20px 0 24px}.lineup-inline>.series-heading{margin:0 0 12px}.lineup-inline>.series-heading h2{font-size:20px}.match-editor .lineup-inline .tactical-team-layout{width:100%;max-width:560px;grid-template-columns:90px minmax(0,1fr) 170px}@media(max-width:650px){.match-editor .lineup-inline .tactical-team-layout{grid-template-columns:75px minmax(0,1fr)}}
.match-item-tools{margin:6px 0 12px;padding:9px;border:1px solid #c7d9cc;border-radius:8px;background:#f0f6f2}.match-item-buttons{display:flex;gap:8px;flex-wrap:wrap}.match-item-buttons button{font-size:22px;min-width:42px;min-height:42px;border:1px solid #bdd0c1;border-radius:6px;background:#fff;touch-action:none;cursor:grab}.match-item-tools small{display:block;font-size:11px;margin-top:5px;color:#4d6557}.pending-assist{margin-top:8px;padding:8px;background:#fff5cc;border-radius:6px;font-size:12px}.pending-assist button{margin-top:6px}.match-item-ghost{position:fixed;z-index:2147483647;pointer-events:none;font-size:30px;transform:translate(-50%,-50%)}.player-item-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;max-width:100px}.player-item-badges span{background:#fff;color:#183a29;border-radius:3px;padding:1px 3px;font-size:10px;font-weight:700;white-space:nowrap}.player-expelled .player-photo{border-color:#cf3434!important}.player-expelled{cursor:not-allowed}.lineup-manager .tactical-bench [data-slots]{gap:22px}
.match-date-guest{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.guest-waiting{display:inline-flex;align-items:center;gap:14px;margin:10px;padding:12px;border:1px dashed #718c7b;border-radius:10px}.guest-neutral{display:flex;align-items:center;gap:8px;border:0;border-radius:8px;padding:8px;cursor:grab;touch-action:none;position:relative;z-index:10}.guest-neutral>span{display:grid;place-items:center;width:42px;height:42px;background:#e0e5e2;border-radius:50%;font-size:26px}.guest-form-dialog{max-width:760px}.guest-suggestions{max-height:180px;overflow:auto}.guest-suggestions button{display:block;width:100%;text-align:left;padding:8px;border:1px solid #ddd;background:#fff}.guest-waiting select{max-width:170px}.guest-form-dialog [data-error]{color:#b3261e}

/* No computador, o banco usa duas colunas e exibe todos os reservas.
   A rolagem fica a cargo da página, nunca de uma faixa estreita interna. */
@media(min-width:651px){
 .match-editor .lineup-inline .tactical-team-layout{display:grid;position:relative;padding:0}
 .match-editor .lineup-inline .tactical-pitch{grid-column:2;grid-row:1;width:100%;height:auto;align-self:start;margin:0}
 .match-editor .lineup-inline .tactical-bench{position:relative;inset:auto;width:auto;height:auto;margin:0;overflow:visible}
 .match-editor .lineup-inline .lineup-out{grid-column:1;grid-row:1}
 .match-editor .lineup-inline [data-bench]{grid-column:3;grid-row:1}
 .match-editor .lineup-inline [data-bench] [data-slots]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 6px;overflow:visible;flex:0 0 auto}
 .match-editor .lineup-inline [data-bench] .tactical-player{width:100%;min-width:0}
}

/* Fora de jogo e reservas usam o mesmo padrão: todos visíveis, em duas colunas. */
.lineup-manager .tactical-team-layout,.match-editor .lineup-inline .tactical-team-layout{max-width:720px;grid-template-columns:170px minmax(0,1fr) 170px}
.lineup-manager .tactical-bench{overflow:visible}
.lineup-manager .tactical-bench [data-slots],.match-editor .lineup-inline .tactical-bench [data-slots]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 6px;overflow:visible;flex:0 0 auto;align-content:start}
.lineup-manager .tactical-bench .tactical-player{width:100%;min-width:0}
@media(max-width:1250px) and (min-width:651px){.lineup-manager .tactical-team-layout,.match-editor .lineup-inline .tactical-team-layout{max-width:720px;grid-template-columns:170px minmax(0,1fr) 170px}}
@media(max-width:650px){.lineup-manager .tactical-team-layout,.match-editor .lineup-inline .tactical-team-layout{grid-template-columns:1fr 1fr}.lineup-manager .tactical-pitch{grid-column:1/-1;grid-row:1}.lineup-manager .lineup-out{grid-column:1;grid-row:2}.lineup-manager [data-bench]{grid-column:2;grid-row:2}.lineup-manager .tactical-bench [data-slots]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Cabeçalho centralizado com placar integrado ao quadro de cada equipe. */
.match-editor .tactical-teams{gap:10px}
.match-editor .tactical-team{padding:7px}
.match-editor .tactical-team-heading{position:relative;justify-content:center;min-height:48px;padding:0 52px 5px;text-align:center}
.team-heading-identity{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.match-editor .tactical-team-heading img{width:40px;height:40px}
.match-editor .tactical-team-heading h3{font-size:15px}
.match-editor .tactical-team-heading small{font-size:9px}
.team-live-score{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-width:40px;height:42px;border:1px solid #4c8267;border-radius:8px;background:#102f28;color:#fff;font-size:29px;font-variant-numeric:tabular-nums}
.match-editor .match-item-tools{margin:2px 0 6px;padding:5px}.match-editor .match-item-buttons{gap:5px}.match-editor .match-item-buttons button{min-width:34px;min-height:32px;font-size:17px}.match-editor .match-item-tools small{font-size:9px;margin-top:2px}
.match-editor .lineup-events{margin-top:7px;padding:8px}
@media(max-width:650px){.match-editor .tactical-team-heading{padding-inline:44px}.team-live-score{right:3px;min-width:34px;height:36px;font-size:24px}}

/* Placar eletrônico: mandante à direita e visitante à esquerda. */
.match-editor .team-live-score{min-width:64px;height:52px;padding:0 8px;border:2px solid #3fc58a;border-radius:7px;background:#020b09;color:#b7ff76;font-family:Consolas,'Courier New',monospace;font-size:43px;font-weight:900;line-height:1;letter-spacing:.04em;text-shadow:0 0 4px #d9ff9c,0 0 10px #62ff7c,0 0 18px #1edf62;box-shadow:inset 0 0 15px #000,0 0 10px #25ee7044}
.match-editor .tactical-team:nth-child(2) .team-live-score{left:7px;right:auto}
.match-editor .tactical-team:nth-child(2) .tactical-team-heading{padding-left:80px;padding-right:10px}
.match-editor .tactical-team:first-child .tactical-team-heading{padding-left:10px;padding-right:80px}
@media(max-width:650px){.match-editor .team-live-score{min-width:48px;height:42px;padding:0 5px;font-size:34px}.match-editor .tactical-team:nth-child(2) .tactical-team-heading{padding-left:62px}.match-editor .tactical-team:first-child .tactical-team-heading{padding-right:62px}}
.lineup-manager [data-field-count]{color:#d9f6e5;font-variant-numeric:tabular-nums}.lineup-manager [data-field-count].over-limit{color:#ff8b82;background:#3a0e0b;padding:2px 5px;border-radius:4px}.lineup-manager [data-bench-count],.lineup-manager [data-out-count]{font-variant-numeric:tabular-nums}

.lineup-manager .tactical-team[data-team-accent] .tactical-player .player-photo{border-color:var(--team-accent);box-shadow:0 0 0 1px #ffffff99,0 2px 6px #0005}.lineup-manager .tactical-team[data-team-accent] .tactical-pitch{outline-color:var(--team-accent)}.lineup-manager .tactical-team[data-team-accent] .tactical-team-heading{border-top:3px solid var(--team-accent)}

.tactical-bench .tactical-player:has(.absence-notice-badge){position:relative}.absence-notice-badge{position:absolute;top:-4px;right:calc(50% - 26px);width:18px;height:18px;display:grid;place-items:center;border:1px solid #fff;border-radius:50%;background:#b82027;color:#fff;font-size:20px;font-weight:900;line-height:1;z-index:5;pointer-events:none}
.athlete-absence-state{display:grid;gap:7px;margin-top:10px}.athlete-absence-state small{display:block;line-height:1.4}.athlete-absence-state button:disabled{opacity:.45;cursor:not-allowed}.athlete-absence-dialog{max-width:520px}.athlete-absence-dialog form{display:grid;gap:12px}.athlete-absence-dialog label{display:grid;gap:5px}.athlete-absence-dialog [data-error]{color:#ff9a92}
