* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f7f1;
  color: #193d2d;
  font: 15px system-ui,Arial;
}

header {
  background: #183f30;
  color: white;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  font-size: 21px;
  font-weight: 800;
}

.brand em {
  color: #c6ee83;
  font-style: normal;
}

main {
  max-width: 1300px;
  margin: auto;
  padding: 34px 22px;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  margin: 6px 0;
}

h2 {
  font-size: 19px;
  margin: 0 0 6px;
}

.eyebrow {
  font-size: 11px;
  color: #47825c;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.muted {
  color: #7d9082;
  font-size: 13px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 13px;
  font-weight: 700;
  cursor: pointer;
  background: #e8f2e3;
  color: #22583a;
}

button:hover {
  filter: brightness(.96);
}

button.primary {
  background: #246c4a;
  color: #fff;
}

.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin: 25px 0;
}

.stat, .card {
  background: white;
  border: 1px solid #e1ebe0;
  border-radius: 16px;
  padding: 20px;
}

.stat b {
  display: block;
  font-size: 25px;
  margin-top: 5px;
}

.layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
}

.card {
  margin-bottom: 16px;
}

.courts {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}

.court {
  border: 1px solid #e1ebe0;
  border-radius: 12px;
  overflow: hidden;
}

.court-head {
  background: #1d4433;
  color: white;
  padding: 12px;
  font-weight: 800;
}

.court-body {
  padding: 12px;
}

.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.team {
  background: #edf3fb;
  border-radius: 9px;
  overflow: hidden;
}

.team.orange {
  background: #fcf0e6;
}

.team-label {
  background: #3973b8;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 7px;
}

.orange .team-label {
  background: #df8a39;
}

.player {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  font-size: 13px;
  font-weight: 700;
}

.pfp {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e1f1d3;
  overflow: hidden;
  flex: none;
}

.pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1eb;
}

.row:last-child {
  border: 0;
}

.row .actions button {
  padding: 7px;
  font-size: 11px;
}

.tabs {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: #102a20b8;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  z-index: 10;
}

.overlay.show {
  display: flex;
}

.dialog {
  background: white;
  border-radius: 18px;
  padding: 24px;
  width: min(470px,100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px #0003;
}

.dialog h2 {
  font-size: 23px;
}

.field {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 14px 0;
}

.field input, .field select {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #dce8db;
  border-radius: 9px;
  margin-top: 6px;
  font: inherit;
}

.notice {
  background: #fff3dd;
  border: 1px solid #f0d4a1;
  color: #7d541b;
  padding: 12px;
  border-radius: 10px;
  margin-top: 18px;
  display: none;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b3d2d;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  display: none;
  z-index: 20;
}

.qr {
  text-align: center;
}

.qr img {
  max-width: 230px;
  width: 100%;
  border: 1px solid #e2ebe0;
  border-radius: 15px;
}

.loading {
  padding: 12px;
  color: #71897a;
}

@media(max-width:800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:480px) {
  .courts {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 29px;
  }
  header {
    padding: 15px;
  }
  .brand {
    font-size: 17px;
  }
}

/* BGC garden identity */
body {
  background: #f3f0e7;
  color: #163d2c;
}

header {
  background: #102e21;
  border-bottom: 2px solid #b69243;
  box-shadow: 0 5px 22px #122b1c1b;
}

.brand em {
  color: #e8c66e;
}

.intro {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 30px;
  background: linear-gradient(90deg,rgba(11,34,24,.96) 0%,rgba(13,39,26,.91) 48%,rgba(14,39,26,.68) 100%),url("/images/hero.jpg") center 47%/cover;
  box-shadow: 0 12px 34px #12332224;
  border: 1px solid #ac8a45;
}

.intro h1 {
  color: #f8f4e9;
}

.intro .eyebrow {
  color: #e9c975;
}

.intro .muted {
  color: #d5dfcd;
}

.intro .actions button {
  background: #e8dcc0;
  color: #183d29;
}

.intro .actions button:hover {
  background: #f9eac2;
}

.stat, .card {
  background: #fffdf7;
  border-color: #e8ddc2;
  box-shadow: 0 7px 22px #233f2810;
}

.stat b {
  color: #236243;
}

.card h2 {
  color: #1b4930;
}

.court {
  border-color: #e0d4b4;
}

.court-head {
  background: #183e2d;
  color: #f6e6b2;
}

.team {
  background: #e7f0df;
}

.team-label {
  background: #447454;
}

.team.orange {
  background: #faf0d9;
}

.orange .team-label {
  background: #aa8539;
}

.player-pfp, .pfp {
  background: #e8e5c9;
}

.eyebrow {
  color: #95702a;
}

button {
  background: #eee8d8;
  color: #23553a;
}

button.primary {
  background: #256342;
  color: white;
}

.overlay .dialog {
  background: #fffdf6;
  border: 1px solid #d5be87;
}

.dialog h2 {
  color: #1b4a30;
}

.notice {
  background: #fff3dc;
}

.qr img {
  border-color: #dfcca0;
}

.muted {
  color: #72816f;
}

h1, h2, .brand {
  font-family: Georgia,serif;
  letter-spacing: -.3px;
}

.brand {
  font-size: 21px;
}

.stat {
  border-top: 3px solid #c2a257;
}

@media(max-width:600px) {
  .intro {
    padding: 22px;
  }
  .intro .actions {
    gap: 6px;
  }
  .intro .actions button {
    font-size: 12px;
  }
}

/* Mobile-first player check-in */
body.checkin-mode {
  min-height: 100dvh;
  background: #f3f0e7;
}

body.checkin-mode .overlay {
  position: relative;
  inset: auto;
  min-height: 100dvh;
  align-items: center;
  background: linear-gradient(155deg,#e9f1e3,#f7f1e0);
  padding: 20px 16px;
}

body.checkin-mode .dialog {
  width: 100%;
  max-width: 490px;
  max-height: none;
  overflow: visible;
  padding: 26px 22px;
  border: 1px solid #dcc99b;
  box-shadow: 0 18px 48px #173d2518;
}

body.checkin-mode .dialog h2 {
  font-size: clamp(25px,7vw,32px);
  line-height: 1.2;
}

body.checkin-mode .dialog p, body.checkin-mode .dialog .muted {
  font-size: 15px;
  line-height: 1.5;
}

body.checkin-mode .field {
  font-size: 15px;
  margin: 18px 0;
}

body.checkin-mode .field input, body.checkin-mode .field select {
  font-size: 16px;
  min-height: 52px;
  padding: 13px 12px;
}

body.checkin-mode .field input[type=file] {
  font-size: 14px;
  padding: 12px 8px;
}

body.checkin-mode .actions {
  margin-top: 22px;
}

body.checkin-mode .actions button {
  width: 100%;
  min-height: 54px;
  font-size: 17px;
}

@media(max-width:480px) {
  body.checkin-mode .overlay {
    align-items: flex-start;
    padding: 20px 14px;
  }
  body.checkin-mode .dialog {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* Organizer payment indicators */
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  margin-top: 7px;
  padding: 5px 10px;
  font: 700 11px system-ui,Arial;
  line-height: 1.1;
  letter-spacing: .1px;
  transition: transform .15s ease,box-shadow .15s ease;
  white-space: nowrap;
}

.payment-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 9px #294c251c;
}

.payment-badge.paid {
  background: #e2f2de;
  color: #28683d;
  border: 1px solid #bdddb9;
}

.payment-badge.unpaid {
  background: #f9ead2;
  color: #926023;
  border: 1px solid #e8cf9f;
}

.payment-badge.locked {
  background: #f0eee6;
  color: #817e6e;
  border: 1px solid #e1dfd2;
}

#players .row {
  padding: 14px 2px;
}

#players .player {
  align-items: flex-start;
}

