#teamLineups .panel{min-width:0}.tl-heading,.tl-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tl-heading{justify-content:space-between}.tl-toolbar{margin:14px 0;align-items:end}.tl-toolbar label{flex:1 1 180px;max-width:400px;min-width:0}.tl-team-buttons,.tl-source-options{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.tl-settings,.tl-column-editor{border:1px solid var(--line);border-radius:10px;padding:12px;margin:14px 0}.tl-settings>summary,.tl-column-editor>summary{font-weight:700;cursor:pointer}.tl-color-grid,.tl-column-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0}.tl-column-tools>label{max-width:220px;min-width:0}.tl-color>span{display:flex;gap:6px;align-items:center}.tl-color input[type=color]{width:42px;min-width:42px;height:40px;padding:3px}.tl-color input[type=text]{width:106px;min-width:0}.tl-entry{display:grid;grid-template-columns:minmax(120px,1fr) 64px minmax(100px,180px) 40px;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:6px 0}.tl-entry .button{padding:4px;min-width:0}.tl-entry input{min-width:0;margin:0}.tl-preview{margin:24px 0;max-width:100%;background:#fff}.tl-table{width:100%;table-layout:fixed;border-collapse:collapse;font-family:Arial,sans-serif}.tl-table caption{text-align:center;text-decoration:underline;font-weight:700;font-size:1.3rem;color:#111;padding:10px;overflow-wrap:anywhere}.tl-table th{border:2px solid var(--tl-border);text-align:center;font-size:1.12rem;padding:7px;overflow-wrap:anywhere}.tl-table td{border:0;padding:5px 7px;height:32px;line-height:1.3;overflow-wrap:anywhere;font-size:1.05rem}.tl-table .tl-number{border-left:2px solid var(--tl-border);width:36px;text-align:center;font-weight:400}.tl-table .tl-name{border-right:2px solid var(--tl-border)}.tl-table tr:last-child td{border-bottom:2px solid var(--tl-border)}.tl-table .tl-keeper-end{border-bottom:1px dotted var(--tl-border)}#teamLineupPlayerDialog{width:min(700px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--appearance-surface,#fff);color:inherit;padding:18px}#teamLineupPlayerDialog::backdrop{background:#14203480}#teamLineupPlayerChoices{margin:12px 0;max-height:50dvh;overflow:auto}.tl-player-choice{display:flex;gap:10px;align-items:center;padding:8px;border-bottom:1px solid var(--line)}.tl-player-choice[hidden]{display:none}.tl-player-choice small{display:block;color:var(--muted)}#teamLineupUserAccess{padding:12px;border:1px solid var(--line);border-radius:8px;min-width:0}#teamLineupUserTeams{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}#teamLineupUserTeams[hidden]{display:none}#teamLineupStatus.is-error{color:#b91c1c}#teamLineupUserAccess[hidden]{display:none}@media(max-width:700px){.tl-toolbar>*{max-width:100%}.tl-entry{grid-template-columns:minmax(0,1fr) 60px 40px}.tl-entry>input{grid-column:1/3;grid-row:2}.tl-entry>.button{grid-column:3;grid-row:1/3}.tl-table td{font-size:.8rem;padding:4px 3px}.tl-table th{font-size:.85rem;padding:6px 3px}.tl-table caption{font-size:1rem}.tl-table .tl-number{width:24px}.tl-color-grid,.tl-column-tools{gap:8px}.tl-column-tools>label{max-width:100%}}

.tl-table col.tl-number-col{width:36px}@media(max-width:700px){.tl-table col.tl-number-col{width:24px}}
.tl-table{min-width:0;max-width:100%}.tl-table th,.tl-table td{min-width:0;white-space:normal}
.mobile-admin-header>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:700px){.tl-table .tl-number{white-space:nowrap;padding-left:2px;padding-right:2px;font-size:.75rem}}

