/* Pitch geometry and player colours are shared with the saved PNG and the presentation. */
.tkPitch{width:100%;height:auto;aspect-ratio:800/520;display:block;background:#0a1c12}
.tkPitch[data-portrait=true]{aspect-ratio:520/800}
.tkGlyph{transform:scale(1,.76923077);transform-origin:0 0}
.tkPitch[data-portrait=true] .tkGlyph{transform:scale(1,.76923077) rotate(90deg) scale(1.19)}
.tkField{background:#0a1c12}
.tkPlanNav,.tkTimeline,.tkPad,.tkEdit,.tkBottom,.tkWelcome,.tkLegacy,.squadLayout,#show.tkPresent{font-family:Inter,Arial,sans-serif;color:#f4f6f3}
.tkPlanNav label,.tkPad label,.tkEdit label,.pfPoster label{color:#b4bcb5;font-size:.78rem;font-weight:600}
.tkPlanNav select,.tkPad select,.tkPad input,.tkEdit input,.tkEdit textarea,.tkEdit select,.pfPoster select{color:#f4f6f3;background:#151816;border:1px solid #333a34;border-radius:14px;min-height:44px;padding:.6rem .85rem}
.tkActions button,.tkLegacy button,.tkEntry button,.tkEdit [data-tk],.tkPad [data-tk],.squadExport{color:#f4f6f3;background:#1f2320;border:1px solid rgba(255,255,255,.1);border-radius:99px;min-height:44px;font:650 .82rem Inter,Arial,sans-serif;padding:.55rem 1rem}
.tkActions button:disabled,.tkEntry button:disabled{opacity:.43}
.tkActions [aria-pressed=true],.tkTimeline [aria-pressed=true]{background:#d2ff4d;color:#050605;border-color:#d2ff4d}
.tkTimeline{gap:8px;align-items:stretch;flex-wrap:nowrap;scrollbar-width:thin}
.tkTimeline button{border-radius:14px;min-height:50px;flex:0 0 auto;max-width:17rem;background:#151816;border:1px solid #272c28;color:#f4f6f3;font:700 .82rem Inter,Arial,sans-serif}
.tkCard,.tkEdit,.tkWelcome,.squadLayout .squadPanel{background:#0d0f0e;border:1px solid #272c28;border-radius:22px;color:#f4f6f3;box-shadow:none}
.tkCard{overflow:hidden}
.tkCard .fieldhead{background:#0d0f0e;color:#f4f6f3;border:0}
.tkCard h2,.tkEdit h2,.tkWelcome h2,.squadPanel h2,.pfLineHead h2,.tkShowHead h2,.tkShowBody h3{font-family:Archivo,Arial,sans-serif;font-weight:800;font-stretch:125%;letter-spacing:.005em;text-transform:uppercase}
.tkCard .eyebrow,.tkShowMomentCount{font-size:.69rem;color:#d2ff4d;font-family:Inter,Arial,sans-serif;letter-spacing:.16em;font-weight:750;text-transform:uppercase}
#tkDirty,.tkPad p,.tkEdit p,.tkWelcome p,.squadPosition{color:#a9b2aa}
.tkEdit fieldset,.tkEdit details,.tkPad details{border-color:#303632;color:#e2e7e2}
.tkEdit .primary,.tkPad .primary,.squadPanel .primary,.squadExport{color:#050605;background:#d2ff4d;font-weight:750;border:0}
.tkPad .legend,.tkPad .matchTeamLabel,.squadPanel label{color:#e2e7e2}
.tkPad .dot.own,.legend .dot.own{background:#d2ff4d}
.tkPad .dot.opp,.legend .dot.opp{background:#050605;border:2px solid #F4F6F3}
.tkWelcome .tkPitch{border-radius:18px;max-height:55dvh}
.squadLayout .linepanel{background:#050605;border:1px solid #272c28;border-radius:26px;padding:0;gap:0;overflow:hidden;position:relative;top:auto;justify-items:stretch}
.pfLineHead{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.05rem 1.3rem;background:#0a1c12}
.pfLineHead h2{font-size:1.1rem;margin:0}
.pfLineHead span{display:inline-grid;place-items:center;min-height:40px;padding:0 1rem;border-radius:99px;background:rgba(255,255,255,.09);font-family:Archivo,Arial,sans-serif;font-weight:800}
.pfLinePitch{width:100%;max-height:68dvh;min-height:340px;aspect-ratio:68/90;position:relative;isolation:isolate;overflow:hidden;background:#0a1c12}
.pfLinePitch svg{position:absolute;width:100%;height:100%;inset:0}
.pfPlayer{position:absolute;display:grid;justify-items:center;align-content:center;gap:0;transform:translate(-50%,-50%);width:44px;height:44px;min-width:44px;min-height:44px;border:0;background:transparent;padding:0;color:#f4f6f3}
.pfPlayer b,.pfBench button b{display:grid;place-items:center;border-radius:50%;width:clamp(30px,3vw,40px);height:clamp(30px,3vw,40px);color:#050605;background:#d2ff4d;box-shadow:0 6px 16px rgba(0,0,0,.45);font:800 .94rem Archivo,Arial,sans-serif}
.pfPlayer span{position:absolute;top:calc(50% + clamp(15px,1.5vw,20px) + 2px);left:50%;transform:translateX(-50%);max-width:clamp(55px,8vw,125px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 3px #050605;font:650 .74rem Inter,Arial,sans-serif;pointer-events:none}
.pfBench,.pfPoster{padding:.9rem 1.1rem;background:#0d0f0e}
.pfBench h3{margin:.2rem 0 .8rem;font:800 .95rem Archivo,Arial,sans-serif;text-transform:uppercase}
.pfBench>div{display:flex;gap:.6rem;overflow:auto}
.pfBench button{flex:0 0 58px;padding:0 0 .2rem;border:0;background:transparent;color:#f4f6f3;display:grid;justify-items:center;gap:.35rem}
.pfBench button b{background:#1f2320;color:#f4f6f3;box-shadow:none}
.pfBench button span{max-width:58px;overflow:hidden;text-overflow:ellipsis;font:600 .72rem Inter,Arial,sans-serif}
.pfPoster{border-top:1px solid #272c28}
.pfPoster summary{padding:.7rem;text-align:center;background:#151816;border-radius:30px;min-height:44px;cursor:pointer;font-weight:750}
.pfPoster>div{display:grid;gap:1rem;justify-items:center;padding-top:1rem}
.pfPoster label{display:grid;gap:.4rem}.pfPoster .poster{max-width:330px}
.squadRows,.squadRow{border-color:#2a302b}
.squadPanel .squadRow input,.squadPanel select{background:#151816;color:#f4f6f3;border:1px solid #303531;border-radius:13px;min-height:44px}
.squadMove{background:#1f2320;color:#f4f6f3;min-height:44px}
.squadSubhead .ghost{color:#d2ff4d}
#show.tkPresent{background:#050605;padding:clamp(10px,2vh,24px) clamp(12px,2.5vw,40px);gap:clamp(6px,1vh,14px);isolation:isolate}
.tkPresentProgress{display:flex;gap:5px;align-items:center;width:100%;height:4px;flex:none}
.tkPresentProgress i{height:4px;min-width:1px;flex:1;border-radius:5px;background:#323933}
.tkPresentProgress i.passed{background:#d2ff4d}
.tkShowHead h2{font-size:clamp(1.2rem,2.7vw,2.5rem)}
.tkShowBody{grid-template-columns:minmax(0,3fr) minmax(190px,1fr)}
.tkShowField svg{width:100%;max-height:62dvh;border-radius:22px}
.tkShowBody aside{background:rgba(13,15,14,.92);backdrop-filter:blur(20px);border:1px solid #2a302b;border-radius:24px;padding:clamp(.9rem,1.65vw,1.5rem)}
.tkShowBody aside h3{font-size:clamp(1.15rem,2.5vw,1.8rem)}
.tkShowBody aside p,.tkShowBody aside li{color:#c5ccc6;line-height:1.48}
.tkShowButtons,.tkShowSelect{justify-content:center}
.tkShowButtons{border:1px solid #282e29;border-radius:24px;padding:.35rem;background:rgba(13,15,14,.87);align-self:center;backdrop-filter:blur(16px)}
.tkPresent button,.tkPresent select{border-radius:24px;background:#1f2320;border:1px solid #303731;color:#f4f6f3}
.tkPresent .tkShowPlay{background:#d2ff4d;color:#050605}
.tkShowSelect label{color:#b4bcb5}.tkShowSelect select{color:#f4f6f3}
@media(max-width:790px){.squadLayout .linepanel{order:0}.squadLayout .squadPanel{order:1}.pfLinePitch{max-height:62dvh;min-height:340px}}
@media(max-width:650px) and (orientation:portrait){
 .tkPlanNav{display:grid;gap:8px}.tkPlanNav>.tkActions{flex-wrap:nowrap;overflow:auto}.tkPlanNav>.tkActions button{flex:none}
 .tkField .tkPitch{max-height:72dvh}.tkColumns{grid-template-columns:minmax(0,1fr)}
 .tkCard .fieldhead{padding:12px 14px}.tkCard .tkPad{gap:.55rem}.tkField{border-radius:12px}
 .tkPad>.tkActions:first-of-type{flex-wrap:nowrap;overflow:auto}
 .tkShowBody{grid-template-columns:minmax(0,1fr)}.tkShowField svg{max-height:53dvh}.tkShowBody aside{padding:.6rem .85rem}
 .tkShowButtons{border-radius:18px}.tkShowButtons button{font-size:.8rem}
}
@media(orientation:landscape) and (max-height:550px){.tkPresentProgress,.tkPresentProgress i{height:2px}.tkShowField svg{max-height:48dvh}.tkShowBody aside{max-height:46dvh;padding:.5rem}.tkShowFooter .tkShowButtons{flex:1}.tkShowSelect label{font-size:.72rem}}
