/* Rally — club manager dashboard (Today)
   Reflex-blue rail, white sheets on a blue-grey desk, carbonless tints for state,
   stamp ink for what threatens tonight. */

body {
  background: var(--desk);
  font-size: 14px;
  line-height: 1.5;
}

.shell {
  background: linear-gradient(to right, var(--ink) 232px, transparent 232px);
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Rail ---------- */
.sidebar {
  --logo-fill: var(--ink);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  background: var(--ink);
  color: #dbe2fa;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sb-logo {
  margin: 2px 8px 18px;
  color: var(--canary);
}

.club-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.club-switch:hover {
  background: rgba(255, 255, 255, 0.12);
}

.club-switch svg {
  margin-left: auto;
  flex: none;
}

.club-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--canary);
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 850;
}

.club-meta {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.club-meta strong {
  font-size: 14px;
}

.club-meta span {
  font-size: 12px;
  color: #c3cdf3;
}

.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
}

.sb-nav a,
.sb-foot > a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: #dbe2fa;
  text-decoration: none;
}

.sb-nav svg,
.sb-foot svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-nav a:hover,
.sb-foot > a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.sb-nav a.active {
  background: var(--canary);
  color: var(--ink-deep);
}

.sb-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.sb-count[hidden] {
  display: none;
}

.sb-count-muted {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.sb-foot {
  margin-top: auto;
  padding-top: 16px;
}

.sb-plan {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sb-plan-meta {
  font-size: 12px;
  font-weight: 500;
  color: #c3cdf3;
}

.sidebar :focus-visible {
  outline-color: var(--canary);
}

/* ---------- Top bar ---------- */
.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 28px;
  background: var(--white);
  border-bottom: 1.5px solid var(--ink);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(440px, 42%);
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.search:focus-within {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.search svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink-deep);
}

.search input::placeholder {
  color: var(--ink-soft);
  opacity: 0.85;
}

.search input::-webkit-search-cancel-button {
  filter: hue-rotate(200deg);
}

kbd {
  padding: 0 6px;
  border: 1px solid var(--rule-strong);
  font-family: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 38px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.clock strong {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
}

.clock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--canary-3);
  border-color: var(--ink);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  outline: 2px solid var(--white);
}

.menu-btn {
  display: none;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  background: var(--canary);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 850;
  color: var(--ink-deep);
}

/* ---------- Content ---------- */
.content {
  padding: 24px 28px 40px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 30px;
  font-weight: 820;
  font-stretch: 104%;
  letter-spacing: -0.015em;
}

.page-sub {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.page-sub strong {
  color: var(--red-text);
  font-weight: 700;
}

.page-sub strong.ok {
  color: var(--green-ink);
}

.conditions {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.cond {
  padding: 6px 14px 7px;
  border-right: 1px solid var(--rule);
}

.cond:last-child {
  border-right: 0;
}

.cond dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cond dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-deep);
  white-space: nowrap;
}

.cond dd svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--amber-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.cond-open dd {
  color: var(--green-ink);
}

.cond .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-ink);
}

/* Figures: one ruled strip, four fields */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.kpi {
  display: flex;
  flex-direction: column;
  padding: 14px 20px 16px;
  border-right: 1px solid var(--rule);
}

