:root {
  color-scheme: light;
  --green: #21483c;
  --ink: #263c32;
  --muted: #87958a;
  --paper: #f7f8f3;
  --line: #e9eee7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Avenir, sans-serif; font-size: 13px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 218px; flex: 0 0 218px; background: #193d33; color: #fff; padding: 31px 18px 22px; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 5px; }
.brand-mark { width: 41px; height: 41px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.brand strong, .brand small { display: block; letter-spacing: .16em; }
.brand strong { font-size: 13px; }
.brand small { font-size: 8px; color: #c1d0bc; margin-top: 4px; letter-spacing: .21em; }
.sidebar-label { font-size: 9px; font-weight: 700; color: #8fab98; letter-spacing: .15em; margin: 57px 12px 14px; }
.navigation { display: grid; gap: 5px; }
.nav-link { height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #b0c1b4; border-radius: 6px; font-size: 12px; font-weight: 600; }
.nav-link:hover, .nav-link:focus-visible { background: #31574a; color: white; }
.nav-link.active { background: #dce8bc; color: #284638; }
.nav-icon { font-size: 17px; width: 19px; text-align: center; line-height: 1; }
.nav-arrow { margin-left: auto; font-size: 14px; }
.sidebar-bottom { margin-top: auto; padding-top: 70px; }
.season-card { overflow: hidden; position: relative; min-height: 146px; border: 1px solid #5b7a66; background: #285346; border-radius: 8px; padding: 16px 14px; }
.season-card-top { color: #cbd9b9; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.live-dot, .white-dot, .source-dot { display: inline-block; border-radius: 50%; width: 6px; height: 6px; background: #c6db9c; margin-right: 5px; vertical-align: middle; }
.season-card strong, .season-card > span { display: block; position: relative; z-index: 1; }
.season-card strong { font-family: "DM Serif Display", Georgia, serif; font-size: 23px; font-weight: 400; margin-top: 18px; }
.season-card > span { color: #b1c9b9; font-size: 10px; margin-top: 5px; }
.season-lines { position: absolute; width: 110px; height: 110px; border: 1px solid #507a65; border-radius: 50%; bottom: -48px; right: -25px; box-shadow: 0 0 0 12px #285346, 0 0 0 13px #507a65, 0 0 0 25px #285346, 0 0 0 26px #507a65; }
.sidebar-footer { color: #83a18b; font-size: 8px; font-weight: 700; letter-spacing: .09em; display: flex; justify-content: space-between; padding: 25px 3px 0; }
.sidebar-footer span { font-size: 14px; color: #b3cd9b; }
main { flex: 1; min-width: 0; }
.topbar { height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; color: #8a9a8d; font-size: 11px; }
.topbar-club { font-size: 10px; font-weight: 700; color: #486353; letter-spacing: .1em; }
.breadcrumb-separator { margin: 0 13px; color: #ccd5ca; }
.topbar-right { display: flex; align-items: center; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #8b9b8c; }
.source-dot { background: #88a975; }
.season-pill { margin-left: 20px; padding: 9px 13px; border: 1px solid #e0e8df; border-radius: 4px; color: #506b58; font-size: 10px; letter-spacing: 0; }
.content { max-width: 1600px; margin: 0 auto; padding: 44px 48px 0; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.eyebrow { color: #7d9780; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.eyebrow span { display: inline-block; width: 19px; height: 1px; background: #9eb69b; vertical-align: middle; margin-right: 7px; }
h1, h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: -.035em; margin: 11px 0 7px; }
h1 { font-size: clamp(38px, 4vw, 52px); line-height: 1.05; }
h2 { font-size: 34px; line-height: 1.1; }
h1 em, h2 em { color: #7b9a72; font-weight: 400; }
.page-heading p, .section-heading p { margin: 0; color: #87968a; line-height: 1.6; font-size: 12px; }
.heading-season { position: relative; padding: 2px 40px 2px 17px; border-left: 1px solid #d6e0d4; }
.heading-season span, .heading-season strong { display: block; }
.heading-season span { font-size: 9px; font-weight: 700; color: #9ca99c; letter-spacing: .12em; }
.heading-season strong { font-size: 12px; margin-top: 6px; }
.heading-season .heading-season-icon { position: absolute; right: 0; top: 0; font-size: 22px; color: #a4bb94; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.summary-card { position: relative; min-height: 148px; padding: 19px 20px; background: #fff; border: 1px solid #e9eee7; border-radius: 7px; overflow: hidden; }
.green-card { background: #305b49; color: #fff; border-color: #305b49; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 700; letter-spacing: .09em; color: #849789; }
.green-card .card-top { color: #c6d6c6; }
.card-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #71917c; border-radius: 50%; font-size: 15px; font-weight: 400; }
.card-icon.pale { color: #6d8d72; border-color: #e7eee5; background: #f7faf4; }
.card-icon.amber { color: #be9662; border-color: #f1e7d8; background: #fbf8f1; }
.summary-number { font-family: "DM Serif Display", Georgia, serif; font-size: 36px; line-height: 1; margin: 14px 0 10px; }
.summary-caption { font-size: 10px; color: #95a296; }
.summary-caption strong { color: #608265; font-weight: 700; }
.green-card .summary-caption { color: #d4dfd1; }
.card-decoration { position: absolute; right: 14px; bottom: -29px; font-size: 100px; color: #3e6a56; opacity: .8; line-height: 1; }
.section-block { margin-top: 48px; scroll-margin-top: 25px; }
.section-heading { margin-bottom: 23px; }
.rate-badge { display: flex; align-items: center; gap: 10px; background: #eef4e8; padding: 10px 14px; border-radius: 6px; }
.rate-badge > span { display: grid; place-items: center; width: 27px; height: 27px; background: #fff; border-radius: 50%; color: #638763; font-size: 15px; }
.rate-badge small, .rate-badge strong { display: block; }
.rate-badge small { color: #94a68d; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.rate-badge strong { margin-top: 3px; font-size: 11px; }
.table-panel { background: #fff; border: 1px solid #e9eee7; border-radius: 7px; overflow: hidden; }
.table-toolbar { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 21px; }
.table-toolbar h3 { margin: 0; font-size: 13px; }
.table-toolbar h3 span { display: inline-block; background: #eef4e9; color: #789274; border-radius: 10px; padding: 3px 7px; font-size: 9px; margin-left: 5px; }
.table-toolbar p { color: #9ba89c; font-size: 10px; margin: 5px 0 0; }
.table-controls { display: flex; gap: 8px; }
.search-box, select { border: 1px solid #e8eee6; border-radius: 5px; color: #65796a; background: #fff; height: 34px; }
.search-box { display: flex; align-items: center; padding: 0 10px; gap: 7px; }
.search-box > span:first-child { font-size: 20px; line-height: 1; color: #8a9b8c; }
.search-box input { width: 130px; border: 0; outline: 0; font-size: 10px; color: var(--ink); background: transparent; }
.search-box:focus-within, select:focus-visible { outline: 2px solid #9db991; outline-offset: 2px; }
.search-box input::placeholder { color: #a7b3a7; }
select { padding: 0 25px 0 10px; font-size: 10px; cursor: pointer; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
th { background: #f8faf6; color: #9aa99b; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 13px 15px; }
th:first-child, td:first-child { padding-left: 21px; }
td { padding: 12px 15px; border-top: 1px solid #f1f4ef; font-size: 11px; font-weight: 600; }
.info { font-size: 11px; }
.player-name { display: flex; align-items: center; gap: 10px; }
.player-name strong, .player-name small { display: block; }
.player-name small { color: #a8b3a8; font-size: 9px; font-weight: 400; margin-top: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #708e6e; background: #edf3e8; font-family: Georgia, serif; font-size: 14px; }
.avatar-1 { color: #a4816c; background: #f7ede6; }
.avatar-2 { color: #708a8d; background: #eaf2f1; }
.avatar-3 { color: #9b9272; background: #f4f1e5; }
.muted { color: #acb7ac; font-weight: 400; }
.picked-count { color: #4a6b52; }
.progress-cell { display: flex; align-items: center; gap: 9px; }
.progress-cell strong { font-size: 10px; color: #708a72; }
.progress-track { width: 67px; height: 5px; background: #edf2ea; border-radius: 4px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: #95b58a; border-radius: 4px; }
.amount-owed { color: #b48348; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 4px; font-size: 9px; }
.status i, .fixture-status i, .fixture-legend i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: currentColor; }
.status-paid { color: #719772; background: #eff6ed; }
.status-owed { color: #b78a54; background: #fbf5eb; }
.table-footer { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 21px; border-top: 1px solid #eff3ed; color: #a0ada0; font-size: 10px; }
.empty-state { text-align: center; padding: 30px; color: #87968a; }
.fixtures-section { margin-bottom: 45px; }
.fixture-legend { display: flex; flex-wrap: wrap; gap: 15px; color: #8d9d90; font-size: 10px; }
.fixture-legend i { vertical-align: middle; margin-right: 4px; }
.legend-played { color: #88ad80; }.legend-cancelled { color: #ce9c7d; }.legend-unrecorded { color: #bec9bb; }
.fixture-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fixture-card { min-width: 0; background: #fff; border: 1px solid #e9eee7; border-radius: 7px; padding: 16px; }
.fixture-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #a0aea1; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.fixture-status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; letter-spacing: 0; font-weight: 600; }
.fixture-status.played { color: #80a37d; }.fixture-status.cancelled { color: #c18f72; }.fixture-status.unrecorded { color: #a6b3a5; }
.fixture-opponent { display: flex; gap: 9px; align-items: center; margin: 19px 0; }
.fixture-opponent > span { background: #eef4e9; color: #83a07c; font-size: 9px; font-weight: 700; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; }
.fixture-opponent h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 18px; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
.fixture-bottom { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #f0f3ee; padding-top: 12px; color: #96a598; font-size: 10px; }
.fixture-score { margin-top: 12px; padding: 10px; background: #f5f8f2; border-radius: 5px; font-size: 10px; line-height: 1.5; }
.fixture-score strong { color: #40674b; }
.score-teams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; color: #718774; }
.score-teams > span { min-width: 0; overflow-wrap: anywhere; }
.score-teams > span:last-child { text-align: right; }
.score-teams b { display: block; margin-top: 3px; color: #40674b; font-size: 11px; }
.fixture-players { margin: 10px 0 0; color: #8d9e8e; font-size: 10px; line-height: 1.5; min-height: 15px; }
.fixture-result { display: inline-block; margin-top: 12px; color: #517b56; font-size: 10px; font-weight: 700; }
.fixture-result:hover { text-decoration: underline; }
.fixture-result:focus-visible { outline: 2px solid #9db991; outline-offset: 3px; }
.source-note { color: #94a397; font-size: 10px; line-height: 1.6; margin: 17px 0 0; }
.source-note span { color: #7d9d7c; margin-right: 4px; }
.page-footer { border-top: 1px solid #e5ebe3; padding: 22px 0 27px; display: flex; justify-content: space-between; gap: 12px; color: #a4b0a4; font-size: 9px; letter-spacing: .08em; }
.page-footer b { color: #88a77c; padding: 0 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .content { padding-left: 28px; padding-right: 28px; }
  .topbar { padding: 0 28px; }
  .summary-grid, .fixture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: 0; padding: 14px 18px; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .brand-mark { width: 31px; height: 34px; font-size: 11px; }.brand strong { font-size: 11px; }.brand small { font-size: 7px; }
  .sidebar-label, .sidebar-bottom, .nav-icon, .nav-arrow { display: none; }
  .navigation { display: flex; gap: 2px; }
  .nav-link { height: 34px; padding: 0 8px; font-size: 10px; }
  .topbar { height: 50px; padding: 0 18px; }.topbar-right { font-size: 8px; }.season-pill { margin-left: 8px; }
  .content { padding: 32px 18px 0; }
  .heading-season { display: none; }
  .summary-grid { gap: 9px; margin-top: 24px; }.summary-card { min-height: 130px; padding: 15px; }.summary-number { font-size: 31px; }
  .section-block { margin-top: 38px; }.section-heading { align-items: flex-start; }.section-heading h2 { font-size: 29px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }.table-controls { width: 100%; }.search-box { flex: 1; }.search-box input { width: 100%; }
  .fixtures-heading { flex-direction: column; gap: 14px; }.fixture-grid { gap: 9px; }.fixture-card { padding: 12px; }.fixture-opponent h3 { font-size: 16px; }.fixture-bottom { flex-wrap: wrap; }
  .page-footer { flex-direction: column; }
}
@media (max-width: 390px) {
  .brand small { display: none; }.navigation { gap: 0; }.nav-link { padding: 0 5px; font-size: 9px; }
  .fixture-grid { grid-template-columns: 1fr; }
}
