/* ===== Admin screens (prototype) ===== */
.bth-admin { padding: 36px 24px 90px; }
.bth-admin__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.bth-admin__head h1 { font-family: var(--bth-display); font-weight: 500; font-size: 52px; color: var(--bth-teal); margin: 0; line-height: 1.05; }
.bth-acc-tabs small { font-size: 13px; opacity: .7; margin-left: 4px; }
.bth-acard { background: var(--bth-paper); border: 1px solid var(--bth-line); padding: 24px 26px; margin-bottom: 22px; min-width: 0; }
.bth-acard__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.bth-acard__h h2 { font-family: var(--bth-display); font-weight: 500; font-size: 30px; color: var(--bth-teal); margin: 0; }
.bth-admin__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-bottom: 22px; }
.bth-admin__grid > .bth-acard { margin-bottom: 0; }
.bth-money { display: flex; align-items: stretch; }
.bth-money > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--bth-line-strong); border-right: 0; background: var(--bth-cream); color: var(--bth-teal); }
.bth-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: none !important; border: 1px solid transparent; color: var(--bth-teal); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.bth-icon-btn:hover { border-color: var(--bth-line-strong); }
.bth-link--danger { color: #a04a37 !important; }
.bth-btn--danger { background: #a04a37; border-color: #a04a37; color: #fff !important; }

/* Lesson calendar */
.bth-legend { font-size: 14px; color: var(--bth-sage); display: flex; gap: 14px; align-items: center; }
.bth-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--bth-line-strong); }
.bth-legend i.is-closed { background: repeating-linear-gradient(135deg, var(--bth-cream) 0 3px, var(--bth-line) 3px 5px); }
.bth-legend i.is-changed { background: var(--bth-gold); border-color: var(--bth-gold); }
.bth-acal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bth-acal__wd { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-sage); padding: 0 6px 4px; }
.bth-acal__day { position: relative; min-height: 78px; padding: 6px 7px; text-align: left; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--bth-line); cursor: pointer; color: var(--bth-teal-deep); font: 14px/1.25 var(--bth-body); }
.bth-acal__day:hover { border-color: var(--bth-teal); }
.bth-acal__day.is-on { border-color: var(--bth-teal); box-shadow: inset 0 0 0 1px var(--bth-teal); }
.bth-acal__day.is-past { opacity: .4; cursor: default; background: transparent; }
.bth-acal__day.is-closed:not(.is-past) { background: repeating-linear-gradient(135deg, var(--bth-cream) 0 6px, #EFEADB 6px 9px); }
.bth-acal__day.is-changed::after { content: ""; position: absolute; top: 0; right: 0; border: 7px solid var(--bth-gold); border-left-color: transparent; border-bottom-color: transparent; }
.bth-acal__n { font-family: var(--bth-display); font-size: 20px; color: var(--bth-teal); }
.bth-acal__s { font-size: 13px; color: var(--bth-sage); }
.bth-acal__b { font-size: 12px; color: var(--bth-teal); background: var(--bth-butter); align-self: flex-start; padding: 0 5px; }
.bth-apanel { position: sticky; top: 20px; }
.bth-apanel__h { font-family: var(--bth-display); font-weight: 500; font-size: 28px; color: var(--bth-teal); margin: 2px 0 6px; }
.bth-apanel__empty p { margin: 0 0 10px; }
.bth-slotlist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bth-slot { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; background: #fff; border: 1px solid var(--bth-line-strong); color: var(--bth-teal-deep); font-size: 15px; }
.bth-slot button { background: none !important; border: 0; padding: 0 6px; color: var(--bth-sage); font-size: 18px; line-height: 1; cursor: pointer; }
.bth-slot button:hover { color: #a04a37; }
.bth-slot.is-booked { background: var(--bth-butter); border-color: var(--bth-gold); padding-right: 12px; }
.bth-slot.is-booked small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bth-teal); }
.bth-ui select.bth-add-time { width: auto; min-height: 38px; padding: 6px 10px; font-size: 15px; }
.bth-week__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bth-line); }
.bth-week__row:last-child { border-bottom: 0; }
.bth-week__row .bth-slotlist { margin: 0; }
.bth-week__row b { font-weight: 400; color: var(--bth-teal); }

