/* Rally — manager dashboard */

body {
  background: var(--bg);
  font-size: 14px;
}

/* ---------- Shell ---------- */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 14px 16px;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
  overflow-y: auto;
}

.sb-logo {
  padding: 2px 10px 18px;
  color: #fff;
}

.club-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

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

.club-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: var(--ball);
  color: var(--ink);
  font-weight: 800;
  font-size: 12.5px;
}

.club-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

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

.club-meta span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.sb-nav,
.sb-foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-nav a,
.sb-foot a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

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

.sb-nav a.active {
  background: rgba(243, 172, 116, 0.10);
  color: var(--ball);
}

.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-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.sb-count-muted {
  background: rgba(255, 255, 255, 0.14);
}

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

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

.sb-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: #fff;
  font-weight: 600;
}

.sb-plan-meta {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.main {
  min-width: 0;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 32px;
  background: rgba(245, 246, 241, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
}

.search:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(23, 121, 93, 0.14);
}

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

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.search kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

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

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 34px;
  border-radius: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

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

.clock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 3px rgba(23, 121, 93, 0.18);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(13, 27, 22, 0.06);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.menu-btn {
  display: none;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ball);
  font-weight: 800;
  font-size: 12.5px;
}

/* ---------- Content ---------- */
.content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1480px;
  padding: 28px 32px 48px;
}

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

.page-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-head h1 {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

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

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

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

.page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

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

.chip-green {
  background: var(--green-50);
  border-color: #cfe6d9;
  color: var(--green-800);
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
}

/* ---------- Cards ---------- */
.card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: none;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.card-head h2,
.section-title h2 {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-note {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

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

.sub-title {
  margin: 4px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
}

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

/* ---------- KPIs ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: none;
  overflow: hidden;
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.kpi-value {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.kpi-of {
  font-size: 20px;
  color: var(--faint);
  font-weight: 700;
}

.kpi-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  min-height: 19px;
}

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

.kpi-bar {
  height: 6px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
}

.kpi-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-600);
  transition: width 0.4s ease;
}

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

.delta {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
}

.delta.up,
.delta.good {
  background: var(--green-50);
  color: var(--green-700);
}

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

.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  margin-top: 10px;
}

.spark span {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: var(--green-600);
}

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

.spark span.booked {
  background: repeating-linear-gradient(135deg, #cfe2d7 0 3px, #e6f0ea 3px 6px);
}

.dots {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

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

.nd i {
  min-height: 12px;
  font-style: normal;
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 1px;
  color: var(--red);
}

.nd b {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--faint);
}

.nd.future b {
  opacity: 1;
}

/* ---------- Needs attention ---------- */
.attention {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.section-title h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}

.count-pill {
  padding: 1px 9px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.count-pill.clear {
  background: var(--green-600);
}

.attn-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.attn-card {
  --tone: var(--red);
  --tone-bg: var(--red-50);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: none;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.attn-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--tone);
}

.attn-amber {
  --tone: #e08a00;
  --tone-bg: var(--amber-50);
}

.attn-blue {
  --tone: var(--blue);
  --tone-bg: var(--blue-50);
}

.attn-card.is-resolved {
  --tone: var(--green-600);
  --tone-bg: var(--green-50);
  box-shadow: none;
}

.attn-card.flash {
  animation: flash 1.2s ease;
}

@keyframes flash {
  0%,
  100% {
    box-shadow: none;
  }
  30% {
    box-shadow: 0 0 0 4px var(--tone), var(--shadow);
  }
}

.attn-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 0;
}

.attn-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--tone-bg);
  color: var(--tone);
}

.attn-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attn-kicker {
  font-size: 12px;
  font-weight: 650;
  color: var(--tone);
}

.attn-head h3 {
  margin-top: 2px;
  font-size: 16.5px;
  font-weight: 750;
}

.attn-when {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--tone-bg);
  color: var(--tone);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.attn-body {
  padding: 14px 18px 18px;
}

.attn-text {
  color: var(--ink-2);
  line-height: 1.55;
}

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

.clash-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 3px;
  border: 1px solid #f3c9cb;
  background: #fffafa;
  font-size: 12.5px;
  line-height: 1.4;
}

.clash-item strong {
  margin-top: 6px;
  font-size: 14px;
}

.clash-item .muted {
  font-size: 12px;
}

.clash-vs {
  align-self: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
}

.hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hint-small {
  font-size: 12.5px;
  color: var(--muted);
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color 0.15s, background-color 0.15s;
}

.choice:hover {
  border-color: #c9cfc7;
}

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

.choice input {
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.choice strong {
  font-size: 13.5px;
}

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

.choice em,
.wait-top em {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 3px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.rec {
  background: var(--green-100);
  color: var(--green-700);
}

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

.muted-tag {
  background: var(--line-2);
  color: var(--muted);
}

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

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

/* Avatars */
.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 700;
}

.av-sm {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}

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

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

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

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

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

/* Resolved state */
.resolved {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 3px;
  background: var(--green-50);
  animation: rise 0.35s ease;
}

.resolved-muted {
  background: var(--bg);
}

.resolved-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-600);
}

