* { box-sizing: border-box; }
:root { color-scheme: light; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--background); color: var(--ink); font: 1rem/1.5 var(--font);
}
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #175ce3; outline-offset: 3px; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
header { color: #fff; background: var(--dark); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; line-height: 1.25; }
.brand img { flex: 0 0 46px; border-radius: 9px; background: white; object-fit: contain; padding: 3px; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 3px; color: #e0e5e1; font-size: .79rem; }
.header-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.header-actions { justify-content: flex-end; }
.user { font-size: .9rem; margin-right: 5px; }
main { flex: 1; padding-block: 32px 38px; }
footer { text-align: center; padding-bottom: 20px; font-size: .8rem; }
.hero {
  background: var(--dark); color: #fff; border-radius: 23px; padding: clamp(20px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
h1, h2, h3, p { margin-block: 0; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); line-height: 1.09; letter-spacing: -.05em; overflow-wrap: anywhere; }
.hero p:not(.eyebrow) { margin-top: 10px; color: #e2e8e4; }
.eyebrow { text-transform: uppercase; font-weight: 850; font-size: .78rem; letter-spacing: .11em; color: var(--accent); margin-bottom: 8px; }
.hero .eyebrow { color: #e4e6d9; }
.court-badge { border: 2px solid #dc7278; border-radius: 50%; width: 104px; aspect-ratio: 1; flex: 0 0 104px; display: grid; align-content: center; justify-items: center; }
.court-badge strong { font-size: 2.15rem; line-height: 1.1; }
.court-badge span { font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.tabs { display: flex; gap: 9px; border-bottom: 1px solid #0003; margin: 18px 0; overflow-x: auto; }
.tabs a { white-space: nowrap; padding: 12px 17px; font-weight: 750; text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"], .tabs a:hover { border-bottom-color: var(--dark); }
.card { min-width: 0; background: var(--surface); padding: clamp(16px, 3vw, 26px); margin-bottom: 18px;
  border-radius: 20px; border: 1px solid #142b141c; box-shadow: 0 12px 30px #152b180a; overflow-wrap: anywhere; }
.card h2 { font-size: 1.36rem; line-height: 1.25; margin-bottom: 15px; letter-spacing: -.035em; }
.card h3 { font-size: 1rem; margin-block: 14px 8px; }
.card > p, .card p + form { margin-bottom: 12px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-split { padding-top: 4px; }
.auth { max-width: 490px; margin: clamp(22px, 8vh, 85px) auto; }
.auth-links { margin: 15px 0 0; }
form:not(.inline) { display: flex; flex-direction: column; align-items: start; gap: 11px; }
form:not(.inline) > label, form:not(.inline) > .fields, form:not(.inline) > .colors { width: 100%; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
[data-repeat-fields][hidden] { display: none; }
.colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
label { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 700; }
input:not([type=hidden],[type=checkbox]), select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 43px; padding: 8px 11px;
  border: 1px solid #142b1440; border-radius: 10px; background-color: var(--surface); color: var(--ink);
  font-size: .95rem;
}
textarea { resize: vertical; font-family: inherit; }
.password-field { position: relative; display: block; }
.password-field input:not([type=hidden],[type=checkbox]) { padding-right: 47px; }
.password-eye { position: absolute; top: 0; right: 3px; width: 39px; height: 100%; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink); cursor: pointer; }
.password-eye .eye-slash { display: none; }
.password-eye[aria-pressed="true"] .eye-slash { display: inline; }
[data-work-duration] { color: var(--ink); font-size: .9rem; }
.work-dialog { width: min(460px, calc(100% - 32px)); padding: 24px; border: 1px solid #142b1440;
  border-radius: 16px; background: var(--surface); color: var(--ink); }
.work-dialog::backdrop { background: #10141280; }
.work-dialog h2 { font-size: 1.3rem; line-height: 1.25; }
.work-dialog p { margin-block: 12px 18px; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; }
.check { flex-direction: row; align-items: center; min-height: 32px; gap: 8px; }
.check:has(input:disabled) { opacity: .6; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 8px 13px; min-height: 40px;
  border: 1px solid transparent; border-radius: 9px; text-decoration: none; cursor: pointer; font-size: .9rem; font-weight: 750;
  line-height: 1.25; max-width: 100%; }
.button:hover { filter: brightness(.9); }
.primary { background: var(--dark); color: #fff; }
.secondary { background: #e8f0e5; color: #164130; }
.danger { background: #fae9e3; color: #842d20; }
.header-button { background: transparent; color: #fff; border-color: #ffffff77; }
.header-button:hover { background: #ffffff1a; }
.booking-row { border-radius: 12px; border: 1px solid #142b1420; background: #687a6808; padding: 11px 13px;
  margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.booking-row small { display: block; font-size: .82rem; margin-top: 2px; }
.booking-row .button { min-height: 36px; }
form.day-picker { flex-direction: row; align-items: end; gap: 8px; margin: 0 0 13px; }
form.day-picker > label { max-width: 190px; }
.notice { padding: 12px 16px; background: #e8f1ff; color: #19335e; border: 1px solid #a6c0e8; border-radius: 11px; margin-bottom: 17px; }
.empty { padding: 14px; background: #789a7820; border-radius: 10px; }
.muted, .limits { color: var(--ink); opacity: .8; font-size: .9rem; }
.table-wrap { overflow: auto; }
.table-wrap:not(:first-child) { margin-top: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 12px; border-bottom: 1px solid #142b1424; vertical-align: middle; }
thead { background: #748e731a; }
th { font-size: .87rem; }
.calendar-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start; gap: 20px; }
.calendar { width: 100%; table-layout: fixed; }
.calendar caption { text-align: left; font-weight: 800; padding-block: 7px; }
.calendar th, .calendar td { padding: 0; text-align: center; border: 2px solid var(--surface); height: 25px; }
.calendar th:first-child { width: 3.8rem; }
.calendar tbody th { background: #748e731a; font-variant-numeric: tabular-nums; }
.calendar td a { display: block; inline-size: 100%; min-block-size: 23px; }
.calendar-players { display: block; color: #172820; overflow-wrap: anywhere; font-size: .75rem; line-height: 1.25; padding: 3px 4px; }
.calendar td a:hover { background: #0002; }
.calendar td a:focus-visible { outline-offset: -3px; }
.free { background: #91d69d; }
.booked { background: #ffe36b; }
.blocked { background: #f48983; }
.machine-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; vertical-align: middle; background: #161616; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { display: grid; place-items: center; border-radius: 4px; width: 18px; height: 18px; }
details:not(.card), .member-readonly { margin-top: 10px; padding: 10px 12px; border: 1px solid #142b1429; border-radius: 10px; }
summary { font-weight: 750; cursor: pointer; }
.member-readonly { font-weight: 750; }
.member-meta { display: block; overflow-wrap: anywhere; font-size: .9rem; font-weight: 400; }
.member-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; margin-top: 10px; }
.member-entry > details:not(.card) { margin-top: 0; }
.backup-path { overflow-wrap: anywhere; }
.backup-files { list-style: none; margin: 0; padding: 0; }
.backup-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 0; border-top: 1px solid #142b1429; }
.suggestion { border-top: 1px solid #142b1429; }
.suggestion h3 { margin-bottom: 4px; }
.suggestion-message { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.suggestion-actions { align-items: end; margin-bottom: 13px; }
.suggestion-actions .day-picker { margin: 0; }
.suggestion-option { align-items: flex-start; padding: 8px 0; border-top: 1px solid #142b1429; }
.suggestion-option input { margin-top: 3px; flex: none; }
.suggestion-option > span { min-width: 0; font-weight: 400; }
.suggestion-option .suggestion-message { display: block; margin: 0 0 4px; }
details[open] > summary { margin-bottom: 9px; }
.tag { display: inline-block; padding: 2px 6px; border-radius: 5px; background: #e8f0e5; color: #164130; font-size: .8rem; }
.amber { color: #613900; background: #ffecad; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 9px; }
.metrics > div { background: #789a7820; padding: 10px 12px; border-radius: 10px; }
.metrics strong, .metrics span { display: block; }
.metrics strong { font-size: 1.3rem; }
.metrics span { font-size: .87rem; }
.drink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; }
.drink-choice { width: 100%; padding: 12px; background: #e8f0e5; color: #164130; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 10px; left: 14px; z-index: 5; padding: 8px; background: #fff; color: #101412; }
@media (max-width: 730px) {
  .pending-member { grid-template-columns: minmax(0, 1fr); }
  .shell { width: calc(100% - 28px); }
  .split { grid-template-columns: 1fr; gap: 0; }
  .masthead { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .header-actions { justify-content: flex-start; }
  main { padding-top: 18px; }
  .hero { border-radius: 18px; }
  .court-badge { flex-basis: 62px; width: 62px; }
  .court-badge strong { font-size: 1.45rem; }
  .court-badge span { font-size: .59rem; }
  .tabs a { padding-inline: 10px; }
  th, td { padding-inline: 8px; }
}
@media (max-width: 360px) {
  .fields { grid-template-columns: 1fr; }
  .hero { gap: 10px; }
}

