/* CourtFlow design system — tokens and components from the CourtFlow prototype. */
:root {
  --ink: #0E2B20; --ink-2: #16392B; --ink-3: #1F4A38;
  --lime: #C5E02B; --lime-soft: #E8F3B4; --lime-ink: #3F5A0A; --olive: #5E7A0C;
  --bg: #F4F8E6; --card: #FFFFFF; --mint: #EEF4E2; --line: #E1E9D5; --line-2: #CFDBC4;
  --text: #0E2B20; --muted: #56695F; --muted-2: #8A9C8C; --sage: #9DB39F; --side-text: #D5E2CF;
  --amber-bg: #FCE7C8; --amber: #7A4A06; --red-bg: #FBE5DE; --red: #A33A1E; --red-strong: #E0452B;
  --blue-bg: #EDF2FD; --blue: #2F5FD0; --blue-line: #3E6FE0;
  --radius: 20px; --radius-sm: 12px; --shadow: 0 1px 2px rgba(14,43,32,.05), 0 8px 24px -12px rgba(14,43,32,.12);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45; }
a { color: var(--ink); } a:hover { color: var(--olive); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(180deg, #D4EA6A 0%, #E8F3B4 320px, #F6F9EC 720px, #FAFCF4 100%); }
.side { background: var(--ink); color: #E9F2D8; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: inherit; }
.brand-mark { width: 38px; height: 38px; background: var(--lime); border-radius: 12px 12px 12px 2px; display: grid; place-items: center; font-weight: 900; font-stretch: 70%; font-size: 18px; color: var(--ink); flex: none; }
.brand-name { font-weight: 800; font-stretch: 72%; font-size: 20px; text-transform: uppercase; letter-spacing: .01em; color: #fff; line-height: 1; }
.brand-venue { font-size: 11px; color: var(--sage); margin-top: 4px; display: block; line-height: 1.2; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--lime); padding: 0 10px 8px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 999px; color: var(--side-text); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #5E7D66; flex: none; }
.nav-item:hover { background: var(--ink-2); color: #fff; }
.nav-item.active { background: var(--lime); color: var(--ink); font-weight: 700; }
.nav-item.active::before { background: var(--ink); border-color: var(--ink); }
.nav-badge { margin-left: auto; background: var(--red-strong); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--ink-2); }
.side-user .avatar { background: var(--lime); color: var(--ink); }
.side-user-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-links { display: flex; gap: 10px; margin-top: 3px; }
.side-user-links a, .side-user-links button { font-size: 12px; font-weight: 600; color: var(--lime); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.side-user-links button { color: var(--sage); font-weight: 500; }
.main { padding: 28px 36px 64px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.topbar { display: none; }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
  .topbar .brand-name { font-size: 18px; }
  .main { padding: 20px 16px 48px; }
}

/* ---------- page head */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(197,224,43,.3); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; font-stretch: 78%; letter-spacing: -.02em; line-height: 1; margin: 12px 0 8px; }
.subtitle { margin: 0; color: var(--muted); font-size: 16px; max-width: 70ch; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 24px; font-weight: 800; font-stretch: 82%; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
h3 { font-size: 17px; font-weight: 700; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- layout helpers */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.split-r { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.55fr); gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split-r { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } .courts { grid-template-columns: minmax(0, 1fr); } .bar-row { grid-template-columns: 80px 1fr 48px; } .page-head h1 { font-size: 34px; } }

/* ---------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.pad-lg { padding: 24px; }
.card.flat { box-shadow: none; }
.card.dark { background: var(--ink); color: #E9F2D8; border-color: var(--ink); }
.card.dark h2, .card.dark h3 { color: #fff; }
.card.lime { background: linear-gradient(180deg, #FBFDF1, #F3F9D8); border-color: #D8EA82; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.tips { background: rgba(232,243,180,.55); border: 1px solid #CFE07C; border-radius: 16px; padding: 12px 16px; }
.tips summary { cursor: pointer; font-weight: 600; color: var(--lime-ink); list-style: none; }
.tips summary::before { content: '▸ '; } .tips[open] summary::before { content: '▾ '; }
.tips ul { margin: 10px 0 2px; padding-left: 20px; color: var(--muted); }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: var(--amber-bg); color: var(--amber); font-weight: 500; }
.banner.info { background: var(--lime-soft); color: var(--lime-ink); }
.banner.error { background: var(--red-bg); color: var(--red); }

/* ---------- stats */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat > .badge { align-self: flex-start; }
.stat-value { font-size: 40px; font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.stat-sub { color: var(--muted); font-size: 14px; }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--mint); color: var(--ink); }
.badge.lime { background: var(--lime-soft); color: var(--lime-ink); }
.badge.solid { background: var(--lime); color: var(--ink); }
.badge.dark { background: var(--ink); color: var(--lime); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.gray { background: #EEF2EA; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .05s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:hover { background: var(--ink-3); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.lime { background: var(--lime); color: var(--ink); } .btn.lime:hover { background: #B8D420; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); } .btn.ghost:hover { background: var(--mint); }
.btn.danger { background: var(--red-bg); color: var(--red); } .btn.danger:hover { background: #F7D3C7; }
.btn.danger-solid { background: var(--red-strong); color: #fff; }
.btn.link { background: none; color: var(--ink); padding: 4px 6px; text-decoration: underline; font-weight: 600; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 3px 8px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; animation: spin .7s linear infinite; }
.btn.lime.is-loading::after, .btn.ghost.is-loading::after { border-color: var(--ink) var(--ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.card.dark .btn.ghost { background: transparent; color: #fff; border-color: #3B5E4C; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, textarea.input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; min-height: 42px; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(197,224,43,.5); }
.card.dark .input, .card.dark .select { background: var(--ink-2); border-color: #3B5E4C; color: #fff; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.hint { font-size: 12px; color: var(--muted-2); }
.error-text { color: var(--red); font-size: 13px; font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--mint); border-radius: 14px; }
.seg button, .seg label { border: 0; background: transparent; padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button.on, .seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg label { padding: 0; } .seg label span { display: block; padding: 7px 12px; border-radius: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: #fff; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle-text b { display: block; font-size: 15px; } .toggle-text small { color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #D5DDD0; transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { transform: translateX(18px); background: var(--lime); }
.switch input:focus-visible + i { outline: 3px solid var(--lime); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: var(--mint); width: 40px; height: 42px; font-size: 18px; font-weight: 700; cursor: pointer; }
.stepper input { width: 64px; text-align: center; border: 0; font-weight: 700; font-size: 16px; height: 42px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=range] { accent-color: var(--ink); width: 100%; }

/* ---------- people */
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--lime-soft); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; letter-spacing: -.02em; }
.avatar.round { border-radius: 50%; }
.avatar.sm { width: 32px; height: 32px; font-size: 11px; border-radius: 10px; }
.avatar.dark { background: var(--ink); color: var(--lime); }
.avatar.amber { background: var(--amber-bg); color: var(--amber); }
.avatar.gray { background: #EEF2EA; color: var(--muted-2); }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.person.sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--lime) inset; }
.person.clickable { cursor: pointer; } .person.clickable:hover { background: #FBFDF4; }
.person-main { flex: 1; min-width: 0; }
.person-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos { width: 28px; text-align: center; font-weight: 800; color: var(--muted-2); font-size: 13px; flex: none; }
.person-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.scroll { max-height: 640px; overflow-y: auto; padding-right: 4px; }

/* ---------- courts */
.courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.court { display: flex; flex-direction: column; gap: 12px; }
.court.playing { background: linear-gradient(180deg, #FBFDF1, #F3F9D8); border-color: #D8EA82; }
.court.locked, .court.booked, .court.pod { background: #F7F9F3; }
.court.paused { background: repeating-linear-gradient(135deg, #F4F6F1 0 10px, #FAFBF8 10px 20px); }
.court-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.court-name { font-size: 20px; font-weight: 800; font-stretch: 85%; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.kv b { font-variant-numeric: tabular-nums; }
.timer { font-size: 30px; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer.over { color: var(--red-strong); }
.progress { height: 6px; background: rgba(14,43,32,.08); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width 1s linear; }
.progress.over > i { background: var(--red-strong); }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team { display: flex; flex-direction: column; gap: 6px; }
.slot { padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--ink); background: #F4F7EF; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.team.t2 .slot { border-left-color: var(--blue-line); background: var(--blue-bg); }
.team.t2 .slot small { color: var(--blue); }
.slot.empty { border: 1px dashed var(--line-2); background: transparent; color: var(--muted-2); font-weight: 500; }
.court-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.court-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; color: var(--muted); min-height: 120px; }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.tab.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.tab .count { font-size: 12px; opacity: .75; }
.vtabs { display: flex; flex-direction: column; gap: 4px; }
.vtab { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.vtab b { display: block; font-size: 15px; } .vtab small { color: var(--muted); font-size: 12px; }
.vtab:hover { background: rgba(255,255,255,.6); }
.vtab.on { background: var(--ink); color: #fff; } .vtab.on small { color: var(--sage); }

/* ---------- bars & charts */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 64px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 14px; background: var(--mint); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: inherit; min-width: 2px; }
.bar.lime > i { background: var(--lime); }
.vbars { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 12px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.vbar i { width: 100%; max-width: 56px; background: var(--ink); border-radius: 10px 10px 4px 4px; min-height: 4px; }
.vbar:nth-child(odd) i { background: var(--lime); }
.vbar span { font-size: 12px; color: var(--muted); } .vbar b { font-size: 13px; }

/* ---------- event log */
.events { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 76px 14px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.event:last-child { border-bottom: 0; }
.event-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.event-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: var(--sage); }
.event-title { font-weight: 700; } .event-detail { color: var(--muted); font-size: 14px; }
.event-num { font-size: 12px; color: var(--muted-2); }
@media (max-width: 640px) { .event { grid-template-columns: 60px 12px 1fr; } .event-num { display: none; } }

/* ---------- schedule timeline */
.timeline { position: relative; overflow-x: auto; }
.tl-inner { min-width: 760px; position: relative; }
.tl-head, .tl-row { display: grid; grid-template-columns: 110px 1fr; }
.tl-ticks { position: relative; height: 26px; border-bottom: 1px solid var(--line); }
.tl-tick { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.tl-court { padding: 16px 8px 16px 0; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.tl-lane { position: relative; height: 62px; border-bottom: 1px solid var(--line); cursor: copy; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); }
.tl-item { position: absolute; top: 8px; bottom: 8px; border-radius: 10px; padding: 6px 8px; font-size: 12px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; border: 0; text-align: left; line-height: 1.25; }
.tl-item small { display: block; font-weight: 500; opacity: .8; }
.tl-item.booking { background: var(--lime); color: var(--ink); }
.tl-item.pod { background: var(--ink); color: #fff; }
.tl-item.lock { background: repeating-linear-gradient(135deg, #D5DDD0 0 6px, #EEF2EA 6px 12px); color: #3F5A3C; }
.tl-item.game { background: rgba(62,111,224,.14); color: var(--blue); top: 40px; bottom: 6px; padding: 2px 6px; font-size: 10px; cursor: default; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red-strong); z-index: 2; pointer-events: none; }
.tl-now::before { content: ''; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-strong); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* ---------- dialog / toast */
dialog.modal { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(14,43,32,.45); color: var(--text); }
dialog.modal::backdrop { background: rgba(14,43,32,.45); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100vw - 40px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); animation: pop .18s ease-out; max-width: 420px; }
.toast.error { background: var(--red-strong); }
.toast.ok::before { content: '✓ '; color: var(--lime); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, #EEF3E6 25%, #F6F9F0 37%, #EEF3E6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 16px; min-height: 120px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.qr-box { width: 220px; height: 220px; padding: 14px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.copy { display: flex; gap: 8px; align-items: center; }
.copy .input { font-size: 13px; }

/* ---------- auth / bare */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 20% -10%, #D4EA6A, transparent 60%), linear-gradient(180deg, #E8F3B4, #FAFCF4 60%); }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-card .brand { justify-content: center; margin-bottom: 4px; }
.auth-card .brand-name { color: var(--ink); }
.auth-card h1 { font-size: 36px; margin: 0; text-align: center; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- public board */
.board { min-height: 100vh; background: var(--ink); color: #E9F2D8; padding: 28px 36px; display: flex; flex-direction: column; gap: 24px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.board-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; font-stretch: 75%; color: #fff; margin: 0; }
.board-clock { font-size: clamp(28px, 4vw, 48px); font-weight: 800; font-stretch: 80%; color: var(--lime); font-variant-numeric: tabular-nums; }
.board-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.board-stat { background: var(--ink-2); border-radius: 18px; padding: 16px 20px; }
.board-stat b { display: block; font-size: 40px; font-weight: 800; font-stretch: 80%; color: #fff; line-height: 1; }
.board-stat span { color: var(--sage); font-size: 14px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.board-courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bcourt { background: var(--ink-2); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
.bcourt.open { background: var(--lime); color: var(--ink); }
.bcourt-name { font-size: 26px; font-weight: 800; font-stretch: 80%; color: #fff; }
.bcourt.open .bcourt-name { color: var(--ink); }
.bcourt .team-line { font-size: 20px; font-weight: 700; color: #fff; }
.bcourt .vs { color: var(--lime); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.bcourt .timer { color: var(--lime); font-size: 28px; }
.bcourt .progress { background: rgba(255,255,255,.12); } .bcourt .progress > i { background: var(--lime); }
.bqueue { background: var(--ink-2); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bq-next { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bq-next div { background: var(--lime); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #25503D; font-size: 17px; }
.bq-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-row .muted { color: var(--sage); }
@media (max-width: 900px) { .board { padding: 20px 16px; } .board-grid { grid-template-columns: 1fr; } .board-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- phone views (check-in, player page) */
.phone { min-height: 100vh; background: linear-gradient(180deg, #D4EA6A 0%, #E8F3B4 220px, #F6F9EC 520px); padding: 24px 16px 40px; display: flex; flex-direction: column; align-items: center; }
.phone-inner { width: min(460px, 100%); display: flex; flex-direction: column; gap: 16px; }
.phone .brand-name { color: var(--ink); }
.big-pos { font-size: 72px; font-weight: 900; font-stretch: 75%; line-height: 1; letter-spacing: -.03em; }
.alert-card { background: var(--ink); color: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; animation: pulse 1.6s ease-in-out 3; }
.alert-card b { font-size: 20px; color: var(--lime); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(197,224,43,.35); } }

/* ---------- print */
@media print {
  .side, .topbar, .head-actions, .btn, .toasts { display: none !important; }
  .shell { display: block; background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
@media print {
  .print-poster .main > *:not(.split-r), .print-poster .split-r > *:not(#poster), .print-poster #poster .copy, .print-poster #poster .toggle { display: none !important; }
  .print-poster #poster { border: 0; }
  .print-poster .qr-box { width: 420px; height: 420px; }
}

/* ---------- roster name lookup */
.lookup { position: relative; }
.lookup-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(14,43,32,.35); padding: 6px; max-height: 320px; overflow-y: auto; }
.lookup-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.lookup-item b { display: block; font-size: 14px; }
.lookup-item small { display: block; font-size: 12px; color: var(--muted); }
.lookup-item.on, .lookup-item:hover { background: var(--mint); }
.lookup-item.here { opacity: .6; cursor: not-allowed; }
code { background: var(--mint); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.wrap-meta .person-meta { white-space: normal; }

/* ---------- roles: hide controls a role can't use (the server enforces this too) */
body[data-role="staff"] [data-requires="manager"],
body:not([data-role="owner"]) [data-requires="owner"] { display: none !important; }
.side-role { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--lime); border-radius: 999px; padding: 1px 7px; }
.event-by { font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------- settings: tab list + content; interactive tabs (courts, skills, rotation) stack their panels */
.settings-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-grid .split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1500px) { .settings-grid .split { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); } }
@media (max-width: 960px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-grid .vtabs { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .settings-grid .vtab { flex: none; padding: 8px 12px; }
  .settings-grid .vtab small { display: none; }
}

/* ---------- venue branding (public pages) — --brand / --on-brand come from the venue's colour */
.venue-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.venue-mark { width: 44px; height: 44px; border-radius: 13px 13px 13px 3px; background: var(--brand, var(--lime)); color: var(--on-brand, var(--ink)); display: grid; place-items: center; font-weight: 900; font-stretch: 72%; font-size: 17px; flex: none; }
.venue-logo { height: 48px; max-width: 160px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; }
.venue-brand-name { font-weight: 800; font-stretch: 80%; font-size: 18px; }
.phone .venue-brand { align-self: center; }

.venue-home { min-height: 100vh; background: var(--bg); }
.vh-inner { width: min(760px, 100%); margin: 0 auto; padding: 0 16px; }
.vh-hero { background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,0) 60%), var(--brand, var(--lime)); color: var(--on-brand, var(--ink)); padding: 28px 0 44px; }
.vh-hero .venue-brand-name { display: none; }
.vh-hero .venue-mark { background: rgba(255,255,255,.22); color: inherit; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.vh-hero h1 { font-size: clamp(34px, 7vw, 56px); margin: 18px 0 6px; color: inherit; }
.vh-tagline { margin: 0; font-size: 18px; opacity: .9; max-width: 60ch; }
.vh-facts { margin-top: 14px; }
.vh-facts .badge { background: rgba(255,255,255,.75); color: var(--ink); }
.vh-body { margin-top: -26px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.vh-welcome { display: block; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 18px; text-decoration: none; font-size: 16px; }
.vh-welcome:hover { color: var(--lime); }
.vh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.vh-stats div { background: var(--mint); border-radius: 14px; padding: 12px; }
.vh-stats b { display: block; font-size: 28px; font-weight: 800; font-stretch: 80%; line-height: 1.05; }
.vh-stats span { font-size: 13px; color: var(--muted); }
.vh-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.vh-action { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.vh-action b { font-size: 19px; font-weight: 800; font-stretch: 85%; }
.vh-action span { font-size: 13px; color: var(--muted); }
.vh-action:hover { border-color: var(--ink); color: var(--ink); }
.vh-action.primary { background: var(--brand, var(--lime)); color: var(--on-brand, var(--ink)); border-color: transparent; }
.vh-action.primary span { color: inherit; opacity: .85; }
.vh-date { flex-direction: column; line-height: 1; gap: 2px; }
.vh-date small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.vh-date b { font-size: 17px; }
.vh-contact .label { display: block; }
.vh-footer { display: flex; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); padding-top: 8px; }
@media (max-width: 520px) { .vh-stats b { font-size: 22px; } }

/* ---- Platform admin */
.admin-body { background: var(--bg); }
.admin-bar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.admin-bar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-bar .brand { padding: 0; }
.admin-bar .badge { margin-left: 4px; }
.admin-email { color: var(--sage); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.admin-signout { background: transparent; color: #fff; border: 1px solid var(--ink-3); }
.admin-signout:hover { background: var(--ink-2); color: #fff; }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-stats .stat-value { font-size: 34px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.admin-new { position: sticky; top: 84px; }
.admin-venue { border-top: 4px solid var(--brand, var(--lime)); display: flex; flex-direction: column; gap: 14px; }
.admin-venue-head { display: flex; align-items: center; gap: 14px; }
.admin-venue-head .venue-logo { height: 44px; max-width: 120px; border: 1px solid var(--line); }
.admin-venue-name { margin: 0; font-size: 20px; }
.admin-venue-url { color: var(--muted); text-decoration: none; }
.admin-venue-url:hover { text-decoration: underline; color: var(--ink); }
.admin-venue-facts { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 0; padding: 12px 14px; background: var(--mint); border-radius: var(--radius-sm); }
.admin-venue-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admin-venue-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.admin-manage > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); width: max-content; }
.admin-manage[open] > summary { margin-bottom: 14px; }
.admin-manage-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-danger { padding-top: 14px; border-top: 1px dashed var(--line-2); }
.admin-empty { text-align: center; padding: 40px 20px; }
@media (max-width: 1000px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-new { position: static; order: -1; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .admin-bar-inner, .admin-main { padding-left: 16px; padding-right: 16px; }
  .admin-manage-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-venue-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-venue-facts > div:first-child { grid-column: 1 / -1; }
  .admin-email { display: none; }
}

/* ---- Marketing site (courtflow.com) */
html { scroll-behavior: smooth; }
.site-body { background: #FBFDF4; }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.site-nav { position: sticky; top: 0; z-index: 40; background: rgba(251,253,244,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-nav .brand { padding: 0; } .site-nav .brand-name { color: var(--ink); }
.site-links { display: flex; gap: 26px; }
.site-links a, .site-find { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-links a:hover, .site-find:hover { color: var(--olive); }
.site-nav-cta { gap: 18px; }
section[id] { scroll-margin-top: 80px; }

.lp-hero { background: radial-gradient(1200px 500px at 85% -10%, #E3F18F 0%, rgba(227,241,143,0) 60%), linear-gradient(180deg, #F3F9D8 0%, #FBFDF4 100%); padding: 72px 0 80px; overflow: hidden; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(44px, 7vw, 84px); margin: 18px 0 18px; }
.lp-hl { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding: 0 .06em; }
.lp-lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 24px; max-width: 58ch; }
.lp-cta { gap: 12px; margin-bottom: 18px; }

.lp-mock { position: relative; padding: 10px 0 76px; }
.lp-board { background: var(--ink); color: #E9F2D8; border-radius: 24px; padding: 20px; box-shadow: 0 30px 60px -25px rgba(14,43,32,.55); transform: rotate(-1.2deg); }
.lp-board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lp-board-head b { color: #fff; font-size: 17px; }
.lp-board-head .venue-mark { width: 34px; height: 34px; font-size: 14px; background: var(--lime); color: var(--ink); }
.lp-live { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.lp-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(197,224,43,.25); }
.lp-courts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-court { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 3px; min-height: 124px; }
.lp-court b { color: #fff; font-size: 14px; }
.lp-court em { font-style: normal; font-size: 11px; color: var(--sage); }
.lp-court-no { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.lp-time { margin-top: auto; font-size: 12px; color: var(--lime); font-weight: 700; }
.lp-court-ready { background: var(--lime); border-color: var(--lime); }
.lp-court-ready b, .lp-court-ready em, .lp-court-ready .lp-court-no { color: var(--ink); }
.lp-court-ready b { font-size: 20px; }
.lp-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.lp-next-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-right: 4px; }
.lp-chip { background: var(--ink-3); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.lp-wait { margin-left: auto; font-size: 12px; color: var(--sage); }
.lp-phone { position: absolute; right: -8px; bottom: 0; width: min(300px, 80%); }
.lp-notif { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 20px 40px -18px rgba(14,43,32,.45); border: 1px solid var(--line); transform: rotate(1.5deg); }
.lp-notif .brand-mark { width: 34px; height: 34px; font-size: 13px; }
.lp-notif b { display: block; font-size: 14px; }
.lp-notif span { font-size: 12px; color: var(--muted); }

.lp-strip { background: var(--ink); color: #fff; }
.lp-strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.lp-strip b { display: block; color: var(--lime); font-size: 20px; font-weight: 800; font-stretch: 80%; }
.lp-strip span { font-size: 14px; color: var(--side-text); }

.lp-section { padding: 88px 0; }
.lp-alt { background: var(--mint); }
.lp-head { max-width: 720px; margin-bottom: 40px; }
.lp-head h2, .lp-section h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.lp-narrow { max-width: 820px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.lp-steps h3 { font-size: 20px; margin: 14px 0 8px; }
.lp-steps p, .lp-feature p { margin: 0; color: var(--muted); line-height: 1.55; }
.lp-step-no { width: 44px; height: 44px; border-radius: 14px 14px 14px 3px; background: var(--lime); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.lp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-feature { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.lp-feature h3 { margin: 10px 0 8px; font-size: 18px; }
.lp-feature-no { font-size: 13px; font-weight: 800; color: var(--olive); letter-spacing: .06em; }
.lp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.lp-for { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.lp-for h2 { margin: 0; font-size: 28px; }
.lp-for .badge { align-self: flex-start; }
.lp-for-players { background: linear-gradient(180deg, #FBFDF1, #F3F9D8); border-color: #D8EA82; }
.lp-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-ticks li { padding-left: 30px; position: relative; line-height: 1.45; }
.lp-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 900; display: grid; place-items: center; }

.lp-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-venue-mock { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(14,43,32,.45); border: 1px solid var(--line); }
.lp-venue-top { background: #1E40AF; color: #fff; padding: 22px 22px 40px; display: flex; flex-direction: column; gap: 6px; }
.lp-venue-top .venue-mark { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); margin-bottom: 8px; }
.lp-venue-top b { font-size: 26px; font-weight: 800; font-stretch: 78%; }
.lp-venue-top span { opacity: .85; }
.lp-venue-body { padding: 0 18px 20px; margin-top: -22px; display: flex; flex-direction: column; gap: 12px; }
.lp-venue-stats { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; box-shadow: var(--shadow); }
.lp-venue-stats div { background: var(--mint); border-radius: 12px; padding: 10px; }
.lp-venue-stats b { display: block; font-size: 22px; font-weight: 800; }
.lp-venue-stats span { font-size: 12px; color: var(--muted); }
.lp-venue-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-venue-btns span { border-radius: 14px; border: 1px solid var(--line); padding: 12px; font-weight: 700; font-size: 14px; }
.lp-venue-btns span:first-child { background: #1E40AF; color: #fff; border-color: #1E40AF; }

.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--olive); }
.lp-faq details[open] summary::after { content: "\2013"; }
.lp-faq p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }

.lp-dark { background: var(--ink); color: #E9F2D8; }
.lp-dark h2 { color: #fff; }
.lp-dark .lp-lead { color: var(--side-text); }
.lp-dark .eyebrow { background: rgba(255,255,255,.08); border-color: var(--ink-3); color: #fff; }
.lp-dark .lp-ticks li { color: #fff; }
.lp-demo { align-items: center; gap: 48px; }
.lp-form { color: var(--text); padding: 26px; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-find { justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.lp-find .input { max-width: 200px; }

.site-footer { border-top: 1px solid var(--line); background: #FBFDF4; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; color: var(--muted); }
.site-footer .brand { padding: 0; } .site-footer .brand-name { color: var(--ink); font-size: 17px; }
.site-footer .brand-mark { width: 30px; height: 30px; font-size: 13px; }

@media (max-width: 1040px) {
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-links { display: none; }
}
@media (max-width: 860px) {
  .lp-hero { padding: 44px 0 56px; }
  .lp-hero-grid, .lp-brand, .lp-two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .site-wrap { padding: 0 16px; }
  .site-find { display: none; }
  .lp-features { grid-template-columns: minmax(0, 1fr); }
  .lp-courts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-courts .lp-court:nth-child(2) { display: none; }
  .lp-mock { padding-bottom: 0; }
  .lp-board { transform: none; }
  .lp-phone { position: static; width: 100%; margin-top: 12px; }
  .lp-notif { transform: none; }
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-venue-btns span { font-size: 12px; padding: 10px 8px; }
}
