﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@800;900&display=swap");

:root {
  --bg: #eaf2fb;
  --panel: rgba(248, 251, 255, 0.95);
  --panel-strong: rgba(14, 29, 51, 0.95);
  --line: rgba(22, 52, 94, 0.12);
  --line-strong: rgba(22, 52, 94, 0.22);
  --text: #122642;
  --muted: #56708f;
  --soft: #7f97b2;
  --accent: #8fd4ff;
  --accent-deep: #2f79b8;
  --card: #f5f9ff;
  --shadow: 0 24px 60px rgba(18, 38, 66, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

html.is-drawer-open,
body.is-drawer-open {
  overflow: hidden;
}

body {
  background:
    linear-gradient(180deg, rgba(143, 212, 255, 0.18), transparent 18%),
    radial-gradient(circle at top left, rgba(33, 85, 155, 0.18), transparent 32%),
    linear-gradient(180deg, var(--bg), #f4f8ff 45%, #e3eefb);
  color: var(--text);
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(255, 255, 255, 0.18) 7.1% 7.35%, transparent 7.45% 92.55%, rgba(255, 255, 255, 0.18) 92.65% 92.9%, transparent 93%),
    linear-gradient(180deg, transparent 0 18%, rgba(255, 255, 255, 0.15) 18.1% 18.35%, transparent 18.45% 81.55%, rgba(255, 255, 255, 0.15) 81.65% 81.9%, transparent 82%);
  opacity: 0.45;
}

body.page-home {
  background: #fff;
  font-family: var(--font-sans);
}

body.page-home h1,
body.page-home h2,
body.page-home h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

body.page-home::before {
  opacity: 0;
}

@media (min-width: 781px) {
  body.page-customers {
    background: #fff;
    font-family: var(--font-sans);
  }

  body.page-customers::before {
    opacity: 0;
  }

  body.page-customers h1,
  body.page-customers h2,
  body.page-customers h3 {
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
  }

  body.page-customers .topbar {
    background: #fff;
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-customers .topbar .eyebrow,
  body.page-customers .topbar .lede,
  body.page-customers .topbar .week-kicker {
    color: rgba(86, 112, 143, 0.86);
  }

  body.page-customers .topbar .ghost-button,
  body.page-customers .topbar .ghost-icon-button {
    color: rgba(18, 38, 66, 0.92);
    border-color: var(--line-strong);
    background: transparent;
  }

  body.page-customers .topbar .ghost-button:hover,
  body.page-customers .topbar .ghost-icon-button:hover {
    background: rgba(143, 212, 255, 0.14);
  }

  body.page-customers .customer-panel {
    padding: 18px;
    background: var(--panel);
    color: var(--text);
  }

  body.page-customers .customer-panel .field span,
  body.page-customers .customer-panel .subtle-label,
  body.page-customers .customer-panel .panel-chip,
  body.page-customers .customer-panel .customer-toolbar-copy p {
    color: rgba(86, 112, 143, 0.86);
  }

  body.page-customers .customer-panel .field input,
  body.page-customers .customer-panel .field textarea,
  body.page-customers .customer-panel .field select {
    color: var(--text);
  }

  body.page-customers .customer-panel .field:not(.is-green) input,
  body.page-customers .customer-panel .field:not(.is-green) textarea,
  body.page-customers .customer-panel .field:not(.is-green) select {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--line);
  }

  body.page-customers .customer-panel .field input::placeholder {
    color: rgba(86, 112, 143, 0.78);
  }

  body.page-customers .customer-panel .field select option {
    background: #fff;
    color: var(--text);
  }

  body.page-customers .customer-panel .ghost-button,
  body.page-customers .customer-panel .secondary-button {
    color: var(--text);
  }

  body.page-customers .customer-panel .danger-button {
    color: #bb2c2c;
    border-color: rgba(187, 44, 44, 0.22);
    background: transparent;
  }

  body.page-customers .customer-panel .danger-button:hover {
    background: rgba(187, 44, 44, 0.08);
  }

  body.page-customers .customer-card {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(22, 52, 94, 0.12);
  }

  body.page-customers .customer-name {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-customers .customer-card-top:hover .customer-name {
    color: rgba(47, 121, 184, 0.92);
  }

  body.page-customers .customer-sport-name {
    color: rgba(18, 38, 66, 0.86);
  }

  body.page-customers .customer-contact {
    color: rgba(18, 38, 66, 0.78);
  }

  body.page-customers .customer-contact-link:hover {
    color: rgba(47, 121, 184, 0.92);
  }

  body.page-customers .customer-note {
    color: rgba(86, 112, 143, 0.92);
  }

  body.page-customers .customer-panel .customer-alpha-heading {
    color: rgba(86, 112, 143, 0.92);
  }

  body.page-customers .customer-panel .customer-alpha-heading::after {
    background: rgba(22, 52, 94, 0.12);
  }

  body.page-customers .customer-row-subline {
    display: block;
    color: rgba(86, 112, 143, 0.92);
  }

  body.page-customers .sample-pill {
    color: rgba(47, 121, 184, 0.92);
    background: rgba(143, 212, 255, 0.28);
    border-color: rgba(47, 121, 184, 0.22);
  }
}

body.page-customer-profile {
  background: #fff;
  font-family: var(--font-sans);
}

body.page-customer-sessions {
  background: #fff;
  font-family: var(--font-sans);
}

body.page-customer-profile h1,
body.page-customer-profile h2,
body.page-customer-profile h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

body.page-customer-sessions h1,
body.page-customer-sessions h2,
body.page-customer-sessions h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

body.page-customer-profile::before {
  opacity: 0;
}

body.page-customer-sessions::before {
  opacity: 0;
}

body.page-customer-profile .topbar {
  background: #fff;
  color: rgba(18, 38, 66, 0.92);
}

body.page-customer-sessions .topbar {
  background: #fff;
  color: rgba(18, 38, 66, 0.92);
}

body.page-customer-profile .topbar .eyebrow,
body.page-customer-profile .topbar .lede,
body.page-customer-profile .topbar .week-kicker {
  color: rgba(86, 112, 143, 0.86);
}

body.page-customer-sessions .topbar .eyebrow,
body.page-customer-sessions .topbar .lede,
body.page-customer-sessions .topbar .week-kicker {
  color: rgba(86, 112, 143, 0.86);
}

body.page-customer-profile .topbar .ghost-button,
body.page-customer-profile .topbar .ghost-icon-button {
  color: rgba(18, 38, 66, 0.92);
  border-color: var(--line-strong);
  background: transparent;
}

body.page-customer-sessions .topbar .ghost-button,
body.page-customer-sessions .topbar .ghost-icon-button {
  color: rgba(18, 38, 66, 0.92);
  border-color: var(--line-strong);
  background: transparent;
}

body.page-customer-profile .topbar .ghost-button:hover,
body.page-customer-profile .topbar .ghost-icon-button:hover {
  background: rgba(143, 212, 255, 0.14);
}

body.page-customer-sessions .topbar .ghost-button:hover,
body.page-customer-sessions .topbar .ghost-icon-button:hover {
  background: rgba(143, 212, 255, 0.14);
}

body.page-customer-view {
  background: #fff;
  font-family: var(--font-sans);
}

body.page-customer-view::before {
  opacity: 0;
}

body.page-customer-view .page-shell {
  width: min(760px, calc(100% - 26px));
  padding: 14px 0 40px;
}

.customer-view-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 10px;
}

.customer-view-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: rgba(18, 38, 66, 0.92);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px;
}

.customer-view-nav-link:hover {
  background: rgba(143, 212, 255, 0.18);
}

.customer-view-nav-spacer {
  flex: 1;
}

.customer-view-main {
  display: grid;
  gap: 18px;
}

.customer-view-hero {
  text-align: center;
  padding-top: 6px;
}

.customer-view-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background:
    radial-gradient(circle at 35% 35%, rgba(143, 212, 255, 0.5), rgba(255, 255, 255, 0.2) 55%),
    rgba(248, 251, 255, 0.95);
  color: rgba(18, 38, 66, 0.92);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.customer-view-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.customer-view-name {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(18, 38, 66, 0.94);
}

.customer-view-phone {
  margin: 10px auto 0;
  width: min(100%, 720px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(143, 212, 255, 0.12);
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(86, 112, 143, 0.92);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.customer-view-email {
  margin: 8px auto 0;
  width: min(100%, 720px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(143, 212, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(86, 112, 143, 0.92);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.customer-view-email-link {
  color: rgba(47, 121, 184, 0.92);
  text-decoration: none;
}

.customer-view-email-link:hover {
  text-decoration: underline;
}

.customer-view-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 10px;
  flex-wrap: wrap;
}

.customer-view-action {
  width: 86px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px 9px;
  border-radius: 18px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(18, 38, 66, 0.08);
  text-decoration: none;
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-action:hover {
  background: rgba(143, 212, 255, 0.14);
  border-color: rgba(47, 121, 184, 0.2);
}

.customer-view-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(10, 99, 255, 0.22);
  background: #0a63ff;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(10, 99, 255, 0.16);
}

.customer-view-action-icon svg {
  width: 22px;
  height: 22px;
}

.customer-view-action-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(86, 112, 143, 0.94);
}

.customer-view-action[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.customer-view-section {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 52, 94, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(18, 38, 66, 0.08);
}

.customer-view-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.customer-view-section-title {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-section-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(47, 121, 184, 0.92);
  text-decoration: none;
}

.customer-view-section-link:hover {
  text-decoration: underline;
}

.customer-view-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-view-kpi {
  border-radius: 16px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(248, 251, 255, 0.96);
  padding: 12px 10px;
  text-align: center;
}

.customer-view-kpi span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(86, 112, 143, 0.92);
}

.customer-view-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-payments {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.customer-view-sessions {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.customer-view-sessions-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.customer-view-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(248, 251, 255, 0.96);
}

.customer-view-session-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-view-session-date {
  font-weight: 800;
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-session-time {
  color: rgba(86, 112, 143, 0.92);
  font-weight: 700;
  font-size: 0.86rem;
}

.customer-view-session-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.customer-view-session-amount {
  font-weight: 900;
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-session-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(92, 176, 255, 0.5);
  background: rgba(232, 246, 255, 0.95);
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(60, 125, 190, 0.12);
}

.customer-view-notes {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
  color: rgba(18, 38, 66, 0.86);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.customer-view-payment-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(248, 251, 255, 0.96);
}

.customer-view-payment-date {
  font-weight: 700;
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-payment-amount {
  font-weight: 800;
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-payment-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(22, 52, 94, 0.12);
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-payment-pill.is-paid {
  background: rgba(73, 220, 177, 0.2);
  border-color: rgba(73, 220, 177, 0.34);
  color: #0b4b2a;
}

.customer-view-payment-pill.is-due {
  background: rgba(255, 212, 0, 0.18);
  border-color: rgba(255, 212, 0, 0.34);
  color: rgba(18, 38, 66, 0.92);
}

.customer-view-payment-pill.is-neutral {
  background: rgba(18, 38, 66, 0.06);
  border-color: rgba(18, 38, 66, 0.14);
  color: rgba(18, 38, 66, 0.86);
}

@media (min-width: 781px) {
  .customer-view-sessions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-view-phone {
    font-size: 0.86rem;
  }

  .customer-view-email {
    font-size: 0.78rem;
  }

  .customer-view-kpi span {
    font-size: 0.68rem;
  }

  .customer-view-kpi strong {
    font-size: 0.98rem;
  }

  .customer-view-payment-pill {
    font-size: 0.68rem;
    padding: 3px 9px;
  }

  .customer-view-payment-date,
  .customer-view-payment-amount {
    font-size: 0.9rem;
  }
}

@media (max-width: 780px), (max-height: 520px) and (hover: none) and (pointer: coarse) {
  .customer-view-nav-link {
    font-size: 1.05rem;
    padding: 8px 12px;
  }

  .customer-view-avatar {
    width: 116px;
    height: 116px;
    font-size: 1.75rem;
  }

  .customer-view-name {
    font-size: 1.85rem;
  }

  .customer-view-phone {
    font-size: 1.12rem;
    padding: 10px 18px;
  }

  .customer-view-action {
    width: 96px;
    gap: 10px;
    padding: 14px 8px 12px;
  }

  .customer-view-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .customer-view-action-icon svg {
    width: 30px;
    height: 30px;
  }

  .customer-view-action-label {
    font-size: 0.95rem;
  }
}

body.page-payments,
body.page-account,
body.page-pricing,
body.page-setup,
body.page-settings,
body.page-templates,
body.page-monthly-statement,
body.page-receivables {
  background: #fff;
  font-family: var(--font-sans);
}

body.page-payments::before,
body.page-account::before,
body.page-pricing::before,
body.page-setup::before,
body.page-settings::before,
body.page-templates::before,
body.page-monthly-statement::before,
body.page-receivables::before {
  opacity: 0;
}

body.page-payments h1,
body.page-payments h2,
body.page-payments h3,
body.page-account h1,
body.page-account h2,
body.page-account h3,
body.page-pricing h1,
body.page-pricing h2,
body.page-pricing h3,
body.page-setup h1,
body.page-setup h2,
body.page-setup h3,
body.page-settings h1,
body.page-settings h2,
body.page-settings h3,
body.page-templates h1,
body.page-templates h2,
body.page-templates h3,
body.page-monthly-statement h1,
body.page-monthly-statement h2,
body.page-monthly-statement h3,
body.page-receivables h1,
body.page-receivables h2,
body.page-receivables h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.page-shell {
  position: relative;
  width: min(1420px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.eyebrow, .subtle-label, .field span, .summary-label, .week-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow { color: var(--accent); }

.topbar, .panel, .drawer {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(760px);
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  background:
    linear-gradient(135deg, rgba(143, 212, 255, 0.12), transparent 32%),
    rgba(11, 27, 51, 0.94);
  color: #eff8ef;
}

#menuBtn {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 10;
}

.topbar .eyebrow, .topbar .lede, .topbar .week-kicker { color: rgba(239, 248, 239, 0.72); }
.topbar-copy {
  min-width: 0;
  padding-right: 58px;
}

.topbar h1 {
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  white-space: nowrap;
}

.topbar-headline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo-link {
  display: inline-flex;
  border-radius: 16px;
  text-decoration: none;
}

.topbar-logo-link:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 4px;
}

.topbar-home-link {
  position: absolute;
  left: 18px;
  top: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(22, 52, 94, 0.12);
}

.topbar-home-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.topbar-home-link:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 2px;
}

.topbar-home-link img {
  width: 32px;
  height: 32px;
  border-radius: 0;
  display: block;
  object-fit: cover;
}

.topbar-logo {
  display: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 30px rgba(5, 14, 26, 0.28);
  object-fit: cover;
}

body.page-home .home-desktop-topline {
  display: none;
}

body.page-payments .topbar,
body.page-account .topbar,
body.page-pricing .topbar,
body.page-setup .topbar,
body.page-settings .topbar,
body.page-templates .topbar {
  background: #fff;
  color: rgba(18, 38, 66, 0.92);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.page-payments .topbar .eyebrow,
body.page-payments .topbar .lede,
body.page-payments .topbar .week-kicker,
body.page-account .topbar .eyebrow,
body.page-account .topbar .lede,
body.page-account .topbar .week-kicker,
body.page-pricing .topbar .eyebrow,
body.page-pricing .topbar .lede,
body.page-pricing .topbar .week-kicker,
body.page-setup .topbar .eyebrow,
body.page-setup .topbar .lede,
body.page-setup .topbar .week-kicker,
body.page-settings .topbar .eyebrow,
body.page-settings .topbar .lede,
body.page-settings .topbar .week-kicker,
body.page-templates .topbar .eyebrow,
body.page-templates .topbar .lede,
body.page-templates .topbar .week-kicker {
  color: rgba(18, 38, 66, 0.62);
}

body.page-payments .topbar .ghost-button,
body.page-payments .topbar .ghost-icon-button,
body.page-account .topbar .ghost-button,
body.page-account .topbar .ghost-icon-button,
body.page-pricing .topbar .ghost-button,
body.page-pricing .topbar .ghost-icon-button,
body.page-setup .topbar .ghost-button,
body.page-setup .topbar .ghost-icon-button,
body.page-settings .topbar .ghost-button,
body.page-settings .topbar .ghost-icon-button,
body.page-templates .topbar .ghost-button,
body.page-templates .topbar .ghost-icon-button {
  color: rgba(18, 38, 66, 0.86);
  border-color: rgba(22, 52, 94, 0.14);
  background: rgba(0, 0, 0, 0.02);
}

body.page-payments .topbar .ghost-button:hover,
body.page-payments .topbar .ghost-icon-button:hover,
body.page-account .topbar .ghost-button:hover,
body.page-account .topbar .ghost-icon-button:hover,
body.page-pricing .topbar .ghost-button:hover,
body.page-pricing .topbar .ghost-icon-button:hover,
body.page-setup .topbar .ghost-button:hover,
body.page-setup .topbar .ghost-icon-button:hover,
body.page-settings .topbar .ghost-button:hover,
body.page-settings .topbar .ghost-icon-button:hover,
body.page-templates .topbar .ghost-button:hover,
body.page-templates .topbar .ghost-icon-button:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.page-monthly-statement .topbar {
  background: #fff;
  color: rgba(18, 38, 66, 0.92);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.page-monthly-statement .topbar .eyebrow,
body.page-monthly-statement .topbar .lede,
body.page-monthly-statement .topbar .week-kicker {
  color: rgba(18, 38, 66, 0.62);
}

body.page-monthly-statement .topbar .ghost-button,
body.page-monthly-statement .topbar .ghost-icon-button {
  color: rgba(18, 38, 66, 0.86);
  border-color: rgba(22, 52, 94, 0.14);
  background: rgba(0, 0, 0, 0.02);
}

body.page-monthly-statement .topbar .ghost-button:hover,
body.page-monthly-statement .topbar .ghost-icon-button:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.page-receivables .topbar {
  background: #fff;
  color: rgba(18, 38, 66, 0.92);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.page-receivables .topbar .eyebrow,
body.page-receivables .topbar .lede,
body.page-receivables .topbar .week-kicker {
  color: rgba(18, 38, 66, 0.62);
}

body.page-receivables .topbar .ghost-button,
body.page-receivables .topbar .ghost-icon-button {
  color: rgba(18, 38, 66, 0.86);
  border-color: rgba(22, 52, 94, 0.14);
  background: rgba(0, 0, 0, 0.02);
}

body.page-receivables .topbar .ghost-button:hover,
body.page-receivables .topbar .ghost-icon-button:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.page-receivables .payments-item-controls {
  grid-template-columns: 140px 92px 180px;
}

body.page-receivables .receivables-reminder {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(22, 52, 94, 0.14);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(18, 38, 66, 0.86);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

body.page-receivables .receivables-reminder:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (min-width: 781px) {
  body.page-home .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.page-home .home-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
    position: relative;
  }

  /* Mask the very top few pixels to avoid Chrome "hairline" fragments. */
  body.page-home .home-layout::before,
  body.page-payments.has-desktop-sidebar .home-layout::before,
  body.page-account.has-desktop-sidebar .home-layout::before,
  body.page-pricing.has-desktop-sidebar .home-layout::before,
  body.page-setup.has-desktop-sidebar .home-layout::before,
  body.page-settings.has-desktop-sidebar .home-layout::before,
  body.page-templates.has-desktop-sidebar .home-layout::before,
  body.page-customers.has-desktop-sidebar .home-layout::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #fff;
    pointer-events: none;
    z-index: 9999;
  }

  body.page-home .home-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  body.page-home .home-topbar {
    display: block;
    grid-template-columns: 1fr;
    padding: 12px 18px;
    background: transparent;
    color: rgba(18, 38, 66, 0.92);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: var(--home-topbar-border-size) solid var(--home-topbar-border-color);
    position: relative;
    z-index: 2;
    --home-topbar-border-color: rgba(15, 23, 42, 0.08);
    --home-topbar-border-size: 1px;
  }

  /* Remove the desktop top divider line entirely (avoids Chrome hairline border gaps). */
  body.page-home .home-topbar::before,
  body.page-home .home-topbar::after {
    content: "";
    display: none;
  }

  body.page-home.is-month-view .home-topbar {
    --home-topbar-border-color: rgba(22, 52, 94, 0.14);
    --home-topbar-border-size: 2px;
  }

  body.page-home.is-week-view .home-topbar {
    --home-topbar-border-color: rgba(22, 52, 94, 0.14);
    --home-topbar-border-size: 2px;
  }

  body.page-home.is-day-view .home-topbar {
    --home-topbar-border-color: rgba(22, 52, 94, 0.14);
    --home-topbar-border-size: 2px;
  }

  body.page-home.is-agenda-view .home-topbar {
    --home-topbar-border-color: rgba(22, 52, 94, 0.14);
    --home-topbar-border-size: 2px;
  }

  body.page-home.is-month-view .month-view-nav {
    display: none;
  }

  body.page-home .home-desktop-topline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  body.page-home .home-mobile-only {
    display: none;
  }

  body.page-home .home-topline-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    justify-self: start;
  }

  body.page-home .home-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 1.05;
    white-space: nowrap;
    text-decoration: none;
    color: rgba(18, 38, 66, 0.92);
    padding: 4px 8px;
    max-width: 100%;
    overflow: hidden;
  }

  body.page-home .home-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    object-fit: cover;
    flex: 0 0 36px;
  }

  body.page-home .home-sidebar-wordmark {
    display: block;
    height: 44px;
    width: auto;
    max-width: 260px;
  }

  body.page-home .home-sidebar-brand:visited {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-home .home-sidebar-brand:hover {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-home .home-sidebar-brand:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.5);
    outline-offset: 4px;
    border-radius: 10px;
  }

  body.page-home .home-sidebar-brand,
  body.page-home .home-sidebar-brand .home-brand-name {
    font-family: var(--font-sans);
    font-weight: 850;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  body.page-home .home-sidebar-brand .home-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-home .home-view-toggle {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 8px;
    border: 0;
  }

  body.page-home .home-view-button {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(18, 38, 66, 0.82);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
  }

  body.page-home .home-view-button.is-active {
    background: rgba(0, 122, 255, 0.12);
    color: #0a63ff;
    box-shadow: none;
  }

  body.page-home .home-topline-center {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    justify-self: center;
  }

  body.page-home .home-topline-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    justify-self: end;
  }

  body.page-home .home-setup-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 360px;
  }

  body.page-home .home-setup-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(22, 52, 94, 0.14);
    color: rgba(18, 38, 66, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
  }

  body.page-home .home-setup-chip.is-cloud-on {
    background: rgba(35, 196, 138, 0.14);
    border-color: rgba(35, 196, 138, 0.42);
  }

  body.page-home .home-setup-chip.is-cloud-off {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.42);
  }

  body.page-home .home-setup-chip.is-cloud-syncing {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.28);
  }

  body.page-home .home-setup-chip.is-cloud-syncing::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(0, 122, 255, 0.28);
    border-top-color: rgba(0, 122, 255, 0.85);
    animation: calappt-chip-spin 0.9s linear infinite;
  }

  @keyframes calappt-chip-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  body.page-home .home-setup-chip:visited {
    color: rgba(18, 38, 66, 0.86);
  }

  body.page-home .home-setup-chip:hover {
    background: rgba(0, 0, 0, 0.04);
  }

  body.page-home .home-setup-chip.is-cloud-on:hover {
    background: rgba(35, 196, 138, 0.18);
  }

  body.page-home .home-setup-chip.is-cloud-off:hover {
    background: rgba(255, 193, 7, 0.18);
  }

  body.page-home .home-setup-chip:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.45);
    outline-offset: 3px;
  }

  body.page-home .home-setup-key {
    color: rgba(18, 38, 66, 0.62);
    font-weight: 800;
  }

  body.page-home .home-setup-value {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-home .home-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: rgba(18, 38, 66, 0.72);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
  }

  body.page-home .home-nav-button:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  body.page-home .home-nav-button svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  body.page-home .home-range-label {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(18, 38, 66, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
  }

  body.page-home .home-weather {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(18, 38, 66, 0.86);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    justify-self: end;
  }

  body.page-home .home-city-label {
    color: rgba(18, 38, 66, 0.76);
    font-weight: 700;
  }

  body.page-home .home-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: rgba(18, 38, 66, 0.92);
    font-size: 0.9rem;
    font-weight: 800;
  }

  body.page-home .home-weather-badge.is-sunny { color: #ff9f0a; }
  body.page-home .home-weather-badge.is-mostly-clear { color: #d97706; }
  body.page-home .home-weather-badge.is-partly-cloudy { color: #ff9f0a; }
  body.page-home .home-weather-badge.is-cloudy,
  body.page-home .home-weather-badge.is-fog { color: #677c92; }
  body.page-home .home-weather-badge.is-drizzle,
  body.page-home .home-weather-badge.is-rain { color: #1a72b0; }
  body.page-home .home-weather-badge.is-snow { color: #4a7caf; }
  body.page-home .home-weather-badge.is-storm { color: #6a4fc2; }
  body.page-home .home-weather-badge.is-neutral { color: rgba(18, 38, 66, 0.68); }

  body.page-home .home-weather-badge svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  body.page-home .schedule-corner,
  body.page-home .time-label,
  body.page-home .day-name,
  body.page-home .day-meta {
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
  }

  body.page-home .home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 10px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
    overflow-x: hidden;
  }

  body.page-home .home-sidebar-nav {
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
  }

  body.page-home .home-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(18, 38, 66, 0.82);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    width: 100%;
    text-align: left;
  }

  body.page-home #desktopSetupSummary:not(.is-empty) .home-sidebar-icon {
    color: rgba(16, 128, 90, 0.7);
  }

  body.page-home #desktopSetupSummary:not(.is-empty):hover .home-sidebar-icon {
    color: rgba(16, 128, 90, 0.9);
  }

  body.page-home .home-sidebar-link:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  body.page-home .home-sidebar-link.is-active,
  body.page-home .home-sidebar-link[aria-current="page"] {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.12);
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-home .home-sidebar-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(18, 38, 66, 0.62);
    flex: 0 0 20px;
  }

  body.page-home .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-home .home-sidebar-link[aria-current="page"] .home-sidebar-icon {
    color: #007aff;
  }

  body.page-home .home-sidebar-icon svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  body.page-home .home-sidebar-value {
    margin-left: auto;
    max-width: 160px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(22, 52, 94, 0.12);
    color: rgba(18, 38, 66, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-home .home-sidebar-link.is-empty .home-sidebar-value {
    background: transparent;
    border-color: transparent;
    color: rgba(18, 38, 66, 0.45);
  }

  body.page-home .home-sidebar-check {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(35, 196, 138, 0.14);
    border: 1px solid rgba(35, 196, 138, 0.42);
    color: rgba(16, 128, 90, 0.95);
    font-size: 0.8rem;
    font-weight: 900;
    flex: 0 0 auto;
  }

  body.page-home .home-sidebar-check + .home-sidebar-value {
    margin-left: 10px;
  }

  body.page-home .home-sidebar-qr {
    display: none;
  }

  @media (min-width: 901px) {
    body.page-home .home-sidebar-qr {
      display: block;
      margin: auto 10px 4px;
      padding: 12px 10px;
      border: 1px solid rgba(147, 166, 190, 0.28);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.78);
      box-shadow: 0 12px 28px rgba(25, 57, 94, 0.08);
      color: rgba(18, 38, 66, 0.9);
      text-align: center;
      text-decoration: none;
    }

    body.page-home .home-sidebar-qr img {
      display: block;
      width: 104px;
      height: 104px;
      margin: 0 auto 8px;
      border-radius: 10px;
    }

    body.page-home .home-sidebar-qr-text {
      display: block;
      font-size: 0.82rem;
      font-weight: 700;
      line-height: 1.25;
    }

    body.page-home .home-sidebar-qr-text strong {
      color: #007aff;
      font-weight: 900;
    }
  }

  .home-sidebar-nav .home-sidebar-link[href$="booking-settings.html"]::after {
    content: "Works best on mobile";
    margin-left: auto;
    max-width: 160px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(22, 52, 94, 0.12);
    color: rgba(18, 38, 66, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-home .home-workspace {
    grid-template-columns: 1fr;
    margin-top: 0;
    gap: 0;
  }

  body.page-home .calendar-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
  }

  body.page-payments.has-desktop-sidebar .page-shell,
  body.page-account.has-desktop-sidebar .page-shell,
  body.page-pricing.has-desktop-sidebar .page-shell,
  body.page-setup.has-desktop-sidebar .page-shell,
  body.page-settings.has-desktop-sidebar .page-shell,
  body.page-templates.has-desktop-sidebar .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.page-payments.has-desktop-sidebar .home-layout,
  body.page-account.has-desktop-sidebar .home-layout,
  body.page-pricing.has-desktop-sidebar .home-layout,
  body.page-setup.has-desktop-sidebar .home-layout,
  body.page-settings.has-desktop-sidebar .home-layout,
  body.page-templates.has-desktop-sidebar .home-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
  }

  body.page-payments.has-desktop-sidebar .home-main,
  body.page-account.has-desktop-sidebar .home-main,
  body.page-pricing.has-desktop-sidebar .home-main,
  body.page-setup.has-desktop-sidebar .home-main,
  body.page-settings.has-desktop-sidebar .home-main,
  body.page-templates.has-desktop-sidebar .home-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-brand,
  body.page-account.has-desktop-sidebar .home-sidebar-brand,
  body.page-pricing.has-desktop-sidebar .home-sidebar-brand,
  body.page-setup.has-desktop-sidebar .home-sidebar-brand,
  body.page-settings.has-desktop-sidebar .home-sidebar-brand,
  body.page-templates.has-desktop-sidebar .home-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 1.05;
    white-space: nowrap;
    text-decoration: none;
    color: rgba(18, 38, 66, 0.92);
    padding: 4px 8px;
    max-width: 100%;
    overflow: hidden;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-logo,
  body.page-account.has-desktop-sidebar .home-sidebar-logo,
  body.page-pricing.has-desktop-sidebar .home-sidebar-logo,
  body.page-setup.has-desktop-sidebar .home-sidebar-logo,
  body.page-settings.has-desktop-sidebar .home-sidebar-logo,
  body.page-templates.has-desktop-sidebar .home-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    object-fit: cover;
    flex: 0 0 36px;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-brand:visited,
  body.page-account.has-desktop-sidebar .home-sidebar-brand:visited,
  body.page-pricing.has-desktop-sidebar .home-sidebar-brand:visited,
  body.page-setup.has-desktop-sidebar .home-sidebar-brand:visited,
  body.page-settings.has-desktop-sidebar .home-sidebar-brand:visited,
  body.page-templates.has-desktop-sidebar .home-sidebar-brand:visited {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-brand:hover,
  body.page-account.has-desktop-sidebar .home-sidebar-brand:hover,
  body.page-pricing.has-desktop-sidebar .home-sidebar-brand:hover,
  body.page-setup.has-desktop-sidebar .home-sidebar-brand:hover,
  body.page-settings.has-desktop-sidebar .home-sidebar-brand:hover,
  body.page-templates.has-desktop-sidebar .home-sidebar-brand:hover {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-brand:focus-visible,
  body.page-account.has-desktop-sidebar .home-sidebar-brand:focus-visible,
  body.page-pricing.has-desktop-sidebar .home-sidebar-brand:focus-visible,
  body.page-setup.has-desktop-sidebar .home-sidebar-brand:focus-visible,
  body.page-settings.has-desktop-sidebar .home-sidebar-brand:focus-visible,
  body.page-templates.has-desktop-sidebar .home-sidebar-brand:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.5);
    outline-offset: 4px;
    border-radius: 10px;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-brand,
  body.page-payments.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-account.has-desktop-sidebar .home-sidebar-brand,
  body.page-account.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-pricing.has-desktop-sidebar .home-sidebar-brand,
  body.page-pricing.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-setup.has-desktop-sidebar .home-sidebar-brand,
  body.page-setup.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-settings.has-desktop-sidebar .home-sidebar-brand,
  body.page-settings.has-desktop-sidebar .home-sidebar-brand .home-brand-name {
    font-family: var(--font-sans);
    font-weight: 850;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  body.page-templates.has-desktop-sidebar .home-sidebar-brand,
  body.page-templates.has-desktop-sidebar .home-sidebar-brand .home-brand-name {
    font-family: var(--font-sans);
    font-weight: 850;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-account.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-pricing.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-setup.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-settings.has-desktop-sidebar .home-sidebar-brand .home-brand-name,
  body.page-templates.has-desktop-sidebar .home-sidebar-brand .home-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar,
  body.page-account.has-desktop-sidebar .home-sidebar,
  body.page-pricing.has-desktop-sidebar .home-sidebar,
  body.page-setup.has-desktop-sidebar .home-sidebar,
  body.page-settings.has-desktop-sidebar .home-sidebar,
  body.page-templates.has-desktop-sidebar .home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 10px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
    overflow-x: hidden;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-nav,
  body.page-account.has-desktop-sidebar .home-sidebar-nav,
  body.page-pricing.has-desktop-sidebar .home-sidebar-nav,
  body.page-setup.has-desktop-sidebar .home-sidebar-nav,
  body.page-settings.has-desktop-sidebar .home-sidebar-nav,
  body.page-templates.has-desktop-sidebar .home-sidebar-nav {
    display: grid;
    gap: 6px;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-link,
  body.page-account.has-desktop-sidebar .home-sidebar-link,
  body.page-pricing.has-desktop-sidebar .home-sidebar-link,
  body.page-setup.has-desktop-sidebar .home-sidebar-link,
  body.page-settings.has-desktop-sidebar .home-sidebar-link,
  body.page-templates.has-desktop-sidebar .home-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(18, 38, 66, 0.82);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    width: 100%;
    text-align: left;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-link:hover,
  body.page-account.has-desktop-sidebar .home-sidebar-link:hover,
  body.page-pricing.has-desktop-sidebar .home-sidebar-link:hover,
  body.page-setup.has-desktop-sidebar .home-sidebar-link:hover,
  body.page-settings.has-desktop-sidebar .home-sidebar-link:hover,
  body.page-templates.has-desktop-sidebar .home-sidebar-link:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-link.is-active,
  body.page-payments.has-desktop-sidebar .home-sidebar-link[aria-current="page"],
  body.page-account.has-desktop-sidebar .home-sidebar-link.is-active,
  body.page-account.has-desktop-sidebar .home-sidebar-link[aria-current="page"],
  body.page-pricing.has-desktop-sidebar .home-sidebar-link.is-active,
  body.page-pricing.has-desktop-sidebar .home-sidebar-link[aria-current="page"],
  body.page-setup.has-desktop-sidebar .home-sidebar-link.is-active,
  body.page-setup.has-desktop-sidebar .home-sidebar-link[aria-current="page"],
  body.page-settings.has-desktop-sidebar .home-sidebar-link.is-active,
  body.page-settings.has-desktop-sidebar .home-sidebar-link[aria-current="page"] {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.12);
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-templates.has-desktop-sidebar .home-sidebar-link.is-active,
  body.page-templates.has-desktop-sidebar .home-sidebar-link[aria-current="page"] {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.12);
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-icon,
  body.page-account.has-desktop-sidebar .home-sidebar-icon,
  body.page-pricing.has-desktop-sidebar .home-sidebar-icon,
  body.page-setup.has-desktop-sidebar .home-sidebar-icon,
  body.page-settings.has-desktop-sidebar .home-sidebar-icon,
  body.page-templates.has-desktop-sidebar .home-sidebar-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(18, 38, 66, 0.62);
    flex: 0 0 20px;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-payments.has-desktop-sidebar .home-sidebar-link[aria-current="page"] .home-sidebar-icon,
  body.page-account.has-desktop-sidebar .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-account.has-desktop-sidebar .home-sidebar-link[aria-current="page"] .home-sidebar-icon,
  body.page-pricing.has-desktop-sidebar .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-pricing.has-desktop-sidebar .home-sidebar-link[aria-current="page"] .home-sidebar-icon,
  body.page-setup.has-desktop-sidebar .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-setup.has-desktop-sidebar .home-sidebar-link[aria-current="page"] .home-sidebar-icon,
  body.page-settings.has-desktop-sidebar .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-settings.has-desktop-sidebar .home-sidebar-link[aria-current="page"] .home-sidebar-icon {
    color: #007aff;
  }

  body.page-templates.has-desktop-sidebar .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-templates.has-desktop-sidebar .home-sidebar-link[aria-current="page"] .home-sidebar-icon {
    color: #007aff;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-icon svg,
  body.page-account.has-desktop-sidebar .home-sidebar-icon svg,
  body.page-pricing.has-desktop-sidebar .home-sidebar-icon svg,
  body.page-setup.has-desktop-sidebar .home-sidebar-icon svg,
  body.page-settings.has-desktop-sidebar .home-sidebar-icon svg,
  body.page-templates.has-desktop-sidebar .home-sidebar-icon svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-value,
  body.page-account.has-desktop-sidebar .home-sidebar-value,
  body.page-pricing.has-desktop-sidebar .home-sidebar-value,
  body.page-setup.has-desktop-sidebar .home-sidebar-value,
  body.page-settings.has-desktop-sidebar .home-sidebar-value,
  body.page-templates.has-desktop-sidebar .home-sidebar-value {
    margin-left: auto;
    max-width: 160px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(22, 52, 94, 0.12);
    color: rgba(18, 38, 66, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-link.is-empty .home-sidebar-value,
  body.page-account.has-desktop-sidebar .home-sidebar-link.is-empty .home-sidebar-value,
  body.page-pricing.has-desktop-sidebar .home-sidebar-link.is-empty .home-sidebar-value,
  body.page-setup.has-desktop-sidebar .home-sidebar-link.is-empty .home-sidebar-value,
  body.page-settings.has-desktop-sidebar .home-sidebar-link.is-empty .home-sidebar-value,
  body.page-templates.has-desktop-sidebar .home-sidebar-link.is-empty .home-sidebar-value {
    background: transparent;
    border-color: transparent;
    color: rgba(18, 38, 66, 0.45);
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-check,
  body.page-account.has-desktop-sidebar .home-sidebar-check,
  body.page-pricing.has-desktop-sidebar .home-sidebar-check,
  body.page-setup.has-desktop-sidebar .home-sidebar-check,
  body.page-settings.has-desktop-sidebar .home-sidebar-check,
  body.page-templates.has-desktop-sidebar .home-sidebar-check {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(35, 196, 138, 0.14);
    border: 1px solid rgba(35, 196, 138, 0.42);
    color: rgba(16, 128, 90, 0.95);
    font-size: 0.8rem;
    font-weight: 900;
    flex: 0 0 auto;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar-check + .home-sidebar-value,
  body.page-account.has-desktop-sidebar .home-sidebar-check + .home-sidebar-value,
  body.page-pricing.has-desktop-sidebar .home-sidebar-check + .home-sidebar-value,
  body.page-setup.has-desktop-sidebar .home-sidebar-check + .home-sidebar-value,
  body.page-settings.has-desktop-sidebar .home-sidebar-check + .home-sidebar-value,
  body.page-templates.has-desktop-sidebar .home-sidebar-check + .home-sidebar-value {
    margin-left: 10px;
  }

  body.page-customers.has-desktop-sidebar .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.page-customers.has-desktop-sidebar .home-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
  }

  body.page-customers.has-desktop-sidebar .home-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 1.05;
    white-space: nowrap;
    text-decoration: none;
    color: rgba(18, 38, 66, 0.92);
    padding: 4px 8px;
    max-width: 100%;
    overflow: hidden;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    object-fit: cover;
    flex: 0 0 36px;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-brand:visited {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-brand:hover {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-brand:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.5);
    outline-offset: 4px;
    border-radius: 10px;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-brand,
  body.page-customers.has-desktop-sidebar .home-sidebar-brand .home-brand-name {
    font-family: var(--font-sans);
    font-weight: 850;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-brand .home-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 10px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
    overflow-x: hidden;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-nav {
    display: grid;
    gap: 6px;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(18, 38, 66, 0.82);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    width: 100%;
    text-align: left;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-link:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-link.is-active,
  body.page-customers.has-desktop-sidebar .home-sidebar-link[aria-current="page"] {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.12);
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(18, 38, 66, 0.62);
    flex: 0 0 20px;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-link.is-active .home-sidebar-icon,
  body.page-customers.has-desktop-sidebar .home-sidebar-link[aria-current="page"] .home-sidebar-icon {
    color: #007aff;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-icon svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-value {
    margin-left: auto;
    max-width: 160px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(22, 52, 94, 0.12);
    color: rgba(18, 38, 66, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-link.is-empty .home-sidebar-value {
    background: transparent;
    border-color: transparent;
    color: rgba(18, 38, 66, 0.45);
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-check {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(35, 196, 138, 0.14);
    border: 1px solid rgba(35, 196, 138, 0.42);
    color: rgba(16, 128, 90, 0.95);
    font-size: 0.8rem;
    font-weight: 900;
    flex: 0 0 auto;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar-check + .home-sidebar-value {
    margin-left: 10px;
  }

  body.page-customers.has-desktop-sidebar .topbar {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 780px), (max-height: 520px) and (hover: none) and (pointer: coarse) {
  body.page-home {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-home {
    position: fixed;
    inset: 0;
    width: 100%;
  }

  body.page-home .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-home.has-mobile-tabbar .page-shell {
    padding-bottom: 0;
  }

  body.page-home .home-layout,
  body.page-home .home-main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.page-home .home-main {
    display: flex;
    flex-direction: column;
  }

  body.page-home .home-topbar {
    flex: 0 0 auto;
  }

  body.page-home .home-workspace {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-home .home-sidebar {
    display: none;
  }

  body.page-payments.has-desktop-sidebar .home-sidebar {
    display: none;
  }

  body.page-account.has-desktop-sidebar .home-sidebar {
    display: none;
  }

  body.page-pricing.has-desktop-sidebar .home-sidebar {
    display: none;
  }

  body.page-setup.has-desktop-sidebar .home-sidebar {
    display: none;
  }

  body.page-settings.has-desktop-sidebar .home-sidebar {
    display: none;
  }

  body.page-templates.has-desktop-sidebar .home-sidebar {
    display: none;
  }

  body.page-customers.has-desktop-sidebar .home-sidebar {
    display: none;
  }

  body.page-home .home-topbar {
    display: block;
    grid-template-columns: 1fr;
    padding: 12px 14px 10px;
    background: #fff;
    color: rgba(18, 38, 66, 0.92);
    border: 0;
    border-bottom: 1px solid rgba(22, 52, 94, 0.12);
    border-radius: 0;
    box-shadow: none;
  }

  body.page-home .home-workspace {
    margin-top: 0;
    gap: 0;
    grid-template-columns: 1fr;
  }

  body.page-home .calendar-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-home .calendar-scroll {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  body.page-home.is-day-view .schedule-header,
  body.page-home.is-week-view .schedule-header {
    position: sticky;
    top: 0;
    z-index: 18;
    background: #fff;
  }

  body.page-home.is-day-view .schedule-header {
    box-shadow: 0 1px 0 rgba(60, 60, 67, 0.18);
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-header {
    margin-bottom: 0;
    transform: translateZ(0);
    will-change: transform;
  }

  body.is-mobile-week-view .mobile-week-range-row {
    position: sticky;
    top: 0;
    min-height: var(--mobile-week-range-row-height);
    z-index: 24;
  }

  body.is-mobile-week-view .schedule-header {
    top: var(--mobile-week-range-row-height);
    z-index: 22;
    box-shadow: 0 1px 0 rgba(60, 60, 67, 0.18);
  }

  body.page-home #menuBtn {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
  }

  body.page-home .home-mobile-topline {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  body.page-home .home-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: rgba(18, 38, 66, 0.92);
    flex: 0 1 auto;
    transform: translateY(1px);
  }

  body.page-home .home-mobile-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    object-fit: cover;
    flex: 0 0 34px;
  }

  body.page-home .home-mobile-wordmark {
    display: block;
    height: 28px;
    width: auto;
    max-width: 160px;
  }

  body.page-home .home-mobile-brand-name {
    font-family: var(--font-sans);
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-home .home-mobile-brand-dotcom {
    color: #007aff;
  }

  body.page-home .home-mobile-date-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
  }

  /* Safety: hide legacy prev/next chevrons if they exist */
  body.page-home #mobilePrevNavBtn,
  body.page-home #mobileNextNavBtn,
  body.page-home #prevWeekBtn,
  body.page-home #nextWeekBtn {
    display: none !important;
  }

  body.page-home .home-mobile-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #007aff;
    padding: 0;
    flex: 0 0 34px;
  }

  body.page-home .home-mobile-nav-button svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  body.page-home .home-mobile-nav-button:active {
    background: rgba(0, 0, 0, 0.04);
  }

  body.page-home .home-mobile-date-label {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(18, 38, 66, 0.72);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 320px;
  }

  body.page-home .home-mobile-actions {
    display: inline-flex;
    align-items: flex-end;
    align-self: end;
    gap: 10px;
    flex: 0 0 auto;
  }

  body.page-home .home-mobile-view-select {
    display: inline-flex;
    align-items: center;
    margin: 0;
    position: relative;
  }

  body.page-home .home-mobile-view-select::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23007aff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    pointer-events: none;
  }

  body.page-home .home-mobile-select {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #007aff;
    font: inherit;
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 6px 40px 6px 10px;
    border-radius: 12px;
    background-image: none;
  }

  body.page-home .home-mobile-select:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.4);
    outline-offset: 2px;
  }

  body.page-home .topbar-menu-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: #007aff;
    font-size: 1.8rem;
    line-height: 1;
  }

  body.page-home .topbar-menu-button:active {
    background: rgba(0, 0, 0, 0.04);
  }

  body.page-home .topbar-add-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: #007aff;
    font-size: 2.5rem;
    line-height: 1;
    padding: 0;
  }

  body.page-home .topbar-add-button:active {
    background: rgba(0, 0, 0, 0.04);
  }

  body.page-home .topbar-voice-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: #007aff;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
  }

  body.page-home .topbar-voice-button:active,
  body.page-home .topbar-voice-button.is-listening {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
  }

  body.page-home .topbar-voice-button.is-listening {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.16);
  }

  /* Mobile calendar grid: iOS-like separators (no "cards") */
  body.page-home .schedule-header,
  body.page-home .schedule-body {
    gap: 0;
  }

  body.page-home .schedule-header {
    margin-bottom: 0;
  }

  /* Mobile weather: remove "pill" backgrounds */
  body.page-home .weather-city {
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: 1.02rem;
    font-weight: 900;
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-home .weather-temp,
  body.page-home .weather-range,
  body.page-home .weather-placeholder {
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 0;
    border-radius: 0;
  }

  body.page-home .schedule-weather .weather-icon {
    border-radius: 999px;
  }

  body.page-home .mobile-week-range-row {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid rgba(60, 60, 67, 0.18);
    padding: 6px 0 8px;
  }

  body.page-home .mobile-week-range-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    justify-items: center;
    padding: 0 4px;
  }

  body.page-home .mobile-week-range-label {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(18, 38, 66, 0.92);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  body.page-home .mobile-week-range-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #007aff;
    padding: 0;
  }

  body.page-home .mobile-week-range-button svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  body.page-home .mobile-week-range-button:active {
    background: rgba(0, 0, 0, 0.04);
  }

  body.page-home .schedule-corner {
    min-height: 56px;
    padding: 0 6px 10px 0;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #8e8e93;
  }

  body.page-home .schedule-day-head {
    position: relative;
    border-radius: 0;
    background: #fff;
    border: 0;
    border-left: 1px solid rgba(60, 60, 67, 0.18);
    border-bottom: 1px solid rgba(60, 60, 67, 0.18);
    padding: 8px 6px 10px;
    min-height: 56px;
  }

  body.page-home .schedule-day-head:last-child {
    border-right: 1px solid rgba(60, 60, 67, 0.18);
  }

  body.page-home .schedule-day-head.is-today {
    background: #fff;
    border-width: 0;
    border-left: 1px solid rgba(60, 60, 67, 0.18);
  }

  body.page-home .schedule-day-head.is-today:last-child {
    border-right: 1px solid rgba(60, 60, 67, 0.18);
  }

  body.page-home .schedule-day-head.is-today::before {
    display: none;
    content: "";
  }

  body.page-home .schedule-day-head.is-today .day-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 999px;
    background: #0a63ff;
    color: #fff;
    line-height: 1;
    font-variant-numeric: normal;
  }

  /* Mobile Day view: make the "Today" chip cover weekday + date */
  body.page-home .calendar-grid.is-mobile-day-view .schedule-day-head {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
    row-gap: 2px;
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-weather {
    order: 3;
    flex: 0 0 100%;
    margin-left: 0;
    margin-top: 4px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  body.page-home .calendar-grid.is-mobile-day-view .weather-city {
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-weather .weather-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-weather .weather-icon svg {
    width: 28px;
    height: 28px;
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-weather .weather-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
  }

  body.page-home .calendar-grid.is-mobile-day-view .day-name {
    order: 1;
    margin-right: 0;
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-day-head:not(.is-today) .day-name {
    margin-right: 0;
  }

  body.page-home .calendar-grid.is-mobile-day-view .day-meta {
    order: 2;
    justify-self: auto;
    text-align: left;
  }

  /* Mobile Day view: highlight only the date (match desktop Week view). */
  body.page-home .calendar-grid.is-mobile-day-view .schedule-day-head.is-today .day-name {
    background: transparent;
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-day-head.is-today .day-meta {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: #0a63ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
  }

  body.page-home .schedule-day {
    border-radius: 0;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(60, 60, 67, 0.18);
  }

  body.page-home .schedule-day:last-child {
    border-right: 1px solid rgba(60, 60, 67, 0.18);
  }

  body.page-home .schedule-day.is-today {
    border-left-color: rgba(60, 60, 67, 0.18);
    border-right-color: rgba(60, 60, 67, 0.18);
    box-shadow: none;
    background: transparent;
  }

  body.page-home .month-cell.is-today {
    background: rgba(255, 255, 255, 0.92);
  }

  body.page-home .month-cell.is-today .month-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0a63ff;
    color: #fff;
    line-height: 1;
  }

  body.page-home .month-view-label {
    display: block;
  }

  body.page-home .month-view-nav {
    justify-content: center;
    gap: 12px;
    padding: 0;
  }

  body.page-home .month-view-nav-button {
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
  }

  body.page-home .month-view-nav-button:hover,
  body.page-home .month-view-nav-button:active {
    background: transparent !important;
  }

  body.page-home .month-view-nav-button svg {
    width: 26px;
    height: 26px;
  }

  body.page-home .time-label {
    padding-right: 8px;
    font-size: 1.18rem;
    color: #8e8e93;
  }

  body.page-home .time-label.is-hour {
    color: #8e8e93;
    font-size: 1.28rem;
    font-weight: 800;
  }

  body.page-home .time-slot.is-hour {
    border-top: 1px solid rgba(60, 60, 67, 0.18);
  }

  body.page-home .time-slot:hover {
    background: rgba(0, 122, 255, 0.08);
  }

  body.page-home .time-slot.is-drop-target {
    background: rgba(0, 122, 255, 0.14);
  }

  /* Mobile agenda: align title under CalAppt */
  body.page-home .agenda-board {
    padding: 14px 14px 18px;
  }

  body.page-home .agenda-board-title {
    padding: 0;
  }
}

.topbar-tagline {
  display: none;
  margin-left: 0;
  white-space: nowrap;
}

.topbar .topbar-tagline {
  color: #ffef9a;
  margin-top: 1px;
}

.topbar-tagline-link,
.topbar-tagline-link:visited {
  color: #ffef9a;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 239, 154, 0.38);
}

.topbar-tagline-link:hover {
  border-bottom-color: rgba(255, 239, 154, 0.88);
}

.statement-status.is-paid {
  color: #0b4b2a;
}

.statement-status.is-due {
  color: rgba(19, 50, 88, 0.92);
}

.topbar-tagline-link:focus-visible {
  outline: 2px solid rgba(255, 212, 0, 0.56);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

.topbar-description {
  display: none;
  max-width: 720px;
  margin-left: 66px;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(239, 248, 239, 0.72);
}

.topbar-mobile-datetime {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  text-align: center;
  min-width: 0;
}

.topbar-mobile-date {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(239, 248, 239, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.topbar-mobile-time {
  color: rgba(239, 248, 239, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

body.page-customers .customers-mobile-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-customers .customer-nav-back {
  display: none;
}

body.page-customers .customer-nav-add {
  display: none;
}

.mobile-quick-nav {
  display: none;
}

.mobile-week-nav {
  display: none;
}

.mobile-tabbar {
  display: none;
  font-family: var(--font-sans);
}

.mobile-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(60, 60, 67, 0.6);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  min-width: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-tabbar-item svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-tabbar-item[aria-current="page"] {
  color: #007aff;
}

.mobile-tabbar-item:active {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-week-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(18, 38, 66, 0.92);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobileWeekViewBtn,
#mobileMonthViewBtn {
  display: none;
}

.lede {
  max-width: 720px;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
}

.week-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  padding-right: 54px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.toolbar-stack {
  display: grid;
  gap: 3px;
  justify-items: stretch;
}

.toolbar-note-link {
  font-size: 0.66rem;
  line-height: 1.1;
  color: rgba(239, 248, 239, 0.76);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.toolbar-note-link:hover {
  color: #bfe7ff;
  text-decoration: underline;
}

.toolbar-file-label {
  display: inline-block;
}

.week-badge {
  display: grid;
  gap: 3px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.week-badge strong { color: #fff; }

.topbar .ghost-button {
  color: #eff8ef;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.topbar .ghost-button.nav-green-button {
  background: linear-gradient(135deg, rgba(169, 242, 189, 0.92), rgba(221, 255, 231, 0.92));
  border-color: rgba(169, 242, 189, 0.5);
  color: #133253;
}

.topbar .ghost-button.nav-green-button:hover {
  filter: brightness(1.02);
}

.topbar .ghost-button.nav-turquoise-button {
  background: linear-gradient(135deg, rgba(111, 234, 227, 0.92), rgba(204, 255, 252, 0.92));
  border-color: rgba(111, 234, 227, 0.55);
  color: #133253;
}

.topbar .ghost-button.nav-turquoise-button:hover {
  filter: brightness(1.02);
}

.topbar .ghost-icon-button {
  color: #eff8ef;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.topbar .ghost-button.is-active {
  background: rgba(143, 212, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.topbar .ghost-button,
.topbar .primary-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.workspace > * {
  min-width: 0;
}

.panel {
  padding: 18px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.calendar-month-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 12px;
}

.calendar-month-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(143, 212, 255, 0.14);
  border: 1px solid rgba(22, 52, 94, 0.08);
  color: rgba(19, 50, 88, 0.92);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.month-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(22, 52, 94, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(19, 50, 88, 0.92);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.month-nav-button:hover {
  background: rgba(143, 212, 255, 0.22);
  border-color: rgba(47, 121, 184, 0.22);
}

.month-nav-button:focus-visible {
  outline: 2px solid rgba(47, 121, 184, 0.54);
  outline-offset: 2px;
}

.desktop-customer-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  align-self: start;
  position: sticky;
  top: 118px;
  max-height: calc(100vh - 150px);
}

.desktop-customer-head {
  display: grid;
  gap: 8px;
}

.desktop-customer-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin: 0;
}

.desktop-customer-hint {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.desktop-customer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.desktop-add-customer-button {
  flex: 1 1 180px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.15;
}

.desktop-add-event-button {
  flex: 1 1 140px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.15;
}

.desktop-new-customer-button {
  width: 100%;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.15;
}

.desktop-customer-list {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
}

.desktop-customer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(19, 50, 88, 0.9);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.desktop-customer-item .sample-pill {
  min-height: 20px;
  padding: 0 8px;
  font-size: 0.58rem;
}

.desktop-customer-item:hover {
  background: rgba(143, 212, 255, 0.22);
  border-color: rgba(47, 121, 184, 0.22);
}

.desktop-customer-item.is-selected {
  background: linear-gradient(135deg, rgba(143, 212, 255, 0.36), rgba(191, 231, 255, 0.56));
  border-color: rgba(47, 121, 184, 0.3);
}

.desktop-customer-item.is-dragging {
  opacity: 0.5;
}

.desktop-customer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-panel {
  background:
    linear-gradient(180deg, rgba(143, 212, 255, 0.14), transparent 22%),
    rgba(15, 31, 54, 0.95);
  color: #eef8ee;
  overflow: hidden;
  padding-top: 14px;
}

.customer-panel .field span,
.customer-panel .subtle-label,
.customer-panel .panel-chip,
.customer-panel .customer-toolbar-copy p {
  color: rgba(238, 248, 238, 0.72);
}

.customer-panel .field input,
.customer-panel .field textarea,
.customer-panel .field select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.customer-panel .field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(238, 248, 238, 0.9) 50%),
    linear-gradient(135deg, rgba(238, 248, 238, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.customer-panel .field select option {
  background: #17304d;
  color: #eef8ee;
}

.customer-panel .field input::placeholder { color: rgba(238, 248, 238, 0.45); }

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

.panel-head-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.panel-head-cta-note {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.customer-panel .panel-head {
  align-items: center;
  margin-bottom: 6px;
}

.panel-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.panel-switch-button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 248, 238, 0.78);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.panel-switch-button.is-active {
  background: rgba(143, 212, 255, 0.18);
  border-color: rgba(143, 212, 255, 0.28);
  color: #eff8ef;
}

.panel-head h2 { font-size: 1.5rem; }

.panel-chip, .legend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.customer-form, .drawer-form { display: grid; gap: 12px; }

.customer-panel .customer-form {
  gap: 8px;
}

.customer-panel .field {
  gap: 5px;
}

.customer-form.is-editing {
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(143, 212, 255, 0.24);
  background: rgba(143, 212, 255, 0.04);
}

.customer-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.customer-form-actions-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.customer-form-actions-right .ghost-button,
.customer-form-actions-right .secondary-button,
.customer-form-actions-right .primary-button {
  min-width: 78px;
}

.custom-fields-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.custom-fields-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-fields-list {
  display: grid;
  gap: 10px;
}

.custom-fields-empty,
.custom-fields-hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(238, 248, 238, 0.72);
}

.custom-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.custom-field-remove {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-self: end;
}

.branding-logo-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.branding-logo-preview {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.branding-logo-controls {
  display: grid;
  gap: 8px;
}

.customer-toolbar {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
}

body.page-customers .customer-toolbar {
  margin: 10px 0 12px;
}

body.page-customers .add-customer-icon-button {
  background: linear-gradient(135deg, #ffd400, #ffef9a);
  border-color: rgba(255, 212, 0, 0.38);
  color: #133253;
  font-size: 1.45rem;
}

body.page-customers .add-customer-icon-button:hover {
  filter: brightness(1.03);
}

body.page-customers .customer-count-chip {
  display: none;
}

.customer-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
  flex-wrap: wrap;
}

.customer-count-chip {
  min-height: 34px;
}

.customer-bulk-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(238, 248, 238, 0.78);
  user-select: none;
  white-space: nowrap;
}

.customer-bulk-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.settings-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin: 12px 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

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

.settings-card-copy {
  margin-top: 4px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(238, 248, 238, 0.68);
}

.settings-link-card {
  align-content: start;
}

.settings-link-button {
  width: 100%;
}

.sport-form {
  display: grid;
  gap: 10px;
}

.sport-manager-body {
  width: min(100%, 240px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.sport-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 0;
}

.sport-form .field {
  min-width: 0;
  justify-items: stretch;
  width: 100%;
}

.sport-manager .field span {
  text-align: left;
  font-size: 0.58rem;
}

.sport-form .customer-form-actions {
  justify-content: center;
}

.sport-form .customer-form-actions-right {
  margin-left: 0;
  justify-content: center;
}

.sport-form .field input,
.sport-form .field select,
#customerSportId {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.76rem;
  border-radius: 10px;
  text-align: left;
  width: 100%;
  margin: 0 auto;
  border: 0;
}

.sport-manager .field select,
#customerSportId {
  appearance: none;
  text-align-last: left;
  background-image: none !important;
  padding-left: 12px;
  padding-right: 12px !important;
}

.field-color input[type="color"] {
  min-height: 36px;
  padding: 3px;
  border-radius: 10px;
  cursor: pointer;
  width: 72px;
  margin: 0 auto;
  border: 0;
}

.sport-table {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.sport-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 0;
}

.sport-row-line {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.sport-row-line strong {
  font-size: 0.8rem;
  line-height: 1.1;
  color: #fff;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sport-row .customer-edit-button {
  min-height: 26px;
  padding: 0 7px;
  font-size: 0.68rem;
  margin-left: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  border: 0;
}

.sport-row-icon {
  justify-self: start;
}

.sport-row .customer-edit-button {
  justify-self: end;
}

.customer-toolbar-copy {
  display: grid;
  gap: 4px;
}

.customer-toolbar-copy p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.field { display: grid; gap: 7px; }

.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
}

.field-password {
  position: relative;
  display: grid;
}

.field-password input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(18, 38, 66, 0.54);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(18, 38, 66, 0.74);
}

.password-toggle:active {
  background: rgba(0, 0, 0, 0.06);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 2px;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.password-toggle .password-toggle-eyeoff {
  display: none;
}

.password-toggle.is-on .password-toggle-eye {
  display: none;
}

.password-toggle.is-on .password-toggle-eyeoff {
  display: block;
}

.field.is-green input:not([type="checkbox"]):not([type="radio"]),
.field.is-green textarea,
.field.is-green select {
  background: rgba(169, 242, 189, 0.22);
  border-color: rgba(78, 176, 122, 0.34);
  box-shadow: inset 0 0 0 1px rgba(78, 176, 122, 0.1);
}

.field.is-green input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.field.is-green textarea:focus-visible,
.field.is-green select:focus-visible {
  outline: 2px solid rgba(78, 176, 122, 0.56);
  outline-offset: 2px;
}

.field textarea { min-height: 112px; resize: vertical; }
.search-field input { min-height: 40px; }

.primary-button, .secondary-button, .ghost-button, .ghost-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.desktop-add-customer-button,
.desktop-add-event-button,
.desktop-new-customer-button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.72rem;
  line-height: 1.15;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #bfe7ff);
  color: #133253;
  border-color: rgba(47, 121, 184, 0.18);
}

.primary-button.is-cta {
  background: linear-gradient(135deg, var(--accent-deep), #3aa1ff);
  color: #ffffff;
  border-color: rgba(47, 121, 184, 0.32);
  box-shadow: 0 10px 20px rgba(47, 121, 184, 0.22);
}

.primary-button.is-cta:hover {
  filter: brightness(1.03);
}

.primary-button.is-cta:focus-visible {
  outline: 2px solid rgba(47, 121, 184, 0.46);
  outline-offset: 3px;
}

.topbar #todayDayBtn {
  background: linear-gradient(135deg, #ffd400, #ffef9a);
  border-color: rgba(255, 212, 0, 0.36);
  color: #133253;
}

.topbar #todayDayBtn:hover {
  filter: brightness(1.03);
}

.secondary-button {
  background: rgba(143, 212, 255, 0.12);
  color: var(--text);
}

.ghost-button, .ghost-icon-button {
  background: transparent;
  color: var(--text);
}

.ghost-button.is-textlink {
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent-deep);
  text-decoration: underline;
  justify-content: flex-start;
}

.ghost-button.is-textlink:hover {
  filter: brightness(1.05);
}

.ghost-button.is-textlink:focus-visible {
  outline: 2px solid rgba(47, 121, 184, 0.46);
  outline-offset: 3px;
}

.tooltip-wrap {
  position: relative;
  display: flex;
  width: 100%;
}

.tooltip-wrap > * {
  width: 100%;
}

.tooltip-wrap[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-2px);
  background: rgba(17, 22, 33, 0.94);
  color: rgba(255, 255, 255, 0.94);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: min(360px, 92vw);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 120ms ease, transform 120ms ease;
}

.tooltip-wrap[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(17, 22, 33, 0.94);
  opacity: 0;
  pointer-events: none;
  z-index: 49;
  transition: opacity 120ms ease;
}

.tooltip-wrap[data-tooltip]:hover::after,
.tooltip-wrap[data-tooltip]:focus-within::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip-wrap[data-tooltip]:hover::before,
.tooltip-wrap[data-tooltip]:focus-within::before {
  opacity: 1;
}

.customer-panel .ghost-button, .customer-panel .secondary-button { color: #eff8ef; }

.danger-button {
  color: #bb2c2c;
  border-color: rgba(187, 44, 44, 0.22);
}

.customer-panel .danger-button {
  color: #ff7d7d;
  border-color: rgba(255, 125, 125, 0.26);
  background: rgba(255, 125, 125, 0.08);
}

.customer-panel .danger-button:hover {
  background: rgba(255, 125, 125, 0.12);
}

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

body.page-customers .customer-list-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 6px;
  align-items: start;
}

body.page-customers .customer-alpha-index {
  display: grid;
  gap: 2px;
  padding: 6px 0;
  align-self: start;
  justify-self: end;
  position: sticky;
  top: 16px;
}

body.page-customers .alpha-index-letter {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(60, 60, 67, 0.55);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

body.page-customers .alpha-index-letter:disabled {
  color: rgba(60, 60, 67, 0.22);
  cursor: default;
}

body.page-customers .alpha-index-letter:not(:disabled):hover {
  color: #007aff;
}

body.page-customers .alpha-index-letter:not(:disabled):active {
  color: #007aff;
  background: rgba(0, 122, 255, 0.12);
}

body.page-customers .alpha-index-letter:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 2px;
}

@media (max-width: 780px), (max-height: 520px) and (hover: none) and (pointer: coarse) {
  body.page-customers .customer-list-shell {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 6px;
    padding-right: 12px;
  }

  body.page-customers .alpha-index-letter {
    width: 44px;
    height: 30px;
    font-size: 1.6rem;
  }

  body.page-customers .customer-alpha-index {
    background: #fff;
    border-radius: 12px;
    padding: 8px 6px;
    max-height: calc(100vh - 220px);
    max-height: calc(100svh - 220px);
    overflow-y: auto;
    overscroll-behavior: contain;
    top: calc(var(--customers-mobile-topbar-height) + var(--customers-mobile-search-height) + 8px);
  }
}

body.page-customers .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-customers .customer-merge-body {
  display: grid;
  gap: 14px;
}

body.page-customers .customer-merge-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 52, 94, 0.14);
  border-radius: 18px;
  background: rgba(143, 212, 255, 0.08);
}

body.page-customers .customer-merge-groups {
  display: grid;
  gap: 12px;
}

body.page-customers .customer-merge-group {
  border: 1px solid rgba(22, 52, 94, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

body.page-customers .customer-merge-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.page-customers .customer-merge-group-header h3 {
  margin: 0;
}

body.page-customers .customer-merge-group-subtitle,
body.page-customers .customer-merge-group-reason {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

body.page-customers .customer-merge-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.page-customers .customer-merge-summary {
  display: grid;
  gap: 6px;
}

body.page-customers .customer-merge-summary h3 {
  margin: 0;
}

body.page-customers .customer-merge-customer-list {
  display: grid;
  gap: 10px;
}

body.page-customers .customer-merge-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 52, 94, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

body.page-customers .customer-merge-radio {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

body.page-customers .customer-merge-radio input {
  margin-top: 4px;
}

body.page-customers .customer-merge-customer-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.page-customers .customer-merge-customer-meta strong {
  font-size: 1rem;
}

body.page-customers .customer-merge-customer-meta small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

body.page-why .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-why .why-actions {
  margin-top: 12px;
}

body.page-setup .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-account .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-pricing .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-settings .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-cover .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-cover .cover-grid {
  display: grid;
  gap: 18px;
  align-items: center;
}

body.page-cover .cover-copy h2 {
  margin-top: 4px;
}

body.page-cover .cover-reasons {
  margin: 14px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 10px;
  color: rgba(18, 38, 66, 0.92);
}

body.page-cover .cover-reasons strong {
  color: rgba(18, 38, 66, 0.92);
}

body.page-cover .cover-cta {
  margin-top: 16px;
}

body.page-cover .cover-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.page-cover .cover-actions .primary-button,
body.page-cover .cover-actions .ghost-button {
  min-height: 46px;
  padding: 0 18px;
}

@media (max-width: 720px) {
  body.page-cover .page-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  body.page-cover .cover-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(248, 251, 255, 0.92);
    border-top: 1px solid rgba(22, 52, 94, 0.12);
    backdrop-filter: blur(10px);
  }

  body.page-cover .cover-cta .cover-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.page-cover .cover-cta .primary-button,
  body.page-cover .cover-cta .ghost-button {
    width: 100%;
    justify-content: center;
  }
}

body.page-cover .cover-footnote {
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(86, 112, 143, 0.92);
}

body.page-cover .cover-art {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(143, 212, 255, 0.12);
  border: 1px solid rgba(22, 52, 94, 0.12);
}

body.page-cover .cover-illustration {
  width: min(420px, 100%);
  height: auto;
  display: block;
}

body.page-cover .cover-art-caption {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: rgba(19, 50, 88, 0.82);
}

@media (min-width: 920px) {
  body.page-cover .cover-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  body.page-cover .cover-art {
    padding: 22px 22px 18px;
  }
}

body.page-demo .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.page-demo .demo-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 980px) {
  body.page-demo .demo-steps {
    position: sticky;
    top: 18px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding-right: 4px;
  }
}

body.page-demo .demo-slide-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 36px rgba(18, 38, 66, 0.12);
}

body.page-demo .demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

body.page-demo .demo-status {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 160px;
}

body.page-demo .demo-status strong {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: rgba(18, 38, 66, 0.92);
}

body.page-demo .demo-counter {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(86, 112, 143, 0.9);
}

body.page-demo .demo-steps {
  display: grid;
  gap: 10px;
}

body.page-demo .demo-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: demo-step;
}

body.page-demo .demo-steps-list li {
  counter-increment: demo-step;
}

body.page-demo .demo-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(22, 52, 94, 0.14);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(18, 38, 66, 0.92);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

body.page-demo .demo-step-btn::before {
  content: counter(demo-step, decimal-leading-zero);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(47, 121, 184, 0.12);
  border: 1px solid rgba(47, 121, 184, 0.18);
  color: rgba(19, 50, 88, 0.78);
  font-size: 0.74rem;
  font-weight: 900;
  flex: 0 0 auto;
}

body.page-demo .demo-step-btn:hover {
  background: rgba(143, 212, 255, 0.18);
  border-color: rgba(47, 121, 184, 0.18);
}

body.page-demo .demo-step-btn.is-active {
  background: linear-gradient(135deg, var(--accent), #bfe7ff);
  border-color: rgba(47, 121, 184, 0.24);
  color: #133253;
}

body.page-demo .demo-step-btn.is-active::before {
  background: rgba(15, 113, 255, 0.18);
  border-color: rgba(15, 113, 255, 0.26);
  color: rgba(19, 50, 88, 0.92);
}

body.page-demo .demo-hint {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(86, 112, 143, 0.92);
}

@media (min-width: 980px) {
  body.page-demo .demo-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

body.page-setup .desktop-customer-actions {
  margin-top: 12px;
}

.more-links {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.more-links .ghost-button {
  width: 100%;
  justify-content: flex-start;
}

.a2hs-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.a2hs-actions .primary-button,
.a2hs-actions .secondary-button,
.a2hs-actions .ghost-button {
  flex: 1 1 180px;
  justify-content: center;
}

.a2hs-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 24px));
  max-height: min(560px, calc(100vh - 40px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 70;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(22, 52, 94, 0.14);
  background:
    linear-gradient(135deg, rgba(143, 212, 255, 0.12), transparent 30%),
    rgba(248, 251, 255, 0.98);
  box-shadow: 0 26px 78px rgba(18, 38, 66, 0.18);
}

.a2hs-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.a2hs-modal-head h2 {
  margin: 6px 0 0;
  font-size: 1.2rem;
}

.a2hs-steps {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: rgba(18, 38, 66, 0.92);
  line-height: 1.45;
}

.a2hs-note {
  margin: 12px 0 0;
  color: rgba(86, 112, 143, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
}

.more-setup-summary {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(22, 52, 94, 0.14);
  background: rgba(0, 0, 0, 0.02);
  display: grid;
  gap: 8px;
}

.more-setup-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 10px;
}

.more-setup-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.more-setup-row:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 3px;
}

.more-setup-key {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 38, 66, 0.62);
  white-space: nowrap;
}

.more-setup-value {
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(18, 38, 66, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}

.template-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.template-create-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
}

.template-create-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.template-create-services {
  display: grid;
  gap: 10px;
}

.template-create-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.template-choice {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 12px;
  display: grid;
  gap: 4px;
}

.template-choice.is-active {
  background: rgba(143, 212, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.template-choice-title {
  display: block;
  font-weight: 900;
  letter-spacing: -0.01em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-choice-note {
  font-size: 0.82rem;
  color: rgba(239, 248, 239, 0.72);
  line-height: 1.3;
}

.template-footnote {
  margin: 12px 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(239, 248, 239, 0.72);
}

.template-description {
  margin: 6px 0 0;
}

.template-detail {
  margin-top: 14px;
}

.template-services {
  margin-top: 10px;
}

.template-service-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.template-service-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.template-service-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}

.template-service-name {
  font-weight: 800;
}

body.page-customers .customer-alpha-group {
  display: grid;
  gap: 10px;
  margin: 0;
}

body.page-customers .customer-alpha-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238, 248, 238, 0.72);
}

body.page-customers .customer-alpha-heading::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.14);
}

body.page-customers .customer-alpha-items {
  display: grid;
  gap: 10px;
}

@media (min-width: 900px) {
  body.page-customers .customer-list {
    display: block;
    columns: 280px 4;
    column-gap: 14px;
  }

  body.page-customers .customer-alpha-group {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 14px;
  }

  body.page-customers .customer-alpha-heading {
    margin-bottom: 10px;
  }

  body.page-customers .customer-alpha-items {
    display: grid;
  }

  body.page-customers .customer-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
}

.customer-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  min-width: 0;
}

.customer-card[data-customer-action="select"] {
  cursor: pointer;
}

body.page-customers .customer-card[data-customer-profile-id] {
  cursor: pointer;
}

.customer-card.is-dragging { opacity: 0.48; }

.selected-customer-card {
  border-color: rgba(143, 212, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(143, 212, 255, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(143, 212, 255, 0.08);
}

.task-card {
  border-color: rgba(143, 212, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(143, 212, 255, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(143, 212, 255, 0.08);
}

.customer-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  min-width: 0;
}

.customer-card-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-text-inline {
  display: none;
}

.customer-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.customer-select-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  flex-shrink: 0;
}

.customer-select-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.customer-avatar {
  --avatar-color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 34px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    var(--avatar-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  user-select: none;
}

.customer-avatar svg {
  width: 18px;
  height: 18px;
  display: block;
}

.customer-row-subline {
  display: none;
  font-size: 0.82rem;
  line-height: 1.25;
  color: rgba(238, 248, 238, 0.74);
}

.customer-quick-actions {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.customer-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(238, 248, 238, 0.88);
  text-decoration: none;
}

.customer-quick-action svg {
  width: 18px;
  height: 18px;
  display: block;
}

.customer-row-chevron {
  color: rgba(238, 248, 238, 0.58);
  font-size: 1.6rem;
  line-height: 1;
  padding-left: 4px;
}

.customer-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.customer-recovery-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(84, 104, 130, 0.18);
}

.customer-recovery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.customer-recovery-head h3 {
  margin: 2px 0 0;
  font-size: 1rem;
  color: var(--ink);
}

.customer-recovery-list {
  gap: 8px;
}

.customer-recovery-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(147, 166, 190, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

.customer-recovery-card .customer-card-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.customer-recovery-meta,
.customer-audit-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.customer-audit-list {
  display: grid;
  gap: 8px;
}

.customer-audit-item {
  padding: 10px 12px;
  border: 1px solid rgba(147, 166, 190, 0.22);
  background: rgba(247, 250, 255, 0.76);
}

.customer-audit-item strong {
  display: block;
  color: var(--ink);
}

.customer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-select-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(238, 248, 238, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}

.sample-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(19, 50, 88, 0.9);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 52, 94, 0.12);
  user-select: none;
  flex-shrink: 0;
}

.customer-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 248, 238, 0.88);
  text-decoration: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.customer-edit-button:hover {
  background: rgba(143, 212, 255, 0.14);
  border-color: rgba(143, 212, 255, 0.22);
}

.task-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(143, 212, 255, 0.24);
  background: rgba(143, 212, 255, 0.14);
  color: #dff4ff;
  font-size: 0.74rem;
  font-weight: 700;
}

.customer-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #fff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  flex: 1 1 auto;
}

.customer-card-top:hover .customer-name {
  color: #8fd4ff;
}

.customer-sport-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-width: 0;
}

.customer-sport-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(238, 248, 238, 0.86);
}

.customer-note {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(238, 248, 238, 0.74);
}

.customer-contact-list {
  display: grid;
  gap: 3px;
}

.customer-contact {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(238, 248, 238, 0.82);
  text-decoration: none;
  word-break: break-word;
}

.customer-contact-link:hover {
  color: #bfe7ff;
  text-decoration: underline;
}

.selected-customer-hint {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(238, 248, 238, 0.66);
}

.customer-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px dashed rgba(143, 212, 255, 0.36);
  background: rgba(143, 212, 255, 0.14);
  color: #eef8ee;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: grab;
  user-select: none;
}

.customer-drag-handle:active {
  cursor: grabbing;
}

.customer-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex: 0 0 12px;
}

.sport-icon-badge,
.appointment-sport-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.sport-icon-badge svg,
.appointment-sport-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sport-custom-icon {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

.calendar-head { align-items: center; }

.calendar-head-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.weather-form {
  display: flex;
  align-items: end;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.weather-field {
  min-width: 156px;
}

.weather-field input {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 0.82rem;
}

.weather-form .field {
  gap: 3px;
}

.weather-form .field span {
  font-size: 0.58rem;
}

.weather-form .secondary-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 0.76rem;
}

.calendar-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-day-bar {
  display: none;
  align-items: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(143, 212, 255, 0.12), transparent 36%),
    rgba(11, 27, 51, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eff8ef;
  touch-action: pan-y;
}

.mobile-day-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-items: center;
  text-align: center;
}

.mobile-month-pill {
  grid-column: 3;
  grid-row: 2;
}

#mobileWeekViewBtn {
  grid-column: 3;
  grid-row: 1;
}

.mobile-day-control {
  -webkit-tap-highlight-color: transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.mobile-day-bar .ghost-button,
.mobile-day-bar .primary-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.mobile-day-bar .ghost-button {
  color: #eff8ef;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-day-bar .week-kicker {
  color: rgba(239, 248, 239, 0.72);
}

.mobile-day-bar .mobile-day-hint {
  color: rgba(239, 248, 239, 0.72);
}

.mobile-day-bar .mobile-view-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(239, 248, 239, 0.92);
}

.mobile-day-bar .mobile-view-pill.is-active {
  color: #133253;
}

.mobile-day-bar .mobile-day-control.is-selected {
  background: linear-gradient(135deg, var(--accent), #bfe7ff);
  border-color: rgba(47, 121, 184, 0.24);
  color: #133253;
}

.mobile-day-toprow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.mobile-kicker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.mobile-city-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(239, 248, 239, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-view-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(19, 50, 88, 0.06);
  border: 1px solid rgba(22, 52, 94, 0.12);
}

.mobile-view-pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(19, 50, 88, 0.82);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.mobile-view-pill.is-active {
  background: linear-gradient(135deg, var(--accent), #bfe7ff);
  border-color: rgba(47, 121, 184, 0.24);
  color: #133253;
}

.mobile-day-summary strong {
  font-family: var(--font-sans);
  font-size: 1rem;
}

.mobile-day-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-current-time {
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(239, 248, 239, 0.86);
}

.mobile-day-hint {
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--muted);
}

.calendar-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
}

.calendar-grid {
  min-width: 0;
  --slot-height: 34px;
  --slot-count: 32;
}

.calendar-grid.is-mobile-day-view {
  touch-action: pan-y;
}

.agenda-board {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.agenda-board-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.agenda-week-nav {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: rgba(19, 50, 88, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.agenda-week-nav:hover {
  background: rgba(0, 0, 0, 0.05);
}

.agenda-week-nav:active {
  background: rgba(0, 0, 0, 0.07);
  transform: translateY(0.5px);
}

.agenda-week-nav svg {
  width: 22px;
  height: 22px;
}

.agenda-week-nav:focus-visible {
  outline: 2px solid rgba(47, 121, 184, 0.58);
  outline-offset: 2px;
}

.agenda-board-title {
  margin: 0;
  padding: 0 2px;
  font-family: var(--font-sans);
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(19, 50, 88, 0.92);
}

.agenda-day {
  border-radius: 16px;
  background: rgba(19, 50, 88, 0.04);
  border: 1px solid rgba(22, 52, 94, 0.08);
  padding: 12px;
}

.calendar-grid.is-month-view {
  min-width: 0;
}

.month-view-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.month-view-label {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(18, 38, 66, 0.92);
  white-space: nowrap;
}

.month-view-nav-button {
  width: 34px;
  height: 34px;
}

.month-board {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-dow {
  padding: 10px 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 50, 88, 0.72);
  background: rgba(19, 50, 88, 0.04);
  border-bottom: 1px solid rgba(22, 52, 94, 0.1);
}

.month-cell {
  min-height: 66px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
  border: 0;
  border-right: 1px solid rgba(22, 52, 94, 0.1);
  border-bottom: 1px solid rgba(22, 52, 94, 0.1);
  color: rgba(19, 50, 88, 0.94);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

@media (min-width: 900px) {
  .month-cell {
    min-height: 128px;
    height: 128px;
    overflow: hidden;
  }
}

.month-cell:nth-of-type(7n) {
  border-right: 0;
}

.month-cell:hover {
  background: rgba(143, 212, 255, 0.18);
}

.month-cell:focus-visible {
  outline: 2px solid rgba(47, 121, 184, 0.58);
  outline-offset: -2px;
}

.month-cell.is-outside {
  background: rgba(19, 50, 88, 0.02);
  color: rgba(19, 50, 88, 0.45);
}

.month-cell.is-today {
  background: rgba(255, 255, 255, 0.92);
}

.month-cell.is-today .month-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #0a63ff;
  color: #fff;
  line-height: 1;
  font-weight: 800;
}

.month-cell.is-selected {
  outline: 3px solid rgba(143, 212, 255, 0.82);
  outline-offset: -3px;
}

.month-cell-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.month-day-number {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 800;
}

.month-events {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.month-event {
  --month-event-color: #6fb8ff;
  --month-event-bg: rgba(15, 113, 255, 0.08);
  display: flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 0;
  background: var(--month-event-bg);
  border-left: 4px solid var(--month-event-color);
  color: rgba(18, 38, 66, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 781px) {
  .month-event {
    font-size: 0.68rem;
    padding: 0 6px;
  }
}

.month-cell.is-outside .month-event {
  opacity: 0.62;
}

.month-more {
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(18, 38, 66, 0.62);
  padding: 0 2px;
  margin-top: auto;
}

.month-day-count {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.24), rgba(255, 212, 0, 0.18));
  border: 1px solid rgba(255, 140, 0, 0.38);
  color: rgba(19, 50, 88, 0.92);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.month-day-temp {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(19, 50, 88, 0.62);
  pointer-events: none;
  white-space: nowrap;
}

.month-day-temp .weather-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  text-shadow: none;
}

.month-day-temp .weather-icon svg {
  width: 14px;
  height: 14px;
}

.month-day-temp-text {
  line-height: 1;
}

.month-cell.is-outside .month-day-temp {
  color: rgba(19, 50, 88, 0.35);
}

@media (min-width: 781px) {
  .month-day-temp {
    display: inline-flex;
  }
}

.agenda-day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.agenda-day {
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(22, 52, 94, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.agenda-day:nth-of-type(odd) {
  background: rgba(143, 212, 255, 0.12);
}

.agenda-day:nth-of-type(even) {
  background: rgba(169, 242, 189, 0.12);
}

.agenda-board-title {
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
}

.agenda-day-count {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.agenda-list {
  display: grid;
  gap: 8px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 52, 94, 0.08);
  cursor: pointer;
}

.agenda-item:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(22, 52, 94, 0.14);
}

.agenda-time {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.agenda-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agenda-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.agenda-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}

.agenda-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-note {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.payments-filter-row {
  margin: 12px 0 14px;
  display: flex;
  justify-content: center;
}

.payments-filter-row .field {
  width: min(360px, 100%);
  margin: 0;
}

.payments-kpi {
  padding: 12px;
  border-radius: 18px;
  background: rgba(143, 212, 255, 0.14);
  border: 1px solid rgba(22, 52, 94, 0.1);
  display: grid;
  gap: 6px;
  min-width: 0;
}

.payments-kpi span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.payments-kpi strong {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.payments-kpi.payments-kpi-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(169, 242, 189, 0.22), rgba(143, 212, 255, 0.14));
  border-color: rgba(78, 176, 122, 0.22);
}

.payments-kpi.payments-kpi-link:hover {
  background: linear-gradient(135deg, rgba(169, 242, 189, 0.28), rgba(143, 212, 255, 0.18));
  border-color: rgba(78, 176, 122, 0.3);
}

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

.yearly-breakdown-list {
  display: grid;
  gap: 10px;
}

.yearly-month-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 52, 94, 0.08);
}

.yearly-month-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.yearly-month-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
}

.yearly-month-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.yearly-month-totals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.yearly-month-total {
  display: grid;
  gap: 2px;
  text-align: right;
  min-width: 92px;
}

.yearly-month-total span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.yearly-month-total strong {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
  font-size: 0.98rem;
}

.yearly-totals-item {
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.16), rgba(169, 242, 189, 0.22));
  border-color: rgba(255, 175, 0, 0.22);
}

.yearly-totals-item .yearly-month-title {
  font-size: 1.05rem;
}

.yearly-totals-item .yearly-month-total strong {
  font-size: 1.02rem;
}

.payments-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 52, 94, 0.08);
}

.payments-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payments-item-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-item-meta {
  color: var(--muted);
  font-size: 0.82rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-item-controls {
  display: grid;
  grid-template-columns: 140px 92px;
  gap: 10px;
  align-items: end;
}

.payments-amount,
.payments-paid {
  display: grid;
  gap: 6px;
}

.payments-amount > span:first-child,
.payments-paid > span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.payments-amount-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.payments-paid-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  user-select: none;
}

.payments-paid-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #ffd400;
  cursor: pointer;
}

.payments-paid-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: rgba(19, 50, 88, 0.92);
}

.payments-paid-checkbox:checked + .payments-paid-pill {
  color: #0b4b2a;
}

.schedule-board {
  width: 100%;
  min-width: 0;
}

.desktop-day-shell {
  display: grid;
  grid-template-columns: 220px 430px;
  gap: 18px;
  align-items: start;
  justify-content: start;
  min-width: 0;
}

.desktop-day-overview {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 220px;
  margin-top: 42px;
}

.mini-month-card,
.desktop-day-overview .glance-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mini-month-card {
  padding: 0 0 10px;
}

.mini-month-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
}

.mini-month-title {
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
  color: rgba(18, 38, 66, 0.95);
}

.mini-month-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(18, 38, 66, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mini-month-nav:hover {
  background: rgba(47, 121, 184, 0.14);
}

.mini-month-nav svg {
  width: 14px;
  height: 14px;
}

.mini-month-weekdays,
.mini-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mini-month-weekdays {
  gap: 2px;
  margin-bottom: 5px;
  color: rgba(86, 112, 143, 0.86);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.mini-month-grid {
  gap: 2px;
}

.mini-month-day {
  width: 26px;
  min-width: 0;
  height: 26px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(18, 38, 66, 0.9);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-month-day:hover {
  background: rgba(47, 121, 184, 0.1);
}

.mini-month-day.is-outside {
  color: rgba(86, 112, 143, 0.42);
}

.mini-month-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(47, 121, 184, 0.2);
}

.mini-month-day.is-selected {
  background: #0d6efd;
  color: #fff;
  box-shadow: none;
}

.desktop-day-overview .glance-panel {
  flex: 0 0 auto;
  width: 100%;
  border-left: 0;
  padding: 14px 10px 12px;
  --glance-gutter: 14px;
}

.desktop-day-overview .glance-head {
  min-height: 0;
  padding-top: 0;
}

.desktop-day-overview .glance-week {
  display: block;
}

.calendar-grid.is-desktop-day-view .schedule-board {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-self: start;
  width: 430px;
  max-width: 430px;
}

.schedule-shell {
  display: flex;
  gap: 0;
  align-items: flex-start;
  min-width: 0;
}

.schedule-shell .schedule-board {
  flex: 1 1 auto;
  min-width: min(760px, 100%);
}

@media (max-width: 1100px) {
  .schedule-shell {
    flex-direction: column;
  }

  .schedule-shell .schedule-board {
    min-width: 0;
    width: 100%;
  }

  .glance-panel {
    flex: 0 0 auto;
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(22, 52, 94, 0.1);
    padding: 12px 14px 0;
  }

  .schedule-shell.schedule-shell-mobile-week {
    display: inline-flex;
    flex-direction: row;
  }

  .schedule-shell.schedule-shell-mobile-week .schedule-board {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }

  .schedule-shell.schedule-shell-mobile-week .glance-panel {
    width: 196px;
    border-top: 0;
    border-left: 1px solid rgba(22, 52, 94, 0.1);
    padding: 0 0 0 14px;
  }
}

.glance-panel {
  flex: 0 0 196px;
  width: 196px;
  border-radius: 0;
  border: 0;
  border-left: 1px solid rgba(22, 52, 94, 0.1);
  background: transparent;
  box-shadow: none;
  padding: 0 0 0 14px;
  --glance-gutter: 14px;
}

.glance-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 10px 0 8px;
  border-bottom: 0;
  margin-bottom: 12px;
}

.glance-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: rgba(18, 38, 66, 0.94);
  letter-spacing: -0.01em;
}

.glance-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(86, 112, 143, 0.9);
}

.glance-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.glance-metric {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
}

.glance-metric-label {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(86, 112, 143, 0.92);
}

.glance-metric-value {
  margin-top: 3px;
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(18, 38, 66, 0.95);
}

.glance-metric-value-first .glance-metric-value {
  margin-top: 0;
}

.glance-metric-value-first .glance-metric-label {
  margin-top: 3px;
}

.glance-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.glance-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 52, 94, 0.12);
  background: rgba(245, 249, 255, 0.9);
  color: rgba(18, 38, 66, 0.92);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  width: 100%;
}

