/* =====================================================================
   Chinook Bengals Cricket Club app — all styling
   Colours come from the club logo. Phone layout first; wider screens
   (900px and up) get a top menu and two columns.
   ===================================================================== */
/* Fonts are served from this site (fonts/), not Google, so visitors' details stay with the club.
   Inter and Barlow: SIL Open Font License (fonts/OFL-Inter.txt, fonts/OFL-Barlow.txt).
   Barlow is only used on printed statements and receipts. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff") format("woff"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff") format("woff"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff") format("woff"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800-italic.woff") format("woff"); }

:root {
  --bg: #141214;        /* page */
  --bg2: #1B181A;       /* bars, tables */
  --panel: #221E21;     /* cards */
  --panel2: #2C272A;    /* boxes inside cards */
  --rule: #3D3B3C;      /* borders (logo charcoal) */
  --rule2: #4A4547;
  --ink: #F4F1EE;       /* text */
  --ink2: #D9D2D5;
  --muted: #B5ACB0;
  --faint: #A39A9E;
  --maroon: #8D2540;    /* primary (logo fur) */
  --maroon-d: #7F0025;
  --gold: #F2B33D;      /* accent (tiger's eyes) */
  --cream: #FAE7C6;     /* headings */
  --owed: #F07A93;      /* money owed */
  --gold-bg: #3A2A12;
  --owed-bg: #3A1A24;
  --gold-fill: #F2B33D; /* gold buttons and dots (dark text on top) */
  --sel-bg: #3D3B3C;    /* selected grey button */
  --sel-ink: #FFFFFF;
  --toast-bg: #FAE7C6;
  --toast-ink: #1B1408;
  --topline: #2C272A;
  --hero-ink: #FAE7C6;  /* text on the maroon sign-in panel */
  --credit: #5CCB8C;    /* paid ahead (green) */
  --match-bg: #331820;  /* match highlight */
  --ch-in: #C2861E;     /* charts: income (checked for colour-blind safety) */
  --ch-out: #E0607E;    /* charts: expenses */
  color-scheme: dark;
}
/* Light mode: same club colours on a warm white page. Gold text is darkened
   so it stays readable on white; gold buttons keep the bright gold. */