.resolved-muted .resolved-ico {
  background: var(--muted);
}

.resolved-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resolved strong {
  font-size: 14px;
}

.resolved p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* Waitlist */
.wait-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wait-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.wait-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wait-top {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.wait-top strong {
  font-size: 14px;
}

.wait-top .muted {
  font-size: 13px;
  color: var(--ink-2);
}

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

.match {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.match.blocked {
  background: var(--bg);
  color: var(--muted);
}

.match.pending {
  background: var(--amber-50);
  color: var(--amber);
}

.match.ok {
  background: var(--green-50);
  color: var(--green-700);
}

.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 {
    transform: rotate(360deg);
  }
}

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

/* To-do list + staff */
.todo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.todo {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: none;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}

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

.todo-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 3px;
}

.todo-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-red {
  background: var(--red-50);
  color: var(--red);
}

.tone-amber {
  background: var(--amber-50);
  color: var(--amber);
}

.tone-blue {
  background: var(--blue-50);
  color: var(--blue);
}

.todo-ico.tone-green {
  background: var(--green-600);
  color: #fff;
}

.todo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.todo-main strong {
  font-size: 14px;
  font-weight: 650;
}

.todo-main span {
  font-size: 12.5px;
  color: var(--muted);
}

.todo-item.done .todo-main strong {
  color: var(--muted);
  font-weight: 550;
}

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

.staff {
  padding: 18px;
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-list li > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.staff-list strong {
  font-size: 13.5px;
}

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

.staff-st {
  flex: none;
  padding: 2px 8px;
  border-radius: 3px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 650;
  background: var(--line-2);
  color: var(--muted);
}

.st-green {
  background: var(--green-50);
  color: var(--green-700);
}

.st-red {
  background: var(--red-50);
  color: var(--red);
}

.st-blue {
  background: var(--blue-50);
  color: var(--blue);
}

/* ---------- Type colors ---------- */
.t-booking {
  --c: #17795d;
  --c-bg: #e2f2e9;
  --c-ink: #0b3d30;
}

.t-open {
  --c: #93ad12;
  --c-bg: #f1f9cc;
  --c-ink: #3b4705;
}

.t-league {
  --c: #4a5fd6;
  --c-bg: #e9ecff;
  --c-ink: #23308a;
}

.t-ladder {
  --c: #7a4fd6;
  --c-bg: #f1ebff;
  --c-ink: #43258f;
}

.t-clinic {
  --c: #dd7516;
  --c-bg: #fff0e2;
  --c-ink: #793a05;
}

.t-lesson {
  --c: #2389b5;
  --c-bg: #e3f3fa;
  --c-ink: #0b4862;
}

.t-maint {
  --c: #8a9892;
  --c-bg: #eef0ed;
  --c-ink: #4a5752;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 11.5px;
  font-weight: 650;
}

.tdot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.tdot.t-open-slot {
  background: transparent;
  border: 1.5px dashed var(--green-600);
}

/* ---------- Timeline ---------- */
.schedule {
  padding-bottom: 14px;
}

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

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

.timeline-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.timeline {
  --label: 96px;
  position: relative;
  min-width: 1560px;
}

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

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

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

.tl-hours span {
  position: absolute;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
}

.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;
  border-radius: 6px 6px 0 0;
  background: var(--ball-100);
  color: #5d6b08;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  line-height: 17px;
}

.tl-row {
  display: flex;
  height: 54px;
  border-top: 1px solid var(--line-2);
}

.tl-row:last-child {
  border-bottom: 1px solid var(--line-2);
}

.tl-label {
  position: sticky;
  left: 0;
  z-index: 6;
  background: var(--card);
  box-shadow: 8px 0 8px -8px rgba(13, 27, 22, 0.12);
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--label);
  line-height: 1.25;
}

.tl-label strong {
  font-size: 13px;
}

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

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

.tl-prime {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(243, 172, 116, 0.10);
}

.tl-past {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: repeating-linear-gradient(135deg, rgba(13, 27, 22, 0.018) 0 6px, rgba(13, 27, 22, 0.04) 6px 12px);
}

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

.tl-open {
  position: absolute;
  top: 7px;
  bottom: 7px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1.5px dashed #c6d3cb;
  border-radius: 3px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.tl-open.prime {
  border-color: var(--green-600);
  background: rgba(23, 121, 93, 0.05);
  color: var(--green-700);
}

.tl-block {
  position: absolute;
  top: 6px;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0 8px 0 10px;
  border: 0;
  border-left: 3px solid var(--c);
  border-radius: 3px;
  background: var(--c-bg);
  color: var(--c-ink);
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.tl-block:hover {
  z-index: 3;
  box-shadow: 0 4px 14px rgba(13, 27, 22, 0.15);
  transform: translateY(-1px);
}

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

.tl-title {
  font-size: 12px;
  font-weight: 650;
}

.tl-sub {
  margin-top: 1px;
  font-size: 11px;
  opacity: 1;
}

.tl-block.st-done {
  filter: saturate(0.4);
  opacity: 1;
}

.tl-block.st-live {
  box-shadow: inset 0 0 0 1.5px var(--c);
}

.tl-live {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  animation: live 1.6s infinite;
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 121, 93, 0.5);
  }
  100% {
    box-shadow: 0 0 0 7px rgba(23, 121, 93, 0);
  }
}