.kpi:last-child {
  border-right: 0;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kpi-value {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 820;
  font-stretch: 104%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kpi-of {
  font-size: 20px;
  font-weight: 650;
  color: var(--ink-soft);
}

.kpi-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.kpi-sub strong {
  color: var(--ink);
}

.kpi-bar {
  height: 6px;
  margin-top: auto;
  background: var(--hair);
  position: relative;
  top: 6px;
}

.kpi-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 0.5s var(--ease-out);
}

.kpi-bar-blue span {
  background: var(--green-ink);
}

.delta {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.delta.up,
.delta.good {
  color: var(--green-ink);
}

.delta.down {
  color: var(--red-text);
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  margin-top: auto;
  padding-top: 8px;
  position: relative;
  top: 6px;
}

.spark span {
  flex: 1;
  background: var(--ink);
}

.spark .today {
  background: var(--canary);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.spark .booked {
  background: repeating-linear-gradient(135deg, var(--sky) 0 3px, transparent 3px 6px);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}

.dots {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  position: relative;
  top: 6px;
}

.nd {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.nd i {
  display: flex;
  gap: 2px;
  height: 7px;
}

.pip {
  width: 7px;
  height: 7px;
  background: var(--red);
}

.nd b {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.nd.future b {
  color: var(--ink-faint);
  font-weight: 500;
}

/* ---------- Needs attention ---------- */
.attention {
  margin-top: 28px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  padding: 1px 8px 0;
  border: 2px solid var(--red-text);
  border-radius: 4px;
  color: var(--red-text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 850;
  font-stretch: 90%;
  rotate: -4deg;
  mix-blend-mode: multiply;
}

.count-pill.clear {
  color: var(--green-ink);
  border-color: var(--green-ink);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.section-note strong {
  color: var(--ink);
}

.attn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.attn-card {
  --tone: var(--red-text);
  --tint: var(--pink-2);
  border: 1.5px solid var(--ink);
  background: var(--white);
  scroll-margin: 90px;
}

.attn-amber {
  --tone: var(--amber-ink);
  --tint: var(--gold-2);
}

.attn-blue {
  --tone: var(--ink);
  --tint: var(--sky-2);
}

.attn-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--rule-strong);
}

.attn-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--tone);
  background: var(--white);
}

.attn-ico svg,
.todo-ico svg,
.resolved-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--tone);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attn-head h3 {
  font-size: 17px;
  font-weight: 780;
  line-height: 1.2;
}

.attn-kicker {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.attn-eta {
  white-space: nowrap;
  font-weight: 750;
  color: var(--tone);
}

/* The signature: time-to-trouble printed as a stamp */
.attn-when {
  margin-top: 2px;
  padding: 2px 7px 1px;
  border: 2px solid var(--tone);
  border-radius: 4px;
  color: var(--tone);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 820;
  font-stretch: 90%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  rotate: -3deg;
  mix-blend-mode: multiply;
}

.attn-body {
  padding: 16px;
}

.attn-text {
  font-size: 14px;
  color: var(--ink-deep);
}

.attn-text strong {
  color: var(--ink);
}

.clash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.clash-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--rule-strong);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-deep);
}

.clash-item strong {
  font-size: 14px;
  color: var(--ink);
}

.clash-item .tag {
  align-self: flex-start;
  margin-bottom: 4px;
}

.clash-vs {
  align-self: center;
  font-family: var(--display);
  font-weight: 850;
  font-size: 13px;
  color: var(--red-text);
}

.muted {
  color: var(--ink-soft);
}

.hint {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--canary-3);
  font-size: 13.5px;
  color: var(--ink-deep);
}

.hint strong {
  color: var(--ink);
}

.hint-small {
  margin-bottom: 0;
  font-size: 12.5px;
}

.choices {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.4;
}

.choice:hover {
  background: var(--canary-3);
}

.choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--canary-3);
}

.choice input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.choice strong {
  color: var(--ink);
  font-weight: 700;
}

.choice-sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.choice em,
.staff-st {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  vertical-align: 1px;
  white-space: nowrap;
}

.rec {
  color: var(--green-ink);
}

.warn {
  color: var(--amber-ink);
}

.muted-tag {
  color: var(--ink-soft);
}

.coach {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.attn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Resolved */
.attn-card.is-resolved {
  --tone: var(--green-ink);
  --tint: var(--green-2);
}

.resolved {
  --tone: var(--green-ink);
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--green-ink);
  background: var(--green-2);
  animation: settle 0.4s var(--ease-out);
}

.resolved-muted {
  --tone: var(--ink-soft);
  border-color: var(--rule-strong);
  background: var(--desk);
}

.resolved-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--tone);
  background: var(--white);
}

.resolved strong {
  display: block;
  font-size: 14px;
  color: var(--tone);
}

.resolved-muted strong {
  color: var(--ink);
}

.resolved p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-deep);
}