.glance-action-link:hover {
  background: rgba(143, 212, 255, 0.18);
}

.glance-activity {
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.glance-activity-head {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(86, 112, 143, 0.9);
  margin-bottom: 8px;
}

.glance-activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title amount"
    "detail amount";
  gap: 2px 10px;
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(22, 52, 94, 0.08);
}

.glance-activity-row.is-glance-appointment-row {
  grid-template-areas: "title amount";
  gap: 0 10px;
}

.glance-activity-row.is-glance-appointment-row .glance-activity-detail {
  display: none;
}

.glance-activity-row + .glance-activity-row {
  margin-top: 0;
}

.glance-panel .glance-activity + .glance-metrics {
  margin-top: 14px;
}

.glance-panel .glance-activity + .glance-activity {
  margin-top: 14px;
}

.glance-activity-title {
  grid-area: title;
  font-weight: 900;
  font-size: 0.8rem;
  color: rgba(18, 38, 66, 0.94);
}

.glance-activity-detail {
  grid-area: detail;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(86, 112, 143, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glance-activity-amount {
  grid-area: amount;
  justify-self: end;
  align-self: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(11, 75, 42, 0.9);
}

.glance-empty {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(86, 112, 143, 0.9);
}

.glance-week {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0;
  position: relative;
}

/* Extend the Today/Week divider line to meet the schedule grid border. */
.glance-week::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * var(--glance-gutter, 14px));
  width: calc(100% + var(--glance-gutter, 14px));
  height: 1px;
  background: rgba(18, 38, 66, 0.22);
}