#players .pfp {
  width: 36px;
  height: 36px;
  border: 2px solid #f5f0de;
}

#players .player .muted {
  margin-top: 3px;
}

#players .row .actions {
  justify-content: flex-end;
}

@media(max-width:420px) {
  .payment-badge {
    font-size: 10px;
    padding: 5px 7px;
  }
  #players .row .actions {
    gap: 3px;
  }
  #players .row .actions button {
    padding: 6px;
  }
}

.checkin-list, .import-list {
  max-height: 42vh;
  overflow: auto;
  margin: 12px 0;
}

.checkin-person, .import-row {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 12px;
  background: #f3f5ed;
  border: 1px solid #e2e9d9;
  border-radius: 12px;
  margin: 7px 0;
  padding: 10px;
  color: #204432;
  font-size: 15px;
}

.checkin-person .pfp, .import-row .pfp {
  width: 46px;
  height: 46px;
}

.checkin-arrow {
  margin-left: auto;
  font-size: 20px;
}

.import-row input {
  width: 20px;
  height: 20px;
  flex: none;
}

.import-row small {
  color: #92712c;
}

.selected-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #edf5e9;
  padding: 16px;
  border-radius: 14px;
  margin: 18px 0;
}

.selected-profile .pfp {
  width: 64px;
  height: 64px;
  font-size: 28px;
}

body.checkin-mode .checkin-list {
  max-height: 52vh;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 10px;
  background: #246c4a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

body.checkin-mode .facebook-link {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
}

.roster-section {
  padding-top: 8px;
}

.roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #234e36;
}

.roster-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 9px;
  background: #e3f0df;
  color: #356b42;
  font-size: 12px;
}

.pending-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid #e9e0c7;
}

.pending-count {
  background: #f5ead1;
  color: #9b7130;
}

.roster-hint {
  font-size: 11px;
  color: #879588;
  margin: 5px 0 8px;
}

.player-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.queue-number {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 22px;
  padding: 0 5px;
  border-radius: 7px;
  background: #e1eedb;
  color: #286342;
  font-size: 11px;
  font-weight: 900;
}

.rank-badge {
  background: #f4e9c9;
  color: #906926;
}

.player-row .actions {
  flex-shrink: 0;
}

@media(max-width:460px) {
  .player-row {
    flex-wrap: wrap;
  }
  .player-row .actions {
    margin-left: auto;
  }
  .roster-heading {
    font-size: 13px;
  }
}

