:root {
  --ink: #17201b;
  --muted: #66736c;
  --line: #dbe2de;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --field: #f2f6f1;
  --green: #226a43;
  --green-dark: #164d31;
  --clay: #b45f38;
  --gold: #e0b84f;
  --navy: #24354a;
  --danger: #a33a33;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.12);
  --topbar-height: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: var(--topbar-height);
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 226, 222, 0.95);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 12px 28px rgba(23, 32, 27, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf8ed 0%, #ffffff 48%, #eaf4ed 100%);
  border: 1px solid rgba(34, 106, 67, 0.24);
  box-shadow: 0 8px 18px rgba(23, 32, 27, 0.12);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
  display: block;
}

.logo-calendar {
  fill: #226a43;
}

.logo-tab,
.logo-seam,
.logo-clock {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-tab {
  stroke: #b45f38;
  stroke-width: 3.4;
}

.logo-ball {
  fill: #fffaf1;
  stroke: #164d31;
  stroke-width: 2.4;
}

.logo-seam {
  stroke: #b45f38;
  stroke-width: 2;
}

.logo-clock {
  stroke: #24354a;
  stroke-width: 2.4;
}

.brand-name {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.brand-name span {
  color: var(--green-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.nav-button,
.secondary-action,
.primary-action {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 750;
}

.nav-button {
  background: transparent;
  color: var(--muted);
}

.nav-button.is-active {
  background: var(--field);
  color: var(--green-dark);
}

.primary-action {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 106, 67, 0.22);
}

.primary-action:hover {
  background: var(--green-dark);
}

.secondary-action {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-action:hover {
  border-color: #b8c6bf;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.demo-actions .primary-action,
.demo-actions .secondary-action {
  width: 100%;
}


.hero {
  min-height: min(560px, calc(100vh - var(--topbar-height) - 58px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(38px, 6vw, 68px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(12, 18, 15, 0.78), rgba(12, 18, 15, 0.34), rgba(12, 18, 15, 0.1)),
    url("assets/baseball-practice-hero.png") center / cover no-repeat;
  color: #fff;
}

.hero.is-hidden {
  display: none;
}

.hero-copy {
  max-width: 740px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: #f8d66c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-schedule-card {
  align-self: center;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.schedule-card-top,
.schedule-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.schedule-card-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.schedule-card-top span,
.schedule-card-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.schedule-card-row {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
}

.schedule-card-row.is-booked {
  background: #f1f0ec;
  color: #74736d;
}

.schedule-card-row.is-animating {
  position: relative;
  overflow: hidden;
  animation: hero-slot-booking 7.5s ease-in-out infinite;
}

.schedule-card-row.is-delayed {
  animation-delay: 2.4s;
}

.schedule-card-row.is-animating strong {
  position: relative;
  min-width: 126px;
  min-height: 1.35em;
  display: grid;
  justify-items: end;
  align-items: center;
}

.schedule-card-row .slot-label {
  grid-area: 1 / 1;
  transition: none;
  white-space: nowrap;
}

.schedule-card-row .is-available {
  color: var(--green-dark);
  animation: hero-slot-available-label 7.5s ease-in-out infinite;
}

.schedule-card-row .is-booked-label {
  color: #74736d;
  opacity: 0;
  animation: hero-slot-booked-label 7.5s ease-in-out infinite;
}

.schedule-card-row.is-delayed .slot-label {
  animation-delay: 2.4s;
}

@keyframes hero-slot-booking {
  0%, 34% {
    border-color: rgba(34, 106, 67, 0.22);
    background: #ffffff;
    color: var(--ink);
    box-shadow: inset 0 0 0 0 rgba(34, 106, 67, 0);
  }
  43%, 72% {
    border-color: rgba(34, 106, 67, 0.28);
    background: #edf6ef;
    color: var(--green-dark);
    box-shadow: inset 4px 0 0 var(--green);
  }
  82%, 100% {
    border-color: var(--line);
    background: #f1f0ec;
    color: #74736d;
    box-shadow: inset 0 0 0 0 rgba(34, 106, 67, 0);
  }
}

@keyframes hero-slot-available-label {
  0%, 44% {
    opacity: 1;
    transform: translateY(0);
  }
  58%, 100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes hero-slot-booked-label {
  0%, 48% {
    opacity: 0;
    transform: translateY(4px);
  }
  62%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-card-row.is-animating,
  .schedule-card-row .slot-label {
    animation: none;
  }

  .schedule-card-row .is-available {
    opacity: 1;
  }

  .schedule-card-row .is-booked-label {
    display: none;
  }
}

.view {
  display: none;
  padding: 34px clamp(18px, 4vw, 56px) 64px;
}

.view.is-visible {
  display: block;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 20px;
  max-width: 1240px;
}

.section-heading h2,
.panel-heading h3,
.coach-profile h3,
.booking-form h3,
.manage-panel h3,
.preview-page h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
}

.eyebrow,
.label {
  margin: 0 0 6px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 780;
  white-space: nowrap;
}

.booking-layout,
.dashboard-grid,
.two-column,
.search-layout,
.signup-layout {
  max-width: 1240px;
  margin: 0 auto;
}


.coach-home-grid {
  max-width: 1240px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-panel,
.feature-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 27, 0.06);
}

.benefit-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.benefit-panel::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border: 12px solid rgba(34, 106, 67, 0.08);
  border-radius: 999px;
}

.benefit-panel:nth-child(2)::after {
  border-color: rgba(180, 95, 56, 0.11);
}

.benefit-panel:nth-child(3)::after {
  border-color: rgba(36, 53, 74, 0.1);
}

.benefit-panel h3,
.feature-list h3,
.booking-history-heading h4 {
  margin: 0;
}

.benefit-panel p {
  margin: 0;
  color: var(--muted);
}

.benefit-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
}

.coach-home-split {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) 1fr;
  gap: 12px;
  padding: 14px;
}

.feature-row span {
  color: var(--muted);
}

.coach-home-preview .primary-action {
  margin-top: 24px;
}

.copy-band {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.copy-band span {
  grid-column: 1 / -1;
}

.copy-band strong {
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

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

.search-layout {
  display: grid;
  gap: 18px;
}

.search-panel .primary-action {
  margin-top: 16px;
}

.input-with-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mini-action {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 0 11px;
  font-weight: 850;
}

.area-request-panel {
  border-left: 4px solid var(--clay);
}

.activity-row.is-hot {
  border-left-color: var(--danger);
  background: #fff8f5;
}

.coach-results {
  display: grid;
  gap: 12px;
}

.coach-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(23, 32, 27, 0.06);
}

.coach-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.coach-card p {
  margin: 8px 0;
  color: var(--muted);
}

.coach-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.coach-card-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 150px;
}

.coach-card-side strong {
  color: var(--green-dark);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 18px;
  align-items: start;
}

.coach-profile,
.panel,
.booking-form,
.manage-panel,
.preview-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(23, 32, 27, 0.06);
}

.coach-profile {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.coach-profile p {
  color: var(--muted);
}

.profile-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.profile-list div,
.preview-band,
.metric,
.booking-row,
.notification-row,
.availability-row,
.activity-row,
.manage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-list div {
  padding: 14px;
}

.profile-list span,
.preview-band span,
.metric span,
.booking-row span,
.availability-row span,
.activity-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.profile-list strong,
.preview-band strong {
  display: block;
  margin-top: 5px;
}

.booking-workspace {
  display: grid;
  gap: 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schedule-toolbar label {
  min-width: 132px;
}

.schedule-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.schedule-nav span {
  min-width: 138px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.toggle-inline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
}

.toggle-inline input {
  width: 16px;
  min-height: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 106, 67, 0.14);
}

.slot-grid {
  display: grid;
  gap: 16px;
}

.slot-day {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 27, 0.06);
}

.slot-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7faf6;
}

.slot-day-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.slot-day-header span {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.slot-row-list {
  display: grid;
}

.slot-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(132px, 0.8fr) minmax(180px, 1.25fr) minmax(150px, 1fr) auto minmax(116px, auto);
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  text-align: left;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

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

.slot-row:hover,
.slot-row.is-selected {
  background: #f2f7f2;
  box-shadow: inset 4px 0 0 var(--green);
}

.slot-row.is-booked {
  background: #f1f0ec;
  color: #74736d;
  cursor: not-allowed;
}

.slot-row.is-booked:hover {
  box-shadow: none;
}

.master-schedule {
  overflow-x: visible;
}

.master-slot-head,
.master-slot-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(92px, 0.75fr) minmax(132px, 0.9fr) minmax(76px, 0.48fr) minmax(170px, 1.15fr) minmax(52px, 0.32fr) minmax(92px, 0.58fr);
  gap: 7px;
  align-items: center;
}

.master-slot-head {
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.master-slot-row {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
  text-align: left;
}

.master-slot-row > span,
.master-slot-head > span {
  min-width: 0;
}

.master-slot-row .slot-date-cell,
.master-slot-row .slot-time,
.master-slot-row .slot-coach-cell,
.master-slot-row .slot-rate,
.master-slot-row .state-tag {
  white-space: nowrap;
}

.master-slot-row .slot-time {
  font-size: 0.96rem;
}

.master-slot-row .slot-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-slot-row .state-tag {
  justify-self: stretch;
  min-width: 0;
  padding-inline: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.master-slot-row:hover,
.master-slot-row.is-selected {
  background: #f2f7f2;
  box-shadow: inset 4px 0 0 var(--green);
}

.master-slot-row.is-booked {
  background: #f1f0ec;
  color: #74736d;
  cursor: not-allowed;
}

.master-slot-row.is-booked:hover {
  box-shadow: none;
}

.slot-date-cell,
.slot-coach-cell {
  font-weight: 850;
}

.week-schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.week-day {
  min-width: 140px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 27, 0.05);
}

.week-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f7faf6;
}

.week-day-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.week-slot-list {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.week-slot {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
  text-align: left;
}

.week-slot:hover,
.week-slot.is-selected {
  border-color: var(--green);
  background: #f2f7f2;
}

.week-slot.is-booked {
  background: #f1f0ec;
  color: #74736d;
  cursor: not-allowed;
}

.week-slot .slot-location,
.week-slot .slot-rate {
  display: none;
}

.week-empty {
  padding: 10px;
}

.compact-slot-date {
  padding: 10px 16px 0;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.confirmation-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.confirmation-list div {
  border: 1px solid rgba(34, 106, 67, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.confirmation-list span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.slot-time {
  font-size: 1.05rem;
  font-weight: 850;
}

.slot-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.slot-rate {
  color: var(--ink);
  font-weight: 850;
}

.booking-form,
.manage-panel,
.panel,
.preview-page {
  padding: 18px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.booking-form .primary-action,
.panel .primary-action {
  margin-top: 16px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.confirmation {
  border: 1px solid rgba(34, 106, 67, 0.28);
  border-radius: 8px;
  background: #eef7ef;
  padding: 18px;
}

.manage-panel {
  display: grid;
  gap: 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.manage-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 122px;
  display: grid;
  align-content: center;
  padding: 18px;
}

.metric strong {
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.booking-list,
.notification-list,
.availability-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.booking-row,
.notification-row,
.availability-row,
.activity-row {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.booking-row,
.activity-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.booking-history-group {
  display: grid;
  gap: 8px;
}

.booking-history-group + .booking-history-group {
  margin-top: 18px;
}

.booking-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
}

.booking-history-heading h4 {
  font-size: 1rem;
}

.booking-history-heading span {
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--field);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.booking-row[data-status="canceled"] {
  background: #f1f0ec;
}


.booking-row strong,
.availability-row strong {
  font-size: 1rem;
}

.notification-row {
  border-left: 4px solid var(--gold);
}

.notification-row[data-status="error"] {
  border-left-color: var(--danger);
}

.notification-row[data-status="sent"],
.notification-row[data-status="simulated"] {
  border-left-color: var(--green);
}

.availability-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.availability-row[data-status="booked"] {
  background: #f8f2ed;
}

.state-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--field);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: capitalize;
}

.state-tag.is-booked {
  background: #f7e2d8;
  color: #8d3f22;
}

.preview-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96)),
    url("assets/baseball-practice-hero.png") center / cover no-repeat;
}

.preview-page h3 {
  max-width: 560px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.preview-page p {
  max-width: 640px;
  color: var(--muted);
}

.preview-band {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.85);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.toggle-row label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.weekday-picker legend {
  padding: 0 6px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekday-picker label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
}

.weekday-picker input {
  width: 16px;
  min-height: 16px;
}

.code-box {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.code-box code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f4;
  padding: 10px;
  color: var(--navy);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.empty-state {
  border: 1px dashed #b9c7c0;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fff;
}


.text-link {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.policy-view {
  max-width: 1240px;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 18px;
  align-items: start;
}

.policy-panel,
.policy-summary {
  padding: 22px;
}

.policy-panel h3,
.policy-summary h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.policy-panel h3:not(:first-child) {
  margin-top: 24px;
}

.policy-panel p,
.policy-summary p,
.policy-summary li {
  color: var(--muted);
  line-height: 1.65;
}

.policy-panel p,
.policy-summary p {
  margin: 0;
}

.policy-panel a {
  color: var(--green-dark);
  font-weight: 850;
}

.policy-summary ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}

.legal-link-row button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(30, 55, 45, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 27, 0.22);
  padding: 18px;
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.cookie-banner p:not(.label) {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.cookie-toggle input {
  width: 18px;
  min-height: 18px;
}

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

.cookie-actions .primary-action,
.cookie-actions .secondary-action {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .policy-layout,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-actions .primary-action,
  .cookie-actions .secondary-action {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 128px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .booking-layout,
  .dashboard-grid,
  .two-column,
  .coach-home-grid,
  .coach-home-split {
    grid-template-columns: 1fr;
  }

  .coach-profile {
    position: static;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-row {
    grid-template-columns: minmax(132px, 0.7fr) minmax(180px, 1fr) minmax(116px, auto);
  }

  .schedule-nav {
    width: 100%;
    margin-left: 0;
  }

  .week-schedule {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
  }

  .slot-location,
  .slot-rate {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 430px;
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-schedule-card {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .section-heading,
  .form-heading,
  .panel-heading,
  .booking-row,
  .availability-row,
  .coach-card {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .slot-day-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .slot-row {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
  }

  .schedule-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-nav span {
    min-width: 0;
  }

  .slot-location,
  .slot-rate {
    display: block;
  }

  .slot-row .state-tag {
    justify-self: start;
  }

  .inline-form,
  .coach-card,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .coach-card-side {
    justify-items: stretch;
  }

  .nav-button {
    flex: 0 0 auto;
  }
}


.admin-layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.admin-gate {
  max-width: 460px;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-feed {
  min-height: 320px;
}

.activity-row {
  border-left: 4px solid var(--navy);
}

.activity-row p {
  margin: 0;
  color: var(--muted);
}


.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.signup-panel {
  padding: 18px;
}

.compact-heading {
  margin-top: 24px;
}

.signup-preview {
  position: sticky;
  top: 92px;
}

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

  .signup-preview {
    position: static;
  }
}


.login-layout {
  max-width: 520px;
  margin: 0 auto;
}

.login-panel {
  padding: 18px;
}

.nav-button[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f4f7f2;
  padding: 34px clamp(18px, 4vw, 56px) 18px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 0.55fr) minmax(170px, 0.65fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-brand p,
.footer-legal p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links,
.footer-legal {
  display: grid;
  gap: 8px;
}

.footer-links h3,
.footer-legal h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.footer-links a,
.footer-links button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 720;
  text-align: left;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.footer-admin-link {
  margin-top: 12px;
  opacity: 0.58;
}

.footer-bottom {
  max-width: 1240px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}


@media (max-width: 760px) {
  :root {
    --topbar-height: 118px;
  }

  body {
    min-width: 320px;
  }

  .topbar {
    gap: 10px;
    min-height: var(--topbar-height);
    padding: 10px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .nav {
    gap: 6px;
    margin: 0 -14px;
    padding: 0 14px 4px;
    scrollbar-width: thin;
  }

  .nav-button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 42px 16px 34px;
    background-position: center top;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions,
  .header-actions,
  .manage-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action,
  .header-actions .primary-action,
  .header-actions .secondary-action,
  .manage-actions .primary-action,
  .manage-actions .secondary-action {
    width: 100%;
  }

  .demo-actions {
    grid-template-columns: 1fr;
  }

  .view {
    padding: 24px 14px 46px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .status-pill,
  .mini-pill {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .toolbar,
  .schedule-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .schedule-toolbar label,
  .toggle-inline {
    min-width: 0;
    width: 100%;
  }

  .schedule-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .schedule-nav .secondary-action {
    width: 100%;
  }

  .schedule-nav span {
    order: -1;
    min-width: 0;
    padding: 4px 0;
  }

  .slot-day-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .slot-day-header span {
    white-space: normal;
  }

  .slot-row {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 0;
    padding: 14px;
  }

  .slot-row .state-tag,
  .master-slot-row .state-tag {
    justify-self: start;
  }

  .master-schedule {
    overflow-x: visible;
  }

  .master-slot-head {
    display: none;
  }

  .master-slot-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 14px;
  }

  .master-slot-row > span {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
  }

  .master-slot-row .slot-meta {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .master-slot-row .state-tag {
    justify-self: start;
    width: fit-content;
  }

  .master-slot-row > span::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .master-slot-row > span:nth-child(1)::before {
    content: "Date";
  }

  .master-slot-row > span:nth-child(2)::before {
    content: "Time";
  }

  .master-slot-row > span:nth-child(3)::before {
    content: "Coach";
  }

  .master-slot-row > span:nth-child(4)::before {
    content: "Location";
  }

  .master-slot-row > span:nth-child(5)::before {
    content: "Rate";
  }

  .master-slot-row > span:nth-child(6)::before {
    content: "Status";
  }

  .week-schedule {
    display: flex;
    gap: 10px;
    margin: 0 -14px;
    padding: 0 14px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .week-day {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
  }

  .booking-form,
  .manage-panel,
  .panel,
  .preview-page,
  .benefit-panel,
  .feature-row {
    padding: 16px;
  }

  .form-heading,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .inline-form .secondary-action,
  .booking-form .primary-action,
  .panel .primary-action,
  .panel .secondary-action {
    width: 100%;
  }

  .metric-row,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 92px;
  }

  .coach-card,
  .booking-row,
  .availability-row,
  .activity-row,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .coach-card-side {
    justify-items: stretch;
    min-width: 0;
  }

  .profile-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  :root {
    --topbar-height: 112px;
  }

  .topbar {
    padding-inline: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .brand-mark svg {
    width: 29px;
    height: 29px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .nav {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .hero {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section-heading h2 {
    font-size: 1.65rem;
  }

  .master-slot-row > span {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .cookie-banner {
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 14px;
  }
}

@media print {
  body {
    padding-top: 0;
    background: #fff;
    color: #000;
  }

  .topbar,
  .site-footer,
  .cookie-banner,
  .hero,
  .nav,
  .toast,
  .section-heading .header-actions,
  .print-hidden,
  #view-home,
  #view-search,
  #view-login,
  #view-signup,
  #view-booking,
  #view-availability,
  #view-page,
  #view-settings,
  #view-admin {
    display: none !important;
  }

  #view-dashboard {
    display: block !important;
    padding: 0;
  }

  .dashboard-grid,
  .two-column {
    display: block;
  }

  .metric-row {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
  }

  .panel,
  .metric,
  .booking-row {
    box-shadow: none;
    break-inside: avoid;
  }

  .booking-row,
  .activity-row {
    grid-template-columns: 1fr auto;
  }

  .panel {
    border-color: #999;
  }

  .state-tag {
    border: 1px solid #aaa;
  }
}
