:root{color-scheme:dark;--navy:#101c2d;--base:#0a1220;--panel:#142238;--line:#32445e;--text:#f5f3ec;--muted:#bac6d6;--gold:#edc777;--red:#a9283f;--font:Inter,system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;font:1rem/1.5 var(--font);background:var(--base);color:var(--text)}a{color:var(--gold);text-underline-offset:.2em}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button,.button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:.55rem 1rem;background:var(--gold);color:#171c25;border:1px solid transparent;border-radius:.5rem;font-weight:750;text-decoration:none;cursor:pointer}.secondary{background:transparent;color:var(--text);border-color:var(--line)}:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.workspace{display:grid;grid-template-columns:15.5rem minmax(0,1fr);min-height:100vh}aside{background:var(--navy);border-right:1px solid var(--line);padding:1.25rem;display:flex;flex-direction:column;gap:2rem}.brand{display:flex;align-items:center;gap:.7rem;font-size:1rem;font-weight:800;text-decoration:none;color:var(--text)}.brand b{background:var(--red);border-radius:.5rem;color:white;padding:.6rem}.brand small,small{display:block;color:var(--muted);font-size:.78rem}.brand small{letter-spacing:.1em;font-size:.65rem;margin-top:.15rem}nav{display:grid;gap:.3rem}nav a{display:flex;align-items:center;min-height:44px;gap:.7rem;color:var(--muted);padding:.5rem .65rem;text-decoration:none;border-radius:.45rem;font-size:.88rem}nav a span{color:var(--gold);width:1.15rem;text-align:center}nav a[aria-current]{background:#26344a;color:white;box-shadow:inset 3px 0 var(--gold)}.session{margin-top:auto;display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.session span{overflow-wrap:anywhere}main{width:100%;max-width:96rem;padding:2.4rem clamp(1rem,4vw,3.6rem);margin-inline:auto}.public main{max-width:35rem;margin-top:clamp(1rem,10vh,7rem)}header{margin-bottom:1.4rem}h1,h2,p{margin-top:0}h1{font-size:clamp(1.9rem,5vw,3.15rem);line-height:1.08;letter-spacing:-.045em;margin-bottom:0}h2{font-size:1.15rem;margin-bottom:.65rem}.eyebrow{color:var(--gold);text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:800;margin-bottom:.45rem}.hero{background:linear-gradient(115deg,#671c31,#791f34 45%,#222a3a);padding:clamp(1rem,4vw,2.4rem);border-radius:.9rem;margin-bottom:1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.hero h2{font-size:clamp(1.6rem,5vw,3rem);line-height:1.08;margin-bottom:.45rem}.hero p:last-child{margin-bottom:0}.pitch{width:clamp(80px,16vw,220px);aspect-ratio:1.8;border:1px solid #ffffff45;border-radius:.3rem;display:grid;place-items:center;position:relative}.pitch:after{content:"";position:absolute;inset:0 50%;border-left:1px solid #ffffff45}.pitch i{width:28%;aspect-ratio:1;border-radius:50%;border:1px solid #ffffff45}.panel{padding:clamp(1rem,2.5vw,1.5rem);border:1px solid var(--line);border-radius:.85rem;background:var(--panel);margin-bottom:1rem;overflow-wrap:anywhere}.panel p:last-child{margin-bottom:0}.metrics,.columns{display:grid;gap:1rem}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.columns{grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr))}.metric{display:flex;flex-direction:column;text-decoration:none;color:var(--text)}.metric strong{font-size:2rem;color:var(--gold)}.metric span{color:var(--muted);font-size:.85rem}.line{display:flex;gap:.7rem;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:.65rem 0;text-decoration:none}.line:last-child{border-bottom:0}.line h2{margin:0}.badge{background:#303e55;color:white;border-radius:999px;padding:.25rem .6rem;font-size:.75rem;flex:none}.badge[data-status="Confirmed"],.badge[data-status="Complete"]{background:#174d40}.badge[data-status="Proposed"],.badge[data-status="Provisional"]{background:#674022}.toolbar,.toolbar form,.account form{display:flex;flex-wrap:wrap;align-items:end;gap:.65rem}.toolbar{justify-content:space-between;margin-bottom:1rem}label,dt{display:block;font-weight:700;margin-bottom:.25rem}input:not([type=hidden],[type=checkbox]),select,textarea{width:100%;padding:.55rem .7rem;border:1px solid #64788f;border-radius:.35rem;background:#0e1929;color:var(--text);min-height:44px}form>div{margin-bottom:.8rem}.account select{width:auto}.record-form{margin-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.7rem}.record-form button{align-self:end}.errorlist,.notice{color:#ffd29e}.helptext{display:block;color:var(--muted);font-size:.85rem}dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem}dd{margin:0;color:var(--muted)}.actions a{margin:.25rem}
@media(max-width:950px){.workspace{grid-template-columns:11.5rem minmax(0,1fr)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}aside{padding:.8rem}}
@media(max-width:640px){.workspace{display:block}aside{border-right:0;border-bottom:1px solid var(--line);gap:.75rem}nav{grid-template-columns:repeat(2,minmax(0,1fr))}nav a{font-size:.84rem}.session{justify-content:space-between}.account{align-items:flex-start;flex-direction:column}main{padding-top:1.3rem}.metric strong{font-size:1.6rem}}
@media print{aside,.actions{display:none}.workspace{display:block}body,.panel{background:white;color:black}.panel{border-color:#888}main{padding:0}.eyebrow{color:black}}
.rating{display:grid;grid-template-columns:minmax(6rem,1fr) minmax(4rem,3fr) 2.5rem;gap:.75rem;align-items:center;padding:.5rem 0}.rating label{margin:0}.rating meter{width:100%;height:1.1rem;accent-color:var(--gold)}.rating strong{text-align:right;color:var(--gold)}

.briefing-hero {
  min-height: 11rem;
  background: linear-gradient(115deg, #781f36 0%, #581e32 45%, #17263c 100%);
  border: 1px solid #a44b60;
}
.briefing-hero .eyebrow { color: #f7d998; }
.briefing-hero .pitch { flex-shrink: 0; }
.briefing-metric {
  border-top: 2px solid #a78248;
  background: linear-gradient(155deg, #1b2b44, var(--panel) 75%);
  gap: .2rem;
}
.briefing-metric:hover { border-color: var(--gold); text-decoration: none; }
.briefing-metric strong { font-variant-numeric: tabular-nums; line-height: 1.2; }
.briefing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
}
.briefing-grid > .panel { min-width: 0; margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; }
.section-heading a { font-size: .82rem; }
.briefing-grid h3 { margin: .9rem 0 .45rem; color: var(--muted); font-size: .85rem; }
.briefing-row { color: var(--text); }
.briefing-row-text { flex: 1; min-width: 0; }
.event-date {
  display: grid;
  place-items: center;
  flex: 0 0 3.1rem;
  padding: .28rem;
  border-radius: .45rem;
  background: #273750;
  line-height: 1.15;
}
.event-date strong { font-size: 1.25rem; color: var(--gold); }
.briefing-note { display: inline-block; margin-top: .65rem; font-size: .85rem; }
.briefing-empty { color: var(--muted); margin: .75rem 0 0; }
.briefing-counts { display: flex; gap: .5rem; flex-wrap: wrap; }
.briefing-counts a {
  display: inline-flex;
  gap: .4rem;
  align-items: baseline;
  padding: .35rem .6rem;
  background: #273750;
  border-radius: .4rem;
  text-decoration: none;
}
.briefing-counts span, .plan-progress label { color: var(--muted); font-size: .85rem; }
.briefing-counts a:hover { text-decoration: underline; }
.plan-progress { margin-top: .5rem; }
.plan-progress progress { width: 100%; height: .85rem; accent-color: var(--gold); }

@media (max-width: 840px) {
  .briefing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .briefing-hero .pitch { display: none; }
  .briefing-row { gap: .45rem; }
  .event-date { flex-basis: 2.5rem; }
}

.briefing-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.profile-summary { border-top: 2px solid #a78248; }
.profile-summary dl { margin-bottom: 0; }
.profile-summary dd { color: var(--text); }
.match-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.match-header p { color: var(--muted); }
.match-pitch {
  display: grid;
  gap: .6rem;
  margin-top: .7rem;
  padding: .8rem;
  border: 2px solid #7a9a87;
  border-radius: .55rem;
  background: repeating-linear-gradient(0deg, #173b33 0 12.5%, #1c4439 12.5% 25%);
}
.pitch-line {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pitch-line li {
  display: grid;
  justify-items: center;
  align-content: start;
  flex: 1 1 0;
  max-width: 8rem;
  min-width: 0;
  color: white;
  font-size: clamp(.7rem, 1.5vw, .9rem);
  text-align: center;
}
.pitch-role { background: var(--gold); color: #171c25; border-radius: .3rem; padding: .2rem .25rem; font-weight: 800; }
.pitch-line li span:last-child { margin-top: .2rem; background: #102921; border-radius: .2rem; padding: .1rem .18rem; }
.bench-list { margin: 0; padding-left: 1.25rem; }
.match-form { margin-top: 1rem; scroll-margin-top: 1rem; }
.match-form fieldset { border: 1px solid var(--line); border-radius: .45rem; padding: .75rem; margin: 0 0 1rem; min-width: 0; }
.match-form legend { padding: 0 .35rem; font-weight: 750; }
.formation-field { max-width: 15rem; }
.selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .65rem; }
.selection-grid select { min-width: 0; }
.briefing-date { color: var(--muted); }
.print-briefing > .panel { margin-top: 1rem; }
@media print {
  .screen-only { display: none; }
  .print-briefing { font-size: 11pt; }
  .print-briefing .briefing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-briefing .panel { break-inside: avoid; }
  .print-briefing .badge { background: transparent; color: black; border: 1px solid #666; }
  .briefing-date, .print-briefing h3 { color: #444; }
}

.fixture-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.pitch-line li .pitch-player { background: #102921; border-radius: .2rem; padding: .1rem .18rem; }
.pitch-line li small { margin-top: .25rem; font-size: .68rem; color: #e5e9df; }
.badge[data-response="Available"] { background: #174d40; }
.badge[data-response="Unavailable"] { background: #74283a; }
.pitch-line li small[data-response="Unavailable"] { color: #ffc3ce; }
.response-total { background: #273750; border-radius: .4rem; padding: .3rem .55rem; }
.response-total strong, .match-score { color: var(--gold); }
.match-score { font-size: 2rem; font-weight: 750; }
.fixture-form button { margin-top: 1rem; }
.fixture-form fieldset { border: 1px solid var(--line); padding: .75rem; border-radius: .45rem; margin-top: 1rem; }
.fixture-form legend, .fixture-form summary { font-weight: 750; }
.fixture-form summary { cursor: pointer; }
.fixture-form details .selection-grid { margin-top: .7rem; }
.depth-intro { margin-bottom: 1rem; }