/* Optional organizer dark theme; check-in and separate display keep their own styling. */
body.organizer-dark {
  background: #101d17;
  color: #ecf0e5;
}

body.organizer-dark header {
  background: #0c2419;
  border-bottom-color: #a88943;
}

body.organizer-dark .intro {
  border-color: #8a713b;
}

body.organizer-dark .stat, body.organizer-dark .card {
  background: #1a2b20;
  border-color: #42553c;
  box-shadow: 0 8px 24px #0003;
}

body.organizer-dark .stat {
  border-top-color: #b79852;
}

body.organizer-dark .stat b {
  color: #c6e5b2;
}

body.organizer-dark .card h2, body.organizer-dark .roster-heading {
  color: #f1e8cc;
}

body.organizer-dark .muted, body.organizer-dark .roster-hint {
  color: #adbdab;
}

body.organizer-dark button {
  background: #304533;
  color: #e9eddb;
}

body.organizer-dark button.primary {
  background: #43835a;
  color: white;
}

body.organizer-dark button:hover {
  filter: brightness(1.13);
}

body.organizer-dark .intro .actions button {
  background: #dfd1a9;
  color: #1a3a28;
}

body.organizer-dark .court {
  border-color: #495c42;
}

body.organizer-dark .court-head {
  background: #10271a;
  color: #f2d99a;
}

body.organizer-dark .team {
  background: #263d2d;
  color: #ecf1e2;
}

body.organizer-dark .team.orange {
  background: #3b3523;
}

body.organizer-dark .team-label {
  background: #426d4b;
  color: #f1f4e7;
}

body.organizer-dark .orange .team-label {
  background: #927231;
  color: #fff4d6;
}

body.organizer-dark .row {
  border-color: #344838;
}

body.organizer-dark .pending-section {
  border-color: #4b583b;
}

body.organizer-dark .queue-number, body.organizer-dark .roster-count {
  background: #31513a;
  color: #d2ebc5;
}

body.organizer-dark .rank-badge, body.organizer-dark .pending-count {
  background: #564b2e;
  color: #f0d39a;
}

body.organizer-dark .payment-badge.paid {
  background: #25482e;
  color: #bde1b7;
  border-color: #476c49;
}

body.organizer-dark .payment-badge.unpaid {
  background: #514029;
  color: #f1cf8a;
  border-color: #84663a;
}

body.organizer-dark .payment-badge.locked {
  background: #333a2e;
  color: #d2d0bb;
  border-color: #586250;
}

body.organizer-dark .overlay .dialog {
  background: #1c3022;
  color: #f1f2e9;
  border-color: #786739;
}

body.organizer-dark .dialog h2 {
  color: #f2e6bf;
}

body.organizer-dark .field input, body.organizer-dark .field select {
  background: #12251b;
  color: #f3f3e7;
  border-color: #52634c;
}

body.organizer-dark .field input::placeholder {
  color: #9fae9e;
}

body.organizer-dark .import-row, body.organizer-dark .checkin-person, body.organizer-dark .selected-profile {
  background: #263b2a;
  border-color: #4c6044;
  color: #eff4e7;
}

body.organizer-dark .notice {
  background: #503c20;
  border-color: #9b783b;
  color: #f7e0b4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#theme-toggle {
  background: #e9dfbf;
  color: #173c29;
  border: 1px solid #cfb66f;
  min-height: 42px;
}

body.organizer-dark #theme-toggle {
  background: #e9dfbf;
  color: #173c29;
}

@media(max-width:480px) {
  .header-actions {
    gap: 5px;
  }
  #theme-toggle, .header-actions .primary {
    padding: 8px;
    font-size: 11px;
    min-height: 38px;
  }
}

.reclub-url-input {
  display: flex;
  align-items: center;
  margin-top: 7px;
  border: 1px solid #dce8db;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.reclub-url-input span {
  padding: 12px 0 12px 11px;
  color: #6b806f;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.field .reclub-url-input input {
  border: 0;
  margin: 0;
  padding: 12px 10px 12px 2px;
  min-width: 0;
  flex: 1;
  font-size: 15px;
  background: transparent;
  text-transform: none;
}

.reclub-url-input:focus-within {
  outline: 2px solid #91b990;
  outline-offset: 1px;
}

body.organizer-dark .reclub-url-input {
  background: #12251b;
  border-color: #52634c;
}

body.organizer-dark .reclub-url-input span {
  color: #b3c3b1;
}

body.organizer-dark .field .reclub-url-input input {
  background: transparent;
}

@media(max-width:380px) {
  .reclub-url-input span {
    font-size: 11px;
  }
}

.court-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.court-head .remove-court {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  flex: none;
  border-radius: 8px;
  background: #ffffff17;
  color: #f3e8c6;
  border: 1px solid #ffffff26;
  font-size: 15px;
  line-height: 1;
}

.court-head .remove-court:hover {
  background: #8c4b3a;
  color: #fff;
}

body.organizer-dark .court-head .remove-court {
  background: #ffffff16;
  color: #f3e8c6;
}

body.organizer-dark .court-head .remove-court:hover {
  background: #8c4b3a;
  color: #fff;
}

