:root {
  color-scheme: light;
  --navy:#132647;
  --ink:#102442;
  --muted:#526783;
  --royal:#1449c9;
  --border:#dbe3ef;
  --wash:#f2f6fb;
  --green:#126343;
  --amber:#895212;
}
body {
  background:#f3f6fa;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-tap-highlight-color:transparent;
  -webkit-text-size-adjust:100%;
}
button,input,select { font-family:inherit }
button { touch-action:manipulation; line-height:1.22 }
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible {
  outline:3px solid #4284d8;outline-offset:2px;
}
header { background:#fff;border-bottom:1px solid #dae2ec }
.bar,main { max-width:912px }
.bar { min-height:66px;padding-block:9px;gap:12px }
.brand { font-weight:800;letter-spacing:.045em }
.brandlogo { width:49px;height:46px;object-fit:contain;flex-shrink:0;display:block }
.demo { color:#4d617c;font-size:.82rem }
main { padding-top:20px }
h1,h2,h3 { color:var(--navy);margin-top:0 }
h1 { font-weight:770;letter-spacing:-.046em;line-height:1.15 }
h2 { font-size:1.3rem;font-weight:730;line-height:1.27;letter-spacing:-.026em }
h3 { font-size:1.05rem;font-weight:720;line-height:1.3;letter-spacing:-.015em }
button,input,select,.time,.sets,.metric,.reportline {font-variant-numeric:tabular-nums}
button { border-color:#d4deeb }
button:active:not(:disabled){ filter:brightness(.965) }
.primary {
  border-color:#1747bd;background:#174acb;color:white;
}
.hero {
  background:linear-gradient(112deg,#102951 0%,#103a85 58%,#155aca 100%);
  border:1px solid #133d83;
  padding:clamp(21px,4vw,34px);
  border-radius:18px;
}
.hero h1,.hero h2,.hero h3 { color:white }
.hero .stat { font-variant-numeric:tabular-nums;font-weight:580 }
.hero small { color:#d8e9fb }
.court { right:2%;width:34%;height:190px;top:-30px;opacity:.27 }
.card,.rows,.panel,.metric { border-color:var(--border) }
.card { border-radius:14px }
.time,.sets { letter-spacing:-.025em }
.card .cap { font-weight:700;white-space:nowrap }
.rows .row { background:transparent }
.rows .row.selected { background:#e6f0ff }
.section h2 { margin-block:16px 12px }
.name { font-weight:650 }
.meta,small { color:var(--muted) }
.paid { color:var(--green) }
.wait { color:var(--amber) }
.tabs,.navstrip { border-radius:12px }
.tabs .on,.navstrip .on,.navstrip [aria-current="page"] {
  color:#123dad;background:white;box-shadow:0 1px 5px #10264421;
}
.navstrip {
  display:flex;gap:4px;align-items:center;overflow:auto;
  padding:4px;background:#e2e9f2;margin:12px 0 18px;
  scrollbar-width:thin;
}
.navstrip button,.navstrip a {
  display:inline-flex;justify-content:center;align-items:center;
  color:#344b6a;white-space:nowrap;flex:1;
  border:0;background:transparent;border-radius:9px;
  font-size:.95rem;font-weight:650;
}
input,select { font-size:1rem;min-height:44px }
.rows, .panel, .metric {background:white;border-radius:14px}
.panel {padding:18px;border:1px solid var(--border);margin-block:12px}
.panel h2,.panel h3 {margin:0 0 12px}
.panel p:last-child {margin-bottom:0}
.menu-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;margin-block:14px}
.menu-grid>button,.menu-grid>a {
  text-align:left;min-width:0;min-height:60px;
  padding:14px 16px;border-radius:12px;
}
.menu-grid strong,.menu-grid small,.metric strong,.metric small {display:block}
.menu-grid small {margin-top:5px}
.metric {padding:16px;border:1px solid var(--border);min-width:0}
.metric strong {font-size:clamp(19px,4vw,29px);line-height:1.22;letter-spacing:-.04em}
.metric small {font-weight:570}
.reportline {
  display:flex;gap:12px;align-items:baseline;justify-content:space-between;
  padding:12px 0;line-height:1.4;border-bottom:1px solid #e6ecf3;
}
.reportline:last-child {border-bottom:0}
.reportline b,.reportline strong {text-align:right}
.badge {
  display:inline-flex;align-items:center;
  min-height:25px;padding:3px 8px;border-radius:6px;
  background:#e9f0fb;color:#294e85;
  font-size:.8125rem;font-weight:660;line-height:1.3;
}
.badge.paid {background:#e5f4eb;color:var(--green)}
.badge.wait {background:#fff0d9;color:var(--amber)}
.rolepick {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  width:100%;min-height:48px;text-align:left;border-radius:10px;
}
.rolepick + .rolepick {margin-top:8px}
.rolepick small {font-weight:450}
.login-card {
  max-width:440px;margin:clamp(14px,5vh,50px) auto 30px;
  padding:clamp(22px,5vw,36px);border:1px solid #d5dfec;
  background:white;border-radius:20px;box-shadow:0 8px 25px #1834500d;
}
.login-card h1 {font-size:clamp(29px,6vw,38px)}
.login-card label {font-size:.9rem;font-weight:650}
.login-card .primary {min-height:48px}
.login-brand {display:flex;align-items:center;justify-content:center;text-align:center;margin:0 auto 14px}
.login-brand img,img.login-brand {width:100px;height:94px;object-fit:contain}
body:has(.login-card) {
  min-height:100dvh;
  background:radial-gradient(ellipse at 15% 22%,#deedfc,transparent 45%),linear-gradient(125deg,#f7fafd 30%,#ebf2f7);
}
.match {
  background-color:#e4f4ef;border-color:#75b6aa;
  box-shadow:inset 0 0 0 3px #fff9;
}
.match .side+ .side {border-color:#69a69c}
.match .side button {border:1px solid #b3d5cc;color:#173b38}
dialog {border:1px solid #d4deeb}
dialog input,dialog select {max-width:100%}
dialog .sheethead button {flex-shrink:0}
@media(hover:hover) {
  .card:hover,.menu-grid>button:hover,.rolepick:hover {border-color:#9cb4d5;background:#f8faff}
  .primary:hover {background:#103daf}
}
@media(max-width:600px) {
  .bar {min-height:58px}
  .bar .brandlogo {width:41px;height:40px}
  main {padding-top:12px}
  .hero {margin-top:9px}
  .court {right:-14%}
  .panel {padding:14px}
  .row {gap:6px}
  .row .lite {font-size:.84rem;max-width:100%;line-height:1.25}
  .row .sets {white-space:nowrap}
  .reportline {font-size:.94rem}
  .navstrip button {font-size:.88rem;padding-inline:10px}
  .login-card {border-radius:18px}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
