/* The working canvas stays fixed. Lists own their scrolling space. */
.formation-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:40px minmax(0,1fr);gap:12px 18px}
.formation-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.formation-tools p{font-size:13px;color:var(--muted);margin:0}.formation-tools button{min-height:36px;font-size:13px;padding:6px 12px}
.formation-field{padding:0!important;border:0;overflow:hidden;min-height:0;background:transparent;display:flex;flex-direction:column}
.formation-bench{display:flex;flex-direction:column;min-height:0;min-width:0;border-left:1px solid var(--border);padding-left:18px;overflow:hidden}.formation-bench h2{font-size:15px;margin:0 0 10px;flex:none}.formation-bench h2 small{font-size:12px;color:var(--muted);font-weight:400;margin-left:8px}
.bench-player{display:flex;align-items:center;gap:10px;min-height:62px;border-bottom:1px solid var(--border);min-width:0}.bench-player>div{min-width:0}.bench-player a{font-size:14px}.bench-player small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.move-handle{width:44px;height:44px;min-height:44px;padding:10px;border:0;background:transparent;color:var(--muted);flex:none;cursor:grab;touch-action:none;user-select:none}.move-handle svg{display:block;margin:auto}
.field-player .player-chip{min-height:26px;max-width:130px;font-size:13px;line-height:1.2;padding:3px 5px;border:1px solid #4a564d;border-radius:0;background:#1b2720;color:#e5e8e3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;touch-action:none;user-select:none;cursor:grab}
.field-player button.field-position{display:block;width:100%;min-height:20px;padding:0;border:0;background:transparent;color:var(--muted);font-size:12px;line-height:20px;margin:0 0 3px}
.field-player small{display:block}.field-player [aria-pressed=true],.move-handle[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px;color:var(--text)}
[data-drop-slot].drop-target{outline:2px solid var(--accent);outline-offset:4px}.is-dragging{opacity:.35}.lineup-drag-ghost{position:fixed;top:0;left:0;z-index:1000;pointer-events:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px 14px;background:var(--raised);border:1px solid var(--accent);font-size:14px;color:var(--text)}
.order-player{display:flex;align-items:center;gap:16px;min-height:68px;padding:8px 6px;border-bottom:1px solid var(--border)}.order-player>div{flex:1;min-width:0}.order-player a{font-size:15px}.order-player small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.order-number{font-size:23px;min-width:24px}.order-player>b{font:22px Consolas,monospace;font-weight:400;margin-right:10px}
.tactics-edit-form{display:flex;flex:1;flex-direction:column;min-height:0;gap:12px}.tactics-edit-form>.scroll-block{flex:1}.tactics-edit-form h2{font-size:16px;margin:0}
.fixture-row{display:grid;grid-template-columns:65px minmax(0,1fr) 90px;align-items:center;gap:18px;min-height:76px;padding:12px 4px;border-bottom:1px solid var(--border)}.fixture-row time{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}.fixture-row>div:last-child{font-size:13px;text-align:right}.fixture-row .button{font-size:13px;min-height:40px;padding:8px 12px}.fixture-clubs{display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);gap:14px;align-items:center;font-size:14px}.fixture-clubs>b{min-width:4.25em;white-space:nowrap;text-align:center;font:20px Consolas,monospace;font-variant-numeric:tabular-nums}.fixture-clubs>span{min-width:0;overflow-wrap:anywhere}.fixture-clubs>span:last-child{text-align:right}.next-fixture{background:var(--raised);padding-left:12px;padding-right:12px}
.standings-section{margin-bottom:24px}.standings-section h2,.box-section h2,.screen-schedule .block-body>h2{font-size:16px;margin:0 0 12px}
.standings-table{width:100%;min-width:0!important;border-collapse:collapse;table-layout:auto}.standings-table th,.standings-table td{padding:10px 8px;text-align:right;font-variant-numeric:tabular-nums;font-size:14px}.standings-table th:first-child,.standings-table td:first-child{position:static;min-width:0;width:auto;white-space:normal;text-align:left;overflow-wrap:anywhere}.standings-table td small{display:inline-block;width:24px;color:var(--muted);font-size:12px}.standings-table .own-team{background:var(--raised)}
.season-player-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,2fr);align-items:center;gap:20px;min-height:76px;border-bottom:1px solid var(--border);padding:12px 0}.season-player-name{font-size:14px;min-width:0}.season-player-row dl{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0}.season-player-row dt{font-size:12px;color:var(--muted);margin-bottom:5px}.season-player-row dd{font-size:16px;margin:0;text-align:right;font-variant-numeric:tabular-nums}.box-section{margin-bottom:26px}
.match-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding:15px 20px;border:1px solid var(--border);background:var(--surface);flex:none}.match-heading>span{font-size:16px;line-height:1.5}.match-heading>span:last-child{text-align:right}.match-heading strong{font:34px Consolas,monospace;white-space:nowrap}
.score-table{border-collapse:collapse;width:100%;min-width:680px;table-layout:auto}.score-table th,.score-table td{text-align:center;padding:14px 8px;font-size:14px;font-variant-numeric:tabular-nums}.score-table th:first-child,.score-table td:first-child{min-width:140px;max-width:200px;position:static;white-space:normal;text-align:left}.score-table tbody b{font-size:20px}.result-note{margin-top:20px;font-size:14px;color:var(--muted)}
.play-row{display:grid;grid-template-columns:60px minmax(0,1fr) 80px;gap:18px;align-items:center;min-height:76px;padding:12px 0;border-bottom:1px solid var(--border)}.play-row>span{font-size:13px;color:var(--muted)}.play-row strong{font-size:14px;font-weight:500}.play-row p{font-size:13px;color:var(--muted);margin:5px 0 0}.play-row>b{font:18px Consolas,monospace;text-align:right}
.office-fixtures{font-size:13px;min-height:40px;display:inline-flex;align-items:center}.topbar-schedule{font-size:13px;margin-left:auto;min-height:36px;white-space:nowrap}.game-date{margin-left:auto}.topbar-schedule+.game-date{margin-left:10px}
.score-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.match-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:24px}.match-summary h2{font-size:16px;margin:0 0 10px}.match-summary .season-player-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:70px;gap:12px}.match-summary .season-player-row dl{grid-template-columns:repeat(3,minmax(0,1fr))}.decision-list{min-height:74px}.decision-list p{font-size:14px;line-height:1.6;margin:0 0 12px}.decision-list p>span{font-size:12px;color:var(--muted);margin-right:10px}.decision-list small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
@media(max-width:900px){.formation-workspace{grid-template-columns:minmax(0,1fr) 220px;gap:10px}.formation-bench{padding-left:10px}.match-heading{gap:16px}.season-player-row{grid-template-columns:160px minmax(0,1fr);gap:12px}.season-player-row dl{gap:8px}}
@media(max-width:700px){
 .formation-workspace{grid-template-columns:1fr;grid-template-rows:36px minmax(220px,1fr) minmax(100px,.65fr);gap:10px}.formation-tools p{font-size:12px}.formation-tools button{font-size:12px;min-height:34px;padding:5px 9px}.formation-bench{padding:8px 0 0;border-left:0;border-top:1px solid var(--border)}.formation-bench h2{font-size:14px;margin-bottom:4px}.bench-player{min-height:52px;gap:8px}.bench-player small{font-size:12px}.bench-player a{font-size:13px}
 .field-player .player-chip{max-width:100px;font-size:13px;min-height:26px;padding:3px 4px}.field-player button.field-position{font-size:12px;min-height:18px;line-height:18px;margin-bottom:2px}.formation-field .field-player small{font-size:12px}
 .order-player{min-height:62px;gap:10px}.order-player a{font-size:14px}.order-number{font-size:21px}.order-player>b{font-size:20px;margin-right:0}
 .screen-schedule>.heading{align-items:center}.screen-schedule .heading h1{font-size:22px}.screen-schedule .heading p{font-size:12px}.screen-schedule>.heading>button{font-size:13px;min-height:42px;white-space:nowrap;padding:8px 10px}
 .fixture-row{grid-template-columns:44px minmax(0,1fr) 52px;gap:8px;min-height:88px;padding:10px 0}.fixture-row time{font-size:12px}.fixture-clubs{grid-template-columns:minmax(0,1fr) max-content;gap:5px 7px;font-size:13px}.fixture-clubs>span:first-child{grid-area:1/1}.fixture-clubs>span:last-child{grid-area:2/1;text-align:left}.fixture-clubs>b{grid-area:1/2/3/3;font-size:16px}.fixture-row .button{padding:8px 9px;min-height:40px;font-size:12px}.fixture-row>div:last-child{font-size:11px}.next-fixture{padding-left:7px;padding-right:7px}
 .standings-table th,.standings-table td{font-size:12px;padding:9px 5px}.standings-table td:first-child{max-width:140px}.standings-table td small{width:18px;font-size:11px}.standings-section h2,.box-section h2{font-size:15px}
 .season-player-row{grid-template-columns:1fr;gap:10px;min-height:0;padding:14px 0}.season-player-row dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px}.season-player-row dt{font-size:12px}.season-player-row dd{font-size:15px}.season-player-name{font-size:14px}
 .match-heading{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px}.match-heading>span{font-size:13px}.match-heading>span:first-child{grid-area:1/1}.match-heading>span:last-child{grid-area:2/1;text-align:left}.match-heading strong{grid-area:1/2/3/3;font-size:30px}
 .play-row{grid-template-columns:42px minmax(0,1fr) 54px;gap:8px}.play-row>span,.play-row p{font-size:12px}.play-row strong{font-size:13px}.play-row>b{font-size:16px}.result-note{font-size:13px}
 .topbar-schedule{display:none}.office-fixtures{font-size:12px;min-height:36px;padding:7px 9px}
 .match-summary{grid-template-columns:1fr;gap:24px}.match-summary .season-player-row{min-height:66px}.decision-list{min-height:0}
}
@media(max-height:680px) and (max-width:700px){.formation-workspace{grid-template-rows:32px minmax(120px,1fr) minmax(80px,.5fr)}.formation-field .field-player small{display:none}.formation-field .field-player .player-chip{font-size:11px;min-height:21px;padding:2px 4px}.formation-tools p{font-size:11px}}