.score-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.score-fields .field {
  margin-top: 4px;
}

@media(max-width:360px) {
  .score-fields {
    grid-template-columns: 1fr;
  }
}

/* Recent games: warm match cards for both organizer themes */
.history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.history-heading h2 {
  margin: 4px 0;
}

.history-heading p {
  margin: 4px 0 0;
}

.history-eyebrow {
  color: #9c7b35;
  font-size: 10px;
  letter-spacing: 1.35px;
  font-weight: 900;
}

.history-counter {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1ead8;
  color: #856d37;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
  white-space: nowrap;
}

.history-game {
  border: 1px solid #e7dfcc;
  border-radius: 14px;
  background: #fffdf9;
  overflow: hidden;
  margin-top: 11px;
  box-shadow: 0 4px 14px #24452809;
}

.history-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: #f5f2e8;
  border-bottom: 1px solid #ebe5d7;
}

.history-court {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .7px;
  color: #335f40;
}

.history-meta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #89968a;
}

.history-matchup {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 9px;
  align-items: stretch;
  padding: 11px;
}

.history-team {
  min-width: 0;
  background: #f4f5ef;
  border: 1px solid #e7ebe0;
  border-radius: 10px;
  padding: 10px;
}

.history-team.history-winner {
  background: #edf5e5;
  border-color: #bcd9aa;
}

.history-team-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #738576;
  font-size: 10px;
  letter-spacing: .7px;
  font-weight: 900;
}

.winner-label {
  color: #45814b;
  font-size: 9px;
  letter-spacing: .3px;
}

.history-score {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  color: #345a3c;
}

.history-players {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.history-player {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #294535;
}

.history-player .pfp {
  width: 27px;
  height: 27px;
  font-size: 13px;
}

.history-player span:last-child {
  overflow-wrap: anywhere;
}

.history-missing {
  font-size: 12px;
  color: #859488;
}

.history-vs {
  display: flex;
  align-items: center;
  color: #a7b0a2;
  font-size: 10px;
  font-weight: 900;
}

.history-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f5f7ef;
  border: 1px dashed #c9dbc1;
  border-radius: 13px;
  padding: 22px;
}

.history-empty>span {
  font-size: 30px;
}

.history-empty p {
  margin: 4px 0 0;
}

body.organizer-dark .history-counter {
  background: #3c442d;
  color: #e9d293;
}

body.organizer-dark .history-game {
  background: #15271b;
  border-color: #455943;
  box-shadow: 0 5px 18px #0002;
}

body.organizer-dark .history-game-top {
  background: #10271a;
  border-color: #3b503c;
}

body.organizer-dark .history-court {
  color: #d5c07d;
}

body.organizer-dark .history-meta {
  color: #a3b7a1;
}

body.organizer-dark .history-team {
  background: #24382a;
  border-color: #415644;
}

body.organizer-dark .history-team.history-winner {
  background: #274b2f;
  border-color: #74915a;
}

body.organizer-dark .history-team-top, body.organizer-dark .history-missing {
  color: #b8cbb2;
}

body.organizer-dark .winner-label {
  color: #b9e5a2;
}

body.organizer-dark .history-score {
  color: #f4e0a4;
}

body.organizer-dark .history-player {
  color: #f1f2e4;
}

body.organizer-dark .history-vs {
  color: #9aac97;
}

body.organizer-dark .history-empty {
  background: #233a29;
  border-color: #536d4e;
}

@media(max-width:440px) {
  .history-game-top {
    flex-wrap: wrap;
  }
  .history-matchup {
    grid-template-columns: 1fr;
  }
  .history-vs {
    justify-content: center;
  }
  .history-player {
    font-size: 13px;
  }
}

/* Expand workspace and add a live Philippine-time calendar */
main {
  max-width: 1900px;
  width: 100%;
  padding: clamp(18px,2.5vw,38px);
  margin: 0 auto;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(275px,330px);
  gap: 16px;
  align-items: stretch;
}

.overview .intro {
  height: 100%;
  min-height: 230px;
  align-content: center;
}

.time-widget {
  background: #fffdf7;
  color: #1d4431;
  border: 1px solid #dfd1ad;
  border-radius: 18px;
  padding: 17px 18px;
  box-shadow: 0 8px 26px #1b3e2512;
}

.clock-block {
  text-align: center;
  border-bottom: 1px solid #eee4cf;
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.widget-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 900;
  color: #95742c;
}

.ph-clock {
  font: 700 clamp(25px,2.3vw,33px) Georgia,serif;
  letter-spacing: -.6px;
  color: #1c5135;
  margin: 5px 0;
}

.ph-date {
  font-size: 12px;
  font-weight: 700;
  color: #677d6c;
}

