/* Match preparation: overview, availability, lineup, bench and supporting options. */
.prep-page{--prep-green:#075337;--prep-ink:#1c4030;--prep-muted:#53664f;--prep-line:#dce5d5;max-width:1120px;margin:0 auto;color:var(--prep-ink)}
.prep-page .prep-back{margin:0 0 12px;min-height:42px}
.prep-page .prep-heading{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 20px;padding:21px 23px;background:linear-gradient(145deg,#fffefb,#f3f6ed);border:1px solid var(--prep-line);border-radius:16px;box-shadow:0 5px 18px #123d2809}
.prep-heading>div:first-child{min-width:0;flex:1}.prep-heading .eyebrow{color:#52734b;letter-spacing:.09em;margin:0 0 13px;font-size:12px!important}
.prep-heading h1.fixture-identity{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;max-width:600px;margin:0 0 15px;font-size:21px;line-height:1.3}
.prep-heading .fixture-club{display:flex;flex-direction:row;align-items:center;gap:10px;text-align:left;min-width:0}.prep-heading .fixture-club strong{overflow-wrap:anywhere}.prep-heading .fixture-versus{font-size:13px;color:#687c62}.prep-heading .club-badge{--crest-size:42px;border-radius:12px}
.prep-heading .prep-fixture-meta,.prep-heading .prep-location{display:flex;align-items:flex-start;gap:8px;color:var(--prep-muted);font-size:15px;line-height:1.5;margin:0}.prep-heading .prep-location{margin-top:5px}.prep-heading .prep-fixture-meta svg,.prep-heading .prep-location svg{flex:none;margin-top:3px;color:#6e8b62}
.prep-heading>.btn{flex:none;font-size:14px;min-height:44px;margin:0;padding:9px 12px}.prep-heading .notice{margin-top:14px}
.prep-page .prep-startbar{display:block;padding:21px 23px;margin:0 0 18px;border:1px solid #cfdfc9;border-radius:16px;background:linear-gradient(135deg,#eff5e9,#e5efdf);box-shadow:inset 0 1px 0 #fff,0 6px 18px #123d280a}
.prep-summary-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.prep-kicker,.prep-step-label{display:block;font-size:12px;font-weight:700;letter-spacing:.09em;color:#52744a;line-height:1.4;margin:0 0 6px}.prep-summary-head h2{font-size:23px;line-height:1.25;letter-spacing:-.5px;margin:0;color:#1b4630}.prep-summary-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid #d4e2ca;background:#f8fbf3;color:#64865a;border-radius:12px}
.prep-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.prep-progress button{display:grid;grid-template-columns:auto 1fr auto;align-items:baseline;gap:7px;min-width:0;min-height:52px;padding:11px 12px;text-align:left;border:1px solid #d6e3cc;border-radius:11px;background:#ffffffb8;color:#235439;cursor:pointer}.prep-progress strong{font-size:21px;line-height:1.2;font-variant-numeric:tabular-nums}.prep-progress strong small{font-size:14px;color:#647a5d;font-weight:500}.prep-progress button>span{font-size:14px;line-height:1.35;color:#53664f}.prep-progress svg{align-self:center;color:#6c8961}
.prep-main-actions{display:flex;gap:10px}.prep-main-actions .btn{flex:1;min-width:0;min-height:48px;font-size:15px;white-space:normal;line-height:1.3}.prep-main-actions .btn.surface{background:#0b6040;border-color:#0b6040;color:#fff}.prep-main-actions .btn.ghost{background:#ffffff80;color:#285a3a;border-color:#b8cbb0}.prep-start-note{font-size:14px;line-height:1.5;color:#53664f;margin:11px 0 0}
.prep-page .prep-sections{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(265px,.75fr);grid-template-areas:'attendance attendance' 'field loans' 'bench loans' 'more more';gap:16px;align-items:start}.prep-sections>*{min-width:0}.prep-attendance{grid-area:attendance}.prep-field{grid-area:field}.prep-bench{grid-area:bench}.prep-loans{grid-area:loans}.prep-more{grid-area:more}
.prep-page .card{border-radius:16px}.prep-attendance,.prep-field,.prep-bench,.prep-loans,.prep-more{scroll-margin-top:calc(env(safe-area-inset-top,0px) + 82px)}
.prep-page .prep-attendance{padding:0}.prep-attendance summary{display:flex;align-items:center;gap:12px;padding:18px 20px;list-style:none;cursor:pointer;margin:0!important}.prep-attendance summary::-webkit-details-marker{display:none}.prep-section-index{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:#ebf2e5;border:1px solid #dbe6d4;color:#477243;font-size:13px;font-weight:700}.prep-section-copy{flex:1;min-width:0}.prep-section-copy strong{display:block;font-size:19px;line-height:1.35}.prep-section-copy small{display:block;font-size:14px;line-height:1.4;color:var(--prep-muted);margin-top:2px}.prep-attendance summary .pill-small{font-size:13px;white-space:nowrap}.prep-chevron{color:#729065;transition:transform .2s ease}.prep-attendance[open] .prep-chevron,.prep-more[open] summary>svg{transform:rotate(90deg)}
.prep-attendance-content{padding:0 20px 12px;border-top:1px solid #e6ebdf}.prep-attendance .roster-status{padding:14px 0;gap:12px}.prep-attendance .roster-status strong{font-size:16px;line-height:1.45}.prep-attendance .avatar{width:38px;min-width:38px;height:38px;min-height:38px;font-size:15px}.prep-attendance .attendance-choice{min-height:46px}
.prep-field .card-head{align-items:flex-start;gap:12px}.prep-field .card-head>div{min-width:0}.prep-field h3{font-size:22px;margin:0 0 5px}.prep-field-help{font-size:15px;line-height:1.5;color:var(--prep-muted);margin:0}.prep-field .team-switch{max-width:128px;min-height:44px;padding:8px 10px}.prep-field .pitch-hint{margin:12px 0}.prep-field>.btn{min-height:48px;font-size:15px}
.prep-bench .card-head{align-items:flex-start;flex-wrap:wrap}.prep-bench .card-head h3{font-size:21px}.prep-bench .card-head .small{font-size:14px;line-height:1.45;color:var(--prep-muted)}.prep-bench .bench{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.prep-bench .bench-player{width:100%;min-width:0;max-width:none;min-height:58px;padding:10px 12px;gap:3px}.prep-bench .bench-player strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}.prep-bench .bench-player small:empty{display:none}.prep-bench .bench-player .loan-badge{font-size:13px;line-height:1.4}.prep-bench .bench-player.selected{border-color:#0b6040;background:#d9ead7;box-shadow:0 0 0 2px #0b604030}
.prep-loans .loan-card .card-head{align-items:flex-start;flex-wrap:wrap}.prep-loans .loan-card .card-head h3{font-size:21px}.prep-loans .loan-card .small{font-size:14px;line-height:1.5}.prep-loans .loan-card .list-row{padding:12px 0}.prep-loans .loan-card .item-title{overflow-wrap:anywhere;white-space:normal}
.prep-more{padding:0!important}.prep-more summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:15px 20px;cursor:pointer;font-size:16px;font-weight:650;color:#31583d}.prep-more summary::-webkit-details-marker{display:none}.prep-more summary>svg{transition:transform .2s ease;color:#729065}.prep-more>p,.prep-more>.btn,.prep-more>[data-prep-collaboration]{margin-left:20px;margin-right:20px}.prep-more>p{color:var(--prep-muted);font-size:14px;line-height:1.6;margin-top:14px;margin-bottom:12px}.prep-more>.btn{width:calc(100% - 40px);margin-bottom:20px;min-height:46px;font-size:15px}.prep-more .live-collaboration{margin:0 0 14px}
@media(max-width:850px){.prep-page .prep-sections{grid-template-columns:minmax(0,1fr);grid-template-areas:'attendance' 'field' 'bench' 'loans' 'more';gap:14px}}
@media(max-width:700px){.prep-page .prep-heading{padding:17px 17px 16px;gap:8px;flex-wrap:wrap;margin-bottom:15px}.prep-heading h1.fixture-identity{font-size:17px;gap:8px;margin-bottom:13px;width:100%}.prep-heading .fixture-club{flex-direction:column;text-align:center;gap:7px}.prep-heading .club-badge{--crest-size:40px}.prep-heading .prep-fixture-meta,.prep-heading .prep-location{font-size:14px}.prep-heading>.btn{margin-left:auto}.prep-page .prep-startbar{padding:18px 17px;margin-bottom:15px}.prep-summary-head h2{font-size:21px}.prep-summary-icon{width:38px;height:38px}.prep-progress{gap:8px;margin:14px 0}.prep-progress button{padding:10px;gap:5px}.prep-progress strong{font-size:19px}.prep-progress button>span{font-size:13px}.prep-main-actions .btn{padding:10px 8px;font-size:14px}.prep-attendance summary{padding:16px 15px;gap:9px;flex-wrap:nowrap}.prep-section-index{width:32px;height:32px}.prep-section-copy strong{font-size:17px}.prep-section-copy small{font-size:13px}.prep-attendance summary .pill-small{font-size:12px;padding:5px 7px}.prep-attendance-content{padding:0 15px 10px}.prep-attendance .roster-status{gap:8px}.prep-field .card-head{flex-wrap:nowrap}.prep-field .team-switch{width:auto;max-width:105px;font-size:15px}.prep-field-help{font-size:14px}.prep-bench .bench-player{min-height:58px}.prep-more summary{padding:14px 16px}.prep-more>p,.prep-more>.btn,.prep-more>[data-prep-collaboration]{margin-left:16px;margin-right:16px}.prep-more>.btn{width:calc(100% - 32px)}}
@media(max-width:360px){.prep-main-actions{flex-direction:column}.prep-attendance summary{flex-wrap:wrap}.prep-section-copy{flex:1 1 calc(100% - 80px)}.prep-progress button{grid-template-columns:auto 1fr}.prep-progress svg{display:none}.prep-bench .bench{grid-template-columns:1fr}}
@media(hover:hover) and (pointer:fine){.prep-progress button:hover{background:#fff;border-color:#acc59d}.prep-attendance summary:hover,.prep-more summary:hover{background:#f5f8f1}.prep-progress button:hover svg{transform:translateX(2px)}}
@media(prefers-reduced-motion:reduce){.prep-chevron,.prep-more summary>svg{transition:none}.prep-progress button:hover svg{transform:none}}
.fixture-card{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:10px 0;padding:15px;text-align:left;color:#234236;background:linear-gradient(145deg,#fffefa,#f8faf4);border:1px solid #dce5d5;border-radius:14px;box-shadow:0 3px 12px #173d260a;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.fixture-card-top{display:flex;align-items:center;gap:10px;min-width:0}.fixture-card-top .item-title{flex:1;min-width:0;font-size:16px;line-height:1.35;overflow-wrap:anywhere}.fixture-card-arrow{display:grid;place-items:center;flex:none;width:30px;height:30px;color:#63805e;background:#edf3e8;border-radius:50%}.fixture-card-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.fixture-card-facts>span{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;background:#eef3e9;border:1px solid #e0e9d9;border-radius:8px;color:#3c6048;font-size:13px;font-weight:600;line-height:1.3}.fixture-card-facts svg{flex:none;color:#668762}.fixture-card-status{align-self:flex-start;margin-top:10px;font-size:13px;line-height:1.3;color:#64755f}.fixture-card:focus-visible{outline:3px solid #b69a61;outline-offset:3px}
.home-dashboard .day-agenda .fixture-card-top .item-title{font-size:16px}.home-dashboard .day-agenda .fixture-card .fixture-badges{width:49px}
.prep-page .prep-heading{align-items:stretch;flex-wrap:wrap}.prep-heading>div:first-child{flex:1 0 100%}.prep-heading h1.fixture-identity{margin:8px auto 20px}.prep-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.prep-fact{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:11px;background:#eff4e9;border:1px solid #dfe8d7;border-radius:11px;color:#2e503c}.prep-fact svg{flex:none;color:#64865f;margin-top:3px}.prep-fact span{display:flex;flex-direction:column;min-width:0;gap:3px}.prep-fact small{font-size:11px;font-weight:700;letter-spacing:.06em;color:#687d63}.prep-fact strong{font-size:15px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}.prep-fact-location{grid-column:1/-1}.prep-heading>.btn{margin-left:auto}
@media(hover:hover){.fixture-card:hover{transform:translateY(-2px);border-color:#b9ceb1;box-shadow:0 7px 19px #173d2615}}
@media(max-width:700px){.fixture-card{padding:13px}.fixture-card-facts>span{font-size:13px}.prep-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.prep-fact{padding:11px}.prep-fact strong{font-size:15px}.prep-page .prep-heading{gap:12px}.prep-heading h1.fixture-identity{margin-bottom:17px}}
@media(prefers-reduced-motion:reduce){.fixture-card{transition:none}.fixture-card:hover{transform:none}}
/* Collapsible preparation cards keep the start action in view. */
.prep-page .prep-match-card{display:block;padding:0;overflow:hidden}.prep-match-card>summary{display:block;list-style:none;cursor:pointer;padding:19px 22px}.prep-match-card>summary::-webkit-details-marker,.prep-collapse>summary::-webkit-details-marker{display:none}.prep-match-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.prep-match-top .eyebrow{margin:0}.prep-match-card .fixture-identity{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:15px auto 12px;max-width:600px;font-size:19px;line-height:1.3}.prep-match-brief{display:flex;justify-content:center;align-items:center;gap:8px;color:#566e57;font-size:14px;line-height:1.4}.prep-match-brief svg{color:#77916e}.prep-match-expanded{padding:0 22px 20px}.prep-match-edit{display:flex;justify-content:flex-end;margin-top:14px}.prep-match-edit .btn{font-size:14px;min-height:44px}.prep-match-card[open] .prep-chevron,.prep-collapse[open] .prep-chevron{transform:rotate(90deg)}
.prep-page .prep-collapse{padding:0;overflow:hidden}.prep-collapse>summary{display:flex;align-items:center;gap:12px;min-height:70px;padding:16px 20px;list-style:none;cursor:pointer}.prep-panel-content{padding:16px 20px 20px;border-top:1px solid #e6ebdf}.prep-bench{display:grid;gap:16px}.prep-nested-card>.card{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.prep-nested-card>.card>.card-head h3{display:none}.prep-nested-card>.card>.card-head{margin-bottom:12px}.prep-collapse summary:focus-visible,.prep-match-card summary:focus-visible{outline:3px solid #b69a61;outline-offset:-3px;border-radius:12px}
@media(max-width:700px){.prep-page .prep-match-card{padding:0}.prep-match-card>summary{padding:16px}.prep-match-card .fixture-identity{font-size:17px;gap:8px;margin:13px 0 10px}.prep-match-card .fixture-club{flex-direction:column;text-align:center;gap:7px}.prep-match-expanded{padding:0 16px 16px}.prep-collapse>summary{padding:15px;gap:9px}.prep-panel-content{padding:15px}.prep-bench{gap:14px}}
@media(hover:hover){.prep-match-card>summary:hover,.prep-collapse>summary:hover{background:#f5f8f1}}
.prep-match-warning{display:block;margin:10px auto 0;text-align:center;color:#9a4a39;font-size:14px;font-weight:700}
.pitch-remove-player{position:absolute;z-index:5;width:44px;height:44px;display:grid;place-items:center;transform:translate(5px,-48px);padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;touch-action:manipulation}.pitch-remove-player span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#fffaf1;border:2px solid #fff;color:#a24236;box-shadow:0 2px 8px #002f2380;font-size:22px;font-weight:700;line-height:1}.pitch-remove-player:focus-visible{outline:3px solid #f0d28e;outline-offset:0}.pitch-remove-player:disabled{opacity:.5;cursor:not-allowed}