@keyframes settle {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.attn-card.is-resolved .attn-when {
  animation: restamp 0.42s var(--ease-out);
}

@keyframes restamp {
  0% {
    opacity: 0;
    scale: 1.6;
  }
  60% {
    opacity: 1;
    scale: 0.96;
  }
  100% {
    scale: 1;
  }
}

.flash {
  animation: flash 1.2s var(--ease-out);
}

@keyframes flash {
  0%,
  100% {
    outline: 0 solid transparent;
  }
  20% {
    outline: 4px solid var(--canary);
    outline-offset: 2px;
  }
}

/* Waitlist */
.wait-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wait-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}

.wait-item:first-child {
  padding-top: 0;
}

.wait-main {
  flex: 1;
  min-width: 0;
}

.wait-top strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.wait-top .muted {
  font-size: 13px;
}

.wait-meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.match {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 3px 8px;
  border: 1px solid var(--ink);
  background: var(--canary-3);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
}

.match.pending {
  border-color: var(--amber-ink);
  background: var(--gold-2);
  color: var(--amber-ink);
}

.match.ok {
  border-color: var(--green-ink);
  background: var(--green-2);
  color: var(--green-ink);
}

.match.blocked {
  border: 1px dashed var(--rule-strong);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 550;
}

.spinner {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.wait-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-basis: 100%;
  padding-left: 42px;
}

/* Avatars: initials in a tinted box */
.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule-strong);
  background: var(--sky-2);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 820;
  color: var(--ink-deep);
}

.av-green {
  background: var(--green);
}

.av-blue {
  background: var(--sky);
}

.av-violet {
  background: var(--lilac);
}

.av-ball {
  background: var(--canary);
}

.av-red {
  background: var(--pink);
}

.av-sm {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

/* To-dos and staff */
.todo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.todo {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
}

.todo-item:last-child {
  border-bottom: 0;
}

.todo-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--tone);
}

.todo-ico.tone-red {
  --tone: var(--red);
}

.todo-ico.tone-amber {
  --tone: var(--amber-ink);
}

.todo-ico.tone-blue {
  --tone: var(--ink);
}

.todo-ico.tone-green {
  --tone: var(--green-ink);
  background: var(--green-2);
}

.todo-main {
  flex: 1;
  min-width: 0;
}

.todo-main strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.todo-main span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.todo-item.done .todo-main strong {
  color: var(--green-ink);
}

.todo-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

.card {
  border: 1.5px solid var(--ink);
  background: var(--white);
  padding: 16px 20px 18px;
}

.card-title {
  font-size: 15px;
  font-weight: 780;
}

.staff-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.staff-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
}

.staff-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.staff-list div {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.35;
}

.staff-list strong {
  font-size: 13.5px;
  color: var(--ink);
}

.staff-list span {
  font-size: 12px;
  color: var(--ink-soft);
}

.staff-st {
  color: var(--ink-soft);
}

.st-ball {
  color: var(--ink);
  background: var(--canary-2);
}

.st-green {
  color: var(--green-ink);
}

.st-red {
  border-width: 1.5px;
  color: var(--red-text);
  rotate: -3deg;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Cards and heads ---------- */
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-head h2 {
  font-size: 19px;
  font-weight: 800;
}

.schedule {
  margin-top: 16px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-deep);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tdot {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  background: var(--c-bg, var(--white));
}

/* Session types share one set of tints */
.t-booking {
  --c-bg: var(--white);
}

.t-open {
  --c-bg: var(--canary-2);
}

.t-league {
  --c-bg: var(--sky-2);
}

.t-ladder {
  --c-bg: var(--green-2);
}

.t-clinic {
  --c-bg: var(--gold-2);
}

.t-lesson {
  --c-bg: var(--lilac);
}

.t-maint {
  --c-bg: repeating-linear-gradient(135deg, var(--desk) 0 4px, var(--white) 4px 8px);
}

.t-open-slot {
  border-style: dashed;
  border-color: var(--ink);
  background: transparent;
}

.tag {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--rule-strong);
  background: var(--c-bg, var(--white));
  font-size: 11px;
  font-weight: 750;
  color: var(--ink-deep);
  white-space: nowrap;
}