.widget-zone {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #a69a77;
  margin-top: 5px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.calendar-nav {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  background: #f1eddd;
  color: #31583d;
  border-radius: 8px;
}

.calendar-weekdays, .calendar-days {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 3px;
  text-align: center;
}

.calendar-weekdays span {
  font-size: 10px;
  font-weight: 800;
  color: #9aa99a;
  padding: 3px 0;
}

.calendar-day, .calendar-blank {
  min-height: 24px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #506c56;
  border-radius: 7px;
}

.calendar-day.today {
  background: #316f49;
  color: white;
  font-weight: 900;
  box-shadow: 0 2px 7px #316f4933;
}

.stats {
  margin: 18px 0;
}

.layout {
  grid-template-columns: minmax(0,1.65fr) minmax(340px,1fr);
}

body.organizer-dark .time-widget {
  background: #1a2b20;
  border-color: #526143;
  color: #f0ead5;
}

body.organizer-dark .clock-block {
  border-color: #455741;
}

body.organizer-dark .ph-clock {
  color: #f1d99a;
}

body.organizer-dark .ph-date {
  color: #c6d6bd;
}

body.organizer-dark .widget-zone {
  color: #b4a981;
}

body.organizer-dark .calendar-day {
  color: #c5d4c2;
}

body.organizer-dark .calendar-day.today {
  background: #c2a04e;
  color: #14291c;
}

body.organizer-dark .calendar-nav {
  background: #304533;
  color: #e9eddb;
}

@media(max-width:980px) {
  .overview {
    grid-template-columns: 1fr;
  }
  .overview .intro {
    min-height: 180px;
  }
  .time-widget {
    display: grid;
    grid-template-columns: minmax(160px,.8fr) minmax(220px,1fr);
    align-items: center;
    gap: 18px;
  }
  .clock-block {
    border-bottom: 0;
    border-right: 1px solid #eee4cf;
    margin: 0;
    padding: 8px 16px 8px 0;
  }
  body.organizer-dark .clock-block {
    border-color: #455741;
  }
}

@media(max-width:800px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width:530px) {
  main {
    padding: 16px 12px;
  }
  .time-widget {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .clock-block {
    border-right: 0;
    border-bottom: 1px solid #eee4cf;
    padding: 4px 0 12px;
  }
  .overview .intro {
    min-height: 0;
  }
}

/* Scroll-following organizer navigation */
.side-nav {
  position: fixed;
  z-index: 5;
  top: 80px;
  bottom: 18px;
  left: 18px;
  width: 216px;
  overflow: auto;
  background: #fffdf7;
  border: 1px solid #dfd3b5;
  border-radius: 18px;
  box-shadow: 0 12px 28px #193d2514;
  padding: 17px 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 8px 12px;
  border-bottom: 1px solid #eee7d8;
}

.side-brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #e7efdc;
  color: #47744a;
  border-radius: 11px;
  font-size: 20px;
}

.side-brand strong {
  display: block;
  color: #214d32;
  font: 800 16px Georgia,serif;
}

.side-brand small {
  display: block;
  font-size: 9px;
  color: #a08a58;
  letter-spacing: 1px;
  font-weight: 800;
  margin-top: 2px;
}

.side-label {
  padding: 3px 10px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: #9c9f88;
}

.side-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  color: #315740;
  font-size: 13px;
}

.side-nav button:hover {
  background: #eaf2e4;
  filter: none;
}

.side-nav button.side-end {
  color: #92543b;
}

.side-footer {
  margin-top: auto;
  padding: 12px 9px 2px;
  color: #99a496;
  font-size: 10px;
}

.side-nav~main {
  width: calc(100% - 252px);
  max-width: none;
  margin: 0 0 0 252px;
  padding: clamp(18px,2vw,34px);
}

body.organizer-dark .side-nav {
  background: #192b20;
  border-color: #495a40;
  box-shadow: 0 12px 30px #0004;
}

body.organizer-dark .side-brand {
  border-color: #3b4c39;
}

body.organizer-dark .side-brand-icon {
  background: #2d4933;
  color: #d4d99e;
}

body.organizer-dark .side-brand strong {
  color: #f2e6bf;
}

body.organizer-dark .side-brand small, body.organizer-dark .side-label {
  color: #acaa85;
}

body.organizer-dark .side-nav button {
  background: transparent;
  color: #dce7d5;
}

body.organizer-dark .side-nav button:hover {
  background: #2b4732;
}

body.organizer-dark .side-nav button.side-end {
  color: #e5b4a0;
}

body.organizer-dark .side-footer {
  color: #9cad99;
}

body.checkin-mode .side-nav {
  display: none;
}

@media(max-width:900px) {
  .side-nav {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: 100%;
    z-index: 6;
    border-radius: 0;
    box-shadow: 0 3px 12px #193d2514;
    padding: 7px 10px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
  }
  .side-brand, .side-label, .side-footer {
    display: none;
  }
  .side-nav-group {
    flex-direction: row;
    flex: none;
    gap: 5px;
  }
  .side-nav button {
    width: auto;
    padding: 9px 11px;
    background: #f0f3e8;
    border: 1px solid #e3eadc;
    font-size: 12px;
  }
  .side-nav button span {
    white-space: nowrap;
  }
  body.organizer-dark .side-nav button {
    background: #273e2d;
    border-color: #415743;
  }
  .side-nav~main {
    width: 100%;
    margin: 0;
    padding: 18px;
  }
}