/* Events list */
.bth-evlist { display: flex; flex-direction: column; }
.bth-evrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 14px 0; background: none !important; border: 0; border-bottom: 1px solid var(--bth-line); text-align: left; cursor: pointer; color: var(--bth-teal-deep); font: 16px/1.4 var(--bth-body); }
.bth-evrow:hover .bth-evrow__go { color: var(--bth-teal); border-color: var(--bth-teal); }
.bth-evrow img { width: 96px; height: 68px; object-fit: cover; }
.bth-evrow__main b { display: block; font-family: var(--bth-display); font-weight: 500; font-size: 24px; color: var(--bth-teal); }
.bth-evrow__main small { font-size: 15px; color: var(--bth-sage); }
.bth-evrow__stat { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 15px; color: var(--bth-sage); white-space: nowrap; }
.bth-evrow__stat b { color: var(--bth-teal); font-weight: 400; }
.bth-evrow__go { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--bth-line-strong); color: var(--bth-sage); }

/* Event editor */
.bth-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.bth-editor__side { position: sticky; top: 20px; }
.bth-editor__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 12px; }
.bth-imgpick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.bth-imgpick button { padding: 0; border: 2px solid transparent; background: none !important; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.bth-imgpick button[aria-pressed="true"] { border-color: var(--bth-teal); }
.bth-imgpick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bth-sessions__head, .bth-sessions__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 90px 70px 36px; gap: 8px; align-items: center; }
.bth-sessions__head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-teal); margin-bottom: 6px; }
.bth-sessions__row { margin-bottom: 8px; }
.bth-sessions__row.is-past { opacity: .55; }
.bth-ui .bth-sessions__row input { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.bth-sessions__booked { text-align: center; color: var(--bth-teal); }
.bth-sessions__booked small { display: block; font-size: 11px; color: var(--bth-sage); }
.bth-sessions__add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.bth-ui .bth-sessions__add select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 15px; }
.bth-tickets__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 130px 36px; gap: 10px; align-items: end; }
.bth-tickets__row .bth-icon-btn { margin-bottom: 26px; }
.bth-details { margin-bottom: 8px; }
.bth-details__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 36px; gap: 8px; margin-bottom: 8px; }
.bth-ui .bth-details__row input { min-height: 44px; padding: 8px 10px; font-size: 15px; }

@media (max-width: 1000px) {
  .bth-admin__grid, .bth-editor { grid-template-columns: minmax(0, 1fr); }
  .bth-apanel, .bth-editor__side { position: static; }
  .bth-editor__side { order: -1; }
}
@media (max-width: 700px) {
  .bth-admin__head h1 { font-size: 40px; }
  .bth-acard { padding: 18px 16px; }
  .bth-acal__day { min-height: 58px; padding: 4px; }
  .bth-acal__s, .bth-acal__b { font-size: 10px; }
  .bth-week__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bth-evrow { grid-template-columns: 72px minmax(0, 1fr); }
  .bth-evrow img { width: 72px; height: 54px; }
  .bth-evrow__stat, .bth-evrow__go { display: none; }
  .bth-sessions__head { display: none; }
  .bth-sessions__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--bth-line); }
  .bth-tickets__row { grid-template-columns: minmax(0, 1fr) 36px; }
  .bth-tickets__row .bth-field:nth-child(2), .bth-tickets__row .bth-field:nth-child(3) { grid-column: 1; }
}