.glance-week-head {
  padding-top: 0;
  min-height: auto;
}

.glance-week-days {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.glance-week-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-right: 6px;
  font-size: 0.82rem;
  font-weight: 750;
  color: rgba(18, 38, 66, 0.92);
}

.glance-week-day {
  color: rgba(86, 112, 143, 0.92);
  font-weight: 750;
}

.glance-week-hours {
  font-weight: 900;
  color: rgba(18, 38, 66, 0.94);
}

.glance-week-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 38, 66, 0.12);
  display: grid;
  gap: 6px;
}

.glance-week-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.glance-week-total-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: rgba(86, 112, 143, 0.92);
}

.glance-week-total-value {
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(18, 38, 66, 0.95);
}

.company-day-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(22, 52, 94, 0.09);
  background: rgba(255, 255, 255, 0.56);
}

.company-day-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.company-day-toolbar-label {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-day-nav {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 12px;
  font-size: 1.4rem;
  line-height: 1;
}

.company-day-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.company-day-add {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-header,
.schedule-body {
  display: grid;
  grid-template-columns: 62px repeat(var(--day-count, 7), minmax(102px, 1fr));
  gap: 8px;
}

.schedule-header {
  margin-bottom: 10px;
  align-items: end;
}

@media (min-width: 781px) {
  .schedule-header {
    position: static;
    top: auto;
    z-index: auto;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .schedule-body {
    padding-top: 0;
  }
}

.schedule-corner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 50px;
  padding: 0 6px 8px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-day-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "weather weather"
    "name meta";
  align-items: center;
  gap: 6px 8px;
  min-height: 74px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(143, 212, 255, 0.14);
  border: 1px solid rgba(22, 52, 94, 0.08);
}

.schedule-day-head.is-today {
  background: rgba(255, 249, 225, 0.96);
  border-width: 2px;
  border-color: rgba(255, 212, 0, 0.52);
}

.schedule-weather {
  grid-area: weather;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 16px;
  color: var(--accent-deep);
  justify-self: center;
}

.schedule-weather.has-weather {
  color: var(--accent-deep);
}

.weather-city {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 121, 184, 0.14);
  border: 1px solid rgba(47, 121, 184, 0.22);
  color: rgba(18, 38, 66, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.weather-city:hover {
  background: rgba(47, 121, 184, 0.18);
  border-color: rgba(47, 121, 184, 0.28);
}

.weather-city:focus-visible {
  outline: 2px solid rgba(47, 121, 184, 0.5);
  outline-offset: 2px;
}

.schedule-weather .weather-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  line-height: 1;
  border: 1px solid transparent;
  background: rgba(47, 121, 184, 0.08);
  flex: 0 0 34px;
}

.weather-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.weather-icon.is-sunny {
  color: #ff9f0a;
  background: rgba(255, 202, 102, 0.32);
  border-color: rgba(255, 159, 10, 0.3);
  text-shadow: 0 0 10px rgba(255, 159, 10, 0.34);
}

.weather-icon.is-mostly-clear {
  color: #d97706;
  background: rgba(255, 214, 142, 0.3);
  border-color: rgba(217, 119, 6, 0.24);
}

.weather-icon.is-partly-cloudy {
  color: #ff9f0a;
  background: rgba(255, 214, 142, 0.26);
  border-color: rgba(255, 159, 10, 0.22);
}

.weather-icon.is-cloudy,
.weather-icon.is-fog {
  color: #677c92;
  background: rgba(218, 228, 240, 0.42);
  border-color: rgba(103, 124, 146, 0.2);
}

.weather-icon.is-drizzle,
.weather-icon.is-rain {
  color: #1a72b0;
  background: rgba(143, 212, 255, 0.3);
  border-color: rgba(26, 114, 176, 0.22);
}

.weather-icon.is-snow {
  color: #4a7caf;
  background: rgba(235, 247, 255, 0.92);
  border-color: rgba(74, 124, 175, 0.2);
}

.weather-icon.is-storm {
  color: #6a4fc2;
  background: rgba(208, 193, 255, 0.3);
  border-color: rgba(106, 79, 194, 0.22);
}

.weather-icon.is-neutral {
  color: var(--soft);
  background: rgba(127, 151, 178, 0.12);
  border-color: rgba(127, 151, 178, 0.14);
}

.weather-temp,
.weather-range,
.weather-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(22, 52, 94, 0.08);
}

.weather-range,
.weather-placeholder {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.44);
}