@media(max-width:530px) {
  .side-nav~main {
    padding: 16px 12px;
  }
  .side-nav button {
    font-size: 11px;
    padding: 8px 9px;
  }
}

/* Put both session tools and Manila widgets in the persistent left panel. */
@media(min-width:901px) {
  .side-nav {
    width: 272px;
    top: 72px;
    bottom: 14px;
    gap: 11px;
    padding: 14px 12px;
  }
  .side-nav~main {
    width: calc(100% - 308px);
    margin-left: 308px;
    padding: clamp(18px,2vw,34px);
  }
  .overview {
    display: block;
  }
  .overview .intro {
    min-height: 190px;
  }
  .side-nav .time-widget {
    width: 100%;
    padding: 12px;
    background: #f6f4e9;
    box-shadow: none;
  }
  .side-nav .clock-block {
    padding-bottom: 9px;
    margin-bottom: 8px;
  }
  .side-nav .ph-clock {
    font-size: 27px;
  }
  .side-nav .calendar-day, .side-nav .calendar-blank {
    min-height: 22px;
  }
  .side-nav button {
    padding: 8px 10px;
  }
  body.organizer-dark .side-nav .time-widget {
    background: #122419;
    border-color: #475c3d;
  }
}

.side-nav .mobile-calendar-toggle {
  display: none;
}

@media(max-width:900px) {
  .overview {
    display: block;
  }
  .overview .intro {
    min-height: 180px;
  }
  .side-nav .time-widget {
    order: -2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    padding: 3px 7px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .side-nav .clock-block {
    border: 0;
    margin: 0;
    padding: 0;
  }
  .side-nav .widget-eyebrow, .side-nav .ph-date, .side-nav .widget-zone {
    display: none;
  }
  .side-nav .ph-clock {
    font: 800 15px system-ui;
    margin: 0;
    white-space: nowrap;
  }
  .side-nav .calendar-block {
    display: none;
  }
  .side-nav .mobile-calendar-toggle {
    display: flex;
    order: -1;
    width: auto;
    flex: 0 0 auto;
  }
  .side-nav .calendar-block {
    position: fixed;
    top: 62px;
    right: 12px;
    z-index: 9;
    width: 270px;
    background: #fffdf7;
    border: 1px solid #dfd1ad;
    border-radius: 15px;
    padding: 14px;
    box-shadow: 0 12px 40px #0004;
  }
  .mobile-cal-open .side-nav .calendar-block {
    display: block;
  }
  body.organizer-dark .side-nav .calendar-block {
    background: #1a2b20;
    border-color: #526143;
  }
  .side-nav .calendar-block .calendar-nav {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
  }
  body.organizer-dark .side-nav .time-widget {
    background: transparent;
  }
}

/* Keep navigation below the real, responsive header height. */
body>header {
  position: sticky;
  top: 0;
  z-index: 8;
}

.card[id^="dashboard-"] {
  scroll-margin-top: calc(var(--bgc-header-height, 96px) + 18px);
}

@media(min-width:901px) {
  .side-nav {
    top: calc(var(--bgc-header-height, 96px) + 12px);
  }
}

@media(max-width:900px) {
  .card[id^="dashboard-"] {
    scroll-margin-top: calc(var(--bgc-header-height, 72px) + 68px);
  }
  .side-nav {
    top: var(--bgc-header-height, 72px);
  }
  .side-nav .calendar-block {
    top: calc(var(--bgc-header-height, 72px) + 54px);
  }
}

/* Subtle, usable sidebar scrollbar and compact short-screen layout. */
.side-nav {
  scrollbar-width: thin;
  scrollbar-color: #a7b39a transparent;
  scrollbar-gutter: auto;
}

.side-nav::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.side-nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px;
}

.side-nav::-webkit-scrollbar-thumb {
  background: #a7b39a;
  border-radius: 999px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
  background: #6f8d70;
}

body.organizer-dark .side-nav {
  scrollbar-color: #54715a transparent;
}

body.organizer-dark .side-nav::-webkit-scrollbar-thumb {
  background: #54715a;
}

body.organizer-dark .side-nav::-webkit-scrollbar-thumb:hover {
  background: #7da087;
}

.side-footer {
  line-height: 1.55;
}

.side-footer strong {
  display: inline-block;
  margin-top: 3px;
  color: #987735;
  font-size: 11px;
  font-weight: 800;
}

body.organizer-dark .side-footer strong {
  color: #d9c17c;
}