/* ---------- Court timeline: identical channels, read by sweeping ---------- */
.timeline-scroll {
  overflow-x: auto;
  margin: 0 -20px -18px;
  padding: 0 0 14px;
}

.timeline {
  --label: 120px;
  position: relative;
  min-width: 1840px;
}

.tl-head {
  display: flex;
  height: 40px;
}

.tl-corner {
  position: sticky;
  left: 0;
  z-index: 6;
  flex: none;
  width: var(--label);
  background: var(--white);
}

.tl-hours {
  position: relative;
  flex: 1;
  border-bottom: 1.5px solid var(--ink);
}

.tl-hours span {
  position: absolute;
  bottom: 5px;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.tl-hours span:first-of-type {
  transform: none;
}

.tl-hours span:last-of-type {
  transform: translateX(-100%);
}

.tl-prime-label {
  position: absolute;
  top: 0;
  height: 17px;
  background: var(--canary);
  color: var(--ink-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 17px;
  text-align: center;
  text-transform: uppercase;
}

.tl-row {
  display: flex;
  height: 54px;
  border-bottom: 1px solid var(--rule);
}

.tl-label {
  position: sticky;
  left: 0;
  z-index: 6;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--label);
  padding-left: 20px;
  border-right: 1px solid var(--rule-strong);
  background: var(--white);
  line-height: 1.25;
}

.tl-label strong {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 780;
  color: var(--ink);
}

.tl-label span {
  font-size: 11px;
  color: var(--ink-soft);
}

.tl-track {
  position: relative;
  flex: 1;
}

.tl-prime {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--canary-3);
}

.tl-past {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: repeating-linear-gradient(135deg, rgba(29, 58, 168, 0.025) 0 6px, rgba(29, 58, 168, 0.06) 6px 12px);
}

.tl-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hair);
}

.tl-open {
  position: absolute;
  top: 7px;
  bottom: 7px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1px dashed var(--rule-strong);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-style: italic;
  font-weight: 550;
  overflow: hidden;
  white-space: nowrap;
}

.tl-open.prime {
  border: 1.5px dashed var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.tl-block {
  position: absolute;
  z-index: 2;
  top: 6px;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0 8px 0 9px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--c-bg);
  color: var(--ink-deep);
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
  cursor: pointer;
}

.tl-block:hover {
  z-index: 4;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.tl-title,
.tl-sub {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tl-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.tl-sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--ink-soft);
}

.tl-block.st-done {
  opacity: 0.55;
}

.tl-block.st-live {
  border: 1.5px solid var(--green-ink);
}

.tl-live {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-ink);
}

.tl-block.st-noshow {
  background: repeating-linear-gradient(135deg, var(--white) 0 5px, var(--desk) 5px 10px);
  border-style: dashed;
}

.tl-block.st-noshow .tl-title,
.tl-block.st-cancelled .tl-title {
  text-decoration: line-through;
  color: var(--ink-soft);
}

.tl-block.st-cancelled {
  border-style: dashed;
  background: var(--white);
}

.tl-block.st-pending {
  border: 1.5px dashed var(--amber-ink);
}

.tl-block.conflict {
  border: 1.5px solid var(--red);
  background: var(--pink-2);
}

.tl-block.conflict.lane-0 {
  top: 3px;
  bottom: 50%;
  margin-bottom: 1px;
}

.tl-block.conflict.lane-1 {
  top: 50%;
  bottom: 3px;
  margin-top: 1px;
}

.tl-block.conflict .tl-sub {
  display: none;
}

.tl-block.st-nocoach {
  border: 1.5px solid var(--red);
}

.tl-flag {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 1.5px solid var(--red-text);
  border-radius: 2px;
  rotate: -6deg;
  mix-blend-mode: multiply;
}

.tl-flag svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--red-text);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.st-nocoach .tl-title,
.st-nocoach .tl-sub,
.conflict .tl-title {
  padding-right: 18px;
}