a.weather-placeholder,
a.weather-placeholder:visited {
  color: var(--soft);
  text-decoration: none;
}

a.weather-placeholder:hover {
  background: rgba(143, 212, 255, 0.18);
  border-color: rgba(47, 121, 184, 0.18);
}

@media (min-width: 781px) {
  .topbar-logo {
    display: inline-block;
  }

  .topbar-tagline {
    display: block;
  }

  .topbar-description {
    display: block;
  }

  .calendar-panel {
    max-height: none;
  }

  .calendar-panel .calendar-scroll {
    overflow-x: auto;
    overflow-y: visible;
  }

  .schedule-day-head {
    grid-template-columns: max-content max-content;
    grid-template-areas:
      "weather weather"
      "name meta";
    align-items: center;
    justify-content: start;
    justify-items: start;
    gap: 6px 0.45em;
    min-height: 72px;
  }

  .schedule-day-head .day-name,
  .schedule-day-head .day-meta {
    justify-self: start;
    text-align: left;
  }

  .schedule-weather {
    flex-direction: row;
    justify-self: center;
    gap: 6px;
  }

  .schedule-weather .weather-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
  }

  .weather-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .weather-icon svg {
    width: 18px;
    height: 18px;
  }

  .weather-temp,
  .weather-range,
  .weather-placeholder {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    background: transparent;
    border: 0;
  }

  .weather-range::before {
    content: "/";
    margin: 0 2px 0 1px;
  }

  .day-name,
  .day-meta {
    font-size: 0.84rem;
  }
}