:root[data-theme="light"] {
  --bg: #F6F2EE;
  --bg2: #FFFFFF;
  --panel: #FFFFFF;
  --panel2: #F1EBE6;
  --rule: #DDD4CE;
  --rule2: #C4BAB4;
  --ink: #1E1A1C;
  --ink2: #3A3336;
  --muted: #5E5559;
  --faint: #6D6468;
  --maroon: #8D2540;
  --maroon-d: #7F0025;
  --gold: #8F5800;
  --cream: #7A1F37;
  --owed: #B4173F;
  --gold-bg: #FCEFD6;
  --owed-bg: #FBE3E9;
  --gold-fill: #F2B33D;
  --sel-bg: #3A3336;
  --sel-ink: #FFFFFF;
  --toast-bg: #2A2427;
  --toast-ink: #FFFFFF;
  --topline: #E4DCD6;
  --hero-ink: #FAE7C6;
  --credit: #1C7A43;
  --match-bg: #F8E6EB;
  --ch-in: #B57A12;
  --ch-out: #8D2540;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
/* Home-screen app on iPhone: no rubber-band bounce, which can leave the bottom bar mid-screen (our own pull-to-refresh still works). */
@media (display-mode: standalone) { html, body { overscroll-behavior: none; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; font-feature-settings: 'cv11', 'ss01'; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--gold); }
a:hover { color: var(--cream); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.noscript { padding: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.hd { font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; font-style: normal; font-weight: 800; text-transform: none; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.h1 { font-size: 30px; color: var(--cream); }
.h2 { font-size: 22px; color: var(--cream); }
.big { font-size: 34px; color: var(--cream); line-height: 1; }
.lbl { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tight { margin: 0; }
.owed { color: var(--owed); }
.credit { color: var(--credit); }
.gold { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }
.err { color: var(--owed); margin: 0; min-height: 0; font-size: 14px; }
.err:empty { display: none; }
.ok { color: var(--gold); margin: 0; font-size: 14px; }
.ok:empty { display: none; }

/* ---------- boot / loading ---------- */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.loading { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--topline); padding-top: env(safe-area-inset-top, 0px); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 1; min-width: 0; }
.logo { width: 90px; height: 90px; flex: none; object-fit: contain; }
.bname { display: block; font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; color: var(--cream); }
.bsub { display: block; font-size: 13px; color: var(--muted); }
.tnav { display: none; gap: 4px; }
.tnav a { min-height: 40px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.tnav a:hover { background: var(--panel); color: var(--cream); }
.tnav a.on { background: var(--panel2); color: var(--gold); }
.me { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; overflow: hidden; background-size: cover; background-position: center; }
.page { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 16px 16px calc(112px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.page.narrow { max-width: 560px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; will-change: transform; transform: translateZ(0); display: flex; background: var(--bg2); border-top: 1px solid var(--rule); padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 4px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; min-width: 0; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--gold); }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--owed); color: #1B1408; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tnav .badge { position: static; }
.ic { width: 20px; height: 20px; flex: none; }

/* sub-menu for admin pages */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 14px; }
.subnav a.on { background: var(--panel2); color: var(--gold); border-color: var(--panel2); }

/* ---------- cards and rows ---------- */
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.hot { border-color: var(--maroon); }
.card.flat { background: transparent; }
.card.dash { background: transparent; border-style: dashed; border-color: var(--gold); }
.box { background: var(--panel2); border-radius: 10px; padding: 10px 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--panel2); min-width: 0; }
.li:first-child { border-top: 0; }
.li .t { font-weight: 600; }
.ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ico.c { background: var(--owed-bg); color: var(--owed); }
.ico.p { background: var(--gold-bg); color: var(--gold); }
.ico.x { background: var(--panel2); color: var(--muted); }
.pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--panel2); color: var(--ink2); }
.pill.open { background: var(--gold-bg); color: var(--gold); }
.pill.going { background: var(--gold-fill); color: #1B1408; }
.pill.cx { background: var(--owed-bg); color: var(--owed); }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; background: #5A1830; background-size: cover; background-position: center; overflow: hidden; }
.av.lg { width: 84px; height: 84px; font: 800 30px Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; background-color: var(--maroon); }
.stack-av { display: flex; align-items: center; padding-left: 8px; }
.stack-av .av { width: 30px; height: 30px; border: 2px solid var(--panel); margin-left: -8px; font-size: 12px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.pp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pp .n { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp .s { display: block; font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 8px 0; margin: 0; }
.notice { border: 1px solid var(--gold); background: var(--gold-bg); color: var(--cream); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.notice.bad { border-color: var(--owed); background: var(--owed-bg); }

/* ---------- buttons ---------- */
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--rule2); background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn.primary { background: var(--maroon); border-color: var(--maroon); color: #fff; font-weight: 700; }
.btn.primary:hover { background: #9E2B4A; color: #fff; }
.btn.gold { background: var(--gold-fill); border-color: var(--gold-fill); color: #1B1408; font-weight: 700; }
.btn.outline-gold { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.btn.danger { border-color: var(--maroon); color: var(--owed); }
.btn.ghost { border-color: transparent; color: var(--ink2); }
.btn.sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.cta { min-height: 52px; font: 700 16px Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; text-transform: none; letter-spacing: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.back { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }

/* vote buttons */
.votes { display: flex; gap: 10px; }
.vbtn { flex: 1; min-height: 52px; border-radius: 12px; font: 700 15px Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--ink); border: 2px solid var(--rule); }
.vbtn.yes.on { background: var(--gold-fill); color: #1B1408; border-color: var(--gold-fill); }
.vbtn.no.on { background: var(--sel-bg); color: var(--sel-ink); border-color: var(--faint); }
.vbtn:disabled { opacity: .45; cursor: not-allowed; }

/* segmented choice + chips */
.seg { display: flex; gap: 4px; background: var(--panel); border-radius: 12px; padding: 4px; }
.seg button { flex: 1; min-height: 42px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--sel-bg); color: var(--sel-ink); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { min-height: 44px; border-radius: 12px; border: 2px solid var(--rule); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.chip.on { background: var(--gold-fill); color: #1B1408; border-color: var(--gold-fill); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink2); min-width: 0; }
.f .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.in { min-height: 48px; width: 100%; border-radius: 12px; border: 1px solid var(--rule2); background: var(--panel); color: var(--ink); padding: 0 14px; font-size: 16px; }
textarea.in { padding: 10px 14px; min-height: 80px; resize: vertical; }
select.in { padding-right: 10px; }
.in:focus, .btn:focus-visible, .vbtn:focus-visible, .chip:focus-visible, .tab:focus-visible, .tnav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--gold-fill); }
.money-in { position: relative; display: flex; }
.money-in span { position: absolute; left: 14px; top: 12px; font-size: 18px; color: var(--muted); }
.money-in .in { padding-left: 30px; font-size: 20px; font-weight: 700; }
.meter { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--owed); transition: width .2s; }
.meter[data-level="2"] i { background: var(--gold-fill); }
.meter[data-level="3"] i, .meter[data-level="4"] i { background: #E9C46A; }

/* ---------- sign-in screens ---------- */
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 48px 28px 8px; }
.hero img { width: 124px; height: 124px; object-fit: contain; }
.hero .title { font-size: 30px; color: var(--cream); }
.side { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px 40px; }
.authbox { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; border: 2px solid var(--rule2); color: var(--muted); }
.dot.done { background: var(--gold-fill); border-color: var(--gold-fill); color: #1B1408; }
.dot.now { border-color: var(--gold); color: var(--gold); }
.qr { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; }
code.secret { display: block; word-break: break-all; background: var(--panel2); padding: 10px 12px; border-radius: 10px; font-size: 14px; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wk { font-size: 13px; color: var(--faint); text-align: center; font-weight: 600; padding-bottom: 4px; }
.day { height: 46px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); font-weight: 500; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; padding: 0; }
.day.blank { visibility: hidden; }
.day.past .n { color: var(--faint); }
.day.sel { background: var(--rule); }
.day.today .n { background: var(--cream); color: var(--bg); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.day .m { width: 6px; height: 6px; border-radius: 50%; }
.day .m.practice { background: var(--gold-fill); }
.day .m.pastpractice { background: var(--faint); }
.day .m.poll { border: 2px solid var(--gold); }
.day .m.cx { width: 12px; height: 2px; border-radius: 0; background: var(--owed); }
.day.cxday .n { text-decoration: line-through; color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.date-tag { width: 56px; flex: none; font-size: 20px; color: var(--cream); }

/* ---------- admin tables ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.tile .v { font-size: 30px; }
.tablewrap { position: relative; overflow-x: auto; background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--panel2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-top: 1px solid var(--rule); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.dim td { color: var(--faint); }
.sel-sm { min-height: 36px; border-radius: 8px; border: 1px solid var(--rule2); background: var(--panel); color: var(--ink); padding: 0 8px; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .in { min-height: 44px; flex: 1 1 220px; max-width: 360px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--panel2); }
.kv:first-child { border-top: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- dialog and toast ---------- */
dialog { border: 1px solid var(--rule); border-radius: 18px; background: var(--panel); color: var(--ink); padding: 0; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
#dlgForm { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
#dlgForm h2 { margin: 0; font: 800 20px Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; letter-spacing: -.01em; color: var(--cream); }
#dlgBody { margin: 0; }
#dlgBody:empty { display: none; }
#dlgFields { display: flex; flex-direction: column; gap: 12px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--toast-bg); color: var(--toast-ink); font-weight: 600; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--owed); }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .bname { font-size: 22px; }
  .tnav { display: flex; }
  .bnav { display: none; }
  .page { padding: 28px 24px 56px; gap: 20px; }
  .cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start; }
  .cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cols.wide2 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .big { font-size: 48px; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day { height: 72px; font-size: 17px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { background: var(--maroon); padding: 48px; }
  .hero img { width: 230px; height: 230px; }
  .hero .title { font-size: 48px; color: var(--hero-ink); }
  .hero .muted { color: #F4E4E8; }
  .side { padding: 48px; }
  .page.narrow .card.form-card { padding: 28px; }
  #toast { bottom: 32px; }
}

/* keep list rows tidy on narrow phones */
.li > .pill, .li > .date-tag, .li > svg { flex: none; }
.date-tag { width: auto; min-width: 64px; white-space: nowrap; }
.seg button { white-space: nowrap; min-width: 0; padding: 0 6px; }
@media (max-width: 420px) { .seg button { white-space: normal; line-height: 1.2; font-size: 14px; } }
.toolbar { flex-wrap: wrap; }

/* password with show/hide button */
.pw { position: relative; display: block; }
.pw .in { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--gold); }
.pw-eye:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }

/* Home-screen app on iPhone: iOS blurs the strip under the clock/battery.
   Give the header extra room so the club name and logo sit below it. */
@media (display-mode: standalone) {
  .top { padding-top: calc(env(safe-area-inset-top, 0px) + 2px); }
}

/* iPhone: date and time boxes have a built-in minimum width that pushes
   them outside their card. Let them shrink like every other box. */
input.in[type="date"], input.in[type="time"] {
  -webkit-appearance: none; appearance: none; display: block;
  min-width: 0; max-width: 100%; width: 100%; line-height: 46px; text-align: left;
}
input.in[type="date"]::-webkit-date-and-time-value, input.in[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
:root:not([data-theme="light"]) input.in[type="date"]::-webkit-calendar-picker-indicator, :root:not([data-theme="light"]) input.in[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8); }

/* pull down to refresh (home-screen app only) */
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 60; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--panel2); color: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.5); opacity: 0; transform: translateY(-60px); pointer-events: none; }
.ptr svg { transition: transform .1s linear; }
.ptr.ready { color: #fff; background: var(--maroon); }
.ptr.go svg { animation: ptrspin .8s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }

/* light mode: soften shadows, keep the maroon sign-in panel's own text */
:root[data-theme="light"] .ptr { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
:root[data-theme="light"] .ptr.ready { color: #fff; }

/* header: club name only */
.bsub { display: none; }

/* the words next to a balance: "you owe the club" / "paid ahead" / "all paid up" */
.bal-note { font-size: 17px; font-weight: 600; color: var(--ink2); }
.bal-note.owed { color: var(--owed); }
.bal-note.credit { color: var(--credit); }

/* ---------- teams ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.team-card { text-decoration: none; color: var(--ink); gap: 12px; }
.team-card:hover { border-color: var(--rule2); }
.team-card.mine { border-color: var(--gold); }
.team-name { font-size: 32px; color: var(--cream); line-height: 1; margin-top: 2px; }
.role-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.tag.c { background: var(--maroon); color: #fff; }
.tag.vc { background: var(--sel-bg); color: var(--sel-ink); }
.tag.wk { background: var(--gold-fill); color: #1B1408; }
.squad-row { align-items: flex-start; }
.squad-row > .av, .squad-row > .role-ic { margin-top: 2px; }
.squad-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tagbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mini { min-height: 36px; min-width: 44px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--rule2); background: transparent; color: var(--ink2); font-weight: 700; font-size: 13px; cursor: pointer; }
.mini.on { background: var(--gold-fill); border-color: var(--gold-fill); color: #1B1408; }
.mini.danger { color: var(--owed); }
.mini:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: 14px; }
.key > span { display: flex; align-items: center; gap: 8px; }
.me.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }

/* role icons next to text and on the role buttons */
.role-inline { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.role-inline .role-ic svg { display: block; }
.role-chips .chip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; }
.role-chips .chip .role-ic { flex: none; }
.role-chips .chip.on .role-ic { filter: drop-shadow(0 0 1px rgba(0,0,0,.35)); }

/* bigger role pictures in squads */
.role-tile { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--panel2); display: flex; align-items: center; justify-content: center; align-self: center; }
.squad-row .av { width: 44px; height: 44px; font-size: 14px; }
.key .tag { min-width: 30px; height: 24px; font-size: 13px; }

.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-weight: 600; }
.meta-line > span { display: inline-flex; align-items: center; }

/* ---------- matches ---------- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.match-card { gap: 10px; }
.match-card.cx { opacity: .75; }
.match-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.match-vs { font-size: 26px; color: var(--cream); line-height: 1.05; margin-top: 2px; overflow-wrap: anywhere; }
.avail { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.avail .vbtn { min-height: 46px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.avail .vbtn.no.on { background: var(--owed-bg); color: var(--owed); border-color: var(--owed); }
.sm-chip { min-height: 38px; padding: 0 16px; border-radius: 999px; }
.xi-n { flex: none; width: 24px; text-align: center; font-weight: 800; color: var(--muted); }
.xi-pick { cursor: pointer; }
.xi-pick input { width: 22px; height: 22px; flex: none; accent-color: var(--gold-fill); }
.xi-list .li:first-child { border-top: 0; }
.role-tile.sm { width: 42px; height: 42px; border-radius: 12px; }
.pill.cx { background: var(--owed-bg); color: var(--owed); }
textarea.in { min-height: 88px; padding-top: 10px; padding-bottom: 10px; resize: vertical; line-height: 1.4; }

.day .dots { display: flex; gap: 3px; justify-content: center; align-items: center; min-height: 6px; }
.day .m.match { background: var(--maroon); }

/* ---------- cricket details ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cc-box { display: flex; flex-direction: column; gap: 8px; }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-stat { background: var(--maroon); color: #fff; border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cc-stat .hd { font-size: 30px; line-height: 1; color: #fff; }
.cc-stat .lbl { color: #F4E4E8; font-size: 12px; }
.cc-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.cc-mini { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); align-items: center; }
.cc-mini b { color: var(--ink); }
.cc-mini a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
details > summary { list-style-position: inside; }
/* ---------- admin: find a member ---------- */
.admin-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.admin-top .subnav { flex: 1 1 auto; min-width: 0; }
.jump { position: relative; flex: 0 1 280px; min-width: 200px; }
.jump .in { padding-left: 38px; min-height: 42px; }
.jump-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
@media (max-width: 899px) { .jump { flex: 1 1 100%; } }
.cc-btn { align-self: flex-start; gap: 4px; font-weight: 700; }
.tag.fl { background: var(--owed-bg); color: var(--owed); font-size: 11px; }
.style-lines { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; color: var(--ink2); }
optgroup { font-weight: 700; }
@media (max-width: 600px) { .grid2.stack-sm { grid-template-columns: 1fr; } }

/* matches stand out from practices */
.match-hl { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 14px 16px; border-radius: 14px; background: var(--match-bg); border: 1px solid var(--maroon); border-left: 6px solid var(--maroon); text-decoration: none; color: var(--ink); }
.match-hl.cx { opacity: .7; }
.match-hl .mvs { font-size: 26px; line-height: 1.05; color: var(--cream); overflow-wrap: anywhere; }
.mbadge { display: inline-flex; align-items: center; gap: 4px; background: var(--maroon); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.mbadge.sm { font-size: 11px; padding: 2px 6px; margin-bottom: 3px; }
.match-row { background: var(--match-bg); border-left: 5px solid var(--maroon); border-radius: 12px; padding: 10px 12px; margin: 4px 0; border-top: 0; }
.match-card { border-left: 6px solid var(--maroon); }
.match-card.cx { border-left-color: var(--faint); }

/* matches look different from practices: maroon edge + tint, "Team vs Opponent" titles */
.match-card { border-left: 6px solid var(--maroon); }
.match-card:not(.cx) { background: linear-gradient(90deg, var(--match-bg), var(--panel) 55%); }
.vs { font-size: .6em; color: var(--muted); font-style: italic; margin: 0 .15em; vertical-align: .12em; }
.match-title { overflow-wrap: anywhere; }

/* ---------- fixture blocks (matches) ---------- */
.match-card { border-left: 1px solid var(--rule); background: var(--panel) !important; padding: 0; overflow: hidden; gap: 0; }
.match-card > .avail { padding: 0 14px 14px; }
.fx { display: flex; align-items: stretch; text-decoration: none; color: var(--ink); min-width: 0; }
.fx-date { flex: none; width: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 6px;
  background: var(--maroon); color: #fff; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: .02em; }
.fx-date b { font-size: 30px; line-height: 1.05; font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.fx-date small { margin-top: 5px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fx.cx .fx-date { background: var(--faint); }
.fx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.fx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fx-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); min-width: 0; }
.fx-team { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.fx-team.us { color: var(--cream); }
.fx-vs { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.fx.cx .fx-team { text-decoration: line-through; color: var(--muted); }
.fx-badge { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--panel2); color: var(--ink2); }
.fx-badge.cx { background: #E8702A; color: #fff; }
.fx-badge.xi { background: var(--gold-fill); color: #1B1408; }
.fx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; margin-top: 2px; }
.fx-me { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.fx-me.yes { color: var(--credit); } .fx-me.no { color: var(--owed); } .fx-me.ask { color: var(--gold); }
.fx-list { display: flex; flex-direction: column; gap: 10px; }
.fx-wrap { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--panel); }
.fx-wrap:hover, .match-card:hover { border-color: var(--maroon); }
.lbl + .fx-list { margin-top: 8px; }
.fx-list + .list { margin-top: 12px !important; }
.match-card > .avail { padding: 0; }
.fx-actions { padding: 12px 14px 14px; border-top: 1px solid var(--rule); }
.fx-actions p { margin: 0; }

/* match in progress */
.fx-badge.live { background: #D93A3A; color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: livepulse 1.4s ease-in-out infinite; }
.live-note { display: flex; align-items: center; gap: 6px; color: #F07070; font-weight: 700; }
@keyframes livepulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.team-pre { display: block; font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); line-height: 1.1; }
.hero .est { margin: 0; letter-spacing: .04em; }

/* =====================================================================
   Finance (Finance Admins) and money per category
   ===================================================================== */
.fin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fin-nav { margin-top: -4px; }
.fin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
@media (min-width: 900px) { .fin-actions { display: flex; justify-content: flex-end; } .fin-nav { margin-top: 0; } }
.year-pick .sel-sm { min-height: 40px; max-width: 100%; }
.fin-tiles .tile .v { font-size: 30px; }
.bank-tile { background: var(--maroon) !important; border-color: var(--maroon) !important; color: #fff !important; }
.bank-tile .lbl { color: #F4E4E8; }
.bank-tile .v { color: #fff; }
.bank-tile .small { color: #F4E4E8; }
.ico.fin-in { background: rgba(28, 122, 67, .12); color: var(--credit); }
.ico.fin-out { background: var(--owed-bg); color: var(--owed); }
.fin-row { text-decoration: none; color: var(--ink); }
.fin-row:hover .fin-t { text-decoration: underline; text-underline-offset: 3px; }
.fin-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.fin-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rc-ic { display: inline-flex; color: var(--muted); }
.li.dim .fin-t, .li.dim .num { text-decoration: line-through; }
.seg-sm { padding: 3px; }
.seg-sm button { min-height: 34px; padding: 0 12px; font-size: 13px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(60px, 1.4fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.bar-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; border-radius: 5px; background: var(--panel2); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 5px; background: var(--maroon); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.legend i.lg-in { background: var(--gold-fill); } .legend i.lg-out { background: var(--maroon); }
.kind-seg a { flex: 1; min-height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.kind-seg a.on { background: var(--sel-bg); color: var(--sel-ink); }
.kind-seg a.on.expense { background: var(--maroon); color: #fff; }
.kind-seg a.on.income { background: var(--credit); color: #fff; }
.lines-box { background: var(--panel2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lines-box.empty { background: transparent; padding: 0; }
.lines-box.empty > .row { display: none; }
.lines { display: flex; flex-direction: column; gap: 8px; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 44px; grid-template-areas: "c a x" "d d d"; gap: 6px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.line-row:last-child { border-bottom: 0; padding-bottom: 0; }
.line-row [data-line=desc] { grid-area: d; } .line-row .money-in { grid-area: a; } .line-row [data-line=cat] { grid-area: c; min-height: 44px; font-size: 15px; } .line-row [data-line=desc] { min-height: 40px; font-size: 14px; } .line-row .mini { grid-area: x; }
@media (min-width: 700px) { .line-row { grid-template-columns: minmax(0, 1fr) 140px 44px; } .line-row [data-line=cat] { min-height: 48px; font-size: 16px; } }
.money-in.sm span { top: 12px; font-size: 16px; }
.money-in.sm .in { font-size: 16px; padding-left: 26px; }
.file-in { padding: 10px; min-height: 0; font-size: 14px; }
.entry-amt { font-size: 44px; line-height: 1; }
.fin-pill-in { background: rgba(28, 122, 67, .14); color: var(--credit); }
.fin-pill-out { background: var(--owed-bg); color: var(--owed); }
.receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.receipt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rc { height: 180px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel2); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; overflow: hidden; padding: 0; }
.rc img { width: 100%; height: 100%; object-fit: cover; }
.rc:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pick-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 420px; overflow-y: auto; padding: 2px; }
@media (min-width: 560px) { .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--gold-fill); background: var(--gold-bg); }
.pick input { width: 22px; height: 22px; flex: none; accent-color: var(--maroon); }
.pick .n { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick.dis { opacity: .6; cursor: default; }
.team-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.team-box { border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.team-box .due { min-height: 44px; display: flex; align-items: center; font-size: 17px; }
.team-box .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.team-box .btn { align-self: flex-start; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--rule); cursor: pointer; font-weight: 600; }
.opt.on { border-color: var(--gold-fill); background: var(--gold-bg); }
.opt input { width: 20px; height: 20px; accent-color: var(--maroon); flex: none; }
.pay-cats .chip { font-size: 14px; }
.bucket-list .kv { font-size: 15px; }
.cat-row { padding: 12px 0; border-top: 1px solid var(--panel2); }
.cat-row:first-child { border-top: 0; }
.cat-row.dim, .sub-pill.dim { opacity: .55; }
.sub-pill { display: inline-flex; align-items: center; gap: 2px; padding-right: 4px; }
.x-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; padding: 2px; border-radius: 6px; }
.mini.danger { color: var(--owed); }
.link-row { text-decoration: none; color: var(--ink); min-height: 52px; }
.link-row svg { color: var(--muted); }
/* statements */
.statements { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (max-width: 899px) {
  .statements[data-tab=ops] .st:not([data-st=ops]), .statements[data-tab=pos] .st:not([data-st=pos]), .statements[data-tab=cash] .st:not([data-st=cash]),
  .statements[data-tab=subs] .st:not([data-st=subs]), .statements[data-tab=events] .st:not([data-st=events]), .statements[data-tab=budget] .st:not([data-st=budget]) { display: none; }
}
@media (min-width: 900px) { .st-tabs { display: none; } .statements { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.st { gap: 0; }
.st-head { text-align: center; display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.st-head span { font-size: 13px; color: var(--muted); }
.st-head .st-logo { width: 46px; height: auto; margin: 0 auto 4px; }
.st-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.st-sh { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 0 4px; }
.st-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; }
.st-row.ind { padding-left: 14px; }
.st-row.ind2 { padding: 2px 0 2px 30px; font-size: 13px; color: var(--muted); }
.st-row.ind2 .num { margin-right: 84px; }
.st-row.tot { border-top: 1px solid var(--rule2); font-weight: 700; }
.st-row.gap { margin-top: 10px; }
.st-row.dbl { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 800; }
@media print {
  .top, .bnav, .fin-nav, .no-print, .back, .fin-top .year-pick, .fin-top .per-pick, #toast, .page > p.small, .fin-actions { display: none !important; }
  body, html, .page { background: #fff !important; color: #000 !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .statements { display: block !important; }
  .statements .st { display: flex !important; border: 0 !important; break-after: page; page-break-after: always; }
  .st-head span, .st-sh { color: #333 !important; }
}
/* finance: one member's page */
.fm-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.fm-name { min-width: 0; }
.fm-name .h1 { overflow-wrap: anywhere; }
.fm-bal { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fm-bal .hd { font-size: 34px; line-height: 1; }
@media (min-width: 900px) { .fm-head { grid-template-columns: auto minmax(0, 1fr) auto; } .fm-bal { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 2px; } }
.team-box .due-row { border-top: 0; padding: 0; }
.team-box .due { min-height: 0; font-size: 18px; }
/* rows with buttons (history): buttons go underneath on a phone */
@media (max-width: 600px) {
  .li:has(> .actions) { flex-wrap: wrap; }
  .li > .actions { width: 100%; justify-content: flex-end; padding-left: 48px; }
}
/* seven tabs on a phone (Finance Admins) */
.bnav.many .tab { font-size: 10px; letter-spacing: -.01em; white-space: nowrap; }
.rc-fallback { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sub-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sub-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.item-pill { font-size: 13px; background: transparent; border: 1px dashed var(--rule2); }
.kv.sub-kv { font-size: 13px; padding-top: 0; border-top: 0; margin-top: -6px; }
.kv.sub-kv span:first-child { color: var(--muted); padding-left: 12px; }
.req { color: #F07A93; margin-left: 2px; font-weight: 700; }
.phone-in span { font-size: 17px; top: 13px; }
.phone-in .in { padding-left: 40px; font-size: 16px; font-weight: 500; }
.photo-row { align-items: center; gap: 12px; }
.photo-prev { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--panel2); color: var(--muted); flex: none; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }

/* period filter */
.per-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.per-seg { flex: none; }
.per-seg button { padding: 0 12px; }
.per-dates { display: inline-flex; gap: 6px; align-items: center; }
.per-pick input.sel-sm { min-height: 36px; padding: 0 10px; font-size: 14px; width: auto; }
/* AGM statements */
.st-row.st-cat { padding: 8px 0 2px 14px; font-weight: 700; }
.st-row.ind2b { padding-left: 30px; }
.st-row.ind3 { padding: 3px 0 3px 46px; font-size: 13px; }
.st-row.subtot { font-weight: 600; border-top: 1px dotted var(--rule2); }
.st-row.ind.subtot { margin-bottom: 4px; }
.st-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.st-table th, .st-table td { padding: 6px 8px; border-bottom: 1px solid var(--panel2); text-align: left; vertical-align: top; }
.st-table .r { text-align: right; }
.st-table tr.tot td { font-weight: 700; border-top: 1px solid var(--ink); }
.st-table tr.subrow td:first-child { padding-left: 22px; color: var(--ink2); }
.statements.agm { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .statements.agm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .st-table th, .st-table td { color: #000 !important; } }

/* finance: charts (dashboard, budgets, events, reports) */
.chart-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
svg.chart { display: block; width: 100%; height: auto; font: 600 12px Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; }
.chart .ch-grid { stroke: var(--rule); stroke-width: 1; }
.chart .ch-base { stroke: var(--rule2); stroke-width: 1; }
.chart .ch-ax { fill: var(--muted); }
.chart .ch-val { fill: var(--ink); font-weight: 700; }
.chart .ch-in { fill: var(--ch-in); } .chart .ch-out { fill: var(--ch-out); }
.chart .ch-line { fill: none; stroke: var(--ch-in); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ch-dot { fill: var(--ch-in); stroke: var(--panel); stroke-width: 2; }
.chart .ch-hit { fill: transparent; }
.chart .ch-hit:hover { fill: var(--ink); fill-opacity: .05; }
.legend i.lg-ch-in { background: var(--ch-in); } .legend i.lg-ch-out { background: var(--ch-out); }
.bar-track i.ch-in-bg, .ch-in-bg { background: var(--ch-in); } .bar-track i.ch-out-bg, .ch-out-bg { background: var(--ch-out); }
.bud-bars { display: flex; flex-direction: column; gap: 14px; }
.bud-row { display: flex; flex-direction: column; gap: 5px; }
.bud-top { gap: 10px; font-size: 14px; }
.bud-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bud-track { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--panel2); }
.bud-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.bud-track .bud-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.bud-track.sm { display: inline-block; width: 70px; height: 7px; vertical-align: middle; margin-right: 6px; }
.bud-state { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bud-state.over { color: var(--owed); } .bud-state.near { color: var(--gold); }
.bud-table { min-width: 560px; }
.bud-table td { vertical-align: middle; }
.bud-in { display: inline-block; width: 120px; }
.bud-in span { top: 7px; font-size: 14px; left: 10px; }
.money-in.bud-in input.in { width: 100%; padding: 0 10px 0 22px; text-align: right; min-height: 36px; font-size: 15px; font-weight: 600; }
.money-in.bud-in input::placeholder { font-weight: 400; color: var(--faint); }

.bud-table tfoot td { font-weight: 700; border-top: 2px solid var(--rule2); }
.bud-cell { white-space: nowrap; }
.ev-bars { display: flex; flex-direction: column; gap: 10px; }
.ev-row { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(90px, 1.4fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.ev-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-track { position: relative; height: 12px; }
.ev-track::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--rule2); }
.ev-track i { position: absolute; left: 50%; top: 0; bottom: 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.ev-track i.neg { left: auto; right: 50%; border-radius: 4px 0 0 4px; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-card.dim { opacity: .7; }
.ev-net { font-size: 24px; }
.ev-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-weight: 600; }
.ev-nums > span { display: flex; flex-direction: column; gap: 2px; }
.rep-box { gap: 12px; }
.rep-line { display: flex; gap: 10px; align-items: flex-start; }
.rep-tag { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--ch-in); color: #1B1408; margin-top: 4px; }
.rep-tag.b { background: var(--ch-out); color: #fff; }
.rep-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; flex: 1; }
.rep-pick select.sel-sm { max-width: 100%; width: auto; min-height: 38px; }
.rep-pick .per-pick { margin: 0; }
.rep-opts { gap: 12px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-width: 1px; }
.report { display: flex; flex-direction: column; gap: 14px; }
.st-table.cmp { min-width: 520px; }
.st-table.cmp tr.sh td { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: .06em; padding-top: 14px; }
.st-table.cmp tr.ind td:first-child { padding-left: 18px; }
.st-table.cmp tr.tot td { font-weight: 700; border-top: 1px solid var(--rule2); }
.st-table.cmp tr.dbl td { border-top: 2px solid var(--ink2); }
@media print {
  .report .st { display: flex !important; border: 0 !important; }
  .rep-box, .rep-opts { display: none !important; }
  .st-table.cmp td.credit, .st-table.cmp td.owed { color: #000 !important; }
}
@media (max-width: 600px) { .rep-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .rep-tiles .tile { padding: 12px; } .rep-tiles .tile .v { font-size: 22px; } }
/* budgets: one list, folding main categories */
.bud-fold { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.bud-fold .ic { flex: none; transition: transform .15s; color: var(--muted); }
.bud-fold.open .ic { transform: rotate(90deg); }
.bud-fold .small { font-weight: 600; }
.bud-label { display: inline-block; }
.bud-table tr.bud-d0 .bud-label { padding-left: 20px; font-weight: 600; }
.bud-table tr.bud-d1 td:first-child { padding-left: 38px; }
.bud-table tr.bud-d2 td:first-child { padding-left: 58px; color: var(--ink2); }
.bud-table tr.bud-d0 td { border-top: 1px solid var(--rule); }
.bud-table td { padding-top: 6px; padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .bud-fold .ic { transition: none; } }
.req-label { display: inline; }
.ev-name { white-space: normal; overflow: visible; }
.ev-name .small { display: block; font-weight: 500; }
.bud-page { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
@media (min-width: 900px) { .bud-page .bud-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } }
.bud-table th:first-child { width: 40%; }
/* budgets on a phone: each category on two lines (name + box, then actual + left) */
@media (max-width: 600px) {
  .bud-table { min-width: 0; width: 100%; }
  .bud-table thead { display: none; }
  .bud-table tbody, .bud-table tfoot { display: block; }
  .bud-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "n b" "a l"; align-items: center; gap: 2px 10px; padding: 8px 12px; border-top: 1px solid var(--rule); }
  .bud-table td { display: block; padding: 0 !important; border: 0 !important; }
  .bud-table td:nth-child(1) { grid-area: n; }
  .bud-table td:nth-child(2) { grid-area: b; }
  .bud-table td:nth-child(3) { grid-area: a; text-align: left; font-size: 13px; color: var(--muted); }
  .bud-table td:nth-child(4) { grid-area: l; font-size: 13px; }
  .bud-table td:nth-child(5) { display: none; }
  .bud-table tbody td:nth-child(3)::before { content: attr(data-label); }
  .bud-table tbody td:nth-child(4)::before { content: "Left "; color: var(--muted); }
  .bud-table tbody td.owed:nth-child(4)::before, .bud-table tbody td.credit:nth-child(4)::before { content: none; }   /* "Over by $140.00", not "Left Over by…" */
  .bud-table tr.bud-d1 td:first-child { padding-left: 18px !important; }
  .bud-table tr.bud-d2 td:first-child { padding-left: 34px !important; }
  .bud-table tr.bud-d0 .bud-label { padding-left: 20px; }
  .bud-in { width: 100%; }
  .bud-table tfoot tr { grid-template-areas: "n b" "a l"; }
}
/* notifications */
.ntf-card { gap: 10px; }
.ntf-on strong { display: inline-flex; align-items: center; gap: 6px; color: var(--credit); }
.ntf-kinds { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 10px; }
.ntf-prompt { border-color: var(--gold); margin-bottom: 4px; }
.ntf-kinds .check { align-items: flex-start; } .ntf-kinds .check input { flex: none; margin-top: 1px; }
/* the bell in the top bar, and the Notifications page */
.bell { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink2); text-decoration: none; margin-left: auto; }
.tnav + .bell { margin-left: 0; }
.bell:hover, .bell.on { background: var(--panel2); color: var(--gold); }
.bell .badge.bell-n { top: 2px; left: auto; right: 0; }
.bell .badge[hidden] { display: none; }
.ntf-item { text-decoration: none; color: var(--ink); align-items: flex-start; }
.ntf-item .t { font-weight: 600; display: block; }
.ntf-item.new .t { color: var(--cream); }
.ntf-body { display: block; overflow-wrap: anywhere; }
.ntf-when { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.ntf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--owed); display: block; }
.ntf-list .li + .li { border-top: 1px solid var(--rule); }
/* the bell's dropdown */
.top-in { position: relative; }
button.bell { border: 0; background: transparent; cursor: pointer; padding: 0; }
.bell.open { background: var(--panel2); color: var(--gold); }
.ntf-pop { position: absolute; top: calc(100% - 4px); right: 16px; width: 400px; max-width: calc(100vw - 32px); z-index: 40; background: var(--panel); border: 1px solid var(--rule2); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); display: flex; flex-direction: column; overflow: hidden; }
.ntf-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.ntf-pop-head a, .ntf-pop-all { font-weight: 600; color: var(--gold); }
.ntf-pop-list { max-height: min(60vh, 480px); overflow-y: auto; overscroll-behavior: contain; }
.ntf-pop-list .ntf-item { padding: 12px 16px; margin: 0; border-radius: 0; }
.ntf-pop-list .ntf-item + .ntf-item { border-top: 1px solid var(--rule); }
.ntf-pop-list .ntf-item.new { background: var(--gold-bg); }
.ntf-pop-list .ntf-item:hover { background: var(--panel2); }
.ntf-pop-all { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--rule); text-decoration: none; }
@media (max-width: 600px) { .ntf-pop { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 66px); left: 8px; right: 8px; width: auto; max-width: none; } .ntf-pop-list { max-height: 65vh; } }
/* ---------- Socials (social media team) ---------- */
/* status colours: checked with the colour-blind validator (grey = not started, on purpose) */
:root { --soc-todo: #A39A9E; --soc-making: #C2861E; --soc-ready: #5B8DEF; --soc-sched: #D383CB; --soc-done: #3FA56B; --soc-late: #E8684F; }
:root[data-theme="light"] { --soc-todo: #6D6468; --soc-making: #9A6A00; --soc-ready: #2563C9; --soc-sched: #A23C98; --soc-done: #1B7F4C; --soc-late: #D1452E; }
.soc-row { text-decoration: none; color: var(--ink); align-items: flex-start; gap: 12px; }
.soc-row .t { font-weight: 600; display: block; }
.soc-sub, .soc-prog { display: block; }
.soc-prog { color: var(--ink2); }
.soc-bar { flex: none; width: 4px; align-self: stretch; border-radius: 2px; background: var(--soc-todo); }
.soc-bar.soc-making { background: var(--soc-making); } .soc-bar.soc-ready { background: var(--soc-ready); } .soc-bar.soc-sched { background: var(--soc-sched); }
.soc-bar.soc-done { background: var(--soc-done); } .soc-bar.soc-late { background: var(--soc-late); } .soc-bar.soc-cx-soft { background: var(--rule2); }
.pill.soc-todo { color: var(--soc-todo); } .pill.soc-making { color: var(--soc-making); } .pill.soc-ready { color: var(--soc-ready); }
.pill.soc-sched { color: var(--soc-sched); } .pill.soc-done { color: var(--soc-done); } .pill.soc-late { background: var(--owed-bg); color: var(--owed); } .pill.soc-cx-soft { color: var(--faint); }
.day .m.soc-todo { background: var(--soc-todo); } .day .m.soc-making { background: var(--soc-making); } .day .m.soc-ready { background: var(--soc-ready); }
.day .m.soc-sched { background: var(--soc-sched); } .day .m.soc-done { background: var(--soc-done); } .day .m.soc-late { background: var(--soc-late); } .day .m.soc-cx-soft { background: var(--rule2); }
.soc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--soc-todo); }
.soc-legend i.soc-making { background: var(--soc-making); } .soc-legend i.soc-ready { background: var(--soc-ready); } .soc-legend i.soc-sched { background: var(--soc-sched); }
.soc-legend i.soc-done { background: var(--soc-done); } .soc-legend i.soc-late { background: var(--soc-late); }
.soc-cell { display: none; }
@media (min-width: 900px) {
  .soc-cal-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .soc-cal .day.soc-day { height: 92px; align-items: stretch; justify-content: flex-start; padding: 6px; gap: 3px; border: 1px solid var(--rule); border-radius: 8px; }
  .soc-cal .day.soc-day .n { align-self: flex-start; font-size: 13px; }
  .soc-cal .day.soc-day.today .n { width: 22px; height: 22px; font-size: 13px; }
  .soc-cal .day.soc-day .dots { display: none; }
  .soc-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .soc-chip { font-size: 12px; font-weight: 600; text-align: left; padding: 1px 5px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--soc-todo); background: var(--panel2); color: var(--ink); }
  .soc-chip.soc-making { border-color: var(--soc-making); } .soc-chip.soc-ready { border-color: var(--soc-ready); } .soc-chip.soc-sched { border-color: var(--soc-sched); }
  .soc-chip.soc-done { border-color: var(--soc-done); color: var(--muted); } .soc-chip.soc-late { border-color: var(--soc-late); } .soc-chip.soc-cx-soft { border-color: var(--rule2); text-decoration: line-through; color: var(--faint); }
  .soc-more { font-size: 12px; color: var(--muted); text-align: left; padding-left: 5px; }
}
.soc-title { overflow-wrap: anywhere; }
.soc-notes { white-space: pre-wrap; background: var(--panel2); border-radius: 10px; padding: 10px 12px; }
.soc-steps { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 12px; }
.soc-seg { flex-wrap: wrap; }
.soc-seg button.on { background: var(--sel-bg); color: var(--sel-ink); }
.soc-comment { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.soc-comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.soc-plat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soc-plat .check { border: 1px solid var(--rule2); border-radius: 12px; padding: 0 12px; }
.soc-import { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 12px; }
.soc-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; }
.soc-map .f { font-weight: 600; }
.soc-prev { min-width: 520px; font-size: 13px; }
.soc-check { min-height: 32px; gap: 6px; }
.ntf-list-what { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Socials: add several, match posts (updates 33-34) ---------- */
.soc-year { width: auto; }
.soc-ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.soc-fill { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soc-many { display: flex; flex-direction: column; gap: 12px; }
.soc-many-row { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--rule); border-radius: 12px; padding: 10px; background: var(--panel2); }
.soc-many-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.soc-many-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.soc-many-opts .soc-who { flex: 1 1 180px; min-width: 0; min-height: 40px; }
.soc-many-opts .btn.ghost { margin-left: auto; }
.soc-many-notes summary { cursor: pointer; color: var(--ink2); font-weight: 600; padding: 2px 0; }
.soc-many-notes textarea { margin-top: 6px; }
.soc-many-form, .soc-match-info { width: 100%; }
.soc-match-info .soc-ul { flex-direction: row; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; }
@media (min-width: 900px) {
  /* one line per post on a computer: post | date | time | FB IG Every year | who | × */
  .soc-many-row { display: grid; grid-template-columns: minmax(220px, 1fr) 340px auto; grid-template-areas: "t w o" "n n n"; align-items: center; gap: 8px 10px; }
  .soc-many-row > input[name^=t] { grid-area: t; }
  .soc-many-when { grid-area: w; }
  .soc-many-opts { grid-area: o; flex-wrap: nowrap; }
  .soc-many-opts .soc-who { flex: 0 0 170px; }
  .soc-many-when { grid-template-columns: 1fr 140px; }
  .soc-many-notes { grid-area: n; }
}
.check.sm { gap: 6px; font-size: 13px; font-weight: 600; min-height: 40px; }
.check.sm input { width: 18px; height: 18px; }
.soc-auto { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 12px; }
.soc-type .check input { accent-color: var(--gold-fill); }
.fx-badge.won { background: var(--gold-fill); color: #1B1408; }

/* ---------- Umpiring (update 36) ---------- */
.day .m.ump { background: var(--ink2); border-radius: 2px; }
.legend .m.ump { display: inline-block; background: var(--ink2); }
.ump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; align-items: start; }
.ump-card { padding: 0; overflow: hidden; gap: 0; }
.ump-card .fx-team { color: var(--ink); }
.ump-card > .ump-notes, .ump-card > .row { padding: 0 14px 12px; }
.ump-spots { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding: 6px 14px 10px; }
.ump-spot .ump-n { margin: 6px 0 0; }
.ump-li { gap: 10px; padding: 6px 0; border: 0; }
.ump-open, .ump-guest { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.ump-open { border: 2px dashed var(--rule2); color: var(--muted); background: transparent; }
.ump-guest { background: var(--panel2); color: var(--ink2); font-weight: 800; }
.ump-late { text-align: right; }
.fx-badge.ump-need { background: var(--owed-bg); color: var(--owed); }
.fx-badge.done { background: var(--panel2); color: var(--ink2); }
.ump-home .list { margin-top: 4px; }
.ump-home-row { align-items: center; gap: 10px; }

/* ---------- Financial statements document (Print / PDF), see statements-doc.js ---------- */
#fsdoc { display: none; }
@media print {
  body.fs-printing > *:not(#fsdoc) { display: none !important; }
  body.fs-printing, body.fs-printing html { background: #fff !important; }
  body.fs-printing #fsdoc { display: block; page: fsdoc; color: #141414; font: 400 9.5pt/1.35 Barlow, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.fsx .fs-page { break-after: page; }
.fsx .fs-page:last-child { break-after: auto; }
.fsx .fs-hd { display: flex; align-items: stretch; height: .95in; margin-bottom: .2in; }
.fsx .fs-brand { display: flex; align-items: center; gap: .14in; width: 3.4in; flex: none; padding: .08in .2in; background: #141414; color: #fff; }
.fsx .fs-brand img { height: .78in; width: auto; }
.fsx .fs-name { display: flex; flex-direction: column; line-height: 1.05; }
.fsx .fs-name b { font: italic 800 17pt 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; color: #D4A72C; letter-spacing: .02em; }
.fsx .fs-name span { font: 600 8pt Barlow, Arial, sans-serif; text-transform: uppercase; letter-spacing: .32em; margin-top: 2pt; }
.fsx .fs-name i { font: 600 6.5pt Barlow, Arial, sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .3em; color: #cfc6b3; margin-top: 3pt; }
.fsx .fs-band { flex: 1; display: flex; align-items: center; justify-content: flex-end; margin: .15in 0; padding: 0 .25in; background: #D4A72C; }
.fsx .fs-contact { display: flex; flex-wrap: wrap; gap: 6pt .3in; font: 600 9pt Barlow, Arial, sans-serif; color: #141414; }
.fsx .fs-contact span { display: inline-flex; align-items: center; gap: 6pt; }
.fsx .fs-ic { width: 11pt; height: 11pt; flex: none; }
.fsx .fs-hd.big { height: auto; margin-bottom: .35in; }
.fsx .big .fs-brand { display: block; text-align: center; width: 3.3in; padding: .3in .15in .28in; }
.fsx .big .fs-brand img { display: block; height: 1.4in; margin: 0 auto .1in; }
.fsx .big .fs-name { align-items: center; }
.fsx .big .fs-name b { font-size: 20pt; white-space: nowrap; }
.fsx .big .fs-name span { font-size: 9.5pt; }
.fsx .big .fs-band { margin: .5in 0 .65in; justify-content: flex-start; padding-left: .5in; }
.fsx .big .fs-contact { flex-direction: column; gap: 7pt; font-size: 12pt; }
.fsx .big .fs-ic { width: 13pt; height: 13pt; }
.fsx .fs-cover-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .5in; padding: 0 .1in; }
.fsx .fs-cover-title h1 { font: italic 800 34pt/1 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; margin: 0; }
.fsx .fs-period { font: 600 13pt Barlow, Arial, sans-serif; margin: 4pt 0 14pt; padding-bottom: 10pt; border-bottom: 2.5pt solid #D4A72C; }
.fsx .fs-cover-title dl { display: grid; grid-template-columns: 1.2in 1fr; gap: 5pt 10pt; margin: 0; font-size: 10pt; }
.fsx .fs-cover-title dt { font-weight: 700; text-transform: uppercase; font-size: 8pt; letter-spacing: .08em; color: #6b6b6b; padding-top: 2pt; }
.fsx .fs-cover-title dd { margin: 0; }
.fsx .fs-toc { border-left: 3pt solid #D4A72C; padding: 2pt 0 2pt .25in; }
.fsx .fs-toc h2 { font: 700 9pt Barlow, Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #6b6b6b; margin: 0 0 8pt; }
.fsx .fs-toc ol { margin: 0; padding-left: 16pt; font-size: 10.5pt; }
.fsx .fs-toc li { margin-bottom: 5pt; }
.fsx .fs-title h1 { font: italic 800 20pt/1.05 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; margin: 0; }
.fsx .fs-title p { margin: 3pt 0 12pt; font-size: 9pt; color: #555; }
.fsx .fs-t { width: 100%; border-collapse: collapse; }
.fsx .fs-t th { background: #141414; color: #fff; font: 700 8pt Barlow, Arial, sans-serif; text-transform: uppercase; letter-spacing: .07em; padding: 5pt 8pt; text-align: left; border-bottom: 2pt solid #D4A72C; }
.fsx .fs-t .n { width: 1.45in; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fsx .fs-t.c4 .n { width: 1.15in; }
.fsx .fs-t td { padding: 3pt 8pt; border-bottom: .5pt solid #e4ded3; vertical-align: top; }
.fsx .fs-t tr { break-inside: avoid; }
.fsx .fs-t .d1 { padding-left: 22pt; } .fsx .fs-t .d2 { padding-left: 36pt; } .fsx .fs-t .d3 { padding-left: 50pt; }
.fsx .fs-sec td { background: #F7EFD8; font: 700 8pt Barlow, Arial, sans-serif; text-transform: uppercase; letter-spacing: .07em; border-left: 3pt solid #D4A72C; padding-top: 4pt; padding-bottom: 4pt; }
.fsx .fs-headrow td { font-weight: 600; border-bottom: 0; }
.fsx .fs-sub td { font-weight: 600; }
.fsx .fs-sub td.n { border-top: .75pt solid #8a8a8a; }
.fsx .fs-tot td { font-weight: 700; border-top: 1pt solid #141414; }
.fsx .fs-tot td:first-child, .fsx .fs-grand td:first-child { text-transform: uppercase; letter-spacing: .03em; }
.fsx .fs-grand td { font-weight: 800; border-top: 1pt solid #141414; border-bottom: 3pt double #141414; background: #fbf8f1; }
.fsx .fs-gap td { border: 0; height: 6pt; padding: 0; }
.fsx .fs-sign { margin-top: .4in; font-size: 9pt; break-inside: avoid; }
.fsx .fs-sign p { margin: 0 0 .1in; font-weight: 600; }
.fsx .fs-sign-row { display: flex; gap: .5in; }
.fsx .fs-sign-row div { flex: 1; font-size: 8pt; color: #555; text-transform: uppercase; letter-spacing: .06em; }
.fsx .fs-sign-row span { display: block; height: .4in; border-bottom: 1pt solid #141414; margin-bottom: 3pt; }
.fsx .fs-notes { columns: 2; column-gap: .4in; }
.fsx .fs-note { break-inside: avoid; margin-bottom: .14in; }
.fsx .fs-note h3 { font: 700 10pt Barlow, Arial, sans-serif; margin: 0 0 4pt; }
.fsx .fs-note p { margin: 0 0 5pt; font-size: 9pt; }
.fsx .fs-note .fs-t { margin-top: 4pt; font-size: 9pt; }
.fsx .fs-note .fs-t .n { width: 1.05in; }

/* ---------- Official receipts (receipts.js): on screen and printed ---------- */
.rc-wrap { overflow-x: auto; margin: 4px 0 6px; }
.rc-preview { background: #fff; color: #141414; width: 8.5in; max-width: none; padding: .5in .6in .45in; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08); box-sizing: border-box; }
@media (max-width: 860px) { .rc-preview { zoom: .44; } }
.rcdoc { position: relative; color: #141414; font: 400 9.5pt/1.4 Barlow, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rcdoc .fs-brand { width: 3.1in; }
.rcdoc .fs-band { justify-content: center; padding: 0 .2in; }
.rcdoc .fs-contact { flex-direction: column; gap: 3pt; font-size: 8.5pt; }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .3in; margin: .05in 0 .2in; }
.rc-top h1 { font: italic 800 26pt/1 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; margin: 0; }
.rc-top p { margin: 3pt 0 0; color: #6b6b6b; font-size: 9pt; }
.rc-meta { border-collapse: collapse; font-size: 9pt; min-width: 2.9in; }
.rc-meta th { text-align: left; font-weight: 700; text-transform: uppercase; font-size: 7.5pt; letter-spacing: .08em; color: #6b6b6b; padding: 3pt 10pt 3pt 0; }
.rc-meta td { text-align: right; padding: 3pt 0; }
.rc-meta th, .rc-meta td { border-bottom: .5pt solid #e4ded3; }
.rc-meta tr:last-child th, .rc-meta tr:last-child td { border-bottom: 0; }
.rc-meta tr:first-child td { font-size: 11pt; }
.rc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: .25in; margin-bottom: .2in; }
.rc-box { border-left: 3pt solid #D4A72C; background: #F7EFD8; padding: 7pt 10pt; display: flex; flex-direction: column; gap: 2pt; }
.rc-box h3 { margin: 0 0 3pt; font: 700 7.5pt Barlow, Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #6b6b6b; }
.rc-box strong { font-size: 11pt; }
.rcdoc .fs-t { width: 100%; border-collapse: collapse; }
.rcdoc .fs-t th { background: #141414; color: #fff; font: 700 8pt Barlow, Arial, sans-serif; text-transform: uppercase; letter-spacing: .07em; padding: 5pt 8pt; text-align: left; border-bottom: 2pt solid #D4A72C; }
.rcdoc .fs-t .n { width: 1.6in; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcdoc .fs-t td { padding: 5pt 8pt; border-bottom: .5pt solid #e4ded3; }
.rcdoc .fs-grand td { font-weight: 800; font-size: 11pt; text-transform: uppercase; border-top: 1pt solid #141414; border-bottom: 3pt double #141414; background: #fbf8f1; }
.rc-words { margin: 10pt 0 0; font-size: 9.5pt; }
.rc-notes, .rc-voidnote { margin: 6pt 0 0; font-size: 9pt; }
.rc-voidnote { color: #9b1c1c; }
.rc-sign { display: flex; gap: .5in; margin-top: .45in; break-inside: avoid; }
.rc-sign div { font-size: 7.5pt; color: #555; text-transform: uppercase; letter-spacing: .06em; }
.rc-sign div:first-child { flex: 2; } .rc-sign div:last-child { flex: 1; }
.rc-sign span { display: block; height: .35in; border-bottom: 1pt solid #141414; margin-bottom: 3pt; }
.rc-fine { margin: .3in 0 0; padding-top: 6pt; border-top: .5pt solid #d9d4cc; font-size: 7.5pt; color: #6b6b6b; }
.rc-void { position: absolute; left: 0; right: 0; top: 3.2in; text-align: center; font: 800 110pt/1 'Barlow Condensed', Arial, sans-serif; color: rgba(155, 28, 28, .16); transform: rotate(-24deg); pointer-events: none; letter-spacing: .1em; }

/* ---------- logos (branding.js) and photos in tables ---------- */
.team-logo { flex: none; object-fit: contain; display: block; }
.team-logo.md { width: 56px; height: 56px; }
.team-logo.lg { width: 84px; height: 84px; }
.team-logo.sm { width: 28px; height: 28px; }
.logo-row { align-items: center; }
.logo-tile { width: 76px; height: 76px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.logo-tile img { max-width: 76px; max-height: 76px; object-fit: contain; }
.name-cell { display: inline-flex; align-items: center; gap: 10px; }
.av.sm { width: 28px; height: 28px; font-size: 10px; }

/* Media: who's doing a post, made easy to see */
.soc-who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; margin: 4px 0 2px; border-radius: 12px; background: var(--panel2); border-left: 4px solid var(--gold, #D4A72C); }
.soc-who .lbl { margin: 0; }
.soc-who-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.who-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.soc-who-line { display: block; color: var(--ink); margin-top: 2px; }
.soc-who-line strong { font-weight: 800; }
.team-logo.card-logo { width: 96px; height: 96px; }
.team-logo.page-logo { width: 168px; height: 168px; }
.team-logo.xl { width: 120px; height: 120px; }
.fx-us { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-logo.fx-logo { width: 44px; height: 44px; }
@media (max-width: 600px) {
  .team-logo.card-logo { width: 80px; height: 80px; }
  .team-logo.page-logo { width: 128px; height: 128px; }
  .team-logo.xl { width: 96px; height: 96px; }
  .logo { width: 75px; height: 75px; }
  .top-in { padding-top: 6px; padding-bottom: 8px; }
}

/* Attendance */
.pill.att-came { background: var(--credit-bg, rgba(28,122,67,.12)); color: var(--credit); }
.pill.att-noshow { background: var(--owed-bg); color: var(--owed); }
.pill.att-no { color: var(--ink2); }
.pill.att-none { color: var(--faint); background: transparent; border: 1px dashed var(--rule); }
.pill.att-yes { background: var(--gold-bg); color: var(--gold); }
.att-counts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.att-counts strong { margin-left: 4px; }
.att-row .t { text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; }
.att-row .btn { flex: none; }
.att-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.att-big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 600px) { .att-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roster-row { gap: 12px; }
.roster-teams { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-nums { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.roster-nums strong { font-size: 18px; }

/* ---------- Terms, Privacy, Fees (update 47) ---------- */
.check.agree { align-items: flex-start; line-height: 1.4; }
.check.agree input { flex: none; margin-top: 1px; }
.legal-links { text-align: center; margin: 4px 0 0; }
.legal-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; color: var(--ink2); margin: -4px 0 4px; }
.legal-nav a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: none; }
.legal h2 { font-size: 19px; margin-top: 10px; }

/* ---------- Accessibility (update 47) ---------- */
:root[data-theme="light"] .req { color: var(--maroon); }
:root[data-theme="light"] .live-note { color: #B42323; }
/* A clear outline on whatever the keyboard is on. */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible,
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* "Skip to content": hidden until the keyboard reaches it. */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--gold-fill); color: #1B1408; font-weight: 700; border: 0; }
.skip:focus { top: 8px; }
#main:focus { outline: none; }
/* Respect "reduce motion" on the phone or computer. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   STADIUM LOOK (update 48)
   Dark = "Stadium night", light = "Stadium by day". Same layout, same
   features — only colours, shapes, fonts and motion change. Everything
   below overrides the older rules above, so removing this block (and
   js/motion.js) puts the old look back.
   ===================================================================== */
:root {
  --bg: #0E0D0E; --bg2: #141213; --panel: #181617; --panel2: #242123;
  --rule: #2B2729; --rule2: #3A3436; --topline: #1F1C1E;
  --ink: #FFFFFF; --ink2: #E7DEE1; --muted: #B4ABAF; --faint: #A39A9E;
  --cream: #FFF3DC; --sel-bg: #3A3436;
  --hero-bg: #8D2540; --ball: #B3122E;
  --disp: "Barlow Condensed", Inter, 'Segoe UI', system-ui, sans-serif;
  --shadow: none;
}
:root[data-theme="light"] {
  --bg: #F7F4EE; --bg2: #FFFFFF; --panel: #FFFFFF; --panel2: #EEE8DF;
  --rule: #E4DED5; --rule2: #CFC6BB; --topline: #E4DED5;
  --ink: #16120F; --ink2: #3A3336; --muted: #5B524D; --faint: #6D6468;
  --gold: #8A5A00; --cream: #16120F; --sel-bg: #3A3336;
  --shadow: 0 1px 2px rgba(22, 18, 15, .06);
}

/* big headings and numbers: the scoreboard font */
.hd, .h1, .h2, .big, .tile .v, .date-tag, .fx-date b, #dlgForm h2 { font-family: var(--disp); font-weight: 800; letter-spacing: 0; }
.h1 { font-size: 36px; line-height: 1.05; }
.h2 { font-size: 27px; line-height: 1.05; }
.big { font-size: 40px; }
.tile .v { font-size: 38px; line-height: 1; }
.fx-date b { font-size: 34px; }
#dlgForm h2 { font-size: 26px; }
.bname { font-weight: 800; }

/* surfaces */
.card { border-radius: 20px; border-color: var(--rule); box-shadow: var(--shadow); }
.tile { border-radius: 18px; box-shadow: var(--shadow); }
.tablewrap { border-radius: 18px; }
.box { border-radius: 14px; }
dialog { border-radius: 24px; }
#toast { border-radius: 16px; }
.notice { border-radius: 16px; }

/* buttons: pill shaped, gold is the main action */
.btn { border-radius: 24px; transition: transform .12s ease-out, background-color .2s, border-color .2s, color .2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn.primary { background: var(--gold-fill); border-color: var(--gold-fill); color: #1B1408; }
.btn.primary:hover { background: #FFC85A; border-color: #FFC85A; color: #1B1408; }
.btn.sm { border-radius: 20px; }
.vbtn { border-radius: 24px; transition: transform .12s ease-out, background-color .2s, border-color .2s; }
.vbtn:active:not(:disabled) { transform: scale(.96); }
.chip { border-radius: 20px; transition: transform .12s ease-out, background-color .2s, border-color .2s; }
.chip:active { transform: scale(.96); }
.seg { border-radius: 16px; }
.seg button { border-radius: 12px; }
.subnav a { border-radius: 999px; }
.in { border-radius: 14px; }
.sel-sm { border-radius: 10px; }

/* top menu (computer): a red ball under the page you're on */
.tnav a { position: relative; }
.tnav a.on { background: transparent; color: var(--ink); }
.tnav a.on::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ball); }
/* bottom tab bar (phone): the ball sits above the tab you're on and rolls to the next one */
.bnav { background: var(--bg); border-top-color: var(--rule); }
:root[data-theme="light"] .bnav { background: #FFFFFF; }
.sx-nball { position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ball); box-shadow: inset 0 0 0 2px #8E0F25; pointer-events: none; opacity: 0; }
.sx-nball::before { content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px; width: 1.5px; margin-left: -.75px; background: #F5E6C8; border-radius: 1px; }
.sx-nball.on { opacity: 1; }
.sx-nball.roll { transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }

/* a new page rises in */
#main.sx-enter > * { animation: sxRise .42s cubic-bezier(.2, .8, .2, 1) both; }
#main.sx-enter > *:nth-child(2) { animation-delay: 50ms; }
#main.sx-enter > *:nth-child(3) { animation-delay: 100ms; }
#main.sx-enter > *:nth-child(4) { animation-delay: 150ms; }
#main.sx-enter > *:nth-child(n+5) { animation-delay: 200ms; }
@keyframes sxRise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* a ball rolls along under the header when you change page */
.sx-roll { position: fixed; left: 0; z-index: 30; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--ball); box-shadow: inset 0 0 0 2px #8E0F25; pointer-events: none; animation: sxRoll .75s cubic-bezier(.45, .05, .55, .95) both; }
.sx-roll::before { content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px; width: 1.5px; margin-left: -.75px; background: #F5E6C8; border-radius: 1px; }
@keyframes sxRoll { from { transform: translateX(-30px) rotate(0); } to { transform: translateX(calc(100vw + 30px)) rotate(1080deg); } }

/* voting: "Yes" = the bat hits the ball for SIX; "No" = the ball hits the stumps */
.sx-fx { position: fixed; z-index: 60; width: 60px; height: 70px; pointer-events: none; }
.sx-fx .cap { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); font: 800 34px/1 var(--disp); color: var(--gold-fill); text-shadow: 0 2px 0 #1B1408; white-space: nowrap; animation: sxCap 1.5s .5s cubic-bezier(.2, .8, .2, 1.3) both; }
.sx-fx.out .cap { color: var(--owed); text-shadow: none; }
@keyframes sxCap { 0% { transform: translate(-50%, 10px) scale(.4); opacity: 0; } 25% { transform: translate(-50%, -6px) scale(1.1); opacity: 1; } 75% { transform: translate(-50%, -10px) scale(1); opacity: 1; } 100% { transform: translate(-50%, -20px); opacity: 0; } }
.sx-stumps { position: absolute; left: 22px; bottom: 0; width: 34px; height: 42px; animation: sxFade 1.9s both; }
.sx-stumps .s { position: absolute; bottom: 0; width: 4px; height: 36px; border-radius: 2px; background: #EDE6DA; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); transform-origin: 50% 100%; }
.sx-stumps .s:nth-child(1) { left: 0; } .sx-stumps .s:nth-child(2) { left: 15px; } .sx-stumps .s:nth-child(3) { left: 30px; }
.sx-stumps .bl { position: absolute; top: 2px; width: 14px; height: 4px; border-radius: 2px; background: #F2B33D; }
.sx-stumps .bl.l { left: 1px; } .sx-stumps .bl.r { left: 17px; }
.sx-ball { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #B3122E; box-shadow: inset 0 0 0 2px #8E0F25; }
.sx-ball::before { content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px; width: 1.5px; margin-left: -.75px; background: #F5E6C8; border-radius: 1px; }
.sx-bat { position: absolute; left: 0; top: 0; width: 11px; height: 52px; transform-origin: 5.5px 3px; animation: sxSwing 1.4s cubic-bezier(.3, .1, .2, 1) both; }
.sx-bat::before { content: ""; position: absolute; left: 3px; top: 0; width: 5px; height: 17px; background: #2B2427; border-radius: 3px; box-shadow: inset 0 -5px 0 #8D2540; }
.sx-bat::after { content: ""; position: absolute; left: 0; top: 15px; width: 11px; height: 37px; background: #E8D3A0; border-radius: 2px 2px 6px 6px; box-shadow: inset 3px 0 0 #CDB57E, 0 2px 3px rgba(0, 0, 0, .25); }
.sx-fx.six .sx-ball { left: -1px; top: 40px; animation: sxSix 1.4s cubic-bezier(.3, .2, .3, 1) both; }
.sx-fx.out .sx-ball { left: 30px; bottom: 5px; z-index: 2; animation: sxBowled 1.2s cubic-bezier(.4, .1, .6, 1) both; }
.sx-fx.out .sx-stumps .s:nth-child(1) { animation: sxStA .7s .42s cubic-bezier(.2, .8, .2, 1) both; }
.sx-fx.out .sx-stumps .s:nth-child(2) { animation: sxStB .7s .42s cubic-bezier(.2, .8, .2, 1) both; }
.sx-fx.out .sx-stumps .s:nth-child(3) { animation: sxStC .7s .42s cubic-bezier(.2, .8, .2, 1) both; }
.sx-fx.out .sx-stumps .bl.l { animation: sxBailL .9s .42s cubic-bezier(.3, .7, .4, 1) both; }
.sx-fx.out .sx-stumps .bl.r { animation: sxBailR .9s .42s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes sxFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sxSwing { 0%, 28% { transform: rotate(-80deg); opacity: 1; } 42% { transform: rotate(0); } 62% { transform: rotate(130deg); } 85% { transform: rotate(130deg); opacity: 1; } 100% { transform: rotate(130deg); opacity: 0; } }
@keyframes sxSix { 0% { transform: translate(-200px, 6px) rotate(0); opacity: 0; } 8% { opacity: 1; } 41% { transform: translate(0, 0) rotate(400deg); } 70% { transform: translate(-150px, -170px) rotate(800deg) scale(.85); } 100% { transform: translate(-300px, -320px) rotate(1200deg) scale(.4); opacity: 0; } }
@keyframes sxBowled { 0% { transform: translate(-220px, -40px) rotate(0); opacity: 0; } 10% { opacity: 1; } 40% { transform: translate(0, 0) rotate(540deg); } 60% { transform: translate(-12px, -3px) rotate(600deg); } 90% { transform: translate(-20px, 0) rotate(640deg); opacity: 1; } 100% { transform: translate(-20px, 0) rotate(640deg); opacity: 0; } }
@keyframes sxStA { 40% { transform: rotate(14deg); } 100% { transform: rotate(8deg); } }
@keyframes sxStB { 40% { transform: rotate(22deg) translateX(2px); } 100% { transform: rotate(14deg); } }
@keyframes sxStC { 40% { transform: rotate(30deg) translateX(3px); } 100% { transform: rotate(20deg); } }
@keyframes sxBailL { 35% { transform: translate(-16px, -30px) rotate(-150deg); } 100% { transform: translate(-30px, 40px) rotate(-320deg); opacity: 0; } }
@keyframes sxBailR { 35% { transform: translate(18px, -34px) rotate(170deg); } 100% { transform: translate(34px, 40px) rotate(340deg); opacity: 0; } }

/* switching light/dark: the new look sweeps in from the top-right corner */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: sxSweep .7s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes sxSweep { from { clip-path: circle(0% at var(--sx-x, 92%) var(--sx-y, 4%)); } to { clip-path: circle(150% at var(--sx-x, 92%) var(--sx-y, 4%)); } }

@media (prefers-reduced-motion: reduce) {
  #main.sx-enter > *, .sx-roll, .sx-fx, .sx-fx *, ::view-transition-new(root) { animation: none !important; }
  .sx-roll, .sx-fx { display: none !important; }
  .sx-nball.roll, .btn, .vbtn, .chip { transition: none !important; }
}

/* =====================================================================
   Update 49: fielding plan, scoreboard countdown, password stumps
   ===================================================================== */
td.nowrap { white-space: nowrap; }

/* password strength as stumps: one stump per level, bails on top when strong */
.meter-row { display: flex; align-items: flex-end; gap: 12px; }
.meter-row .meter { flex: 1; margin-bottom: 4px; }
.pw-stumps { position: relative; width: 30px; height: 30px; flex: none; }
.pw-stumps i { position: absolute; bottom: 0; width: 4px; height: 0; border-radius: 2px; background: var(--ink2); transition: height .35s cubic-bezier(.3, 1.4, .5, 1); }
.pw-stumps i:nth-child(1) { left: 1px; } .pw-stumps i:nth-child(2) { left: 13px; } .pw-stumps i:nth-child(3) { left: 25px; }
.pw-stumps b { position: absolute; top: -3px; width: 11px; height: 4px; border-radius: 2px; background: var(--gold-fill); opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.pw-stumps b.l { left: 2px; } .pw-stumps b.r { left: 15px; }
.pw-stumps[data-level="x"] i:nth-child(1) { height: 9px; }
.pw-stumps[data-level="1"] i:nth-child(1), .pw-stumps[data-level="2"] i:nth-child(-n+2), .pw-stumps[data-level="3"] i, .pw-stumps[data-level="4"] i { height: 28px; }
.pw-stumps[data-level="3"] b, .pw-stumps[data-level="4"] b { opacity: 1; transform: none; }

/* scoreboard countdown on Home: black tiles, gold numbers (both looks) */
.countdown-card { text-decoration: none; color: var(--ink); gap: 10px; }
.sb-tiles { display: flex; gap: 8px; perspective: 600px; }
.sb-tile { background: #0B0A0B; border-radius: 10px; min-width: 70px; padding: 8px 10px 6px; display: flex; flex-direction: column; align-items: center; box-shadow: inset 0 0 0 2px #000, 0 2px 0 rgba(0, 0, 0, .25); position: relative; }
.sb-tile b { font: 800 44px/1 var(--disp); color: #F2B33D; font-variant-numeric: tabular-nums; animation: sbFlip .55s cubic-bezier(.2, .8, .2, 1) both; }
.sb-tile b.tick { animation: sbFlip .5s cubic-bezier(.2, .8, .2, 1) both; }
.sb-tile small { font-size: 12px; font-weight: 700; color: #D9CFD3; text-transform: uppercase; letter-spacing: .06em; }
.sb-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 1px; background: rgba(255, 255, 255, .08); }
.sb-tile:nth-child(2) b { animation-delay: 80ms; } .sb-tile:nth-child(3) b { animation-delay: 160ms; }
@keyframes sbFlip { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* fielding plan */
.fp-link { text-decoration: none; color: var(--gold); font-weight: 700; padding: 12px 0 2px; border-top: 1px solid var(--panel2); gap: 10px; }
.fp-card { padding: 12px; }
.fground { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; background: #17502F; box-shadow: inset 0 0 0 4px #2E7A4C; overflow: visible; }
.f-ring { position: absolute; left: 14%; right: 14%; top: 14%; bottom: 14%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); pointer-events: none; }
.f-pitch { position: absolute; left: 50%; top: 35%; width: 7%; height: 29%; margin-left: -3.5%; background: #C8B78A; border-radius: 2px; pointer-events: none; }
.f-legend { display: flex; justify-content: space-between; max-width: 560px; width: 100%; margin: 2px auto 0; font: 700 13px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.f-bat { position: absolute; left: 50%; top: 38%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #111; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.fspot { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.fspot i { width: 12px; height: 12px; border-radius: 50%; background: #E2463F; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); transition: transform .2s; }
.fspot:hover i, .fspot.ready i { transform: scale(1.35); }
.fspot.ready i { animation: fpPulse 1.2s ease-in-out infinite; }
.fspot:focus-visible { outline: 2px solid #F2B33D; outline-offset: 0; }
@keyframes fpPulse { 50% { box-shadow: 0 0 0 6px rgba(242, 179, 61, .45); } }
.fground { container-type: inline-size; }
.fmark { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 0; padding: 0; background: transparent; z-index: 2; animation: fpPop .35s cubic-bezier(.2, .8, .2, 1.3) both; }
button.fmark { cursor: pointer; }
.fm-dot { width: 36px; height: 36px; border-radius: 50%; background: #8D2540; box-shadow: 0 0 0 3px #F2B33D; color: #fff; font: 800 13px Inter, sans-serif; display: flex; align-items: center; justify-content: center; }
.fmark.on .fm-dot { background: #F2B33D; color: #1B1408; box-shadow: 0 0 0 3px #fff; }
.fm-lab { position: absolute; transform: translateX(-50%); background: rgba(0, 0, 0, .78); color: #fff; font: 700 12px/16px Inter, sans-serif; padding: 0 6px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.fm-lab.below { top: calc(100% + 2px); }
.fm-lab.above { bottom: calc(100% + 2px); }
.fmark:focus-visible { outline: 2px solid #F2B33D; outline-offset: 2px; border-radius: 50%; }
@keyframes fpPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.fp-row .grow { min-width: 0; }
.fp-row.on { background: var(--gold-bg); border-radius: 12px; }
.fp-sel { display: block; margin-top: 6px; max-width: 100%; min-height: 40px; }
.fp-target { width: 44px; padding: 0; flex: none; }
.fp-warn div + div { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .sb-tile b, .fmark, .fspot.ready i { animation: none !important; }
  .pw-stumps i, .pw-stumps b { transition: none !important; }
}

/* ---------- update 49b: words stay inside their buttons and boxes ---------- */
.cd-row { display: flex; flex-direction: column; gap: 8px; }
.cd-row .sb-tile { min-width: 64px; }
.cd-row .sb-tile b { font-size: 38px; }
/* segmented choices: room at the sides, never squashed below their words on a computer */
.seg button { padding: 0 14px; }
.seg-sm button { padding: 0 12px; }
@media (min-width: 421px) { .seg button { min-width: max-content; } .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; } }
@media (max-width: 420px) { .seg button { padding: 4px 8px; } }
/* chips: room at the sides; long words wrap instead of touching the edge */
.chip { padding: 4px 12px; line-height: 1.2; overflow-wrap: anywhere; }
.chip.sm { padding: 0 12px; }
.role-chips .chip { padding: 6px 12px; text-align: left; justify-content: flex-start; }
@media (min-width: 900px) { .chips.four.role-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* little tags (C, VC, WK, Floater) */
.tag { padding: 0 7px; }
/* budget table: "Over by $140.00" fits on a phone */
td.r.num { white-space: nowrap; }
@media (max-width: 420px) { .seg button { min-width: min-content; } .seg { max-width: 100%; } }   /* never narrower than its longest word plus the side room */
.fp-segs .seg { flex: 1 1 280px; }   /* on a phone each choice gets the full width, so the words fit on one line */
.fp-segs .seg button { white-space: nowrap; }

/* ---------- update 51: required details, members list ---------- */
.em-contact { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px 14px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.em-contact legend { padding: 0 6px; font-weight: 600; }
.role-sel { width: 190px; max-width: 100%; }
.cap-mark { font-weight: 700; color: var(--gold); white-space: nowrap; }
.nowrap { white-space: nowrap; }
@media (max-width: 520px) { .em-contact .grid2 { grid-template-columns: 1fr; } }
/* Fielding plan: room between the switches, the field and the player list */
#fpBody { display: flex; flex-direction: column; gap: 18px; }
#fpBody > .cols { gap: 18px; }

/* ---------- Profile › Documents (update 52) ---------- */
.docs .doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.docs .doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.docs .doc-row:last-child { border-bottom: 0; }
.docs .doc-ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-bg); color: var(--gold); }
.docs .doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.docs .doc-main strong { overflow-wrap: anywhere; }
.docs .doc-btns { flex: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.docs .btn.icon-only { width: 34px; padding: 0; justify-content: center; }
.docs .doc-add { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
@media (max-width: 480px) {
  .docs .doc-row { flex-wrap: wrap; }
  .docs .doc-btns { width: 100%; justify-content: flex-start; padding-left: 54px; }
}
.docs .doc-pick, form[data-form=claim] .doc-pick { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1.5px dashed var(--rule2); border-radius: 12px; background: transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.docs .doc-pick:hover, .docs .doc-pick:focus-within, form[data-form=claim] .doc-pick:hover, form[data-form=claim] .doc-pick:focus-within { border-color: var(--gold); background: var(--gold-bg); }
.docs .doc-pick.has, form[data-form=claim] .doc-pick.has { border-style: solid; border-color: var(--gold); }
.docs .doc-pick-ic, form[data-form=claim] .doc-pick-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-bg); color: var(--gold); }
.docs .doc-pick-txt, form[data-form=claim] .doc-pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.docs .doc-pick-name, form[data-form=claim] .doc-pick-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs .doc-pick-btn, form[data-form=claim] .doc-pick-btn { flex: none; pointer-events: none; }
.docs .doc-pick input:focus-visible ~ .doc-pick-btn, form[data-form=claim] .doc-pick input:focus-visible ~ .doc-pick-btn { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Expense claims (update 56) */
.claim-files { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-thumb { width: 88px; height: 88px; padding: 0; border: 1px solid var(--rule2); border-radius: 10px; overflow: hidden; background: var(--card2, transparent); cursor: pointer; }
.claim-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.claim-card .list .kv span:last-child { text-align: right; }
.claim-list .li { align-items: flex-start; }

/* ---------- Equipment (update 04) ---------- */
.eq-table td, .eq-table th { white-space: nowrap; }
.eq-table th .eq-holder { display: block; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); }
.eq-name { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--rule2); text-underline-offset: 3px; }
.eq-cell { background: var(--panel2); border: 1px solid transparent; border-radius: 8px; min-width: 52px; min-height: 36px; padding: 4px 10px; color: var(--ink); font: inherit; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.eq-cell:hover, .eq-cell:focus-visible { border-color: var(--gold); }
.eq-extra { display: block; font-size: 11px; color: var(--owed); font-weight: 600; }
.eq-total { font-weight: 700; }
.eq-total .eq-extra { text-align: right; }
.eq-sel td { background: var(--gold-bg); }
.eq-break { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.eq-big { font: 800 26px Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
.eq-sum { background: var(--gold-bg); }
.eq-hist { padding: 8px 0; }
.team-logo.eq-logo { width: 40px; height: 40px; }
.team-logo.eq-logo-sm { width: 22px; height: 22px; }
.eq-th { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.eq-lbl { display: flex; align-items: center; gap: 6px; }
.eq-who { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eq-who .av.sm { width: 22px; height: 22px; font-size: 9px; }

/* ---------- Club website (website.js) ---------- */
.w-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.w-tabs .chip { min-height: 38px; padding: 0 14px; }
.w-status { gap: 8px; }
.w-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.w-row:first-child { border-top: 0; }
.w-row .grow { min-width: 160px; }
.w-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.w-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.w-thumb.wide { width: 84px; }
.w-thumb.big { width: 120px; height: 90px; }
.w-thumb.logo { object-fit: contain; background: #fff; }
.w-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 10px; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.w-cell { display: flex; flex-direction: column; gap: 6px; background: var(--panel2); border-radius: 12px; padding: 8px; min-width: 0; }
.w-gimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.w-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-cell .w-acts .btn { padding: 0 8px; }
.w-drop { transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: 2px; }
.w-drop.drag { outline-color: var(--gold); background: var(--gold-bg); }
.w-dropbox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px dashed var(--rule2); border-radius: 14px; padding: 12px; }
.w-dropbox.drag { border-color: var(--gold); }
span.w-thumb.w-none, span.w-gimg.w-none { display: inline-flex; align-items: center; justify-content: center; }
.w-cell { position: relative; }
.w-cell.picked { outline: 3px solid var(--gold); }
.w-pick { position: absolute; top: 12px; left: 12px; z-index: 1; width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.w-pick input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.w-bulk { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; background: var(--gold-bg); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px; }
.w-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: stretch; }
.w-player { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 12px; border-radius: 14px; background: var(--panel2); }
.w-pname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w-pname strong { overflow-wrap: anywhere; }
.w-pacts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.w-thumb.square { width: 56px; height: 56px; border-radius: 50%; }
.w-thumb.square.av { display: inline-flex; align-items: center; justify-content: center; background-size: cover; background-position: center; color: #fff; font-weight: 700; }
.w-star.on { background: var(--gold-fill); color: #1B1408; border-color: var(--gold-fill); }