.tl-now {
  position: absolute;
  top: 22px;
  bottom: 0;
  left: calc(var(--label) + (100% - var(--label)) * var(--now));
  z-index: 1;
  width: 2px;
  margin-left: -1px;
  background: var(--red);
  pointer-events: none;
}

.tl-now span {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  padding: 1px 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Two-column rows ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.two-col-even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

/* Segmented filter */
.seg {
  display: inline-flex;
  border: 1.5px solid var(--ink);
}

.seg button {
  padding: 5px 12px;
  white-space: nowrap;
  border: 0;
  border-right: 1px solid var(--rule-strong);
  background: var(--white);
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}

.seg button:last-child {
  border-right: 0;
}

.seg button:hover {
  background: var(--canary-3);
}

.seg button[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

/* Bookings table */
.table-wrap {
  max-height: 560px;
  overflow: auto;
  margin: 0 -20px -18px;
  border-top: 1.5px solid var(--ink);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--white);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.table th:first-child,
.table td:first-child {
  padding-left: 20px;
}

.table th:last-child,
.table td:last-child {
  padding-right: 20px;
}

.table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hair);
  vertical-align: middle;
  color: var(--ink-deep);
}

.table tbody tr {
  cursor: pointer;
}

.table tbody tr:hover {
  background: var(--canary-3);
}

.table tbody tr:focus-visible {
  outline-offset: -2px;
}

