* { box-sizing: border-box; }
body {
  font: 15px/1.5 Inter, system-ui, sans-serif;
  color: #193329;
  background: #f2f5f0;
  margin: 0;
  padding: 28px;
}
main { max-width: 1400px; margin: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 27px; letter-spacing: -1px; margin-bottom: 0; }
h2 { font-size: 23px; letter-spacing: -.5px; }
h3 { font-size: 17px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.environment { font-size: 12px; color: #667c6d; border-left: 1px solid #ccd8cd; padding-left: 14px; }
#login {
  max-width: 440px;
  margin: 8vh auto 30px;
  background: white;
  border: 1px solid #dce5db;
  border-radius: 16px;
  padding: 30px;
}
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
input, select, button { font: inherit; border-radius: 8px; padding: 10px 13px; }
input, select {
  display: block;
  border: 1px solid #cdd9cb;
  background: white;
  color: #193329;
  width: 100%;
  margin-top: 6px;
}
input:focus, select:focus { outline: 2px solid #8ead75; outline-offset: 2px; }
button {
  background: #1b392c;
  color: white;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
button:hover { background: #2f5340; }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { background: white; color: #294a36; border-color: #d4dfd0; }
#login > button { width: 100%; }
#login > button[type=button] { margin-top: 10px; background: #edf2e7; color: #365132; }
#login svg { display: block; margin: 18px auto; max-width: 100%; }
p[role=alert] { color: #a33930; margin: 14px 0; }
#error:empty { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.account { font-size: 13px; color: #667c6d; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
.sidebar { background: white; border: 1px solid #dce5db; border-radius: 14px; padding: 16px; align-self: start; }
.sidebar label { color: #6c7d6e; font-size: 12px; }
.sidebar nav { display: grid; gap: 5px; margin-top: 18px; }
.sidebar nav button { background: transparent; color: #506552; text-align: left; font-weight: 500; }
.sidebar nav button:hover { background: #f0f4ec; }
.sidebar nav button.active { background: #e9f0df; color: #21402d; font-weight: 700; }
.sidebar .divider { height: 1px; background: #e5ebe1; margin: 10px 0; }
.workspace-pane { min-width: 0; }
.workspace-pane > section, .card { background: white; border: 1px solid #dce5db; border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.workspace-pane > section > form { margin-top: 20px; }
.workspace-pane > section > p { color: #617465; }
#view-heading { margin-bottom: 4px; }
#gym-caption { color: #6c7d6e; margin-bottom: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { border: 1px solid #e0e7db; border-radius: 10px; padding: 20px; background: white; }
.stat span { display: block; color: #697d69; font-size: 12px; }
.stat strong { display: block; font-size: 27px; margin-top: 8px; font-weight: 650; }
.table-wrap { overflow: auto; background: white; border: 1px solid #dce5db; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e8ede5; font-size: 13px; }
th { color: #71816f; font-size: 12px; background: #fbfcf8; font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 30px; color: #6d7f6c; background: white; border: 1px solid #dce5db; border-radius: 12px; }
.toolbar { display: flex; gap: 12px; align-items: flex-end; margin: 0 0 20px; }
.toolbar label { flex: 1; margin: 0; }
.toolbar button { height: 44px; }
.toolbar select { min-width: 150px; }
.next-page { margin-top: 16px; }
.booking-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: end; }
.booking-form label { margin: 0; }
.booking-form > button { align-self: end; height: 44px; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.row-actions select { font-size: 12px; min-width: 160px; margin: 0; }
li { margin-bottom: 8px; }
a { color: #2d6438; }
code { overflow-wrap: anywhere; }
#settings form { max-width: 650px; }
#settings input { margin-bottom: 12px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  body { padding: 16px; }
  .workspace { grid-template-columns: 1fr; gap: 16px; }
  .sidebar nav { display: flex; overflow: auto; margin-top: 8px; }
  .sidebar nav button { white-space: nowrap; }
  .sidebar .divider { display: none; }
  .sidebar { padding: 14px; }
  .brand { margin-bottom: 16px; }
  .topbar { align-items: flex-start; }
  .workspace-pane > section, .card { padding: 18px; }
  #login { padding: 24px; margin-top: 5vh; }
  .toolbar { flex-wrap: wrap; }
  .toolbar label { min-width: 180px; }
  .account { max-width: 65%; overflow-wrap: anywhere; }
  th, td { padding: 12px; }
  .environment { font-size: 11px; }
}