/* Match the compact potential-player picker; native inputs must not stretch. */
#teamLineupPlayerDialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:hidden}
#teamLineupPlayerDialog[open]{display:flex;flex-direction:column;gap:12px}
#teamLineupPlayerDialog>.tl-heading,#teamLineupPlayerDialog>label,#teamLineupPlayerDialog>.tl-player-footer{flex:0 0 auto;margin:0}
#teamLineupPlayerDialog .tl-heading h2{margin:0;font-size:1.15rem}
#teamLineupPlayerChoices{flex:1 1 auto;min-height:0;max-height:50dvh;overflow:auto;margin:0;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--appearance-surface,#fff)}
#teamLineupPlayerChoices .planning-group-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 3px;padding:8px 0 4px;border-top:1px solid #a5acb8;background:none;font-size:.85rem}
#teamLineupPlayerChoices .tl-choice-group:first-child .planning-group-header{margin-top:0}
#teamLineupPlayerChoices .planning-group-select{display:flex;align-items:center;gap:6px;min-width:0;font-size:.78rem;font-weight:500;white-space:nowrap;cursor:pointer}
#teamLineupPlayerChoices .planning-player-row{display:flex;align-items:center;justify-content:flex-start;min-height:34px;padding:2px 0;border:0}
#teamLineupPlayerChoices .planning-player-name{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:0;min-width:0;max-width:100%;font-size:.9rem;font-weight:500;text-align:left;cursor:pointer}
#teamLineupPlayerChoices input[type=checkbox]{width:17px;min-width:17px;height:17px;min-height:17px;flex:0 0 17px;padding:0;margin:0}
#teamLineupPlayerChoices .planning-player-name span{min-width:0;overflow-wrap:anywhere}
#teamLineupPlayerChoices [hidden]{display:none!important}
#teamLineupPlayerDialog .tl-player-footer{border-top:1px solid var(--line);padding-top:10px;background:var(--appearance-surface,#fff)}
#teamLineupPlayerDialog .tl-player-footer .tl-toolbar{margin:0 0 10px;align-items:center}
#teamLineupFreeName{flex:1 1 180px;min-width:0}
@media(max-width:480px){#teamLineupPlayerDialog{padding:12px;max-height:calc(100dvh - 16px)}#teamLineupPlayerDialog .tl-heading{gap:6px}#teamLineupPlayerDialog .tl-heading h2{font-size:1rem}#teamLineupPlayerChoices{padding:6px 8px}#teamLineupPlayerChoices .planning-player-name{font-size:.85rem}#teamLineupPlayerDialog .tl-player-footer .tl-toolbar{gap:6px}#teamLineupPlayerDialog .tl-player-footer .button{min-height:34px;padding:6px 10px;font-size:.8rem}}

.tl-footer-text{font-size:calc(1em - 1pt);white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 0;line-height:1.5;color:var(--appearance-text,#17212b)}.tl-footer-editor{display:block;margin-top:16px}.tl-footer-editor textarea{width:100%;resize:vertical;min-height:100px}

.tl-table .tl-without-number{border-left:2px solid var(--tl-border)}

.tl-team-dropdown{display:none;margin:14px 0;max-width:400px}
.tl-team-dropdown[hidden]{display:none!important}
body.admin-pwa #teamLineupTeams{display:none}
body.admin-pwa .tl-team-dropdown{display:block}
body.admin-pwa .tl-entry{grid-template-columns:minmax(0,1fr) 43px minmax(40px,66px) 30px;gap:5px;padding:6px 0}
body.admin-pwa .tl-entry>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem}
body.admin-pwa .tl-entry>label{display:flex;align-items:center;gap:4px;margin:0;min-width:0;font-size:.75rem;white-space:nowrap}
body.admin-pwa .tl-entry input[type=checkbox]{width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px}
body.admin-pwa .tl-entry>input{grid-column:auto;grid-row:auto;width:100%;height:32px;min-height:32px;padding:4px 5px;font-size:.75rem}
body.admin-pwa .tl-entry>.button{grid-column:auto;grid-row:auto;width:30px;min-width:30px;height:32px;min-height:32px;padding:0}
@media(max-width:760px){
 #teamLineupTeams{display:none}
 .tl-team-dropdown{display:block;max-width:none}
 #teamLineups .tl-entry{grid-template-columns:minmax(0,1fr) 43px minmax(40px,66px) 30px;gap:5px;padding:6px 0}
 #teamLineups .tl-entry>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem}
 #teamLineups .tl-entry>label{display:flex;align-items:center;gap:4px;margin:0;min-width:0;font-size:.75rem;white-space:nowrap}
 #teamLineups .tl-entry input[type=checkbox]{width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px}
 #teamLineups .tl-entry>input{grid-column:auto;grid-row:auto;width:100%;height:32px;min-height:32px;padding:4px 5px;font-size:.75rem}
 #teamLineups .tl-entry>.button{grid-column:auto;grid-row:auto;width:30px;min-width:30px;height:32px;min-height:32px;padding:0}
}
.tl-table .tl-number{white-space:nowrap;padding-left:2px;padding-right:2px}