.table .num {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.bk {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.bk .tdot {
  width: 6px;
  height: 32px;
  margin-top: 1px;
  border: 0;
  border-radius: 0;
  background: var(--c-bg);
}

.bk .tdot.t-booking {
  background: var(--sky);
}

.bk .tdot.t-open {
  background: var(--canary);
}

.bk .tdot.t-league {
  background: #9fb4ea;
}

.bk .tdot.t-ladder {
  background: var(--green);
}

.bk .tdot.t-clinic {
  background: var(--gold);
}

.bk strong {
  display: block;
  color: var(--ink);
}

.bk span {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.row-conflict,
.row-nocoach {
  background: var(--pink-2);
}

.row-noshow td,
.row-cancelled td,
.row-done td {
  color: var(--ink-soft);
}

.warn-text {
  color: var(--red-text);
  font-weight: 750;
}

td.empty,
li.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  cursor: default;
}

.pay {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pay.paid {
  border-color: rgba(28, 116, 64, 0.35);
  background: var(--green-2);
  color: var(--green-ink);
}

.pay.due {
  border-color: var(--red);
  background: var(--pink-2);
  color: var(--red-text);
}

.pay.sent {
  border-color: rgba(138, 90, 0, 0.4);
  background: var(--gold-2);
  color: var(--amber-ink);
}

.pay.pass {
  border-color: var(--rule);
  color: var(--ink-soft);
}

.pay.refunded {
  border-color: var(--rule);
  color: var(--ink-soft);
  text-decoration: line-through;
}

.pay.none {
  color: var(--ink-faint);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.s-live {
  color: var(--green-ink);
  font-weight: 750;
}

.s-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.s-done,
.s-cancelled {
  color: var(--ink-faint);
}

.s-conflict,
.s-nocoach,
.s-noshow,
.s-pending {
  padding: 1px 6px 0;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  rotate: -2deg;
  mix-blend-mode: multiply;
}

.s-conflict,
.s-nocoach,
.s-noshow {
  color: var(--red-text);
}

.s-pending {
  color: var(--amber-ink);
}

/* Check-ins */
.sub-title {
  margin: 4px 0 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--text);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.arrivals + .sub-title {
  margin-top: 18px;
}

.arrivals,
.recent,
.ns-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.arrival {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}

.arr-time {
  display: grid;
  line-height: 1.3;
}

.arr-time strong {
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.arr-time span {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.arr-who {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.late {
  margin-left: 4px;
  white-space: nowrap;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-text);
}

.faces {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}

.face {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px dashed var(--rule-strong);
  font-size: 9.5px;
  font-weight: 750;
  color: var(--ink-soft);
}

.face.in {
  border: 1px solid var(--green-ink);
  background: var(--green);
  color: var(--ink-deep);
}

.recent li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
}

.recent li:last-child {
  border-bottom: 0;
}

.recent li.fresh {
  background: var(--green-2);
  margin: 0 -8px;
  padding: 7px 8px;
  animation: settle 0.4s var(--ease-out);
}

.recent div {
  flex: 1;
  display: grid;
  line-height: 1.3;
  min-width: 0;
}

.recent strong {
  font-size: 13px;
  color: var(--ink);
}

.recent span {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.recent time {
  font-size: 12px;
  color: var(--ink-soft);
}

/* Revenue */
.rev-total {
  display: grid;
  justify-items: end;
  text-align: right;
}

.rev-total strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 820;
  line-height: 1.1;
  color: var(--ink);
}

.rev-total span {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.rev-total span strong {
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 750;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 200px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--ink);
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
  gap: 4px;
}

.bar-val {
  font-size: 11.5px;
  font-weight: 650;
  text-align: center;
  color: var(--ink-soft);
}

.bar {
  background: var(--ink);
  transition: height 0.5s var(--ease-out);
}

.today .bar {
  background: var(--canary);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.today .bar-val {
  color: var(--ink);
  font-weight: 800;
}

.booked .bar {
  background: repeating-linear-gradient(135deg, var(--sky) 0 4px, var(--white) 4px 8px);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}

.bar-day {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  color: var(--ink-soft);
}

.bars {
  margin-bottom: 22px;
}

.bar-col .bar-day {
  margin-bottom: -22px;
}

.rev-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rev-breakdown li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.rev-breakdown li.stack {
  grid-column: 1 / -1;
  display: flex;
  gap: 0;
  height: 12px;
  margin-bottom: 6px;
  border: 1px solid var(--ink);
}

.stack span {
  display: block;
  height: 100%;
}

.stack span + span {
  border-left: 1px solid var(--white);
}

.rb-label {
  color: var(--ink-deep);
}

.rb-amt {
  font-weight: 750;
  color: var(--ink);
}

.rb-pct {
  text-align: right;
  color: var(--ink-soft);
}

.sw {
  width: 12px;
  height: 12px;
  border: 1px solid var(--rule-strong);
}

.sw.tone-green,
.stack .tone-green {
  background: var(--ink);
}

.sw.tone-orange,
.stack .tone-orange {
  background: var(--gold);
}

.sw.tone-ball,
.stack .tone-ball {
  background: var(--canary);
}

.sw.tone-indigo,
.stack .tone-indigo {
  background: #7d95e3;
}

.sw.tone-gray,
.stack .tone-gray {
  background: var(--pink);
}

/* No-shows */
.ns-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}

.ns-day {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 780;
  color: var(--ink-soft);
}

.ns-main strong {
  font-size: 13.5px;
  color: var(--ink);
}

.ns-main span {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.repeat {
  margin-left: 6px;
  white-space: nowrap;
  padding: 0 5px;
  border: 1.5px solid var(--red-text);
  border-radius: 3px;
  font-style: normal;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-text);
  mix-blend-mode: multiply;
}

.noshows .hint {
  margin-bottom: 0;
}

.proto-note {
  margin-top: 28px;
  font-size: 12.5px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Popover: a slip on top of the sheet ---------- */
.popover {
  position: fixed;
  z-index: 60;
  width: 340px;
  max-width: calc(100vw - 24px);
  padding: 14px 16px 16px;
  border: 2px solid var(--ink);
  background: var(--white);
  animation: slip-in 0.2s var(--ease-out);
}

@keyframes slip-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}

.pop-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pop-close {
  width: 30px;
  height: 30px;
  margin-left: auto;
}

.popover h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 780;
}

.pop-alert {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--red);
  background: var(--pink-2);
  font-size: 13px;
  color: var(--red-text);
}

.popover dl {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 12px 0 0;
  font-size: 13px;
}

.popover dt {
  font-weight: 650;
  color: var(--ink-soft);
}

.popover dd {
  margin: 0;
  color: var(--ink-deep);
}

.pop-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  padding: 10px 16px 10px 10px;
  border: 1.5px solid var(--canary);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.25s var(--ease-out), translate 0.25s var(--ease-out);
}

.toast.in {
  opacity: 1;
  translate: 0 0;
}

.toast-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--canary);
}