@media(min-width:901px) and (max-height:850px) {
  .side-nav {
    gap: 7px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .side-brand {
    padding-bottom: 7px;
  }
  .side-nav .time-widget {
    padding: 9px;
  }
  .side-nav .clock-block {
    padding-bottom: 7px;
    margin-bottom: 6px;
  }
  .side-nav .ph-clock {
    font-size: 24px;
    margin: 3px 0;
  }
  .side-nav .calendar-day, .side-nav .calendar-blank {
    min-height: 19px;
  }
  .side-nav button {
    padding: 6px 9px;
  }
  .side-label {
    padding: 3px 9px 4px;
  }
  .side-footer {
    padding-top: 7px;
  }
}

@media(max-width:900px) {
  .side-nav .side-footer {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 8px;
    font-size: 10px;
    white-space: nowrap;
  }
  .side-nav .side-footer strong {
    display: inline;
    margin-left: 4px;
  }
  .side-nav .side-footer br {
    display: none;
  }
}

/* Reclub code field: one clean border with a fixed, readable URL prefix. */
.reclub-url-input {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 1px solid #cbdac8;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s,box-shadow .15s;
}

.reclub-url-input>span {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 11px;
  background: #eff4ea;
  border-right: 1px solid #dce7d7;
  color: #587660;
  font: 600 13px system-ui,Arial;
}

.field .reclub-url-input>input, body.organizer-dark .field .reclub-url-input>input {
  display: block;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0 13px;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  color: #1d4430;
  font: 700 15px system-ui,Arial;
}

.field .reclub-url-input>input:focus, body.organizer-dark .field .reclub-url-input>input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.reclub-url-input:focus-within {
  border-color: #6d9e70;
  outline: 0;
  box-shadow: 0 0 0 3px #7faf7930;
}

body.organizer-dark .reclub-url-input {
  background: #12251b;
  border-color: #526b4b;
}

body.organizer-dark .reclub-url-input>span {
  background: #233d2b;
  border-right-color: #526b4b;
  color: #c4d5bc;
}

body.organizer-dark .field .reclub-url-input>input {
  color: #fff6db;
}

body.organizer-dark .field .reclub-url-input>input::placeholder {
  color: #91a994;
}

@media(max-width:380px) {
  .reclub-url-input>span {
    font-size: 11px;
    padding: 0 8px;
  }
  .field .reclub-url-input>input, body.organizer-dark .field .reclub-url-input>input {
    font-size: 14px;
    padding: 0 9px;
  }
}

/* Calendar markers, private booking panel and dashboard notifications */
.calendar-day {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  min-width: 0;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.calendar-day:hover {
  background: #e5eddc;
}

.calendar-day.has-booking .calendar-dot {
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b28b39;
}

.calendar-day.today.has-booking .calendar-dot {
  background: #fff;
}

.calendar-day.today {
  background: #316f49;
  color: #fff;
}

body.organizer-dark .calendar-day {
  background: transparent;
  color: #c5d4c2;
}

body.organizer-dark .calendar-day:hover {
  background: #354d36;
}

body.organizer-dark .calendar-day.today {
  background: #c2a04e;
  color: #14291c;
}

body.organizer-dark .calendar-day.has-booking .calendar-dot {
  background: #e8ce7a;
}

body.organizer-dark .calendar-day.today.has-booking .calendar-dot {
  background: #183c29;
}

.upcoming-box {
  background: #0b2118d9;
  border: 1px solid #b8975a88;
  border-radius: 15px;
  padding: 14px 15px;
  width: min(375px,46%);
  backdrop-filter: blur(6px);
  color: #f2efdf;
  max-height: 180px;
  overflow: auto;
}

.upcoming-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 900;
  color: #e7c875;
}

.upcoming-heading button, .intro .actions .upcoming-heading button {
  background: transparent;
  color: #e7c875;
  padding: 5px;
  font-size: 11px;
}

.upcoming-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid #fff2;
  background: transparent;
  color: #f6f3e7;
  border-radius: 0;
}

.upcoming-item b, .upcoming-item small {
  display: block;
  overflow-wrap: anywhere;
}

.upcoming-item b {
  font-size: 12px;
}

.upcoming-item small {
  font-size: 10px;
  color: #c0d1bd;
  margin-top: 3px;
}

.upcoming-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4b360;
  margin-top: 4px;
  flex: none;
}

.upcoming-empty {
  font-size: 12px;
  color: #c2d0c0;
  line-height: 1.4;
  margin: 12px 0 3px;
}

.schedule-subheading {
  font-size: 14px;
  margin: 20px 0 6px;
}

.schedule-list {
  max-height: 38vh;
  overflow: auto;
}

.schedule-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  margin: 6px 0;
  padding: 12px;
  border: 1px solid #e0e8d9;
  background: #f3f6ed;
  border-radius: 10px;
}

.schedule-row strong, .schedule-row small {
  display: block;
  overflow-wrap: anywhere;
}

.schedule-row small {
  font-size: 11px;
  color: #778d7b;
  margin-top: 4px;
}

.booking-detail {
  background: #f2f6ed;
  border-radius: 12px;
  padding: 15px;
  margin: 14px 0;
}

.booking-detail p {
  font-size: 13px;
  color: #586f60;
  margin: 9px 0;
}

.booking-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid #dce8db;
  border-radius: 9px;
  font: 14px system-ui;
  min-height: 70px;
  resize: vertical;
}

.court-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.court-choice {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dce8db;
  border-radius: 9px;
  padding: 8px;
}

.court-choice input {
  width: auto;
  margin: 0;
  accent-color: #397752;
}

.booking-error {
  font-size: 12px;
  color: #a55439;
  margin: 8px 0;
}

body.organizer-dark .schedule-row, body.organizer-dark .booking-detail {
  background: #263b2a;
  border-color: #4c6044;
  color: #eff4e7;
}