.day-name {
  grid-area: name;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-meta {
  grid-area: meta;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--text);
  min-width: 0;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-body {
  align-items: start;
}

.calendar-grid.is-mobile-day-view .schedule-board {
  min-width: 0;
  width: 100%;
}

.calendar-grid.is-mobile-day-view .schedule-header,
.calendar-grid.is-mobile-day-view .schedule-body {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px;
}

.calendar-grid.is-mobile-day-view .schedule-header {
  margin-bottom: 0;
}

.calendar-grid.is-mobile-day-view .schedule-corner {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 70px;
  padding: 0 4px 8px 0;
}

.calendar-grid.is-mobile-day-view .schedule-corner-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  margin-top: 4px;
  opacity: 0.96;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.calendar-grid.is-mobile-day-view .schedule-day-head {
  min-height: 76px;
  padding: 12px 10px 10px;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "name meta weather";
}

.calendar-grid.is-mobile-day-view .schedule-day-head.is-today {
  background: rgba(143, 212, 255, 0.14);
  border-width: 1px;
  border-color: rgba(22, 52, 94, 0.08);
}

.calendar-grid.is-mobile-day-view .schedule-weather {
  justify-self: end;
  align-items: flex-end;
}

.calendar-grid.is-mobile-day-view .schedule-day.is-today {
  background:
    linear-gradient(180deg, rgba(143, 212, 255, 0.05), transparent 22%),
    rgba(255, 255, 255, 0.56);
}

.calendar-grid.is-mobile-day-view .schedule-day.is-today .time-slot:hover {
  background: rgba(143, 212, 255, 0.1);
}

.calendar-grid.is-mobile-day-view .schedule-day.is-today .time-slot.is-drop-target {
  background: rgba(143, 212, 255, 0.22);
}

.calendar-grid.is-mobile-day-view .timeline-appointment {
  left: 5px;
  right: 5px;
}

.time-rail {
  display: grid;
  grid-template-rows: repeat(var(--slot-count), var(--slot-height));
}

.time-label {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 6px 0 0;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1;
}

.time-label span {
  transform: translateY(-0.45rem);
  white-space: nowrap;
}

.time-label.is-hour {
  color: var(--muted);
  font-weight: 700;
}

.schedule-day {
  position: relative;
  min-height: calc(var(--slot-count) * var(--slot-height));
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(143, 212, 255, 0.05), transparent 22%),
    rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(22, 52, 94, 0.09);
}

