:root {
  color-scheme: dark;
  --bg: var(--bpc-surface);
  --panel: #141414;
  --line: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.6);
  --accent: var(--bpc-primary);
  --camp-gradient: linear-gradient(135deg, #dc2626, #b91c1c);
  --text: var(--bpc-text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--bpc-primary-strong);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.topbar {
  max-width: 1280px;
  margin: auto;
  padding: 27px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 40px;
  width: auto;
}
.brand-copy {
  display: grid;
  gap: 3px;
}
.brand-copy strong {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.brand-copy span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.private {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px 65px;
}
.intro {
  padding: 55px 0 38px;
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.intro h1,
.gate h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -1px;
  margin: 17px 0 22px;
  font-weight: 800;
}
.intro em {
  font-style: normal;
  color: var(--accent);
}
.intro p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}
.camp-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 35px;
  margin-bottom: 30px;
}
.camp-tabs button {
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 17px 0;
  font-size: 12px;
}
.camp-tabs button span {
  font-size: 16px;
  font-weight: 600;
  margin-left: 12px;
}
.camp-tabs [aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
}
.camp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.visual {
  height: 230px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bpc-water);
}
.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.visual:after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.visual-caption {
  position: absolute;
  bottom: 22px;
  left: 25px;
  z-index: 1;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel h2 {
  margin: 0 0 5px;
  font-size: 25px;
  letter-spacing: -0.3px;
}
.panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.booking-card {
  margin-bottom: 16px;
}
.booking-card .date {
  font-size: 21px;
  font-weight: 600;
  margin: 12px 0;
}
.capacity {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 20px 0 8px;
  color: var(--muted);
}
progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  background: #303030;
  border-radius: 10px;
  margin-bottom: 22px;
}
progress::-webkit-progress-bar {
  background: #303030;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.primary,
.secondary {
  border: 0;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 600;
  min-height: 48px;
}
.primary {
  background: var(--camp-gradient);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  color: #fff;
}
.secondary {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid var(--line);
}
.booking-card .primary {
  width: 100%;
}
.quiet {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.badge.full {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
.schedule {
  padding: 23px 0 0;
}
.schedule h3 {
  font-size: 18px;
  margin: 0 0 16px;
}
.schedule ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.schedule li {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.schedule time {
  color: var(--muted);
  font-size: 12px;
}
.schedule strong {
  display: block;
}
.schedule p {
  color: var(--muted);
  margin: 2px 0 0;
  font-size: 13px;
}
.hotel-note {
  border-left: 2px solid var(--accent);
  background: #1b1515;
  padding: 15px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 20px 0;
}
.group-section {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.group-head h2 {
  font-size: 21px;
  margin: 0;
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.person {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-wrap: anywhere;
}
.person h3 {
  margin: 0;
  font-size: 16px;
}
.person p {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0;
}
.person a {
  font-size: 13px;
  display: inline-block;
  margin-right: 15px;
}
.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.text-link {
  font-size: 14px;
  text-underline-offset: 5px;
}
.gate {
  max-width: 620px;
  padding: 90px 0 130px;
}
.gate p {
  max-width: 490px;
}
footer {
  max-width: 1200px;
  margin: auto;
  padding: 26px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}
footer span {
  margin-right: auto;
}
dialog {
  width: min(620px, calc(100% - 28px));
  max-height: 90dvh;
  overflow: auto;
  background: var(--panel);
  color: #fff;
  border: 1px solid #444;
  border-radius: 14px;
  padding: 28px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
dialog h2 {
  line-height: 1.2;
  letter-spacing: -0.3px;
}
label {
  display: block;
  font-size: 13px;
  margin: 16px 0 0;
}
label > span {
  color: var(--muted);
}
input,
select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: var(--bpc-water);
  border: 1px solid #444;
  border-radius: 5px;
  color: #fff;
  margin-top: 7px;
  min-height: 46px;
  font-size: 16px;
}
input[readonly] {
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}
.checkbox input {
  width: 19px;
  min-width: 19px;
  height: 19px;
  min-height: 19px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.privacy-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
#submit-reservation {
  width: 100%;
}
#form-error {
  color: #fca5a5;
  font-size: 14px;
}
.notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  border: 1px solid #666;
  border-radius: 8px;
  padding: 15px 22px;
  z-index: 5;
  box-shadow: 0 5px 30px #000;
  width: max-content;
  max-width: 90%;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-intro {
  padding: 45px 0 25px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.admin-invite {
  margin: 24px 0;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table td,
.admin-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.scroll {
  overflow: auto;
}
#new-link {
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--line);
  margin-top: 15px;
}
#admin-data label {
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .topbar {
    padding: 22px 20px;
    gap: 8px;
  }
  main {
    padding: 0 20px 45px;
  }
  .intro {
    padding-top: 38px;
  }
  .intro h1,
  .gate h1 {
    letter-spacing: -1px;
  }
  .camp-layout {
    grid-template-columns: 1fr;
  }
  .camp-tabs {
    gap: 22px;
  }
  .camp-tabs button span {
    font-size: 14px;
    margin-left: 5px;
  }
  .visual {
    height: 210px;
  }
  .panel {
    padding: 22px;
  }
  .group-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  footer {
    padding: 22px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  footer span {
    display: none;
  }
  footer a {
    margin-left: auto;
  }
  .private {
    font-size: 10px;
    padding: 6px 9px;
  }
  dialog {
    padding: 22px;
  }
  .gate {
    padding: 60px 0 90px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      opacity 0.15s;
  }
  .primary:hover {
    background: var(--camp-gradient);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
  }
}

h1,
h2,
h3 {
  color: #fff;
}
h2,
h3 {
  font-weight: 800;
}
::selection {
  background: rgba(220, 38, 38, 0.3);
  color: #fff;
}
@media (max-width: 480px) {
  .brand-copy {
    display: none;
  }
}
/* Coach office shares the BPC palette and Inter typography with the portal. */
.office {
  max-width: 1440px;
}
.office-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.office-summary .panel {
  padding: 20px;
}
.office-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.office-summary strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
  letter-spacing: -1px;
}
.office-filters {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr;
  gap: 14px;
}
.office-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0;
}
.office-toolbar p {
  margin-right: auto;
}
.roster {
  padding: 0;
}
.admin-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.admin-table td {
  vertical-align: top;
}
.admin-table td p {
  margin: 5px 0;
}
.admin-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.admin-table td a {
  overflow-wrap: anywhere;
}
.admin-table .secondary {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 38px;
}
.badge.pending {
  background: rgba(234, 179, 8, 0.1);
  color: #fde68a;
}
textarea {
  display: block;
  width: 100%;
  font: inherit;
  line-height: 1.5;
  color: var(--text);
  background: var(--bpc-water);
  border: 1px solid #444;
  border-radius: 5px;
  padding: 12px;
  margin: 7px 0 18px;
  resize: vertical;
}
textarea:focus-visible {
  outline: 3px solid var(--bpc-primary-strong);
  outline-offset: 4px;
}
summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}
#preview-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
#preview-subject {
  margin-top: 25px;
}
.athlete-details {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.office [data-panel="messages"] .group-head {
  align-items: flex-start;
}
#payment-error,
#compose-error,
#preview-error {
  color: #fca5a5;
  font-size: 14px;
}
#payment-form > .primary {
  margin-top: 12px;
}
#preview-dialog {
  width: min(720px, calc(100% - 28px));
}
@media (max-width: 950px) {
  .office-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .office-filters {
    grid-template-columns: 1fr 1fr;
  }
  .office-toolbar button {
    flex: 1;
  }
  .office-toolbar p {
    width: 100%;
    margin: 0;
  }
  .roster {
    border-radius: 8px;
  }
  .admin-table {
    min-width: 900px;
  }
  #message-history .admin-table,
  #invitations .admin-table {
    min-width: 550px;
  }
}
@media (max-width: 480px) {
  .office-filters {
    grid-template-columns: 1fr;
  }
  .office-summary .panel {
    padding: 14px;
  }
  .office-summary strong {
    font-size: 24px;
  }
  .office .camp-tabs {
    gap: 15px;
  }
  .office .camp-tabs button {
    font-size: 12px;
  }
  .office .admin-intro h1 {
    font-size: 30px;
    line-height: 1.1;
  }
  .office-toolbar .primary {
    flex-basis: 100%;
  }
}

.pair-panel {
  padding: 24px;
  margin: 0 0 24px;
  border: 1px solid var(--border, #333);
  border-radius: 16px;
  background: #141414;
}
.pair-panel h3 {
  margin-top: 0;
}
.pair-panel label {
  display: block;
  margin: 16px 0 8px;
}
.pair-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.pair-actions select {
  flex: 1 1 220px;
  min-width: 0;
}
.pair-actions button {
  flex-shrink: 0;
}

.coaching-payment {
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 20px;
}
.stripe-history {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 12px;
}
