:root {
  color-scheme: light;
  --ink: #16232b;
  --ink-2: #4b5b65;
  --ink-3: #7c8a92;
  --paper: #f3f5f4;
  --surface: #ffffff;
  --line: #d6dedb;
  --line-2: #e7ecea;
  --link: #1f5fa6;
  --ok: #276f44;
  --ok-bg: #e2f1e7;
  --warn: #8f5a0c;
  --warn-bg: #fbefd8;
  --bad: #a3392a;
  --bad-bg: #f8e3df;
  --muted-bg: #e9edec;
  --focus: #f0b429;
  --jito-purple: #393186;
  --jito-green: #009845;
  --jito-yellow: #fcd800;
  --jito-red: #e41d22;
  --brand: var(--jito-purple);
  --r: 6px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--cond); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.005em; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.2em; }
p { margin: 0 0 .8em; }
code { font-size: .9em; background: var(--muted-bg); padding: 1px 5px; border-radius: 3px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sub { color: var(--ink-2); font-size: .92rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 22px; padding-bottom: 64px; }
main.narrow { max-width: 620px; }
.ok-t { color: var(--ok); font-weight: 600; }
.warn-t { color: var(--warn); font-weight: 600; }
.bad-t { color: var(--bad); }

/* header */
.top { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.stripe { display: flex; height: 5px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--jito-purple); }
.stripe i:nth-child(2) { background: var(--jito-green); }
.stripe i:nth-child(3) { background: var(--jito-yellow); }
.stripe i:nth-child(4) { background: var(--jito-red); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; border-left: 1px solid var(--line); padding-left: 12px; }
.brand-t b { font: 700 1.25rem var(--cond); }
.brand-t small { font-size: .78rem; color: var(--ink-2); }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav a, .linkish { color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 4px; font: 500 .95rem var(--font); background: none; border: 0; cursor: pointer; }
.top nav a.on { color: var(--brand); font-weight: 600; box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.top nav a:hover, .linkish:hover { color: var(--ink); }
.login-logo { display: block; height: 50px; width: auto; margin: 12px 0 22px; }
.top nav form { margin: 0; }

/* page structure */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.count { font-weight: 500; color: var(--ink-3); }
.crumb { margin: 0 0 4px; font-size: .9rem; }
.crumb a { color: var(--ink-2); }
.section { margin-top: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
details.panel > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary h2 { margin: 0; }
details.panel > summary::after { content: '+'; margin-left: auto; font: 600 1.4rem var(--cond); color: var(--ink-3); }
details.panel[open] > summary::after { content: '–'; }
details.panel[open] > summary { margin-bottom: 14px; }
details > summary { cursor: pointer; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; align-items: start; }
.stack > * + * { margin-top: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.row-actions form { margin: 0; }
.note { background: #e8f0f8; border-left: 4px solid var(--link); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: .95rem; }
.empty { text-align: left; padding: 28px 22px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); margin-bottom: 16px; }
.empty h2 { margin-bottom: .3em; }

/* flash + pills */
.flash { padding: 11px 14px; border-radius: 0 var(--r) var(--r) 0; margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--ok-bg); border-left: 4px solid var(--ok); }
.flash.err { background: var(--bad-bg); border-left: 4px solid var(--bad); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.muted { background: var(--muted-bg); color: var(--ink-2); }

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field small { color: var(--ink-3); font-size: .82rem; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 9px 11px; width: 100%; min-height: 42px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(240, 180, 41, .45); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--ink); }
input[readonly] { background: var(--paper); }
textarea { resize: vertical; }
/* password box with its Show / Hide button */
.pw { position: relative; display: block; }
.pw input { padding-right: 68px; }
.pw input::-ms-reveal { display: none; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 4px 10px; border: 0; border-radius: 4px; background: none; color: var(--brand); font: 600 .88rem var(--font); cursor: pointer; }
.pw-toggle:hover { background: rgba(57, 49, 134, .08); }
.pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(240, 180, 41, .45); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
fieldset > .field + *, fieldset > .grid2 + *, fieldset > * + .field, fieldset > * + .grid2 { margin-top: 14px; }
legend { font: 600 1.3rem var(--cond); padding: 0; margin-bottom: 10px; }
.q { font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .95rem var(--font); padding: 9px 15px; min-height: 42px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--r); cursor: pointer; text-decoration: none; line-height: 1.2; text-align: center; }
.btn:hover { background: rgba(22, 35, 43, .06); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #2c2669; }
.btn.ghost { border-color: var(--line); }
.btn.danger { color: var(--bad); border-color: currentColor; }
.btn.danger.ghost { border-color: var(--line); }
.btn.small { padding: 5px 10px; min-height: 34px; font-size: .86rem; }
.btn.big { width: 100%; min-height: 52px; font-size: 1.08rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* segmented choices */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label, .seg button { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg button { display: inline-block; padding: 8px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 500 .93rem var(--font); cursor: pointer; color: var(--ink); }
.seg input:checked + span, .seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .85rem; padding: 10px 12px; border-bottom: 1.5px solid var(--line); background: #fafbfb; white-space: nowrap; }
.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data tr[hidden] { display: none; }
.data select { min-width: 180px; padding: 6px 8px; min-height: 36px; }
form.inline { margin: 0; }
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mini-actions form { margin: 0; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.filter-bar input[type=search] { max-width: 300px; }

/* dashboard */
.next { display: grid; grid-template-columns: 200px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 8px 0 16px; }
.next-date { background: var(--brand); color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.next-date .d { font: 700 3.1rem/0.95 var(--cond); white-space: nowrap; }
.next-date .w { font: 500 1.05rem var(--cond); opacity: .85; margin-top: 6px; }
.next-body { padding: 18px 20px; }
.next-body h2 a { color: inherit; text-decoration: none; }
.bar { margin: 8px 0; }
.bar-label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 4px; }
.bar-label span:last-child { color: var(--ink-2); }
.bar-track { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; }

/* live slot board */
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.slot-board th, .slot-board td { vertical-align: top; }
.slot-board thead th { white-space: nowrap; }
.slot-board tbody th { text-align: left; font-weight: 400; white-space: nowrap; }
.sb-sport { display: block; font: 600 1.1rem var(--cond); border-left: 5px solid var(--c); padding-left: 8px; }
.slot-board tbody th .sub { padding-left: 13px; }
.sb-cell { min-width: 120px; }
.sb-n { display: block; font-size: .9rem; color: var(--ink-2); }
.sb-n b { font: 700 1.35rem var(--cond); color: var(--ink); }
.sb-left { display: block; font-size: .8rem; color: var(--ok); font-weight: 600; }
.sb-cell.nearly .sb-left { color: var(--warn); }
.sb-cell.full { background: var(--bad-bg); }
.sb-cell.full .sb-left { color: var(--bad); }
.meter { display: block; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; }
.slot-board tfoot td, .slot-board tfoot th { font-size: .9rem; color: var(--ink-2); border-top: 1.5px solid var(--line); }

/* event page */
.tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 46px; position: relative; font-size: .9rem; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 700 .95rem var(--cond); color: var(--ink-3); }
.steps li strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.steps li.done::before { content: '✓'; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done strong { color: var(--ink-2); }
.steps li.now { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--focus); }
.steps li.now::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.stats div { background: var(--surface); padding: 12px 14px; }
.stats b { display: block; font: 700 2rem/1 var(--cond); }
.stats span { color: var(--ink-2); font-size: .88rem; }
.copybox { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.copybox input { flex: 1 1 260px; }
details textarea { margin: 10px 0; font-size: .92rem; }
.sports-editor { display: grid; gap: 10px; }
.sport-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fafbfb; }
.sports-editor > .btn { justify-self: start; }
.lineup-actions .sub { margin: 10px 0 0; }
.wl { margin: 0; padding-left: 22px; }
.wl li { padding: 3px 0; }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.queue { list-style: none; padding: 0; margin: 0; }
.queue li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.queue li.sent { opacity: .45; }
.queue .preview { margin: 4px 0 0; color: var(--ink-2); font-size: .88rem; max-width: 640px; }
.q-actions { display: flex; gap: 6px; flex-shrink: 0; }
.q-actions form { margin: 0; }
.kv { display: grid; gap: 6px; margin: 0 0 16px; }
.kv div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }
.fb-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr auto auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fafbfb; margin-bottom: 8px; }
.fb-row .check { padding-bottom: 10px; }

/* ===== the court board ===== */
.board { display: grid; gap: 12px; margin-bottom: 18px; }
.slot-row { display: grid; grid-template-columns: 118px 1fr; gap: 12px; }
.slot-time { border-top: 3px solid var(--ink); padding-top: 6px; display: flex; flex-direction: column; }
.slot-time .t { font: 700 1.7rem/1 var(--cond); white-space: nowrap; }
.slot-time .e { font: 500 .95rem var(--cond); color: var(--ink-2); margin-top: 2px; }
.cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.cell { position: relative; background: var(--c); color: #fff; border-radius: 3px; padding: 13px 14px 12px; min-height: 92px; }
.cell::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 1px; pointer-events: none; }
.cell-h { display: flex; justify-content: space-between; align-items: baseline; font: 600 1.15rem var(--cond); position: relative; }
.cell-h .cap { font-size: .95rem; opacity: .85; }
.cell-empty { margin: 8px 0 0; opacity: .75; font-size: .9rem; position: relative; }
.court { position: relative; margin-top: 8px; }
.court + .court { border-top: 1.5px solid rgba(255, 255, 255, .5); padding-top: 8px; }
.court-h { font: 600 .85rem var(--font); opacity: .9; display: flex; gap: 8px; align-items: center; }
.court-warn { background: rgba(0, 0, 0, .28); padding: 0 7px; border-radius: 999px; font-size: .78rem; }
.teams { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4px; }
.team { list-style: none; padding: 0 8px 0 0; margin: 0; min-width: 0; }
.team + .team { border-left: 2px dashed rgba(255, 255, 255, .65); padding: 0 0 0 9px; }
.team-h { font-size: .78rem; opacity: .8; margin-bottom: 2px; }
.chip { font-size: .92rem; line-height: 1.35; padding: 1px 0; overflow-wrap: anywhere; }
.chip b { display: inline-block; min-width: 1.4em; font-size: .8rem; opacity: .9; }
.chip.pending { opacity: .78; }
.chip.hit { background: #fff; color: var(--c); border-radius: 3px; padding: 1px 4px; font-weight: 600; }

/* check-in */
.ci-top { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 8px 0 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ci-top input { max-width: 340px; }
.ci-count { font: 600 1.15rem var(--cond); }
.ci-group h3 { margin: 18px 0 8px; font-size: 1.25rem; }
.ci-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.ci-btn { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 14px 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 7px solid var(--c); border-radius: var(--r); cursor: pointer; font: inherit; color: inherit; min-height: 64px; }
.ci-name { font-weight: 600; font-size: 1.05rem; }
.ci-meta { color: var(--ink-2); font-size: .88rem; }
.ci-state { font-size: .85rem; color: var(--ink-3); }
.ci-row.in .ci-btn { background: var(--ok-bg); border-color: #b9dcc5; border-left-color: var(--c); }
.ci-row.in .ci-state { color: var(--ok); font-weight: 600; }
.ci-row.in .ci-state::before { content: '✓ '; }

/* public pages */
.pub-head { margin: 4px 0 22px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.pub-head .org { font: 600 1.15rem var(--cond); color: var(--ink-2); margin: 0; }
.pub-head h1 { font-size: 2.5rem; margin: 0 0 6px; }
.when { display: flex; flex-direction: column; margin: 0; font-weight: 500; font-size: 1.05rem; }
.when span + span { color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-in { position: relative; display: flex; flex-direction: column; min-height: 84px; justify-content: flex-end; padding: 12px 14px; border: 2px solid var(--line); border-radius: 3px; background: #fff; }
.tile-in b { font: 700 1.35rem var(--cond); }
.tile-in small { color: var(--ink-2); }
.tile-in::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.tile input:checked + .tile-in { background: var(--c); border-color: var(--c); color: #fff; }
.tile input:checked + .tile-in small { color: rgba(255, 255, 255, .85); }
.tile input:checked + .tile-in::after { content: ''; position: absolute; inset: 5px; border: 1.5px solid rgba(255, 255, 255, .6); }
.tile input:focus-visible + .tile-in { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.result.ok { border-top: 5px solid var(--ok); }
.slot-card { position: relative; background: var(--c); color: #fff; padding: 16px 18px; border-radius: 3px; margin: 12px 0 16px; display: grid; gap: 8px; }
.slot-card::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid rgba(255, 255, 255, .55); pointer-events: none; }
.slot-card div { position: relative; }
.slot-card dt { font-size: .82rem; opacity: .85; }
.slot-card dd { margin: 0; font: 700 1.45rem var(--cond); }
.rsvp-btns { display: grid; gap: 10px; }

/* pick-your-slot form */
.seg.small span { padding: 5px 10px; font-size: .86rem; }
.freq-list { display: grid; gap: 8px; }
.freq-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.freq-row b { font: 600 1.1rem var(--cond); border-left: 5px solid var(--c); padding-left: 8px; }
.pick-sport { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.pick-sport.on { border-color: var(--c); }
.pick-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; cursor: pointer; }
.pick-head input { width: 20px; height: 20px; accent-color: var(--c); margin: 0; }
.pick-head b { font: 700 1.3rem var(--cond); }
.pick-head input:disabled ~ * { opacity: .5; }
.pick-body { padding: 0 14px 14px; border-top: 1px solid var(--line-2); }
.pick-sport:not(.on) .pick-body { display: none; }
.pick-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pick-slot { position: relative; cursor: pointer; }
.pick-slot input { position: absolute; opacity: 0; pointer-events: none; }
.ps-in { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; min-height: 86px; }
.ps-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.ps-label { white-space: nowrap; }
.ps-badge { background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 0 7px; font-weight: 600; white-space: nowrap; }
.ps-time { font: 700 1.25rem/1.1 var(--cond); }
.ps-fill { font-size: .82rem; color: var(--ok); }
.ps-need { font-size: .8rem; font-weight: 600; color: var(--brand); }
.ps-need:empty { display: none; }
.pick-slot.needs:not(.sel) .ps-in { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); border-style: dashed; }
.pick-slot input:focus-visible + .ps-in { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick-slot.sel .ps-in { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.pick-slot.sel .ps-badge { background: var(--c); color: #fff; }
.pick-slot.clash, .pick-slot.full { cursor: not-allowed; }
.pick-slot.clash .ps-in { background: var(--warn-bg); border-color: #ecd3a5; }
.pick-slot.clash .ps-badge { background: #f3d9a8; color: var(--warn); }
.pick-slot.clash .ps-time { text-decoration: line-through; color: var(--ink-3); }
.pick-slot.clash .ps-fill, .pick-slot.clash .ps-label { color: var(--warn); }
.pick-slot.full .ps-in { background: var(--muted-bg); color: var(--ink-3); }
.pick-slot.full .ps-badge { background: var(--bad-bg); color: var(--bad); }
.pick-slot.full .ps-fill { color: var(--ink-3); }

@media (max-width: 760px) {
  h1 { font-size: 1.8rem; }
  .pub-head h1 { font-size: 2.1rem; }
  .slot-row { grid-template-columns: 1fr; gap: 6px; }
  .slot-time { flex-direction: row; align-items: baseline; gap: 10px; }
  .cells { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .next-date { flex-direction: row; align-items: baseline; gap: 12px; padding: 14px 18px; }
  .next-date .d { font-size: 2.3rem; }
  .sport-row, .fb-row { grid-template-columns: 1fr 1fr; }
  .sport-row .field:first-of-type, .fb-row .field:first-child { grid-column: 1 / -1; }
  .queue li { flex-direction: column; align-items: stretch; }
  .kv div { grid-template-columns: 1fr; gap: 0; }
  .data td, .data th { padding: 9px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ci-btn { transition: background-color .15s; }
}
@media print {
  .top, .tabs, .lineup-actions, .ci-top { display: none; }
  body { background: #fff; }
  .cell { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


.card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: #fff; }
.card + .card { margin-top: 14px; }
.card h2 { margin: 0 0 4px; }
ul.my-bookings { margin: 10px 0 12px; }
[data-show-if][hidden] { display: none !important; }

/* member app nav */
.app-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.app-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 10px; font: 500 .95rem var(--font); }
.app-nav a.on { color: var(--brand); font-weight: 600; box-shadow: inset 0 -3px 0 var(--brand); }
.app-nav form { margin: 0; }
@media (max-width: 560px) {
  .app-nav { width: 100%; justify-content: space-between; }
  .top .app-nav a, .top .app-nav .linkish { padding: 8px 0; font-size: .9rem; } /* Home, Performance, Profile and Log out on one line */
}

/* avatars, form, deltas */
.avatar { width: var(--s); height: var(--s); border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; color: #fff; font: 600 calc(var(--s) * .38) var(--cond); flex: none; vertical-align: middle; background: var(--muted-bg); }
.pl { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.form { display: inline-flex; gap: 3px; }
.form i, .match-list i { font-style: normal; font: 700 .75rem var(--font); width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 4px; color: #fff; }
.f-W { background: var(--ok); } .f-L { background: var(--bad); } .f-T { background: var(--ink-3); }
.delta { font-size: .8rem; font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }

/* score entry */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs h3 { margin-top: 0; }
.pl-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pl-row select { width: auto; min-width: 130px; }
.games { display: grid; gap: 8px; max-width: 360px; }
.game-row { display: grid; grid-template-columns: 70px 1fr 18px 1fr; align-items: center; gap: 8px; }
.game-row input { text-align: center; font: 700 1.3rem var(--cond); }
.game-head span { font-size: .85rem; font-weight: 600; text-align: center; color: var(--ink-2); }
.card-entry th, .card-entry td { padding: 6px; }
.card-entry input { min-width: 52px; padding: 6px; text-align: center; min-height: 38px; }
.card-entry tbody th { min-width: 140px; }
.card-entry tbody th select { margin-top: 4px; min-height: 34px; padding: 4px 6px; font-size: .85rem; }
.card-entry td.c { text-align: center; }
.card-entry td.c input { width: 22px; height: 22px; min-width: 0; }
.extras { max-width: 320px; margin: 10px 0 18px; }
.narrowf { max-width: 200px; }
.score-list { list-style: none; padding: 0; margin: 0; }
.score-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 12px 12px; border-bottom: 1px solid var(--line-2); border-left: 4px solid var(--c, var(--line)); margin-bottom: 4px; }
.score-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.score-act form { margin: 0; }
.score-sum { font: 600 1.05rem var(--cond); }
.panel.attention { border-color: var(--focus); box-shadow: inset 4px 0 0 var(--focus); }

/* match page */
.match-head { background: var(--c); color: #fff; border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.match-head .crumb, .match-head .sub { color: rgba(255, 255, 255, .85); }
.match-head .sub { margin: 8px 0 0; }
.match-head h1 { margin: 0; }
.score-big { font: 700 1.6rem var(--cond); margin: 4px 0 0; }
.rc-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.rc-v { font: 700 1.2rem var(--cond); color: var(--ink-3); padding-top: 4px; }
.rc-team h3 { margin-top: 0; }
.games-table td { text-align: center; font: 600 1.15rem var(--cond); }
.games-table td.won { color: var(--ok); }
.inn-total { font: 700 1.6rem var(--cond); }
.inn-total small { font: 500 .9rem var(--font); color: var(--ink-2); }
.innings table + .table-wrap, .innings .table-wrap + .table-wrap { margin-top: 12px; }
.extras-row th, .extras-row td { color: var(--ink-2); }
.confirm-box { border-color: var(--focus); }

/* profile and stats */
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.sport-stats { border-top: 5px solid var(--c); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat-grid > div { background: var(--paper); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat-grid b { font: 700 1.5rem/1.1 var(--cond); }
.stat-grid span { font-size: .82rem; color: var(--ink-2); }
.stat-grid em { font-style: normal; }
.stat-grid .big { background: var(--c); color: #fff; }
.stat-grid .big span { color: rgba(255, 255, 255, .85); }
.stat-grid .big b { font-size: 2rem; }
.match-list { list-style: none; padding: 0; margin: 0; }
.match-list a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.match-list a > span:nth-child(2) { flex: 1; }
.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick label.btn { cursor: pointer; }
.lb td, .lb th { vertical-align: middle; }
.lb tr.prov { color: var(--ink-2); }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.strip-card { display: flex; flex-direction: column; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); border-top: 4px solid var(--c); color: inherit; text-decoration: none; }
.strip-card b { font: 700 1.5rem var(--cond); }
.strip-card span:last-child { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 560px) {
  .vs { grid-template-columns: 1fr; }
  .rc-teams { grid-template-columns: 1fr; }
  .rc-v { display: none; }
  .innings table.data th, .innings table.data td, .lb th, .lb td { padding: 8px 5px; font-size: .88rem; }
}

/* privacy policy, account deletion, footer */
.prose h2 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; }
.danger-link { color: var(--bad); }
.foot { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; font-size: .9rem; }
.foot a { color: var(--ink-2); }

/* sign-up: racket experience rating, fee note; session form: who is booking */
.seg.rating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg.rating span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; font-size: .78rem; line-height: 1.2; height: 100%; border-radius: 12px; }
.seg.rating span b { font: 700 1.25rem var(--cond); }
@media (max-width: 560px) { .seg.rating span { font-size: .7rem; } }
.fee-note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 10px 12px; margin: 0; }
.you-line { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin: 0; }
.perks { margin: 0; padding-left: 20px; }
.perks li { margin: 6px 0; }

/* doubles partner on the booking form */
.partner { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.partner summary { cursor: pointer; margin: 0 0 6px; }
.partner .grid2 + .grid2 { margin-top: 10px; }
