:root { color-scheme: light; --ink: #142739; --muted: #526579; --line: #d8e3ea; --accent: #086b73; --surface: #fff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #eef4f7; color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
.top { background: #142739; color: white; }
.top nav, main { max-width: 91rem; margin: auto; padding: 1rem clamp(1rem, 4vw, 3rem); }
.top nav, .top nav div, .hero, .account, .panel-head, .total, .order { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
main { padding-bottom: 3rem; }
.top a { color: white; text-decoration: none; }
.top a:hover { text-decoration: underline; }
.brand { font-size: 1.25rem; font-weight: 800; }
.brand span { margin-left: .4rem; color: #8edbe0; font-size: .85rem; letter-spacing: .12em; }
.hero { padding: 1.6rem 0; }
h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; }
h2 { font-size: 1.25rem; }
p { margin: .45rem 0; }
.hero p, .panel-head p, .muted, .legend { color: var(--muted); }
.account { background: #dceff0; border-radius: .55rem; padding: .5rem .55rem .5rem .9rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 23%); gap: 1rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(.85rem, 2vw, 1.4rem); border-radius: .9rem; box-shadow: 0 4px 16px #14273908; }
.cart { position: sticky; top: 1rem; }
.cart ul, #courts { margin: .8rem 0; padding: 0; list-style: none; }
.cart li, #courts li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .35rem 0; }
.total { border-top: 1px solid var(--line); margin: 1rem 0; padding-top: .7rem; }
.cart > button { width: 100%; }
.date-strip { display: flex; gap: .45rem; overflow-x: auto; padding: .6rem .15rem; }
.date-strip button { flex: 0 0 4.3rem; padding: .4rem; }
.date-strip span, .date-strip strong { display: block; }
.date-strip span { font-size: .875rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: .65rem 0; font-size: .9rem; }
.table-scroll, .results { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; text-align: center; }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .5rem .65rem; }
th:first-child, td:first-child { border-left: 1px solid var(--line); }
thead th { background: #e8f0f5; border-top: 1px solid var(--line); }
tbody th { background: #f6f9fb; }
.calendar td { padding: 0; min-width: 7rem; height: 2.55rem; }
.calendar td button { width: 100%; border-radius: 0; height: 100%; min-height: 2.55rem; }
.calendar td a, a { color: var(--accent); }
.unavailable { background: repeating-linear-gradient(135deg, #eaf0f4, #eaf0f4 5px, #f3f6f8 5px, #f3f6f8 10px); color: var(--muted); }
.mine { background: #dceff0; color: #07565d; }
.orders { margin-top: 1rem; }
.order { padding: .75rem 0; border-bottom: 1px solid var(--line); }
button, input, select { font: inherit; border: 1px solid #a6bac7; border-radius: .4rem; padding: .43rem .7rem; color: var(--ink); background: white; }
button { color: white; background: var(--accent); border-color: var(--accent); cursor: pointer; font-weight: 650; }
button:hover:not(:disabled) { filter: brightness(.91); }
button:disabled { opacity: .57; cursor: default; }
button.secondary, button.slot { background: #fff; color: var(--accent); border-color: var(--line); }
button.slot { border-color: transparent; }
button.selected { background: #086b73; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #137cbf; outline-offset: -2px; }
label { display: block; margin: .45rem 0; font-weight: 600; }
label input, label select { display: block; width: 100%; margin: .2rem 0; }
dialog { width: min(28rem, calc(100% - 2rem)); color: var(--ink); border: 1px solid var(--line); border-radius: .85rem; padding: 1.25rem; }
dialog::backdrop { background: #142739a0; }
dialog img { display: block; margin: .5rem auto; max-width: 100%; height: auto; }
.admin-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.admin-matrix, .results { margin: 1rem 0; }
.gate { max-width: 42rem; }
video { display: block; max-width: 100%; border-radius: .5rem; }
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .cart { position: static; }
}