.toast-ico svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink-deep);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-info .toast-ico {
  background: rgba(255, 255, 255, 0.18);
}

.toast-info .toast-ico svg {
  stroke: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .attn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attn-blue {
    grid-column: 1 / -1;
  }

  .clock > span:not(.clock-dot) {
    font-size: 12.5px;
  }
}

@media (max-width: 1180px) {
  .two-col,
  .two-col-even {
    grid-template-columns: minmax(0, 1fr);
  }

  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi:nth-child(2) {
    border-right: 0;
  }

  .kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .kpi-bar,
  .spark,
  .dots {
    top: 0;
    margin-top: 12px;
  }
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    background: none;
  }

  .sidebar {
    position: fixed;
    z-index: 70;
    left: 0;
    top: 0;
    width: 264px;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease-out);
  }

  .nav-open .sidebar {
    transform: none;
  }

  .nav-open .main::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(20, 43, 130, 0.45);
  }

  .menu-btn {
    display: grid;
  }

  .attn-grid,
  .todo-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .attn-blue {
    grid-column: auto;
  }

  .topbar {
    padding: 0 16px;
  }

  .content {
    padding: 20px 16px 32px;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
  }

  .search {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .search kbd,
  .clock,
  .topbar-right .icon-btn {
    display: none;
  }

  #newBookingBtn {
    padding: 0 10px;
    font-size: 13px;
  }

  .avatar {
    display: none;
  }

  .page-head h1 {
    font-size: 25px;
  }

  .conditions {
    width: 100%;
  }

  .cond {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--rule);
  }

  .cond dd {
    white-space: normal;
  }

  .kpis {
    grid-template-columns: 1fr 1fr;
  }

  .kpi {
    padding: 12px 14px 14px;
  }

  .kpi-value {
    font-size: 28px;
  }

  .section-title {
    flex-direction: column;
    gap: 2px;
  }

  .todo-item {
    flex-wrap: wrap;
  }

  .todo-actions {
    flex-basis: 100%;
    padding-left: 42px;
  }

  .clash {
    grid-template-columns: minmax(0, 1fr);
  }

  .clash-vs {
    justify-self: center;
  }

  .card {
    padding: 14px 14px 16px;
  }

  .timeline-scroll,
  .table-wrap {
    margin: 0 -14px -16px;
  }

  .timeline {
    --label: 96px;
  }

  .tl-label {
    padding-left: 14px;
  }

  .table th:first-child,
  .table td:first-child {
    padding-left: 14px;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody {
    display: block;
  }

  .table tbody tr {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "time court status"
      "book book book"
      "players pay pay";
    align-items: center;
    gap: 4px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--rule);
  }

  .table td {
    padding: 0;
    border: 0;
  }

  .table td:first-child,
  .table td:last-child {
    padding: 0;
  }

  .table td:nth-child(1) {
    grid-area: time;
    font-weight: 700;
    color: var(--ink);
  }

  .table td:nth-child(2) {
    grid-area: court;
  }

  .table td:nth-child(3) {
    grid-area: book;
  }

  .table td:nth-child(4) {
    grid-area: players;
    text-align: left;
  }

  .table td:nth-child(4)::after {
    content: " players";
    color: var(--ink-soft);
  }

  .table td:nth-child(5) {
    grid-area: pay;
  }

  .table td:nth-child(6) {
    grid-area: status;
    justify-self: end;
  }

  .table td.empty {
    grid-column: 1 / -1;
    padding: 24px 0;
  }

  .seg {
    width: 100%;
  }

  .seg button {
    flex: 1 1 auto;
    padding: 6px 6px;
    font-size: 12.5px;
  }

  .rev-breakdown {
    grid-template-columns: minmax(0, 1fr);
  }

  .bars {
    gap: 4px;
  }

  .bar-val {
    font-size: 11px;
    letter-spacing: -0.02em;
  }

  .rev-total {
    justify-items: start;
    text-align: left;
  }

  .toasts {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
