/* Le Mée Sports V2 — presentation only; original document schema and workflows retained. */
:root{
  color-scheme:light;
  --bg:#f3f5f3; --panel:#ffffff; --panel-2:#f0f4ef; --border:#dce4dc;
  --text:#182b24; --text-dim:#586b61; --accent:#285c3b; --accent-dim:#568344;
  --red:#bf3048; --gold:#8b650b; --blue:#2765b5; --green:#257941;
  --pitch-a:#24543e; --pitch-b:#285c44; --action:#c8f36b;
}
body{line-height:1.5; -webkit-font-smoothing:antialiased;}
body > header{padding:22px max(24px,calc((100% - 1352px)/2)); background:var(--panel); gap:24px;}
header h1{font-size:16px;letter-spacing:-.4px;gap:12px;}
.club-badge{width:56px;height:56px;padding:0;border-radius:0;background:transparent;}
.brand-copy{display:flex;flex-direction:column;gap:3px;}
.brand-copy small{font-size:10px;font-weight:500;color:var(--text-dim);letter-spacing:1.5px;}
.v2-badge{font-size:10px;letter-spacing:.4px;background:var(--panel-2);padding:2px 6px;border-radius:4px;}
.tabs{background:none;border:0;padding:0;gap:5px;}
.tab-btn{padding:11px 15px;font-weight:600;}
.tab-btn.active{background:var(--panel-2);color:var(--text);}
.user-menu-btn{background:var(--panel-2);border-color:var(--border);}
.app-layout{max-width:1400px;margin:0 auto;padding:32px 24px 48px;gap:24px;grid-template-columns:300px minmax(0,1fr);}
.page-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;}
.page-heading h2{font-size:32px;font-weight:700;letter-spacing:-1px;line-height:1.2;margin:0;}
.page-heading p{margin:7px 0 0;font-size:14px;color:var(--text-dim);}
.shared-data-label{font-size:11px;color:var(--text-dim);border:1px solid var(--border);padding:6px 10px;border-radius:20px;background:var(--panel);}
.subtabs{background:none;border:0;border-bottom:1px solid var(--border);padding:0;gap:26px;border-radius:0;}
.subtab-btn{flex:0 1 auto;padding:9px 1px 13px;border-radius:0;font-weight:500;font-size:14px;}
.subtab-btn.active{background:none;box-shadow:inset 0 -2px 0 var(--accent);font-weight:650;}
.panel{border:1px solid #e4eae2;border-radius:18px;padding:24px;}
.panel + .panel{margin-top:22px;}
.panel h2{font-size:16px;text-transform:none;letter-spacing:-.3px;color:var(--text);font-weight:650;margin-bottom:17px;}
.panel-head{gap:14px;}
button.primary,.modal-btn.primary,.tool-btn.active{background:var(--action);color:#183524;border-color:#b1da59;}
button.primary:hover{background:#bae75d;}
button.ghost{border-color:var(--border);font-weight:550;}
button.ghost:hover{background:var(--panel-2);}
button,input,select,textarea{font-family:inherit;}
input,select,textarea{border-color:var(--border);border-radius:9px;}
select{font-weight:500;}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #5f8b37;outline-offset:3px;}
.seg{background:var(--bg);border-color:var(--border);}
.seg button.active{background:#dfead6;color:#234b30;}
.player-card{background:var(--panel);}
.player-card.selected,.player-card.armed{background:#e9f3df;}
.pitch-wrap,.half-pitch-wrap{border-radius:14px;box-shadow:none;}
.pitch-panel{border-radius:18px;}
.slot-label{color:#fff;}
/* Jersey and equipment colors retain their original tactical meanings. */
.marker.filled.role-ring-GK .jersey-bg .jersey-fill{fill:#f0b429;}
.marker.filled.role-ring-DF .jersey-bg .jersey-fill{fill:#3b82f6;}
.marker.filled.role-ring-MF .jersey-bg .jersey-fill{fill:#22c55e;}
.marker.filled.role-ring-FW .jersey-bg .jersey-fill{fill:#ef4b5f;}
.marker.filled.role-ring-SUB .jersey-bg .jersey-fill{fill:#c8f36b;}
.stats-table th{font-weight:500;color:var(--text-dim);padding-top:12px;padding-bottom:12px;}
.stats-table td{padding-top:13px;padding-bottom:13px;}
.standings-table tr.own td{background:#edf5e5;}
.standings-table .pts{font-size:14px;}
.form-chip{color:#fff;}
.form-chip.win{background:#347848;}
.form-chip.draw{background:#98751e;}
.form-chip.loss{background:#bd4254;}
.surface-badge.synthetic{color:#285e9c;border-color:#bad0e8;background:#eaf2fb;}
.surface-badge.natural{background:#eaf3e7;}
#matchLeagueView{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.5fr);gap:22px;align-items:start;}
#matchLeagueView > .panel{margin:0;min-width:0;}
#matchLeagueView .league-calendar-panel{grid-column:1/-1;}
#matchLeagueView .league-next-panel{background:#163a2d;border-color:#163a2d;color:#f2f8ed;overflow:hidden;}
.league-next-panel h2{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:var(--action);}
.fff-next{gap:16px;}
.league-next-panel .fff-next-date{font-size:16px;font-weight:500;color:#d5e2d7;}
.league-next-panel .fff-next-comp{color:#c1d2c7;font-weight:400;}
.league-next-panel .fff-next-teams{font-size:24px;font-weight:650;line-height:1.3;gap:12px;letter-spacing:-.5px;}
.league-next-panel .fff-next-teams > span:not(.result-badge):not(.fff-vs){flex-basis:100%;}
.league-next-panel .fff-next-teams .us{color:#f2f8ed;}
.league-next-panel .fff-vs{font-size:12px;color:#a9c0b1;}
.league-next-panel .result-badge{color:#d5e2d7;border-color:#426352;background:#214a38;}
.league-next-panel .fff-venue{background:#1c4232;border-color:#365b45;padding:13px;}
.league-next-panel .fff-venue-address{color:#c1d2c7;}
.league-next-panel .surface-badge{background:transparent;color:#d8e8d6;border-color:#78977f;}
.league-next-panel .fff-link{color:#d7edbd;white-space:normal;font-size:12px;}
.league-next-panel .empty-state{color:#cfdecf;}
.fff-actions{gap:15px;}
.fff-row{background:transparent;border:0;border-top:1px solid var(--border);border-radius:0;}
.fff-row:hover{background:#f7f9f5;border-color:var(--border);}
.fff-row + .fff-row{margin-top:0;}
.fff-row .calendar-row{padding:18px 8px;}
.cal-title{font-size:14px;font-weight:600;}
.cal-meta{margin-top:5px;}
.cal-score{font-size:19px;}
.cal-day{font-size:16px;font-weight:650;}
.fff-film{padding-bottom:16px;}
.list-group-title{letter-spacing:.6px;}
.fff-updated{font-size:12px;}
.record-item{background:#f6f8f3;border-color:var(--border);padding:16px 6px;}
.record-value{font-weight:650;}
.session-part{padding-top:22px;margin-top:22px;}
.session-part h3{font-size:16px;font-weight:600;}
.exercise-card{background:#f8faf6;border-color:var(--border);padding:16px;border-radius:12px;}
.exercise-card-title{font-size:15px;font-weight:650;}
.exercise-card-desc{color:var(--text-dim);}
#exerciseLibraryList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
#exerciseLibraryList .exercise-card{margin:0;flex-direction:column;align-items:stretch;background:var(--panel);}
#exerciseLibraryList .exercise-thumb{width:100%;height:auto;aspect-ratio:680/520;max-height:240px;}
#exerciseLibraryList .exercise-card-actions{margin-top:auto;}
.presence-suggestions{box-shadow:0 8px 24px #18352415;}
.viewer-card{background:var(--panel);}
.viewer-stage{background:#eef3ea;}
.sync-status.ok{color:#285c3b;}
.sync-status.warn{color:#855e14;}
.login-page{background:#f3f5f3;min-height:100dvh;}
.login-page .card{border:1px solid var(--border);border-radius:22px;max-width:420px;padding:36px;box-shadow:0 16px 60px #173a2b0a;}
.login-page .brand img{width:88px;height:88px;padding:0;background:transparent;}
.login-page .brand h1{font-size:20px;letter-spacing:-.6px;}
.login-page input{background:#f7f9f5;}
.login-page button{background:var(--action);color:#183524;}
.login-page button:hover{background:#bae75d;}
@media(min-width:1180px){#exerciseLibraryList{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:1000px){#matchLeagueView{grid-template-columns:1fr;} .league-next-panel .fff-next-teams > span:not(.result-badge):not(.fff-vs){flex-basis:auto;}}
@media(max-width:860px){.app-layout{grid-template-columns:1fr;} body > header{padding:18px 20px;gap:16px;}.page-heading h2{font-size:28px;}}
@media(max-width:760px){.tabs{gap:3px;} .tab-btn{padding:10px 5px;} .panel{padding:18px;} .app-layout{padding:24px 16px 32px;gap:19px;} .club-badge{width:48px;height:48px;} #exerciseLibraryList{grid-template-columns:1fr;} .page-heading{gap:12px;}.page-heading p{font-size:13px;} .subtabs{gap:20px;} .subtab-btn{font-size:13px;} .league-next-panel .fff-next-teams{font-size:21px;}}
@media(max-width:440px){.brand-copy{font-size:14px;} .brand-copy small{font-size:9px;} .header-right{gap:7px;} .sync-status{max-width:100px;white-space:normal;} .shared-data-label{font-size:10px;} .match-picker{min-width:0;width:100%;} .match-bar{align-items:stretch;} .page-heading h2{font-size:26px;}}
#exerciseLibraryList .exercise-thumb-small{width:100%;max-width:100%;}
#exerciseLibraryList .exercise-card-actions{flex-direction:row;flex-wrap:wrap;gap:7px;}
#exerciseLibraryList .exercise-card-actions button{flex:1 1 auto;}
#exerciseLibraryList .exercise-card-actions .remove-btn{flex:0 0 30px;}
.thumb-zoom-hint{color:#fff;}