.tl-block.st-noshow {
  --c: #b8c0bb;
  --c-bg: #f4f5f2;
  --c-ink: #626d67;
  background: repeating-linear-gradient(135deg, #f4f5f2 0 6px, #eceee9 6px 12px);
}

.tl-block.st-noshow .tl-title {
  text-decoration: line-through;
}

.tl-block.st-cancelled {
  --c: #b8c0bb;
  --c-bg: #f7f8f5;
  --c-ink: #626d67;
  border: 1.5px dashed #c6cdc8;
}

.tl-block.st-cancelled .tl-title {
  text-decoration: line-through;
}

.tl-block.st-pending {
  border-left-style: dashed;
  box-shadow: inset 0 0 0 1.5px rgba(122, 79, 214, 0.35);
}

.tl-block.conflict {
  --c: var(--red);
  --c-ink: #7d1418;
  background: repeating-linear-gradient(135deg, #fde3e4 0 6px, #fbd2d4 6px 12px);
  box-shadow: inset 0 0 0 1.5px var(--red);
}

.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 {
  box-shadow: inset 0 0 0 1.5px #e08a00;
}

.tl-flag {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.st-nocoach .tl-flag {
  background: #e08a00;
}

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

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

.tl-now span {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translate(-50%, -100%);
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

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

.bookings {
  display: flex;
  flex-direction: column;
}

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

/* Segmented control */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 3px;
  background: var(--line-2);
}

.seg button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

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

/* Bookings table */
.table-wrap {
  flex: 1 1 0;
  min-height: 420px;
  margin: 0 -22px -20px;
  overflow: auto;
  border-top: 1px solid var(--line-2);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: #f7f6ef;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-align: left;
}

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

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

.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

.table tbody tr {
  cursor: pointer;
}

.table tbody tr:hover {
  background: #f7f6ef;
}

.table tbody tr:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

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

.table .nowrap {
  white-space: nowrap;
}

.table .empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.row-done td {
  color: var(--faint);
}

.row-conflict {
  background: #fffafa;
}

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

.bk .tdot {
  margin-top: 5px;
}

.bk div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.bk strong {
  font-weight: 600;
}

.row-done .bk strong {
  color: var(--muted);
}

.bk span {
  font-size: 12.5px;
  color: var(--muted);
}

.warn-text {
  color: var(--amber);
  font-weight: 650;
}

.pay,
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pay.paid {
  background: var(--green-50);
  color: var(--green-700);
}

.pay.due {
  background: var(--amber-50);
  color: var(--amber);
}

.pay.sent {
  background: var(--blue-50);
  color: var(--blue);
}

.pay.pass,
.pay.none,
.pay.refunded {
  background: var(--line-2);
  color: var(--muted);
}

.status {
  background: var(--line-2);
  color: var(--muted);
}

.s-live {
  background: var(--green-600);
  color: #fff;
}

.s-upcoming {
  background: transparent;
  color: var(--ink-2);
  padding-inline: 0;
}

.s-conflict,
.s-noshow {
  background: var(--red-50);
  color: var(--red);
}

.s-nocoach,
.s-pending {
  background: var(--amber-50);
  color: var(--amber);
}

.s-done {
  background: transparent;
  color: var(--faint);
  padding-inline: 0;
}

/* Check-ins */
.arrivals,
.recent {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.arrival {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}

.arr-time {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 64px;
  line-height: 1.3;
}

.arr-time strong {
  font-size: 13px;
}

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

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

.arr-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  font-weight: 600;
  font-size: 13.5px;
}

.late {
  white-space: nowrap;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--amber-50);
  color: var(--amber);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

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

.face {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: -5px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--line-2);
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 700;
}

.face.in {
  background: var(--green-600);
  color: #fff;
}

.recent li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.recent li > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.recent strong {
  font-size: 13px;
  font-weight: 600;
}

.recent span:not(.av) {
  font-size: 12px;
  color: var(--muted);
}

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

.recent li.fresh {
  animation: rise 0.35s ease;
}

.recent li.fresh time {
  color: var(--green-700);
  font-weight: 650;
}

.checkins .empty,
.arrivals .empty {
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

/* Revenue */
.rev-total {
  text-align: right;
  line-height: 1.3;
}

.rev-total strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

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

.rev-total span strong {
  display: inline;
  font-size: inherit;
  letter-spacing: 0;
  font-weight: 650;
  color: var(--ink);
}

.revenue {
  display: flex;
  flex-direction: column;
}

.rev-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex: 1;
  min-height: 180px;
  padding-top: 20px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 5px;
}

.bar {
  width: 100%;
  max-width: 48px;
  border-radius: 6px 6px 2px 2px;
  background: var(--green-600);
  transition: height 0.4s ease;
}

.bar-col.today .bar {
  background: var(--ink);
}

.bar-col.booked .bar {
  background: repeating-linear-gradient(135deg, #d5e7dc 0 5px, #e9f2ec 5px 10px);
  box-shadow: inset 0 0 0 1px #c6dccf;
}

.bar-val {
  font-size: 10.5px;
  font-weight: 650;
  color: var(--muted);
}

.bar-col.today .bar-val {
  color: var(--ink);
}

.bar-col.booked .bar-val {
  color: var(--faint);
}

.bar-day {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
}

.bar-col.today .bar-day {
  color: var(--ink);
}

.rev-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.rev-breakdown .stack {
  grid-column: 1 / -1;
  display: flex;
  height: 10px;
  margin-bottom: 4px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}

.rev-breakdown li:not(.stack) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}

.rb-label {
  flex: 1;
  color: var(--ink-2);
}

.rb-amt {
  font-weight: 650;
}

.rb-pct {
  width: 36px;
  text-align: right;
  color: var(--faint);
  font-size: 12px;
}

.stack .tone-green,
.sw.tone-green {
  background: var(--green-600);
  color: inherit;
}

.stack .tone-orange,
.sw.tone-orange {
  background: #dd7516;
}

.stack .tone-ball,
.sw.tone-ball {
  background: #b5d12a;
}

.stack .tone-indigo,
.sw.tone-indigo {
  background: #4a5fd6;
}

.stack .tone-gray,
.sw.tone-gray {
  background: #b8c0bb;
}

/* No-shows */
.ns-list {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ns-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}

.ns-day {
  flex: none;
  width: 44px;
  font-size: 12px;
  font-weight: 650;
  color: var(--faint);
}

.ns-list li:first-child .ns-day {
  color: var(--ink);
}

.ns-main {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.ns-main strong {
  font-size: 13.5px;
  font-weight: 600;
}

.ns-main span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.repeat {
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 3px;
  background: var(--red-50);
  color: var(--red);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

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

/* ---------- Popover ---------- */
.popover {
  position: fixed;
  z-index: 60;
  width: 330px;
  max-width: calc(100vw - 24px);
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: rise 0.18s ease;
}

.pop-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px -8px 10px 0;
}

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

.pop-close svg {
  width: 16px;
  height: 16px;
}

.popover h3 {
  font-size: 16px;
  font-weight: 750;
}

.pop-alert {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 3px;
  background: var(--red-50);
  color: #7d1418;
  font-size: 12.5px;
  line-height: 1.45;
}

.popover dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 7px 10px;
  margin: 14px 0 0;
  font-size: 13px;
}

.popover dt {
  color: var(--faint);
}

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

.pop-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- 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: 420px;
  padding: 11px 16px 11px 12px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.in {
  opacity: 1;
  transform: none;
}

.toast-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ball);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.toast-info .toast-ico {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-style: italic;
  font-family: Georgia, serif;
}

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

  .attn-grid > .attn-red {
    grid-column: 1 / -1;
  }

  .attn-red .attn-body[data-state="open"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .attn-red .attn-body[data-state="open"] .clash,
  .attn-red .attn-body[data-state="open"] .hint {
    grid-column: 1;
  }

  .attn-red .attn-body[data-state="open"] .choices {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .attn-red .attn-body[data-state="open"] .attn-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .nav-open .sidebar {
    transform: none;
    box-shadow: var(--shadow-lg);
  }

  .menu-btn {
    display: grid;
  }

  .topbar {
    padding: 0 16px;
  }

  .clock {
    display: none;
  }

  .content {
    padding: 22px 16px 40px;
  }

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

  .attn-red .attn-body[data-state="open"] {
    display: block;
  }

  .attn-red .attn-body[data-state="open"] .choices {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .search kbd,
  #newBookingBtn {
    display: none;
  }

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

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

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

  .todo-main {
    flex: 1 1 calc(100% - 48px);
  }

  .todo-actions {
    padding-left: 48px;
  }

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

  .bars {
    gap: 6px;
  }

  .rev-total {
    text-align: left;
  }

  .table th:nth-child(4),
  .table td:nth-child(4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Rally clubhouse — a working desk, with room to breathe. */
.skip-link { position: absolute; top: -70px; left: 12px; padding: 12px; background: var(--ball); z-index: 100; }
.skip-link:focus { top: 12px; }
.shell { grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { padding: 27px 16px 18px; background: #233582; color: #cbd1e7; }
.sb-logo { padding: 0 8px 28px; color: #fff9e8; font-size: 37px; }
.sb-logo .logo-mark { width: 32px; height: 32px; }
.club-switch { gap: 9px; padding: 13px 8px; margin: 0 0 26px; border-inline: 0; border-radius: 0; border-color: #ffffff30; background: transparent; }
.club-badge { width: 32px; height: 36px; background: #f2b485; border-radius: 16px 16px 2px 2px; font-size: 10px; }
.club-meta strong { font-size: 12px; font-weight: 600; color: #fff9e8; }
.club-meta span { font-size: 10px; color: #b7c0e1; margin-top: 4px; }
.club-switch > svg { width: 11px; }
.sb-label { padding: 0 11px; margin-bottom: 13px; font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: #9eadd9; }
.sb-nav { gap: 5px; }
.sb-nav a, .sb-foot a { position: relative; gap: 11px; padding: 10px 12px; font-size: 13px; border-radius: 3px; }
.sb-nav a.active { background: #fff9e8; color: #233582; font-weight: 700; }
.sb-nav a.active::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; background: #f2b485; }
.sb-nav svg, .sb-foot svg { width: 16px; height: 16px; stroke-width: 1.5; }
.sb-count { font-family: var(--mono); border-radius: 50%; min-width: 19px; height: 19px; padding: 1px 5px; font-size: 10px; background: #c46646; }
.sb-count-muted { color: #dae0f4; background: #ffffff1a; }
.sb-foot { margin-top: 18px; padding-top: 0; }
.sb-plan { padding: 16px 9px 0; border-top: 1px solid #ffffff26; border-radius: 0; background: transparent; font-size: 10px; color: #f8f4e8; }
.sb-plan-meta { font-size: 9px; color: #bdc5e3; }
.sb-court { position: relative; width: 130px; min-height: 120px; margin: auto auto 0; padding-top: 40px; opacity: .8; }
.sb-court > span { position: absolute; top: 40px; left: 19px; width: 91px; height: 60px; border: 1px solid #b6bede; transform: rotate(-12deg); }
.sb-court > span::before { content: ''; position: absolute; inset: -1px 28px; border-inline: 1px solid #b6bede; background: #ffffff08; }
.sb-court > span::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #b6bede; }
.sb-court > i { position: absolute; top: 33px; right: 10px; width: 17px; height: 17px; background: #f2b485; border-radius: 50%; }
.sb-court b { display: block; position: relative; margin-top: 75px; font-size: 7px; font-family: var(--mono); letter-spacing: .12em; text-align: center; font-weight: 400; color: #dbe0f2; }
.topbar { height: 76px; padding: 0 36px; gap: 20px; background: #f6f5edf5; backdrop-filter: blur(12px); }
.search { min-width: 0; width: min(330px, 100%); height: 34px; padding-inline: 0; border: 0; border-radius: 0; background: transparent; }
.search input { font-size: 12px; }
.search:focus-within { border-bottom: 1px solid var(--ink); box-shadow: none; }
.search kbd { background: #fffdf7; font-size: 10px; padding-inline: 5px; }
.clock { padding: 0 10px 0 0; border: 0; border-radius: 0; background: transparent; font-size: 10px; }
.clock-dot { width: 5px; height: 5px; box-shadow: none; }
.topbar-right { gap: 15px; }
.topbar-right .btn { height: 35px; padding-inline: 13px; font-size: 11px; }
.avatar { width: 32px; height: 32px; background: #eac09c; font-size: 10px; }
.icon-btn { width: 30px; height: 30px; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-dot { top: 5px; right: 4px; }
.content { max-width: 1640px; padding: 32px 36px 40px; gap: 30px; margin-inline: auto; }
.page-head { position: relative; align-items: center; flex-wrap: nowrap; gap: 20px; }
.page-kicker { font-family: var(--mono); font-size: 9px; font-weight: 400; color: #636979; letter-spacing: .08em; }
.page-head h1 { margin-top: 9px; font-family: var(--display); font-size: clamp(38px, 3.3vw, 50px); letter-spacing: -.025em; font-weight: 400; line-height: 1.05; }
.page-sub { font-size: 12px; margin-top: 12px; color: #636771; }
.page-sub strong { font-weight: 600; }
.page-chips { flex-direction: column; align-items: flex-end; gap: 7px; }
.chip { height: auto; padding: 0; border: 0; background: transparent; font-size: 10px; border-radius: 0; color: #626875; }
.chip-green { color: var(--green-700); }
.chip svg { width: 13px; height: 13px; }
.chip .dot { width: 5px; height: 5px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid #bcbfc9; padding-block: 22px; }
.kpi { min-width: 0; padding: 0 25px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; overflow: hidden; }
.kpi:first-child { padding-left: 0; }
.kpi:last-child { padding-right: 0; border-right: 0; }
.kpi-label { font-size: 11px; font-weight: 500; color: #6c707c; }
.kpi-value { font-size: 37px; font-weight: 500; letter-spacing: -.06em; margin-top: 8px; }
.kpi-of { font-size: 19px; font-weight: 400; color: #656a78; }
.kpi-sub { margin-top: 9px; font-size: 11px; min-height: 15px; white-space: normal; }
.kpi-bar { margin-top: 12px; height: 3px; border-radius: 0; background: #e2e3de; }
.kpi-bar span { background: var(--ink); }
.kpi-bar-blue span { background: #b98463; }
.delta { padding: 0; font-size: 10px; background: transparent !important; }
.spark { height: 17px; margin-top: 5px; gap: 4px; }
.spark span { border-radius: 0; background: #8b9ac3; }
.spark span.today { background: var(--ink); }
.spark span.booked { background: repeating-linear-gradient(135deg, #c5cbdf 0 2px, #f6f5ed 2px 4px); }
.dots { margin-top: 6px; }
.nd i { min-height: 9px; font-size: 8px; line-height: 9px; }
.nd b { font-family: var(--mono); font-size: 8px; font-weight: 400; }
.attention { gap: 17px; }
.section-title { align-items: center; }
.section-title h2 { font-family: var(--display); font-size: 28px; letter-spacing: -.02em; font-weight: 400; }
.count-pill { padding: 2px 6px; min-width: 21px; font-family: var(--font); font-size: 10px; line-height: 17px; border-radius: 50%; background: #b95a40; }
.section-note { font-size: 11px; line-height: 1.6; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 2.8fr) minmax(258px, 1fr); gap: 20px; align-items: start; }
.operations-main, .operations-rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.attn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.attn-grid > .attn-red { grid-column: auto; }
.attn-red .attn-body[data-state='open'] { display: block; }
.attn-red .attn-body[data-state='open'] .choices { margin-top: 12px; }
.attn-card { border-color: #d2d2cd; border-radius: 4px; background: #fffef9; box-shadow: none; }
.attn-card::before { height: 2px; }
.attn-amber { --tone: #83561e; --tone-bg: #f4eddd; }
.attn-blue { --tone: #344b96; --tone-bg: #ebedf6; }
.attn-head { align-items: center; gap: 9px; padding: 16px 16px 14px; background: var(--tone-bg); border-bottom: 1px solid #202f820a; }
.attn-ico { width: 27px; height: 27px; background: transparent; border: 1px solid currentColor; border-radius: 50%; }
.attn-ico svg { width: 15px; height: 15px; stroke-width: 1.6; }
.attn-kicker { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: -.03em; }
.attn-head h3 { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; margin-top: 5px; }
.attn-when { position: absolute; top: 8px; right: 9px; padding: 0; font-size: 8px; font-weight: 500; background: transparent; }
.attn-body { padding: 15px 16px 16px; }
.clash { gap: 5px; }
.clash-item { padding: 10px 8px; border-color: #e4d5c9; border-radius: 2px; background: #fdf8f0; font-size: 11px; line-height: 1.5; }
.clash-item strong { font-size: 12px; margin-top: 5px; font-weight: 600; }
.clash-item .muted { font-size: 10px; color: #6d6963; }
.clash-vs { font-family: var(--display); text-transform: none; font-size: 14px; font-weight: 400; }
.tag { font-size: 8px; border-radius: 2px; padding: 1px 5px; }
.hint { font-size: 11px; line-height: 1.65; padding: 9px 10px; border-radius: 2px; background: #f2f1e9; color: #686b70; }
.hint strong { color: #535963; font-weight: 600; }
.hint-small { font-size: 11px; }
.choices { gap: 7px; }
.choice { gap: 7px; padding: 9px 8px; border-color: #deded5; border-radius: 3px; line-height: 1.45; }
.choice:has(input:checked) { border-color: #6775ab; background: #f1f2f8; box-shadow: none; }
.choice input { width: 12px; height: 12px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.choice strong { font-size: 12px; font-weight: 600; }
.choice-sub { font-size: 11px; line-height: 1.6; color: #656972; }
.choice em, .wait-top em { margin-left: 0; margin-top: 3px; padding: 1px 5px; font-size: 8px; border-radius: 2px; }
.rec { background: #e4e9db; color: #4c6545; }
.attn-text { font-size: 12px; line-height: 1.8; }
.coach { gap: 7px; }
.av { width: 27px; height: 27px; font-size: 9px; }
.attn-actions { gap: 4px 5px; margin-top: 13px; }
.attn-actions .btn { padding-inline: 10px; height: 35px; font-size: 11px; }
.attn-actions .btn-ghost { padding-inline: 4px; font-size: 10px; height: 28px; }
.btn-red { background: #b6573e; }
.wait-list { gap: 0; }
.wait-item { gap: 9px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.wait-item:first-child { padding-top: 0; }
.wait-top strong { font-size: 12px; font-weight: 600; }
.wait-top .muted { font-size: 11px; margin-top: 2px; }
.wait-meta { font-size: 10px; line-height: 1.6; }
.wait-actions { padding-left: 36px; gap: 5px; }
.wait-actions .btn { font-size: 10px; height: 28px; padding-inline: 8px; }
.match { padding: 3px 5px; border-radius: 2px; font-size: 10px; }
.waitlist .attn-body, #waitlist .attn-body { padding: 16px; }
.todo-wrap { display: block; }
.todo { border-radius: 3px; background: #fffef9; }
.todo-item { padding: 14px 15px; gap: 10px; }
.todo-ico { width: 26px; height: 26px; border-radius: 50%; }
.todo-ico svg { width: 14px; height: 14px; }
.todo-main strong { font-size: 12px; font-weight: 600; }
.todo-main span { font-size: 11px; margin-top: 3px; line-height: 1.6; }
.todo-actions .btn { height: 31px; font-size: 10px; padding-inline: 9px; }
.card { border-color: #d2d2cd; border-radius: 3px; background: #fffef9; box-shadow: none; }
.staff { padding: 16px; background: transparent; border-inline: 0; border-bottom: 0; border-radius: 0; }
.card-title { margin-bottom: 17px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.staff-list { gap: 15px; }
.staff-list li { gap: 8px; }
.staff-list strong { font-size: 11px; font-weight: 600; }
.staff-list span { font-size: 10px; }
.staff-st { padding: 2px 4px; font-size: 8px; font-weight: 500; }
.card-head h2 { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.schedule { border-top: 2px solid #32458e; padding-top: 21px; }
.legend { font-size: 9px; gap: 5px 11px; }
.tdot { width: 7px; height: 7px; border-radius: 1px; }
.t-booking { --c: #637cab; --c-bg: #e5eaf4; --c-ink: #32487c; }
.t-open { --c: #9aab77; --c-bg: #eef1df; --c-ink: #5b6e35; }
.t-league { --c: #6d71a1; --c-bg: #e9e9f2; --c-ink: #454d82; }
.t-ladder { --c: #9581a1; --c-bg: #f0e8f1; --c-ink: #75607f; }
.t-clinic { --c: #c18a5d; --c-bg: #f7ebdc; --c-ink: #8c5b32; }
.t-lesson { --c: #6f9c96; --c-bg: #e8f1ec; --c-ink: #406b64; }
.timeline { min-width: 1450px; }
.tl-label, .tl-corner { background: var(--card); }
.tl-label strong { font-size: 11px; font-weight: 600; }
.tl-label span { font-size: 9px; }
.tl-hours span { font-family: var(--mono); font-size: 9px; font-weight: 400; }
.tl-prime-label { background: #f9ecdd; color: #845b2f; font-size: 8px; }
.tl-title { font-size: 10px; font-weight: 500; }
.tl-sub { font-size: 9px; }
.tl-block { border-radius: 2px; border-left-width: 2px; }
.tl-open { border-radius: 2px; font-size: 10px; }
.tl-now span { border-radius: 2px; font-size: 9px; }
.tl-prime { background: #f4e9d838; }
.two-col { gap: 20px; }
.seg { background: #f0f0e9; border-radius: 2px; padding: 2px; }
.seg button { padding-inline: 9px; font-size: 10px; height: 27px; border-radius: 2px; }
.seg button[aria-selected='true'] { background: #263a86; color: #fff9e8; box-shadow: none; }
.table th { font-family: var(--mono); font-size: 8px; font-weight: 400; background: #f4f3eb; }
.table td { font-size: 12px; padding-block: 13px; }
.bk span { font-size: 11px; }
.pay, .status { font-size: 10px; padding: 2px 6px; border-radius: 2px; }
.sub-title { color: #656a78; font-family: var(--mono); font-size: 8px; font-weight: 400; }
.rev-total strong { font-size: 30px; font-weight: 500; letter-spacing: -.05em; }
.rev-total span { font-size: 10px; }
.proto-note { font-size: 9px; }
.popover { border-radius: 4px; border: 1px solid #aeb4c9; }
.toast { border-radius: 3px; background: var(--ink); }
@media (min-width: 1700px) {
  .content { padding-inline: 48px; }
  .operations-grid { grid-template-columns: minmax(0, 3fr) minmax(285px, 1fr); }
  .attn-head h3 { font-size: 15px; }
  .attn-text { font-size: 12px; }
  .choice strong { font-size: 11px; }
  .choice-sub { font-size: 10px; }
}
@media (max-width: 1250px) and (min-width: 961px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .content { padding-inline: 25px; }
  .topbar { padding-inline: 25px; gap: 10px; }
  .topbar-right { gap: 8px; }
  .clock { font-size: 9px; }
  .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .operations-rail { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; }
  .staff { border-top: 0; padding-top: 5px; }
  .attn-head h3 { font-size: 15px; }
  .attn-text { font-size: 12px; }
  .choice strong { font-size: 11px; }
  .choice-sub { font-size: 10px; }
}
@media (max-width: 1180px) {
  .two-col, .two-col-even { grid-template-columns: minmax(0, 1fr); }
  .page-chips .chip:last-child { max-width: 210px; text-align: right; }
  .kpi { padding-inline: 18px; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: 240px; }
  .topbar { height: 65px; padding-inline: 20px; gap: 16px; }
  .topbar-right { gap: 10px; }
  .content { padding: 26px 24px 40px; }
  .page-head h1 { font-size: 43px; }
  .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .operations-rail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .attn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attn-head h3 { font-size: 14px; }
  .attn-text { font-size: 12px; }
  .choice strong { font-size: 11px; }
  .choice-sub { font-size: 10px; }
  .staff { padding-top: 5px; border-top: 0; }
  .staff-list strong { font-size: 12px; }
  .staff-list span { font-size: 10px; }
  .menu-btn { display: grid; flex: none; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .content { padding: 24px 16px 35px; gap: 25px; }
  .topbar { padding-inline: 14px; gap: 12px; }
  .topbar-right { gap: 6px; }
  .search input { font-size: 10px; }
  .search kbd { display: none; }
  #newBookingBtn { display: inline-flex; padding-inline: 7px; gap: 4px; font-size: 9px; height: 31px; }
  #newBookingBtn svg { width: 10px; }
  .topbar-right .icon-btn { display: grid; width: 24px; }
  .topbar-right .avatar { width: 28px; height: 28px; font-size: 9px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-head h1 { font-size: 39px; }
  .page-sub { font-size: 11px; }
  .page-chips { align-items: flex-start; gap: 6px; }
  .page-chips .chip:last-child { max-width: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 0; }
  .kpi { padding: 18px 16px; border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .kpi:last-child { padding-right: 0; border-bottom: 0; }
  .kpi-value { font-size: 34px; }
  .kpi-label { font-size: 11px; }
  .kpi-sub { font-size: 9px; }
  .kpi-of { font-size: 17px; }
  .section-title { gap: 5px; }
  .section-title h2 { font-size: 28px; }
  .section-title .section-note { width: 100%; }
  .attn-grid, .operations-rail { grid-template-columns: 1fr; }
  .attn-head { padding: 18px 16px 15px; }
  .attn-head h3 { font-size: 16px; }
  .attn-kicker { font-size: 9px; }
  .attn-when { top: 9px; font-size: 9px; }
  .attn-body { padding: 16px; }
  .attn-text { font-size: 13px; }
  .clash { grid-template-columns: 1fr auto 1fr; }
  .clash-item { font-size: 10px; }
  .choice { padding: 12px 10px; }
  .choice strong { font-size: 12px; }
  .choice-sub { font-size: 11px; }
  .choice em { font-size: 9px; }
  .hint { font-size: 11px; }
  .attn-actions .btn { height: 38px; font-size: 11px; padding-inline: 12px; }
  .attn-actions .btn-ghost { height: 32px; font-size: 10px; }
  .coach .av { width: 30px; height: 30px; }
  .wait-top strong { font-size: 13px; }
  .wait-top .muted { font-size: 12px; }
  .wait-meta { font-size: 10px; }
  .match { font-size: 10px; }
  .wait-actions .btn { font-size: 11px; height: 33px; }
  .staff { padding: 20px 5px 5px; border-top: 1px solid var(--line); }
  .staff-list strong { font-size: 12px; }
  .staff-list span { font-size: 10px; }
  .staff-st { font-size: 9px; }
  .todo-item { gap: 9px; }
  .todo-main { flex: 1 1 calc(100% - 36px); }
  .todo-main strong { font-size: 12px; }
  .todo-main span { font-size: 10px; }
  .todo-actions { padding-left: 35px; }
  .todo-actions .btn { font-size: 10px; height: 32px; }
  .card { padding: 18px 16px; }
  .card-head h2 { font-size: 27px; }
  .table-wrap { margin: 0 -16px -18px; min-height: 360px; }
  .table { min-width: 560px; }
  .table th:nth-child(4), .table td:nth-child(4) { display: table-cell; }
  .legend { gap: 8px 12px; }
  .seg { max-width: 100%; }
  .seg button { padding-inline: 8px; font-size: 10px; height: 31px; }
}

/* The same court-blue, clay and sage palette carries into reporting. */
.bar { border-radius: 2px 2px 0 0; background: #8798bd; }
.bar-col.booked .bar { background: repeating-linear-gradient(135deg, #d4d9e6 0 4px, #eef0f5 4px 8px); box-shadow: inset 0 0 0 1px #c4cadd; }
.stack .tone-green, .sw.tone-green { background: #637cab; }
.stack .tone-orange, .sw.tone-orange { background: #ca946b; }
.stack .tone-ball, .sw.tone-ball { background: #a9b78b; }
.stack .tone-indigo, .sw.tone-indigo { background: #9383a4; }
.rev-breakdown { font-size: 11px; gap: 10px 20px; }
.rb-pct { font-size: 10px; width: 26px; }
@media (max-width: 640px) { .rev-breakdown { grid-template-columns: 1fr; } }

.staff-list .av-ball { color: var(--ink); }