/* Bookings run sheet */
.bth-bktools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 16px 0; border-top: 1px solid var(--bth-line); border-bottom: 1px solid var(--bth-line); }
.bth-daynav { display: flex; align-items: center; gap: 6px; }
.bth-ui .bth-daynav input[type=date] { width: auto; min-height: 42px; padding: 8px 10px; font-size: 16px; }
.bth-daynav .bth-icon-btn { font-size: 28px; border-color: var(--bth-line-strong); width: 42px; height: 42px; }
.bth-ui input.bth-bksearch { flex: 1 1 280px; width: auto; min-height: 42px; padding: 8px 12px; font-size: 16px; }
.bth-bkday { font-family: var(--bth-display); font-weight: 500; font-size: 36px; color: var(--bth-teal); margin: 28px 0 14px; }
.bth-bkstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.bth-bkstats > div { background: var(--bth-paper); border: 1px solid var(--bth-line); padding: 14px 16px; }
.bth-bkstats b { display: block; font-family: var(--bth-display); font-weight: 500; font-size: 34px; line-height: 1; color: var(--bth-teal); }
.bth-bkstats span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bth-sage); }
.bth-bkstats .is-warn { background: var(--bth-blush); border-color: var(--bth-rose); }
.bth-bkgroup { font-family: var(--bth-display); font-weight: 500; font-size: 26px; color: var(--bth-teal); margin: 26px 0 6px; }
.bth-bkrow { display: grid; grid-template-columns: 86px minmax(0, 1fr) 190px; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--bth-line); }
.bth-bkrow.is-in { opacity: .62; }
.bth-bkrow__time b { display: block; font-family: var(--bth-display); font-weight: 500; font-size: 26px; color: var(--bth-teal); line-height: 1.1; }
.bth-bkrow__time small { font-size: 14px; color: var(--bth-sage); }
.bth-bkrow__main p { margin: 0 0 6px; }
.bth-bkrow__title { font-family: var(--bth-display); font-size: 24px; color: var(--bth-teal); line-height: 1.2; }
.bth-kind { display: inline-block; vertical-align: 3px; font: 11px/1 var(--bth-body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; margin-right: 6px; background: var(--bth-butter); color: var(--bth-teal); }
.bth-kind--ride { background: #E4EAE0; }
.bth-bkrow__who { font-size: 16px; color: var(--bth-teal-deep); }
.bth-bkrow__who b { font-weight: 400; }
.bth-bkrow__who a { color: var(--bth-teal); }
.bth-bkrow__guests { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bth-bkrow__guests li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; color: var(--bth-teal-deep); }
.bth-bkrow__guests li > span small { font-size: 12px; color: var(--bth-sage); text-transform: uppercase; letter-spacing: .08em; margin-left: 4px; }
.bth-bkrow__guests em { font-style: normal; font-size: 14px; color: #a04a37; background: #FBEDEA; padding: 2px 8px; }
.bth-bkrow__guests .bth-badge { font-size: 12px; }
.bth-bkrow__meta { font-size: 14px; color: var(--bth-sage); }
.bth-bkrow__act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bth-bkrow__act .bth-link { font-size: 15px; text-align: right; }
@media (max-width: 800px) {
  .bth-bkstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bth-bkrow { grid-template-columns: 64px minmax(0, 1fr); }
  .bth-bkrow__act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 18px; }
}
@media print {
  .elementor-location-header, footer, .bth-proto, .bth-bktools, .bth-bkrow__act, [data-print], .bth-toast, #elementor-popup-modal-0, .elementor-popup-modal { display: none !important; }
  .bth-admin { padding: 0; }
  .bth-bkrow { grid-template-columns: 70px 1fr; break-inside: avoid; padding: 10px 0; }
  .bth-bkrow.is-in { opacity: 1; }
}
.bth-admin .bth-bkday { margin: 30px 0 16px; }
.bth-bkrow { grid-template-columns: 112px minmax(0, 1fr) 190px; }
.bth-bkrow__time b { font-size: 24px; white-space: nowrap; }
@media (max-width: 800px) { .bth-bkrow { grid-template-columns: 84px minmax(0, 1fr); } .bth-bkrow__time b { font-size: 20px; } }
/* Ticket types: one small card each */
.bth-tickets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.bth-ticket { background: #fff; border: 1px solid var(--bth-line); padding: 14px 16px 0; }
.bth-ticket__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bth-ticket__h b { font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bth-teal); }
.bth-ticket__h .bth-link { font-size: 15px; }
.bth-ticket__row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.bth-ticket .bth-field { margin-bottom: 14px; }
@media (max-width: 500px) { .bth-ticket__row { grid-template-columns: minmax(0, 1fr) 110px; } }

/* Discount codes */
.bth-code { display: inline-block; font: 600 14px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--bth-teal-deep); background: var(--bth-butter); padding: 3px 7px; }
.bth-codeform { display: grid; grid-template-columns: minmax(0, 1.2fr) 140px minmax(0, 1.2fr) auto; gap: 12px; align-items: end; }
.bth-codeform .bth-btn { margin-bottom: 18px; min-height: 50px; }
.bth-codeform input[name=code] { text-transform: uppercase; letter-spacing: .06em; }
.bth-money--after > span { border: 1px solid var(--bth-line-strong); border-left: 0; }
.bth-codes__head, .bth-codes__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1.3fr) 80px; gap: 14px; align-items: center; }
.bth-codes__head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-teal); padding-bottom: 8px; border-bottom: 1px solid var(--bth-line); }
.bth-codes__row { padding: 12px 0; border-bottom: 1px solid var(--bth-line); color: var(--bth-teal-deep); }
.bth-codes__row:last-child { border-bottom: 0; }
.bth-ui .bth-codes__row select { min-height: 42px; padding: 8px 10px; font-size: 15px; }
.bth-codes__row .bth-link { font-size: 15px; justify-self: end; }
/* On/off switches */
.bth-codetoggles { display: flex; flex-direction: column; gap: 4px; }
.bth-switch { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; color: var(--bth-teal-deep); }
.bth-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bth-switch__ui { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--bth-line-strong); position: relative; transition: background .2s; }
.bth-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.bth-switch input:checked + .bth-switch__ui { background: var(--bth-teal); }
.bth-switch input:checked + .bth-switch__ui::after { transform: translateX(18px); }
.bth-switch input:focus-visible + .bth-switch__ui { outline: 2px solid var(--bth-teal); outline-offset: 2px; }
.bth-switch small { font-size: 13px; color: var(--bth-sage); margin-left: 6px; }
/* Checkout: code entry */
.bth-codeentry { margin-top: 14px; }
.bth-codeentry > div { display: flex; gap: 8px; }
.bth-ui .bth-codeentry input { min-height: 42px; padding: 8px 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.bth-codeentry .bth-error { margin: 8px 0 0; font-size: 15px; }
.bth-order__disc { color: var(--bth-teal); }
.bth-order__disc .bth-link { font-size: 13px; margin-left: 6px; }
@media (max-width: 800px) {
  .bth-codeform { grid-template-columns: minmax(0, 1fr) 120px; }
  .bth-codeform .bth-field:nth-child(3), .bth-codeform .bth-btn { grid-column: 1 / -1; }
  .bth-codes__head { display: none; }
  .bth-codes__row { grid-template-columns: minmax(0, 1fr) auto; }
  .bth-codes__row select { grid-column: 1 / -1; }
}
/* Discount amount: % or $ selector + number */
.bth-discin { display: flex; }
.bth-ui .bth-discin select { width: 64px; flex: none; border-right: 0; padding: 0 8px; background-color: var(--bth-cream); text-align: center; }
.bth-ui .bth-discin input { min-width: 0; }
.bth-ui .bth-discin select, .bth-ui .bth-discin input { min-height: 50px; }
.bth-codeform input[name=code]::placeholder { text-transform: none; letter-spacing: 0; }
.bth-bkstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .bth-bkstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bth-bkstats b { font-size: 28px; } }
/* Bookings: calendar date picker */
.bth-datepick { position: relative; }
.bth-datepick__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; background: #fff !important; border: 1px solid var(--bth-line-strong); color: var(--bth-teal-deep); font: 16px var(--bth-body); cursor: pointer; white-space: nowrap; }
.bth-datepick__btn svg { color: var(--bth-teal); }
.bth-datepick__btn:hover, .bth-datepick__btn[aria-expanded="true"] { border-color: var(--bth-teal); }
.bth-datepick__pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 300px; background: #fff; border: 1px solid var(--bth-line-strong); box-shadow: 0 12px 30px rgba(53, 91, 104, .16); padding: 12px 14px 10px; }
.bth-datepick__pop[hidden] { display: none; }
.bth-mcal__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bth-mcal__h b { font-family: var(--bth-display); font-weight: 500; font-size: 22px; color: var(--bth-teal); }
.bth-mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.bth-mcal__wd { text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--bth-sage); padding: 4px 0; }
.bth-mcal__d { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: none !important; border: 1px solid transparent; color: var(--bth-teal-deep); font: 15px var(--bth-body); cursor: pointer; padding: 0; }
.bth-mcal__d:hover { border-color: var(--bth-line-strong); }
.bth-mcal__d.is-today { font-weight: 700; color: var(--bth-teal); }
.bth-mcal__d.is-on { background: var(--bth-teal) !important; color: var(--bth-cream); }
.bth-mcal__d.has-bk::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--bth-gold); }
.bth-mcal__d.is-on.has-bk::after { background: var(--bth-cream); }
.bth-mcal__key { margin: 8px 0 0; font-size: 13px; color: var(--bth-sage); }
.bth-mcal__key i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bth-gold); margin-right: 6px; vertical-align: 1px; }
/* Event editor: who's booked, grouped by date */
.bth-whobk { border-top: 1px solid var(--bth-line); }
.bth-whobk:first-of-type { border-top: 0; }
.bth-whobk summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 0; cursor: pointer; list-style: none; color: var(--bth-teal-deep); }
.bth-whobk summary::-webkit-details-marker { display: none; }
.bth-whobk summary::before { content: "›"; display: inline-block; width: 14px; color: var(--bth-teal); font-size: 22px; line-height: 1; transition: transform .2s; }
.bth-whobk[open] summary::before { transform: rotate(90deg); }
.bth-whobk summary b { font-weight: 400; font-size: 18px; color: var(--bth-teal); }
.bth-whobk summary span { font-size: 15px; color: var(--bth-sage); }
.bth-whobk summary em { font-style: normal; color: #a04a37; }
.bth-whobk .bth-bkrow { grid-template-columns: 90px minmax(0, 1fr) 170px; padding: 14px 0; }
.bth-whobk .bth-bkrow:last-child { border-bottom: 0; }
@media (max-width: 800px) { .bth-whobk .bth-bkrow { grid-template-columns: 70px minmax(0, 1fr); } }
.bth-whobk .bth-bkrow--compact { grid-template-columns: minmax(0, 1fr) 170px; padding-left: 26px; }
@media (max-width: 800px) { .bth-whobk .bth-bkrow--compact { grid-template-columns: minmax(0, 1fr); padding-left: 0; } }
/* Messages (outbox) */
.bth-msg { border-bottom: 1px solid var(--bth-line); }
.bth-msg summary { display: grid; grid-template-columns: 60px minmax(0, 1.2fr) minmax(0, 2fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; color: var(--bth-teal-deep); font-size: 15px; }
.bth-msg summary::-webkit-details-marker { display: none; }
.bth-msg summary b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bth-msg__ch { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-sage); }
.bth-msg__subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bth-sage); }
.bth-msg summary small { color: var(--bth-sage); white-space: nowrap; }
.bth-msg__body { padding: 0 0 16px 74px; }
.bth-msg__body pre { white-space: pre-wrap; font: 15px/1.5 var(--bth-body); color: var(--bth-teal-deep); background: #fff; border: 1px solid var(--bth-line); padding: 12px 14px; margin: 0; }
@media (max-width: 800px) { .bth-msg summary { grid-template-columns: minmax(0, 1fr) auto; } .bth-msg__ch, .bth-msg__subj { display: none; } .bth-msg__body { padding-left: 0; } }
.bth-msgstatus { margin: 0 0 20px; color: var(--bth-teal-deep); font-size: 15px; }
/* Customers */
.bth-custsort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bth-sage); letter-spacing: .08em; text-transform: uppercase; }
.bth-ui .bth-custsort select { width: auto; min-height: 42px; padding: 8px 10px; font-size: 15px; text-transform: none; letter-spacing: 0; }
.bth-custfilters { margin-top: 16px; }
.bth-custfilters small { font-size: 12px; opacity: .7; margin-left: 2px; }
.bth-cust__head, .bth-cust__row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .7fr) 70px; gap: 12px; align-items: center; }
.bth-cust__head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-teal); padding: 10px 12px; border-bottom: 1px solid var(--bth-line-strong); }
.bth-cust__row { padding: 12px; border-bottom: 1px solid var(--bth-line); color: var(--bth-teal-deep); text-decoration: none !important; font-size: 15px; }
.bth-cust__row:hover { background: var(--bth-paper); }
.bth-cust__who { display: flex; flex-direction: column; min-width: 0; }
.bth-cust__who b { font-weight: 400; font-size: 17px; color: var(--bth-teal); }
.bth-cust__who small { color: var(--bth-sage); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bth-cust .bth-badge { font-size: 12px; }
.bth-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 26px 0 0; color: var(--bth-sage); }
.bth-custpeople__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--bth-line); }
.bth-custpeople__row:last-child { border-bottom: 0; }
.bth-custpeople__row b { font-weight: 400; font-size: 17px; color: var(--bth-teal-deep); }
.bth-diet { font-style: normal; font-size: 14px; color: #a04a37; background: #FBEDEA; padding: 2px 8px; }
.bth-custwaiver { padding: 0 0 16px 26px; }
.bth-custsig { max-width: 320px; width: 100%; background: #fff; border: 1px solid var(--bth-line); padding: 6px; }
.bth-custsig--typed { font-family: var(--bth-display); font-size: 28px; color: var(--bth-teal-deep); }
.bth-custbk { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto 90px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bth-line); font-size: 15px; color: var(--bth-teal-deep); }
.bth-custbk:last-child { border-bottom: 0; }
.bth-custbk b { font-weight: 400; }
@media (max-width: 800px) {
  .bth-cust__head { display: none; }
  .bth-cust__row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .bth-cust__who { grid-column: 1 / -1; }
  .bth-cust__row > span[data-label]::before { content: attr(data-label) ': '; font-size: 12px; color: var(--bth-sage); }
  .bth-custbk { grid-template-columns: 1fr auto; }
}
/* Bookings grouped by event date / lesson slot */
.bth-bkgrp { border-bottom: 1px solid var(--bth-line-strong); padding: 22px 0 8px; }
.bth-bkgrp__h { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 4px; }
.bth-bkgrp__h .bth-bkrow__title { margin: 0 0 4px; }
.bth-bkgrp__meta { margin: 0; font-size: 15px; color: var(--bth-sage); }
.bth-bkgrp__meta em { font-style: normal; color: #a04a37; }
.bth-bkgrp .bth-bkrow--compact { grid-template-columns: minmax(0, 1fr) 190px; padding: 14px 0 14px 132px; }
.bth-bkgrp .bth-bkrow--compact:last-child { border-bottom: 0; }
@media (max-width: 800px) {
  .bth-bkgrp__h { grid-template-columns: 84px minmax(0, 1fr); }
  .bth-bkgrp .bth-bkrow--compact { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
}
.bth-custbk__link { color: var(--bth-teal); text-decoration: underline; text-underline-offset: 3px; }
.bth-custbk__link:hover { color: var(--bth-teal-deep); }
/* A booking reached from a customer's record */
@keyframes bth-flash { 0%, 60% { background: var(--bth-butter); } 100% { background: transparent; } }
.bth-bkrow.is-target { animation: bth-flash 2.5s ease-out; box-shadow: inset 3px 0 0 var(--bth-gold); }
/* Event editor dates: calendar button + typeable time dropdowns */
.bth-sessions__row { margin-bottom: 18px; }
.bth-sessions__row .bth-datepick { width: 100%; }
.bth-sessions__row .bth-datepick__btn { width: 100%; min-height: 44px; font-size: 15px; padding: 8px 10px; }
.bth-ui .bth-sessions__row .bth-combo input { min-height: 44px; padding: 8px 30px 8px 10px; font-size: 15px; }
.bth-sess-end { position: relative; display: block; }
.bth-nextday { position: absolute; left: 2px; top: calc(100% + 2px); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bth-teal); }
.bth-nextday[hidden] { display: none; }
.bth-sess-static { font-size: 15px; color: var(--bth-teal-deep); }
.bth-sess-static small { display: block; font-size: 11px; color: var(--bth-sage); text-transform: uppercase; letter-spacing: .08em; }
.bth-sessions__head, .bth-sessions__row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 80px 64px 36px; }
/* Admin screens always keep at least a screen of height, so switching views or loading never flashes the footer. */
.bth-admin [data-mount] { min-height: 85vh; }
/* Subscribers */
.bth-subs__head, .bth-subs__row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 120px; gap: 12px; padding: 10px 4px; }
.bth-subs__head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-teal); border-bottom: 1px solid var(--bth-line-strong); }
.bth-subs__row { border-bottom: 1px solid var(--bth-line); font-size: 15px; color: var(--bth-teal-deep); }
.bth-subs__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .bth-subs__head { display: none; } .bth-subs__row { grid-template-columns: 1fr; gap: 2px; } }
.bth-subs__head, .bth-subs__row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) 110px minmax(0, 1.2fr); align-items: start; }
.bth-subs__row span:last-child { white-space: normal; }
.bth-subs__why { display: block; font-size: 12px; color: var(--bth-sage); margin-top: 3px; line-height: 1.3; }
.bth-cust__match { color: var(--bth-teal) !important; }
/* Date buttons never wrap onto several lines. */
.bth-datepick__btn { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bth-datepick__btn span { overflow: hidden; text-overflow: ellipsis; }
.bth-datepick__pop { max-width: calc(100vw - 32px); }
/* Event editor dates on narrow screens (this must come after the desktop grid above):
   date on its own line, then Starts | Ends, then Places | Booked | remove. */
@media (max-width: 700px) {
  .bth-sessions__head { display: none; }
  .bth-sessions__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; grid-template-areas: "date date date" "start end end" "cap booked rm"; gap: 10px 10px; padding: 14px 0 22px; border-bottom: 1px solid var(--bth-line); margin-bottom: 4px; }
  .bth-sessions__row > :nth-child(1) { grid-area: date; }
  .bth-sessions__row > :nth-child(2) { grid-area: start; }
  .bth-sessions__row > :nth-child(3) { grid-area: end; }
  .bth-sessions__row > :nth-child(4) { grid-area: cap; }
  .bth-sessions__row > :nth-child(5) { grid-area: booked; text-align: left; align-self: center; }
  .bth-sessions__row > :nth-child(6) { grid-area: rm; align-self: center; }
  .bth-sessions__booked::before { content: 'Booked: '; color: var(--bth-sage); font-size: 13px; }
  .bth-sessions__row input[name=s-cap]::placeholder { color: var(--bth-sage); }
  .bth-sessions__add select { width: 100%; }
}
/* Activity log */
.bth-act__head, .bth-act__row summary { display: grid; grid-template-columns: 190px minmax(0, 1.1fr) minmax(0, 2fr); gap: 14px; padding: 10px 4px; }
.bth-act__head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-teal); border-bottom: 1px solid var(--bth-line-strong); }
.bth-act__row { border-bottom: 1px solid var(--bth-line); }
.bth-act__row summary { cursor: pointer; list-style: none; font-size: 15px; color: var(--bth-teal-deep); }
.bth-act__row summary::-webkit-details-marker { display: none; }
.bth-act__row summary small { display: block; font-size: 12px; color: var(--bth-sage); }
.bth-act__row.is-failed summary span:last-child { color: #a04a37; }
.bth-act__more { padding: 0 4px 12px 204px; font-size: 13px; color: var(--bth-sage); }
.bth-act__more pre { white-space: pre-wrap; background: #fff; border: 1px solid var(--bth-line); padding: 10px; margin: 6px 0 0; font-size: 12px; color: var(--bth-teal-deep); }
@media (max-width: 800px) { .bth-act__head { display: none; } .bth-act__row summary { grid-template-columns: 1fr; gap: 2px; } .bth-act__more { padding-left: 4px; } }
/* Insights */
.bth-ins__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.bth-ins__bars { display: flex; flex-direction: column; gap: 8px; }
.bth-ins__bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 14px; color: var(--bth-teal-deep); }
.bth-ins__lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bth-ins__track { height: 10px; background: var(--bth-cream); }
.bth-ins__track i { display: block; height: 100%; background: var(--bth-teal); min-width: 2px; }
.bth-ins__bar b { font-weight: 400; text-align: right; color: var(--bth-teal); }
.bth-ins__spark { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.bth-ins__spark i { flex: 1; background: var(--bth-gold); min-height: 3px; }
.bth-ins__sub { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--bth-teal); margin: 18px 0 8px; font-weight: 400; }
@media (max-width: 900px) { .bth-ins__grid { grid-template-columns: minmax(0, 1fr); } }
/* Booking cards: family on file (old-site bookings) and shared notes */
.bth-bkrow__onfile { margin: 10px 0 4px; font-size: 13px; color: var(--bth-sage); }
.bth-bkrow__guests li.is-onfile span { color: var(--bth-sage); }
.bth-bkrow__note { margin: 8px 0 0; font-size: 14px; color: #a04a37; }
.bth-bkrow__note b { font-weight: 600; }
/* Messages search */
.bth-msgsearch { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.bth-msgsearch input { flex: 1; max-width: 520px; }
/* Past event: read-only view */
.bth-pastview__list { list-style: none; margin: 0; padding: 0; }
.bth-pastview__list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--bth-line); }
.bth-pastview__list li:last-child { border-bottom: 0; }
.bth-pastview .bth-bkrow__act { display: none; }   /* no actions on past bookings */
/* Event description editor */
.bth-rte__bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0 6px; }
.bth-rte__bar button { min-width: 36px; height: 34px; padding: 0 10px; border: 1px solid var(--bth-line-strong); background: #fff; color: var(--bth-teal-deep); font-family: inherit; font-size: 14px; cursor: pointer; }
.bth-rte__bar button:hover, .bth-rte__bar button:focus-visible { border-color: var(--bth-teal); }
.bth-rte__sep { width: 1px; height: 22px; background: var(--bth-line-strong); margin: 0 6px; }
.bth-rte { min-height: 220px; max-height: 520px; overflow: auto; padding: 14px 16px; background: var(--bth-paper, #FBF9F4); border: 1px solid var(--bth-line-strong); font-size: 16px; line-height: 1.6; color: var(--bth-teal-deep); caret-color: var(--bth-teal); user-select: text; -webkit-user-select: text; cursor: text; }
.bth-rte:focus { outline: 2px solid var(--bth-teal); outline-offset: -1px; }
.bth-rte p { margin: 0 0 12px; }
/* Description editor: colour and highlight pickers */
.bth-rte__pick { position: relative; display: inline-flex; }
.bth-rte__a { display: inline-block; font-weight: 600; border-bottom: 3px solid #854d40; line-height: 1; padding-bottom: 1px; }
.bth-rte__swatches { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; display: flex; gap: 6px; padding: 8px; background: #fff; border: 1px solid var(--bth-line-strong); box-shadow: 0 8px 20px rgba(31, 56, 64, .12); }
.bth-rte__swatches[hidden] { display: none; }
.bth-rte__swatches button { width: 26px !important; min-width: 26px !important; height: 26px !important; padding: 0 !important; border: 1px solid rgba(0, 0, 0, .15) !important; border-radius: 50%; }
.bth-rte__swatches button.is-none { background: linear-gradient(135deg, #fff 45%, #c0392b 46%, #c0392b 54%, #fff 55%) !important; }
/* Past event view: text in dark teal (not the old theme's rust). */
.bth-pastview p, .bth-pastview li, .bth-pastview__list span:not(.bth-muted) { color: var(--bth-teal-deep); }