body.organizer-dark .schedule-row small, body.organizer-dark .booking-detail p {
  color: #bbcbb8;
}

body.organizer-dark .field textarea {
  background: #12251b;
  color: #f3f3e7;
  border-color: #52634c;
}

body.organizer-dark .court-choice {
  border-color: #52634c;
}

body.organizer-dark .booking-error {
  color: #f3bea4;
}

@media(max-width:750px) {
  .overview .intro {
    gap: 20px;
    align-items: flex-start;
  }
  .upcoming-box {
    width: 100%;
    max-height: 160px;
  }
  .booking-times {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:380px) {
  .booking-times {
    grid-template-columns: 1fr;
  }
}

.bgc-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 5px 5px 0 0;
  padding: 5px 8px;
  border-radius: 9px;
  background: #e8f1df;
  color: #315f3c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.bgc-rating small {
  font-size: 9px;
  letter-spacing: .3px;
  opacity: .8;
}

.rating-move.up {
  color: #357f43;
}

.rating-move.down {
  color: #a45639;
}

.rating-move.flat {
  color: #809181;
}

.rating-note {
  font-size: 11px;
  color: #7f917e;
  line-height: 1.4;
}

body.organizer-dark .bgc-rating {
  background: #304b34;
  color: #d7edc8;
}

body.organizer-dark .rating-move.up {
  color: #aae0a5;
}

body.organizer-dark .rating-move.down {
  color: #f3b9a1;
}

.player-tabs {
  flex-wrap: wrap;
}

.player-tabs button[aria-pressed="true"] {
  background: #246c4a;
  color: #fff;
  box-shadow: 0 0 0 2px #bca061;
}

body.organizer-dark .player-tabs button[aria-pressed="true"] {
  background: #8ca970;
  color: #102a1d;
  box-shadow: 0 0 0 2px #dcc583;
}

.club-browser {
  padding: 2px;
}

.club-browser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.club-browser-head h2 {
  font-size: 23px;
  margin: 5px 0;
}

.club-event-list {
  display: grid;
  gap: 10px;
}

.club-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid #e5dcc5;
  border-radius: 14px;
  background: #faf9f2;
  box-shadow: 0 3px 12px #273b2508;
}

.club-event-main {
  min-width: 0;
}

.club-event-main strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: #244b34;
  overflow-wrap: anywhere;
}

.club-event-meta {
  margin-top: 7px;
  font-size: 12px;
  color: #788774;
}

.club-event button {
  flex: none;
  white-space: nowrap;
}

.club-footnote {
  margin-top: 14px;
}

body.organizer-dark .club-event {
  background: #263b2a;
  border-color: #4c6044;
}

body.organizer-dark .club-event-main strong {
  color: #f1efd9;
}

@media(max-width:520px) {
  .club-event {
    align-items: flex-start;
    flex-direction: column;
  }
  .club-event button {
    width: 100%;
  }
  .club-browser-head h2 {
    font-size: 20px;
  }
}

.game-elapsed {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #ffffff20;
  color: #f0d88f;
  font-size: 12px;
  letter-spacing: .3px;
}

.wait-elapsed {
  display: inline-block;
  min-width: 40px;
  font-variant-numeric: tabular-nums;
  color: #8b7132;
  font-weight: 800;
}

body.organizer-dark .wait-elapsed {
  color: #f0d88f;
}

.court-player {
  position: relative;
}

.player-replace {
  margin-left: auto;
  flex: none;
  padding: 5px 7px;
  border-radius: 8px;
  background: #f0e7c9;
  color: #6b5929;
  font-size: 14px;
  line-height: 1;
}

.player-replace:hover {
  background: #e0cc8a;
}

body.organizer-dark .player-replace {
  background: #4c492e;
  color: #f2df9f;
}

body.organizer-dark .player-replace:hover {
  background: #6b6033;
}

.queue-view .player-row {
  margin: 8px 0;
  padding: 11px 10px;
  border: 1px solid #e5dec9;
  border-radius: 12px;
  background: #fbfaf4;
  box-shadow: 0 3px 10px #203c2208;
}

.queue-view .player-row:last-child {
  border: 1px solid #e5dec9;
}

body.organizer-dark .queue-view .player-row {
  background: #203326;
  border-color: #475942;
  box-shadow: none;
}

.queue-view .queue-number {
  min-width: 30px;
  height: 26px;
  font-size: 12px;
}

.queue-view .wait-elapsed {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history-pager {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-pager button {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f1ead8;
  color: #856d37;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.history-pager button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

body.organizer-dark .history-pager button {
  background: #3c442d;
  color: #e9d293;
}

.history-average {
  flex: 1;
  text-align: center;
  color: #927536;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.history-pager {
  flex: none;
}

@media(max-width:700px) {
  .history-heading {
    flex-wrap: wrap;
  }
  .history-average {
    order: 3;
    flex-basis: 100%;
    text-align: left;
    padding-left: 2px;
  }
}

body.organizer-dark .history-average {
  color: #e4c879;
}

body.is-busy {
  cursor: progress;
}

button[data-action].is-loading {
  opacity: .62;
  cursor: progress;
  pointer-events: none;
}