.now-indicator {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 12;
  pointer-events: none;
}

.now-indicator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: rgba(47, 121, 184, 0.95);
  transform: translateY(-50%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7),
    0 10px 18px rgba(18, 38, 66, 0.16);
}

.schedule-day.is-today {
  border-color: rgba(47, 121, 184, 0.28);
  box-shadow: inset 0 0 0 1px rgba(143, 212, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 212, 0, 0.1), transparent 26%),
    rgba(255, 249, 225, 0.86);
}

@media (min-width: 781px) {
  body.page-home .schedule-header,
  body.page-home .schedule-body {
    gap: 0;
  }

  body.page-home .schedule-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.page-home .schedule-day-head {
    position: relative;
    grid-template-columns: auto auto;
    grid-template-areas:
      "name meta"
      "weather weather";
    justify-content: center;
    justify-items: center;
    align-content: start;
    text-align: center;
    gap: 4px 6px;
    padding: 10px 10px 8px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .schedule-day-head .day-name,
  body.page-home .schedule-day-head .day-meta {
    justify-self: center;
    text-align: center;
  }

  /* Week header: nudge date numbers down so the Today circle aligns cleanly. */
  body.page-home .schedule-day-head .day-meta {
    position: relative;
    top: 1px;
  }

  body.page-home .schedule-day-head.is-today::before {
    display: none;
    content: "";
  }

  body.page-home .schedule-day-head.is-today .day-name {
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-home .schedule-day-head.is-today .day-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    background: #0a63ff;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: normal;
  }

  /* Desktop Week view: nudge the Today circle up to align with other dates. */
  body.page-home.is-week-view .schedule-day-head.is-today .day-meta {
    top: -1px;
  }

  /* Desktop Week view: nudge the Today label up to align with other day headers. */
  body.page-home.is-week-view .schedule-day-head.is-today .day-name {
    position: relative;
    top: -1px;
  }

  body.page-home .schedule-day-head:last-child {
    border-right: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .schedule-day-head.is-today {
    background: transparent;
    border-width: 0;
    border-left: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .schedule-day-head.is-today:last-child {
    border-right: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .schedule-day {
    border-radius: 0;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .schedule-day:last-child {
    border-right: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .schedule-day.is-today {
    box-shadow: none;
    background:
      linear-gradient(180deg, rgba(255, 212, 0, 0.12), transparent 28%),
      rgba(255, 249, 225, 0.74);
  }

  /* Desktop Day view: keep Today background white (no yellow highlight). */
  body.page-home.is-day-view .schedule-weather {
    display: none;
  }

  body.page-home.is-day-view .schedule-header {
    display: none;
  }

  body.page-home.is-day-view .schedule-day-head {
    grid-template-columns: auto auto;
    grid-template-areas: "name meta";
    min-height: 56px;
    padding: 10px 10px 8px;
  }

  /* Desktop Day view: show a blue "Today" divider at the top of the grid. */
  body.page-home.is-day-view .schedule-day.is-today {
    position: relative;
  }

  body.page-home.is-day-view .schedule-day.is-today::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0a63ff;
    pointer-events: none;
    z-index: 6;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-body {
    border-top: 0;
    grid-template-columns: 54px 376px;
    gap: 0;
    padding-top: 68px;
    width: 430px;
    max-width: 430px;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-rail,
  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day {
    border: 0;
    background: transparent;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-rail {
    width: 54px;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day {
    width: 376px;
    max-width: 376px;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day.is-today {
    background: transparent;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day.is-today::before {
    display: none;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-slot,
  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-slot.is-hour {
    border-top: 0;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-slot:hover {
    background: rgba(143, 212, 255, 0.08);
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-label {
    color: rgba(86, 112, 143, 0.88);
    font-size: 0.78rem;
    font-weight: 800;
    padding-right: 8px;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-label:not(.is-hour) {
    visibility: hidden;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-label span {
    transform: translateY(-0.35rem);
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .timeline-appointment {
    left: 0;
    right: 0;
    border-left-width: 4px;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-home .calendar-grid.is-mobile-day-view .time-rail,
  body.page-home .calendar-grid.is-mobile-day-view .schedule-day {
    border-top: 2px solid rgba(22, 52, 94, 0.14);
  }

  body.page-home .calendar-grid.is-mobile-day-view .time-rail .time-label:first-child span {
    transform: translateY(0.1rem);
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-day.is-today {
    background: #fff;
    box-shadow: none;
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-day.is-today .time-slot:hover {
    background: rgba(143, 212, 255, 0.1);
  }

  body.page-home .calendar-grid.is-mobile-day-view .schedule-day.is-today .time-slot.is-drop-target {
    background: rgba(143, 212, 255, 0.22);
  }

  body.page-home .schedule-body {
    border-top: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .time-rail,
  body.page-home .schedule-day {
    border-top: 0;
  }

  body.page-home .time-slot.is-hour {
    border-top: 1px solid rgba(22, 52, 94, 0.08);
  }

  body.page-home .time-slot:first-child {
    border-top: 0;
  }

  body.page-home .weather-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  body.page-home .weather-icon svg {
    width: 18px;
    height: 18px;
  }
}

.schedule-slot-column {
  display: grid;
  grid-template-rows: repeat(var(--slot-count), var(--slot-height));
}

.time-slot {
  appearance: none;
  width: 100%;
  min-height: var(--slot-height);
  padding: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(22, 52, 94, 0.08);
  background: transparent;
  cursor: copy;
}

.time-slot:first-child {
  border-top: 0;
}

.time-slot.is-hour {
  border-top: 2px solid rgba(47, 121, 184, 0.32);
}

.time-slot:hover {
  background: rgba(143, 212, 255, 0.1);
}

.time-slot.is-drop-target {
  background: rgba(143, 212, 255, 0.22);
}

.time-slot-placeholder {
  width: 100%;
  min-height: var(--slot-height);
  border-top: 1px solid rgba(22, 52, 94, 0.08);
  background: transparent;
}

.time-slot-placeholder:first-child {
  border-top: 0;
}

.time-slot-placeholder.is-hour {
  border-top: 2px solid rgba(47, 121, 184, 0.22);
}

.schedule-day.is-placeholder {
  background: rgba(255, 255, 255, 0.28);
}

.appointment-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline-appointment {
  position: absolute;
  left: 6px;
  right: 6px;
  display: grid;
  gap: 2px;
  padding: 5px 7px;
  padding-left: 10px;
  border-radius: 5px;
  border: 1px solid;
  border-left-width: 5px;
  box-shadow: 0 12px 24px rgba(18, 38, 66, 0.12);
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}

.timeline-appointment.is-canceled,
.timeline-appointment.is-refunded {
  opacity: 0.5;
  filter: grayscale(0.15) saturate(0.7);
}

.timeline-appointment.is-canceled .appointment-title,
.timeline-appointment.is-canceled .appointment-note,
.timeline-appointment.is-refunded .appointment-title,
.timeline-appointment.is-refunded .appointment-note {
  text-decoration: line-through;
}

.timeline-appointment.is-no-show {
  border-style: dashed;
  border-left-style: solid;
}

.appointment-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.timeline-appointment .appointment-sport-icon {
  flex-shrink: 0;
}

.money-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(23, 54, 89, 0.12);
  color: rgba(19, 50, 88, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
}

.money-badge.is-paid {
  background: rgba(73, 220, 177, 0.24);
  border-color: rgba(73, 220, 177, 0.34);
  color: #0b4b2a;
}

.booking-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: rgba(7, 89, 133, 0.98);
}

.booking-badge.is-icon {
  width: 20px;
  padding: 0;
  justify-content: center;
}

.booking-badge.is-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.appointment-title-row .booking-badge,
.agenda-title-row .booking-badge {
  margin-left: 0;
}

.appointment-badges,
.agenda-badges {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.appointment-badges .money-badge,
.agenda-badges .money-badge {
  margin-left: 0;
}

.glance-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: rgba(7, 89, 133, 0.98);
}

.appointment-time {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  width: fit-content;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  color: #173659;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(23, 54, 89, 0.1);
}

.appointment-title {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  line-height: 1.12;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-note {
  font-size: 0.66rem;
  line-height: 1.25;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.appointment-empty {
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (min-width: 781px) {
  .timeline-appointment {
    padding: 4px 6px;
    padding-left: 9px;
    border-radius: 0;
  }

  .appointment-title-row {
    gap: 4px;
  }

  .timeline-appointment .appointment-sport-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 0;
  }

  .timeline-appointment .appointment-sport-icon svg {
    width: 14px;
    height: 14px;
  }

  .appointment-title {
    font-size: 0.6rem;
  }

  .appointment-note {
    font-size: 0.62rem;
  }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 19, 15, 0.46);
  backdrop-filter: blur(3px);
  z-index: 30;
}

.drawer {
  position: fixed;
  top: 20px;
  right: 20px;
  width: min(430px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(143, 212, 255, 0.1), transparent 28%),
    rgba(248, 251, 255, 0.98);
  transform: translateX(calc(100% + 26px));
  transition: transform 220ms ease;
  z-index: 40;
}

.drawer.is-open { transform: translateX(0); }

.drawer.is-open.is-stable {
  transform: none;
}

@supports (height: 100dvh) {
  .drawer {
    max-height: calc(100dvh - 40px);
  }
}

#appointmentDrawer {
  padding-bottom: calc(20px + 28px + env(safe-area-inset-bottom));
}

#appointmentDrawer.is-voice-draft .drawer-summary strong,
#appointmentDrawer.is-voice-draft #eventTitleInput,
#appointmentDrawer.is-voice-draft #drawerNewCustomerName,
#appointmentDrawer.is-voice-draft #startTime,
#appointmentDrawer.is-voice-draft #endTime {
  color: #0f766e;
}

#appointmentDrawer.is-voice-draft #eventTitleInput,
#appointmentDrawer.is-voice-draft #drawerNewCustomerName,
#appointmentDrawer.is-voice-draft #startTime,
#appointmentDrawer.is-voice-draft #endTime {
  border-color: rgba(15, 118, 110, 0.38);
  background: rgba(240, 253, 250, 0.92);
}

/* iOS Safari: focusing inputs inside fixed overlays can break scrolling/hit-testing. */
body.is-ios-input-focus .drawer {
  position: absolute;
}

body.is-ios-input-focus #appointmentDrawer {
  position: fixed;
}

body.is-ios-input-focus .drawer.is-open.is-stable {
  transform: translate3d(0, 0, 0);
}

body.is-ios-input-focus #appointmentDrawer.is-open.is-stable {
  transform: translate(-50%, -50%);
}

@media (min-width: 781px) {
  #appointmentDrawer {
    font-size: 0.9rem;
  }

  #appointmentDrawer .drawer-head h2 {
    font-size: 1.25rem;
  }

  #appointmentDrawer .summary-block strong {
    font-size: 0.94rem;
  }

  #appointmentDrawer .summary-label,
  #appointmentDrawer .field span {
    font-size: 0.68rem;
  }

  #appointmentDrawer .field input:not([type="checkbox"]):not([type="radio"]),
  #appointmentDrawer .field textarea,
  #appointmentDrawer .field select {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  #appointmentDrawer .field textarea {
    min-height: 96px;
  }

  #appointmentDrawer .mobile-view-toggle {
    padding: 4px;
    gap: 6px;
  }

  #appointmentDrawer .mobile-view-pill {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  #appointmentDrawer .payment-toggle {
    min-height: 38px;
    padding: 0 10px;
  }

  #appointmentDrawer .payment-toggle-checkbox {
    width: 16px;
    height: 16px;
  }

  #appointmentDrawer .payment-toggle .payment-toggle-pill {
    font-size: 0.82rem;
  }
}

.drawer.drawer-manage {
  right: auto;
  left: 20px;
  transform: translateX(calc(-100% - 26px));
  padding: 14px;
  background: transparent;
}

.drawer.drawer-manage .drawer-head {
  padding: 0 6px;
  margin-bottom: 12px;
}

.drawer.drawer-manage .drawer-head h2 {
  color: #eff8ef;
}

.drawer.drawer-manage .drawer-head .eyebrow {
  color: rgba(239, 248, 239, 0.72);
}

.drawer.drawer-manage .drawer-head .ghost-icon-button {
  color: #eff8ef;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.drawer.drawer-manage .drawer-head .ghost-icon-button:hover {
  background: rgba(143, 212, 255, 0.14);
  border-color: rgba(143, 212, 255, 0.22);
}

.drawer.drawer-manage .manage-body {
  padding: 16px;
}

.drawer.drawer-manage {
  font-size: 0.9rem;
}

.drawer.drawer-manage .panel-switch {
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer.drawer-manage .panel-switch-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.drawer.drawer-manage .panel-chip {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.74rem;
}

.drawer.drawer-manage .field span {
  font-size: 0.68rem;
}

.drawer.drawer-manage .field input:not([type="checkbox"]):not([type="radio"]),
.drawer.drawer-manage .field textarea,
.drawer.drawer-manage .field select {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 0.9rem;
}

.drawer.drawer-manage .field textarea {
  min-height: 96px;
}

.drawer.drawer-manage .customer-toolbar-copy p {
  font-size: 0.82rem;
  line-height: 1.4;
}

.drawer.drawer-menu {
  width: min(420px, calc(100% - 24px));
}

.menu-actions {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.menu-week-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-actions .toolbar-note-link {
  color: rgba(19, 50, 88, 0.76);
  text-align: left;
}

.menu-actions .toolbar-note-link:hover {
  color: rgba(19, 50, 88, 0.95);
}

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

.ghost-icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.drawer-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-block {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 52, 94, 0.08);
}

.summary-block strong {
  font-family: var(--font-sans);
}

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

.drawer-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  user-select: none;
}

.payment-toggle-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #ffd400;
  cursor: pointer;
}

.payment-toggle .payment-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(19, 50, 88, 0.92);
}

.payment-toggle-checkbox:checked + .payment-toggle-pill {
  color: #0b4b2a;
}

.drawer-subject-controls {
  display: grid;
  gap: 12px;
}

.field-wide { margin-top: 12px; }

.drawer-contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.drawer-contact-actions .secondary-button {
  flex: 1 1 180px;
  justify-content: center;
  text-align: center;
}

.drawer-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.drawer-actions-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 1fr; }
  .desktop-customer-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 780px), (max-height: 520px) and (hover: none) and (pointer: coarse) {
  .topbar-home-link {
    display: inline-flex;
  }

  body.page-cover .topbar-home-link {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  body.page-cover .topbar-home-link img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  body.has-mobile-tabbar .page-shell {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    gap: 2px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    background: rgba(229, 248, 229, 0.96);
    border-top: 1px solid rgba(27, 103, 62, 0.14);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar-item {
    flex: 1 1 0;
    gap: 6px;
    padding: 8px 4px;
    font-size: 0.84rem;
  }

  .mobile-tabbar-item svg {
    width: 28px;
    height: 28px;
  }

  .mobile-tabbar-item span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .schedule-header,
  .schedule-body {
    grid-template-columns: 104px repeat(var(--day-count, 7), minmax(102px, 1fr));
  }
  .page-shell {
    width: min(1420px, calc(100% - 16px));
    padding: 16px 0 26px;
  }

  .topbar, .panel, .drawer { border-radius: 20px; }

  #menuBtn {
    top: 14px;
    right: 14px;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .topbar-copy {
    padding-left: 58px;
    text-align: center;
  }

  body.page-cover .topbar-copy {
    padding-left: 72px;
  }

  .topbar-headline {
    justify-content: center;
  }

  .topbar-mobile-datetime {
    display: flex;
  }

  .topbar h1 {
    white-space: normal;
  }

  body.page-cover .topbar h1 {
    font-size: clamp(1.95rem, 6.2vw, 2.55rem);
  }

  body.page-cover .topbar .lede {
    font-size: 1.15rem;
  }

  #mobileWeekViewBtn,
  #mobileMonthViewBtn {
    display: inline-flex;
  }

  .mobile-top-hide {
    display: none !important;
  }

  .topbar .mobile-day-control.is-selected {
    background: linear-gradient(135deg, var(--accent), #bfe7ff);
    border-color: rgba(47, 121, 184, 0.24);
    color: #133253;
  }

  .mobile-quick-nav {
    display: block;
    padding: 14px;
    background:
      linear-gradient(135deg, rgba(143, 212, 255, 0.12), transparent 36%),
      rgba(11, 27, 51, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eff8ef;
  }

  .mobile-quick-nav-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-quick-nav .ghost-button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    color: #eff8ef;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-quick-nav .ghost-button.is-active {
    background: linear-gradient(135deg, var(--accent), #bfe7ff);
    border-color: rgba(47, 121, 184, 0.24);
    color: #133253;
  }

  .mobile-quick-nav #mobileAgendaBtn {
    background: linear-gradient(135deg, rgba(201, 148, 255, 0.92), rgba(233, 210, 255, 0.92));
    border-color: rgba(201, 148, 255, 0.55);
    color: #1b1233;
  }

  .mobile-quick-nav #mobileAgendaBtn:hover {
    filter: brightness(1.02);
  }

  .mobile-quick-nav #mobileAgendaBtn.is-active {
    background: linear-gradient(135deg, rgba(170, 96, 255, 0.94), rgba(224, 195, 255, 0.94));
    border-color: rgba(170, 96, 255, 0.55);
    color: #1b1233;
  }

  .mobile-quick-nav .nav-green-button {
    background: linear-gradient(135deg, rgba(169, 242, 189, 0.92), rgba(221, 255, 231, 0.92));
    border-color: rgba(169, 242, 189, 0.5);
    color: #133253;
  }

  .mobile-quick-nav .nav-green-button:hover {
    filter: brightness(1.02);
  }

  .mobile-quick-nav .nav-turquoise-button {
    background: linear-gradient(135deg, rgba(111, 234, 227, 0.92), rgba(204, 255, 252, 0.92));
    border-color: rgba(111, 234, 227, 0.55);
    color: #133253;
  }

  .mobile-quick-nav .nav-turquoise-button:hover {
    filter: brightness(1.02);
  }

  .week-toolbar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 54px;
  }

  .desktop-week-button {
    display: none;
  }

  .menu-week-nav {
    display: none;
  }
  .panel { padding: 18px; }

  .payments-summary {
    grid-template-columns: 1fr;
  }

  .payments-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .payments-item-controls {
    grid-template-columns: 1fr 92px;
    justify-content: start;
  }

  body.page-receivables .payments-item-controls {
    grid-template-columns: 1fr 92px;
  }

  body.page-receivables .receivables-reminder {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .yearly-month-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .yearly-month-totals {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .yearly-month-total {
    text-align: left;
    min-width: 104px;
  }

  .calendar-panel .calendar-month-row { display: none; }
  body.is-month-view .calendar-panel .calendar-month-row { display: flex; }

  .mobile-week-nav {
    display: none;
  }

  body.is-mobile-week-view .mobile-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid rgba(60, 60, 67, 0.18);
  }

  body.is-mobile-week-view .mobile-week-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #007aff;
    padding: 0;
  }

  body.is-mobile-week-view .mobile-week-chevron svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  body.is-mobile-week-view .mobile-week-chevron:active {
    background: rgba(0, 0, 0, 0.04);
  }

  body.is-mobile-week-view .mobile-week-title {
    font-size: 1.02rem;
    color: rgba(18, 38, 66, 0.92);
    flex: 1;
    min-width: 0;
  }

  body.is-mobile-week-view .mobile-week-weather {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    color: rgba(18, 38, 66, 0.72);
    font-weight: 700;
    font-size: 0.9rem;
  }

  body.is-mobile-week-view .mobile-week-city:empty::before {
    content: "Add weather";
    color: #007aff;
  }

  body.is-mobile-week-view .mobile-week-city {
    color: rgba(18, 38, 66, 0.72);
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  body.is-mobile-week-view .mobile-week-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(18, 38, 66, 0.72);
  }

  body.is-mobile-week-view .mobile-week-weather-badge svg {
    width: 16px;
    height: 16px;
    display: block;
  }

  body.is-mobile-week-view .schedule-day-head {
    position: sticky;
    top: var(--mobile-week-range-row-height);
    z-index: 23;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name meta"
      "weather weather";
    background: #fff;
    min-height: 70px;
    padding: 6px 6px 8px;
    gap: 4px 8px;
  }

  body.is-mobile-week-view .schedule-weather {
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-self: start;
    align-items: center;
    gap: 4px;
    min-height: 20px;
  }

  body.is-mobile-week-view {
    --mobile-week-column-gap: 8px;
    --mobile-week-time-column-width: 72px;
    --mobile-week-range-row-height: 50px;
    --mobile-week-day-column-width: calc((100% - var(--mobile-week-time-column-width) - (2 * var(--mobile-week-column-gap))) / 2);
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  body.is-mobile-week-view .calendar-scroll {
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
  }

  body.is-mobile-week-view .calendar-panel,
  body.is-mobile-week-view .home-workspace {
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
  }

  body.is-mobile-week-view .schedule-header,
  body.is-mobile-week-view .schedule-body {
    gap: var(--mobile-week-column-gap);
    grid-template-columns: var(--mobile-week-time-column-width) repeat(var(--day-count, 7), var(--mobile-week-day-column-width));
    min-width: 0;
    width: 100%;
  }

  body.is-mobile-week-view .schedule-board {
    min-width: 0;
    width: 100%;
    overflow: visible;
  }

  body.is-mobile-week-view .schedule-corner,
  body.is-mobile-week-view .time-rail {
    position: sticky;
    left: 0;
    background: #fff;
  }

  body.is-mobile-week-view .schedule-corner {
    z-index: 8;
  }

  body.is-mobile-week-view .time-rail {
    z-index: 6;
  }

  body.is-mobile-week-view .time-rail .time-label:first-child span {
    transform: translateY(0.1rem);
  }

  body.is-mobile-week-view .schedule-day-head,
  body.is-mobile-week-view .schedule-day {
    min-width: 0;
  }

  /* Hide native horizontal movement in mobile week view; finger swipes page days in JS. */
  body.is-mobile-week-view .calendar-grid {
    overflow: visible;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.is-mobile-week-view .calendar-grid::-webkit-scrollbar {
    height: 0;
  }

  body.page-customers {
    background: #fff;
    font-family: var(--font-sans);
    --customers-mobile-topbar-height: 74px;
    --customers-mobile-search-height: 65px;
  }

  body.page-customers h1,
  body.page-customers h2,
  body.page-customers h3 {
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
  }

  body.page-customers::before {
    opacity: 0;
  }

  body.page-customers .page-shell {
    width: 100%;
    padding: 0;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  body.page-customers .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    min-height: var(--customers-mobile-topbar-height);
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(22, 52, 94, 0.12);
    box-shadow: none;
    padding: 14px 14px 12px;
    gap: 0;
    background: #fff;
    color: rgba(18, 38, 66, 0.92);
  }

  body.page-customers .topbar-copy {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  body.page-customers .customers-mobile-nav {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 6px;
  }

  body.page-customers .customer-nav-back,
  body.page-customers .customer-nav-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #007aff;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
  }

  body.page-customers .customer-nav-back {
    font-size: 2.75rem;
  }

  body.page-customers .customer-nav-add {
    font-size: 2.45rem;
  }

  body.page-customers .customer-nav-back:focus-visible,
  body.page-customers .customer-nav-add:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.45);
    outline-offset: 3px;
  }

  body.page-customers .customers-mobile-nav h1 {
    margin: 0;
    font-size: 1.52rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(18, 38, 66, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-customers .week-toolbar {
    display: none;
  }

  body.page-customers .lede {
    display: none;
  }

  body.page-customers .workspace {
    margin-top: calc(var(--customers-mobile-topbar-height) + var(--customers-mobile-search-height));
    gap: 0;
  }

  body.page-customers .customer-panel {
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  body.page-customers .panel-head {
    display: none;
  }

  body.page-customers .customer-toolbar {
    position: fixed;
    top: var(--customers-mobile-topbar-height);
    left: 0;
    right: 0;
    z-index: 28;
    min-height: var(--customers-mobile-search-height);
    margin: 0;
    padding: 12px 14px 10px;
    background: #fff;
    border-bottom: 1px solid rgba(22, 52, 94, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.page-customers .customer-toolbar-toprow,
  body.page-customers .customer-bulk-toolbar {
    display: none;
  }

  body.page-customers .search-field {
    gap: 0;
  }

  body.page-customers .search-field span {
    display: none;
  }

  body.page-customers .search-field input {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 12px 0 34px;
    background: rgba(0, 0, 0, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M11 19a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z' fill='none' stroke='%2356708f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    border: 0;
    color: rgba(18, 38, 66, 0.92);
    font-size: 1.12rem;
  }

  body.page-customers .search-field input:focus-visible {
    outline: 2px solid rgba(47, 121, 184, 0.38);
    outline-offset: 2px;
  }

  body.page-customers .search-field input::placeholder {
    color: rgba(86, 112, 143, 0.82);
  }

  body.page-customers .customer-list {
    gap: 0;
    background: #fff;
    border-top: 1px solid rgba(22, 52, 94, 0.12);
    border-bottom: 1px solid rgba(22, 52, 94, 0.12);
  }

  body.page-customers .customer-alpha-group,
  body.page-customers .customer-alpha-items {
    gap: 0;
  }

  body.page-customers .customer-alpha-heading {
    display: none;
  }

  body.page-customers .customer-card {
    gap: 2px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(22, 52, 94, 0.12);
    background: #fff;
    padding: 10px 14px;
    cursor: pointer;
  }

  body.page-customers .customer-card-top {
    align-items: center;
  }

  body.page-customers .customer-card-title-row {
    flex: 1 1 auto;
    width: 100%;
  }

  body.page-customers .customer-select-toggle {
    display: none;
  }

  body.page-customers .sample-pill {
    display: none;
  }

  body.page-customers .customer-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    font-size: 0.78rem;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  body.page-customers .customer-avatar svg {
    width: 18px;
    height: 18px;
  }

  body.page-customers .customer-name {
    color: rgba(18, 38, 66, 0.92);
    font-size: 1.3rem;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-customers .customer-text-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.12);
    color: #007aff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  body.page-customers .customer-text-inline:active {
    background: rgba(0, 122, 255, 0.18);
  }

  body.page-customers .customer-row-subline {
    display: block;
    margin-top: 1px;
    margin-left: 42px;
    font-size: 1.12rem;
    color: rgba(86, 112, 143, 0.86);
  }

  body.page-customers .mobile-tabbar-item {
    font-size: 0.84rem;
  }

  body.page-customers .mobile-tabbar-item svg {
    width: 28px;
    height: 28px;
  }

  body.page-customers .customer-contact-list,
  body.page-customers .customer-note {
    display: none;
  }

  body.page-customers .customer-quick-actions {
    display: none;
  }

  body.page-customers .customer-quick-action {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(143, 212, 255, 0.14);
    border: 1px solid rgba(47, 121, 184, 0.18);
    color: var(--accent-deep);
  }

  body.page-customers .customer-quick-action:hover {
    background: rgba(143, 212, 255, 0.22);
  }

  body.page-customers .customer-row-chevron {
    color: rgba(18, 38, 66, 0.4);
    font-size: 1.7rem;
  }

  body.page-customer-profile .field span {
    font-size: 0.78rem;
  }

  body.page-customer-profile .field input,
  body.page-customer-profile .field textarea {
    font-size: 1.02rem;
  }

  .desktop-customer-panel {
    display: none;
  }

  .mobile-day-bar {
    display: grid;
  }

  .calendar-head-tools,
  .calendar-legend,
  .weather-form {
    justify-items: stretch;
    justify-content: flex-start;
  }

  .weather-field {
    min-width: 100%;
  }

  .schedule-weather .weather-row {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .weather-city {
    min-height: 24px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .weather-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .weather-icon svg {
    width: 25px;
    height: 25px;
  }

  .weather-temp,
  .weather-range,
  .weather-placeholder {
    min-height: 24px;
    padding: 0 10px;
    font-size: 1.02rem;
    border-radius: 10px;
  }

  .calendar-scroll {
    overflow: visible;
  }

  .calendar-grid:not(.is-mobile-day-view) {
    overflow-x: auto;
  }

  .calendar-grid.is-mobile-day-view .day-name,
  .calendar-grid.is-mobile-day-view .day-meta {
    font-size: 1.5rem;
  }

  body.is-mobile-week-view .day-name,
  body.is-mobile-week-view .day-meta {
    font-size: 1rem;
  }

  body.is-mobile-week-view .weather-temp,
  body.is-mobile-week-view .weather-range,
  body.is-mobile-week-view .weather-placeholder {
    font-size: 0.84rem;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 8px;
  }

  body.is-mobile-week-view .weather-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  body.is-mobile-week-view .weather-icon svg {
    width: 20px;
    height: 20px;
  }

  body.is-mobile-week-view .appointment-time {
    font-size: 0.86rem;
  }

  body.is-mobile-week-view .appointment-title {
    font-size: 0.84rem;
  }

  body.is-mobile-week-view .appointment-note {
    font-size: 0.8rem;
  }

  .schedule-corner {
    font-size: 0.82rem;
  }

  .time-label {
    font-size: 0.92rem;
  }

  .time-label.is-hour {
    font-size: 1.02rem;
    font-weight: 800;
  }

  .appointment-time {
    font-size: 0.92rem;
    min-height: 18px;
    padding: 0 6px;
  }

  .calendar-grid.is-mobile-day-view .timeline-appointment {
    padding: 4px 7px;
  }

  .calendar-grid.is-mobile-day-view .appointment-sport-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 0;
  }

  .calendar-grid.is-mobile-day-view .appointment-sport-icon svg {
    width: 13px;
    height: 13px;
  }

  .calendar-grid.is-mobile-day-view .appointment-title {
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .calendar-grid.is-mobile-day-view .appointment-note {
    font-size: 1rem;
    line-height: 1.25;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agenda-time {
    font-size: 1rem;
    white-space: normal;
  }

  .agenda-title {
    font-size: 1.08rem;
  }

  .agenda-note {
    font-size: 0.96rem;
  }

  .agenda-day-head strong {
    font-size: 1.1rem;
  }

  .agenda-day-count {
    font-size: 0.78rem;
  }

  .calendar-grid.is-mobile-day-view .schedule-header,
  .calendar-grid.is-mobile-day-view .schedule-body {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body.is-mobile-week-view .schedule-day.is-today {
    background: transparent;
  }

  body.is-mobile-week-view {
    --mobile-week-range-row-height: 0px;
    --mobile-week-header-height: 64px;
  }

  body.is-mobile-week-view .mobile-week-range-row {
    display: none;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 98px;
    min-height: 98px;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 1px 0 rgba(60, 60, 67, 0.18);
    transform: none;
    will-change: auto;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-corner-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-top: 0;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-corner,
  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-day-head {
    height: 98px;
    min-height: 98px;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-corner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 7px 4px;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-day-head {
    align-content: center;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .schedule-body {
    padding-top: 0;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .time-label {
    justify-content: flex-end;
    padding: 0 6px 0 0;
    text-align: right;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .time-label span {
    transform: none;
  }

  body.page-home.is-day-view .calendar-grid.is-mobile-day-view .time-rail .time-label:first-child span {
    transform: none;
  }

  body.is-mobile-week-view .mobile-week-range-row {
    position: sticky;
    top: 0;
    z-index: 92;
    height: var(--mobile-week-range-row-height);
    min-height: var(--mobile-week-range-row-height);
    padding: 0;
    grid-template-columns: var(--mobile-week-time-column-width) minmax(0, 1fr);
  }

  body.is-mobile-week-view .mobile-week-range-controls {
    height: 100%;
  }

  body.is-mobile-week-view .schedule-header {
    position: sticky;
    top: 0;
    z-index: 90;
    align-items: stretch;
    height: var(--mobile-week-header-height);
    min-height: var(--mobile-week-header-height);
    margin-bottom: 0;
    background: #fff;
    overflow: visible;
    isolation: isolate;
    box-shadow: 0 1px 0 rgba(60, 60, 67, 0.18);
  }

  body.is-mobile-week-view .schedule-corner {
    height: var(--mobile-week-header-height);
    min-height: var(--mobile-week-header-height);
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 7px 4px;
  }

  body.is-mobile-week-view .schedule-day-head {
    position: relative;
    top: auto;
    z-index: auto;
    height: var(--mobile-week-header-height);
    min-height: var(--mobile-week-header-height);
    align-content: center;
    overflow: visible;
    padding-top: 2px;
    padding-bottom: 4px;
    gap: 2px 6px;
  }

  body.is-mobile-week-view .schedule-day-head .day-name,
  body.is-mobile-week-view .schedule-day-head .day-meta {
    line-height: 1.25;
    overflow: visible;
  }

  body.is-mobile-week-view .schedule-weather,
  body.is-mobile-week-view .schedule-weather .weather-row {
    overflow: visible;
  }

  body.is-mobile-week-view .schedule-weather {
    min-height: 18px;
  }

  body.is-mobile-week-view .weather-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  body.is-mobile-week-view .weather-icon svg {
    width: 16px;
    height: 16px;
  }

  body.is-mobile-week-view .schedule-body {
    position: relative;
    z-index: 1;
  }

  body.is-mobile-week-view .time-rail .time-label:first-child span {
    transform: none;
  }

  body.page-customers {
    --customers-mobile-topbar-height: 64px;
    --customers-mobile-search-height: 60px;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-customers.has-desktop-sidebar .page-shell {
    width: 100%;
    margin: 0;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  body.page-customers.has-desktop-sidebar .home-layout {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.page-customers.has-desktop-sidebar .home-main {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.page-customers .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    height: var(--customers-mobile-topbar-height);
    min-height: var(--customers-mobile-topbar-height);
    padding: 8px 14px;
  }

  body.page-customers .customers-mobile-nav {
    height: 100%;
  }

  body.page-customers .customer-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 119;
    top: var(--customers-mobile-topbar-height);
    height: var(--customers-mobile-search-height);
    min-height: var(--customers-mobile-search-height);
    display: flex;
    align-items: center;
    padding: 9px 14px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(22, 52, 94, 0.12);
  }

  body.page-customers .customer-toolbar .search-field {
    width: 100%;
  }

  body.page-customers .workspace {
    position: fixed;
    top: calc(var(--customers-mobile-topbar-height) + var(--customers-mobile-search-height));
    right: 0;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
  }

  body.page-customers .customer-list-shell {
    margin-top: 0;
  }

  body.page-customers .customer-panel {
    min-height: 100%;
  }

  body.page-customers .customer-list {
    border-top: 0;
  }

  body.page-customers .customer-alpha-index {
    top: 8px;
  }

  .drawer {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-height: 78vh;
  }

  #appointmentDrawer {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 16px);
    max-width: 430px;
    max-height: calc(100vh - 24px);
    transform: translate(calc(50vw + 26px), -50%);
  }

  #appointmentDrawer.is-open,
  #appointmentDrawer.is-open.is-stable {
    transform: translate(-50%, -50%);
  }

  body.is-ios-input-focus #appointmentDrawer.is-open,
  body.is-ios-input-focus #appointmentDrawer.is-open.is-stable {
    transform: translate(-50%, -50%);
  }

  @supports (height: 100dvh) {
    #appointmentDrawer {
      max-height: calc(100dvh - 24px);
    }
  }

  .drawer.drawer-manage {
    left: 8px;
    right: 8px;
    bottom: 8px;
    transform: translateY(calc(100% + 26px));
  }

  .drawer.drawer-manage.is-open {
    transform: translateY(0);
  }

  .drawer-grid, .drawer-summary { grid-template-columns: 1fr; }

  .drawer-grid.is-three { grid-template-columns: 1fr; }

  .customer-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-form-actions-right {
    width: 100%;
    margin-left: 0;
  }

  .sport-form-grid {
    grid-template-columns: 1fr;
  }

  .customer-form-actions-right button,
  .customer-form-actions > button { flex: 1 1 0; }

  .drawer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .drawer-actions-right {
    width: 100%;
    margin-left: 0;
  }

  .drawer-actions-right button,
  .drawer-actions > button { flex: 1 1 0; }
}

@media (min-width: 781px) {
  body.page-home.is-day-view .calendar-grid.is-desktop-day-view {
    overflow: visible;
  }

  body.page-home.is-day-view .desktop-day-shell {
    display: grid;
    grid-template-columns: 635px 230px;
    gap: 96px;
    align-items: start;
    justify-content: start;
    width: 961px;
    max-width: 961px;
    padding: 42px 0 0 24px;
  }

  body.page-home.is-day-view .desktop-day-shell > .schedule-board {
    grid-column: 1;
    grid-row: 1;
  }

  body.page-home.is-day-view .desktop-day-overview {
    grid-column: 2;
    grid-row: 1;
    width: 230px;
    margin-top: 0;
  }

  body.page-home.is-day-view .mini-month-card {
    padding: 0 0 14px;
  }

  body.page-home.is-day-view .mini-month-head {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    margin-bottom: 8px;
    min-height: 26px;
    align-items: start;
  }

  body.page-home.is-day-view .mini-month-nav {
    width: 26px;
    height: 26px;
  }

  body.page-home.is-day-view .mini-month-title {
    font-size: 0.9rem;
  }

  body.page-home.is-day-view .mini-month-weekdays,
  body.page-home.is-day-view .mini-month-grid {
    gap: 4px;
  }

  body.page-home.is-day-view .mini-month-day {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.page-home.is-day-view .desktop-day-overview .glance-panel {
    padding: 18px 0 0 12px;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-board {
    width: 635px;
    max-width: 635px;
    justify-self: start;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-header {
    display: grid;
    grid-template-columns: 54px 581px;
    gap: 0;
    width: 635px;
    max-width: 635px;
    margin-bottom: 0;
    align-items: end;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-corner {
    display: none;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day-head {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 26px;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day-head .schedule-weather {
    display: none;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day-head .day-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(18, 38, 66, 0.96);
    line-height: 1.2;
    transform: translateY(1px);
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day-head .day-meta {
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(18, 38, 66, 0.96);
    line-height: 1.2;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-body {
    grid-template-columns: 54px 581px;
    gap: 0;
    width: 635px;
    max-width: 635px;
    padding-top: 18px;
    border-top: 0;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-rail {
    width: 54px;
    border: 0;
    background: transparent;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day {
    width: 581px;
    max-width: 581px;
    border: 0;
    background: transparent;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day.is-today {
    background: transparent;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .schedule-day.is-today::before {
    display: none;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-slot,
  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-slot.is-hour {
    border-top: 0;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-slot:hover {
    background: rgba(143, 212, 255, 0.08);
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-label {
    color: rgba(86, 112, 143, 0.88);
    font-size: 0.8rem;
    font-weight: 800;
    padding-right: 10px;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-label:not(.is-hour) {
    visibility: hidden;
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .time-label span {
    transform: translateY(-0.35rem);
  }

  body.page-home.is-day-view .calendar-grid.is-desktop-day-view .timeline-appointment {
    left: 0;
    right: 0;
    border-radius: 5px;
    box-shadow: none;
  }
}
