:root {
  color-scheme: dark;
  --background: #090a0a;
  --ink: #f2f4f1;
  --muted: #a9b1ac;
  --border: #2b2f2c;
  --green: #151b10;
  --lime: #d5fa6b;
  --surface: #151716;
  --display: -apple-system, system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-margin-top: 14px; }
::selection { color: var(--green); background: var(--lime); }
body { margin: 0; background: var(--background); color: var(--ink); font: 15px -apple-system, system-ui, Arial, sans-serif; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #d5fa6b; outline-offset: 4px; }
svg { display: block; width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.wrap { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; height: 77px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 750 25px/1 var(--display); letter-spacing: -.065em; }
.brand-icon { display: grid; place-items: center; width: 36px; height: 36px; background: var(--lime); color: var(--green); border-radius: 11px; }
.brand-icon svg { width: 21px; height: 21px; stroke-width: 2; }
.nav { display: flex; align-items: center; gap: 24px; }
.browse-link { text-decoration: none; font-weight: 700; color: var(--muted); }
.browse-link:hover { color: var(--ink); text-decoration: underline; }
.nav button { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 13px; border-radius: 10px; }
.nav button:hover, .nav button[aria-pressed=true] { background: #222821; border-color: #48513f; }

.hero { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: 10px; min-height: 388px; padding: 10px; background: #111311; color: var(--ink); border: 1px solid var(--border); border-radius: 24px; position: relative; isolation: isolate; overflow: hidden; }
.hero-content { min-width: 0; padding: clamp(28px, 4vw, 54px); align-self: center; position: relative; z-index: 1; }
.hero h1 { font: 750 clamp(51px, 6.3vw, 87px)/.94 var(--display); letter-spacing: -.09em; text-align: center; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero p { color: #c4c9c4; margin-top: 20px; font-size: 16px; line-height: 1.45; }
.hero-image { position: absolute; z-index: -1; inset: 0 0 0 36%; background: #272c22 url(/course.webp?v=dde1afbdcc70c855975f) 64% 58%/cover no-repeat; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #111311 0%, #11131126 37%, #11131118 75%), linear-gradient(0deg, #0b0c0b70, transparent 58%); }
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 26px; }
.search-box { position: relative; width: 100%; max-width: 470px; min-width: 0; padding: 5px 5px 5px 13px; display: flex; gap: 9px; align-items: center; background: #202320; border: 1px solid #4b5149; color: var(--ink); border-radius: 12px; }
.search-box input { width: 100%; min-width: 0; padding: 9px 1px; border: 0; background: transparent; }
.search-box input::placeholder { color: #aab0a9; }
.search-box button, .primary { background: var(--lime); color: var(--green); border: 1px solid var(--lime); border-radius: 8px; padding: 10px 17px; font-weight: 700; }
.search-box button:hover, .actions .primary:hover { background: #c6ed66; border-color: #c6ed66; }
.locate { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 0; border: 0; border-radius: 7px; background: none; color: #e6eae5; font-size: 13px; }
.locate:hover { color: var(--lime); }
.locate svg { width: 16px; height: 16px; }
.locate[data-location-applied] > span, .locate[aria-busy="true"] > span { display:inline-grid; width:16px; height:16px; place-items:center; }
.locate[data-location-applied] > span svg, .locate[aria-busy="true"] > span svg { display:none; }
.locate[data-location-applied] > span::before { content:""; width:9px; height:5px; border:solid var(--lime); border-width:0 0 2px 2px; transform:translateY(-1px) rotate(-45deg); }
.locate[aria-busy="true"] > span::before { content:""; box-sizing:border-box; width:13px; height:13px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:location-spinner .7s linear infinite; }
@keyframes location-spinner { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .locate[aria-busy="true"] > span::before { animation:none; } }
.hint { margin-top: 7px; color: #e5efa8; font-size: 13px; }
.hint:empty { display: none; }

main { padding-block: 36px 58px; scroll-margin-top: 20px; }
.section-top { text-align: center; }
.overline { display: block; color: var(--muted); font-size: 11px; line-height: 1.25; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 7px; }
.section-top h2 { font: 700 clamp(29px, 4.3vw, 47px)/1.03 var(--display); letter-spacing: -.075em; }
.coach-roster h1 { font: 750 clamp(34px, 7vw, 56px)/1.06 var(--display); letter-spacing: -.06em; }
.search.directory-search { justify-content: center; margin-top: 18px; gap: 8px; }
.directory-search #map-toggle { margin-left: 0; }
.coach-roster .result-status { margin: 12px 0 22px; }
:is(body[data-page="coaches"], body[data-page="facilities"]) .coach-roster > .directory { margin-top: 20px; }
.sort { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 11px; max-width: 100%; font-size: 13px; }
.result-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.filter-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.filter-control span { padding-left: 11px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-control select { padding: 10px 7px; border: none; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 700; }
#map-toggle { display: flex; gap: 6px; align-items: center; margin-left: auto; padding: 9px 12px; min-height: 39px; border-radius: 10px; font-size: 13px; }
#map-toggle svg { width: 16px; height: 16px; }
#map-toggle:hover { border-color: #69775c; }
#map-toggle[aria-pressed=true] { color: var(--lime); border-color: #69775c; }
.directory.with-map { display: grid; grid-template-columns: minmax(270px, .75fr) minmax(0, 1.55fr); align-items: start; gap: 18px; }
.with-map .grid { grid-template-columns: 1fr; gap: 10px; }
.map-panel { display: none; position: sticky; top: 16px; border: 1px solid #363d37; border-radius: 20px; overflow: hidden; background: #181b1a; box-shadow: 0 16px 48px #0005; }
.with-map .map-panel { display: block; }
#lesson-map { height: clamp(430px, 71vh, 710px); background: #121617; isolation: isolate; touch-action: none; }
#lesson-map .map-street-tile { filter: saturate(.35) brightness(.45); }
#lesson-map .map-overview-tile { filter: grayscale(1) invert(.95) brightness(.8); }
#lesson-map .leaflet-top.leaflet-right { padding: 4px; }
#lesson-map .leaflet-control-zoom { border: 1px solid #454c46; border-radius: 11px; overflow: hidden; box-shadow: 0 4px 14px #0006; }
#lesson-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; background: #191d1a; color: var(--ink); border-color: #39403a; font-size: 19px; }
#lesson-map .leaflet-control-zoom a:hover { background: #2d3629; color: var(--lime); }
#lesson-map .leaflet-control-zoom a.leaflet-disabled { color: var(--muted); }
.map-message { font-size: 12px; padding: 8px 12px; color: var(--muted); }
.map-headshots { display: flex; gap: 3px; align-items: center; justify-content: center; position: relative; height: 47px; padding: 3px; border: 1px solid #bada7d; border-radius: 99px; background: #161b16; box-shadow: 0 4px 14px #000c; }
.map-headshots::after { content: ""; position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top: 9px solid var(--lime); border-bottom: 0; pointer-events: none; }
.venue-pin:focus-within { z-index: 10000 !important; }
.map-headshot { position: relative; display: grid; place-items: center; flex: 0 0 39px; height: 39px; padding: 0; overflow: hidden; border: 1px solid #626e58; border-radius: 50%; background: #2b3624; color: #edf3e5; font-size: 12px; }
.map-headshot:hover, .map-headshot:focus-visible { border-color: var(--lime); outline: 2px solid var(--lime); outline-offset: 0; z-index: 1; }
#lesson-map .map-headshot img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 28%; }
.result-status { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 17px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #59634d; box-shadow: 0 8px 24px #0006; }
.profile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portrait { display: grid; place-items: center; width: 59px; height: 59px; border-radius: 15px; object-fit: cover; object-position: center 28%; flex-shrink: 0; background: #252c20; color: #d8e8cb; font: 650 20px/1 var(--display); letter-spacing: -.06em; }
.card h3 { font: 700 18px/1.18 var(--display); letter-spacing: -.055em; }
.venue { color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 4px; }
.save { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; border-radius: 50%; padding: 0; margin: 0 0 auto auto; }
.save:hover { background: #232a1e; border-color: #48543d; }
.save[aria-pressed=true] { background: #284016; }
.save[aria-pressed=true] svg { fill: #d5fa6b; color: #d5fa6b; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 15px 0 10px; }
.meta svg { width: 15px; height: 15px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 15px; }
.tag { background: #222722; color: #c4d2bf; border-radius: 5px; font-size: 11px; padding: 4px 7px; font-weight: 700; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #2b2f2c; }
.price { font-size: 13px; font-weight: 700; }
.details { min-height: 38px; padding: 7px 9px; background: #272c24; border-color: #272c24; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.details { display: inline-flex; align-items: center; gap: 5px; }
.details svg { width: 14px; height: 14px; }
.details:hover { background: #39452e; border-color: #667857; }
.empty { border: 1px dashed #555e53; padding: 23px; border-radius: 12px; }
.empty a { display: inline-block; margin-top: 8px; font-weight: 700; }
dialog { position: fixed; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--ink); width: min(calc(100% - 24px), 520px); padding: 25px; }
dialog::backdrop { background: #000c; }
dialog h2 { font: 700 clamp(26px, 6vw, 38px)/1.07 var(--display); letter-spacing: -.07em; padding-right: 36px; }
dialog .overline { padding-right: 40px; }
dialog p { margin: 12px 0; line-height: 1.55; }
.close { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; }
.close:hover { background: #262c23; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.actions a { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-weight: 700; }
.actions .primary { border-color: var(--lime); }
.small { color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .wrap, .hero { width: calc(100% - 42px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { padding: 28px; }
}
@media (max-width: 660px) {
  .wrap, .hero { width: calc(100% - 28px); }
  .top { height: 64px; }
  .nav { gap: 10px; }
  .browse-link { display: none; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; border-radius: 20px; padding: 7px; gap: 0; }
  .hero-content { padding: 26px 16px 13px; }
  .hero h1 { font-size: clamp(49px, 10vw, 63px); }
  .hero p { margin-top: 13px; font-size: 14px; }
  .search { margin-top: 18px; gap: 1px; }
  .search-box button { padding-inline: 12px; }
  .hero-image { position: relative; inset: auto; z-index: 0; height: clamp(105px, 27vw, 170px); border-radius: 13px; background-image: url(/course-mobile.webp?v=6e27c3b823129fd1ffcd); background-position: 55% 65%; }
  .hero-image::after { background: linear-gradient(0deg, #0b0c0b55, transparent 60%); }
  main { padding-top: 26px; }
  .sort { padding: 8px 5px; font-size: 12px; }
  .result-controls { gap: 5px; }
  .filter-control span { display: none; }
  .filter-control select { padding-left: 7px; font-size: 12px; }
  #map-toggle { padding-inline: 8px; font-size: 12px; }
  .directory.with-map { display: flex; flex-direction: column; gap: 12px; }
  .with-map .map-panel { order: -1; position: static; width: 100%; }
  .with-map .list-panel { width: 100%; }
  #lesson-map { height: min(62vh, 460px); min-height: 330px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

dialog.booking-dialog { width: min(calc(100% - 22px), 540px); max-height: calc(100dvh - 22px); background: #0e100f; padding: 0; overflow: hidden; border-color: #373e35; }
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-header { position: relative; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.booking-header h2 { padding: 0; font-size: clamp(24px, 5.5vw, 30px); text-align: center; }
.booking-header h2:focus { outline: none; }
.booking-header .close, .booking-back { position: static; width: 38px; height: 38px; border-radius: 10px; }
.booking-back { font-size: 21px; line-height: 1; }
.booking-back:hover { background: #262c23; }
.booking-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 17px 20px 8px; }
.booking-coach { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 13px; }
.booking-coach-overview { display: flex; align-items: center; gap: 16px; }
.booking-coach .portrait { width: clamp(70px, 22vw, 90px); height: clamp(70px, 22vw, 90px); border-radius: 50%; }
.booking-coach-identity { min-width: 0; }
.booking-coach h3 { margin: 0; font: 750 clamp(20px, 5.5vw, 24px)/1.2 var(--display); overflow-wrap: anywhere; }
.booking-coach p { margin: 4px 0 0; color: var(--muted); font-size: 14px; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.booking-coach .featured-tag { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 750; }
.booking-coach .booking-coach-reviews { color: var(--ink); font-weight: 700; }
.booking-coach-reviews span { color: var(--lime); }
.booking-coach-detail { padding-top: 10px; border-top: 1px solid var(--border); }
.booking-coach-detail h4 { margin: 0; font-size: 14px; font-weight: 750; }
.booking-coach-detail p { white-space: pre-line; }
.booking-body fieldset { min-width: 0; border: 0; padding: 0; margin: 16px 0 0; }
.booking-body legend { padding: 0; margin-bottom: 7px; font-weight: 700; }
.booking-body legend span { color: var(--muted); margin-left: 5px; font-weight: 500; font-size: 11px; }
.booking-lessons { display: grid; gap: 6px; }
.booking-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 13px; min-height: 44px; }
.booking-option:has(:checked) { border-color: var(--lime); background: #1c2417; }
.booking-option input { margin: 0; accent-color: var(--lime); }
.booking-option small { display: block; color: var(--muted); margin-top: 2px; }
.booking-rate { color: var(--lime); font-weight: 700; text-align: right; }
.booking-dates, .booking-times {
  display:flex;
  gap:8px;
  max-width:100%;
  overflow-x:auto;
  padding:4px 4px 7px;
  scroll-padding-inline:4px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
}
.booking-times[hidden] { display:none; }
.booking-dates button, .booking-times button { min-height: 44px; flex:0 0 auto; min-width:72px; scroll-snap-align:start; border-radius:9px; padding:5px 10px; font-size:13px; white-space:nowrap; }
.booking-dates strong, .booking-dates small { display: block; }
.booking-dates strong { font-size: 19px; }
.booking-dates small { font-size: 10px; color: var(--muted); }
.booking-dates button[aria-pressed=true] { background: var(--lime); color: var(--green); border-color: var(--lime); }
.booking-dates button[aria-pressed=true] small { color: var(--green); }
.booking-times button[aria-pressed=true] { border-color: var(--lime); color: var(--lime); background: #1c2417; }
.booking-custom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.booking-custom input { min-width: 0; padding: 4px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--ink); }
.booking-body .booking-help { color: var(--muted); margin: 14px 0 4px; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: center; }
.booking-footer { padding: 14px 20px 16px; border-top: 1px solid var(--border); background: #151815; }
.booking-total { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.booking-total { font-size: 14px; margin-bottom: 11px; }
.booking-total strong { font-size: 16px; }
.booking-request { width: 100%; margin-bottom: 9px; }
.booking-request:disabled { opacity: .7; cursor: default; }
#booking-request[hidden] { display: none; }
.booking-success { padding: 14px 12px; margin-bottom: 12px; text-align: center; border-radius: 10px; background: #1c2417; }
.booking-success strong { color: var(--lime); font-size: 1.4rem; }
.booking-success p { margin: 6px 0 0; font-size: .95rem; line-height: 1.4; }
.booking-footer .booking-feedback { color: var(--muted); margin: 0; font-size: 12px; }
.booking-feedback:empty { display: none; }
@media (max-width: 480px) {
  .booking-header, .booking-body, .booking-footer { padding-inline: 12px; }
  .booking-header { padding-block: 9px; }
}

.actions .online-lesson-button { padding: 9px 12px; border-radius: 8px; color: var(--lime); }
.actions .online-lesson-button:hover { border-color: var(--lime); }
.booking-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 12px; border: 1px solid var(--border); border-radius: 11px; }
.booking-modes button { padding: 8px; border-radius: 7px; border-color: transparent; color: var(--muted); font-size: 13px; }
.booking-modes button[aria-pressed=true] { background: #29351e; color: var(--lime); }

.review-section { margin: 18px 0 12px; }
.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-heading h3 { font-size: 16px; }
.review-heading span { color: var(--muted); font-size: 12px; }
.review-section .review-help { color: var(--muted); margin: 5px 0 11px; font-size: 13px; }
.review-upload { position: relative; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #647555; border-radius: 11px; background: #191f16; color: var(--lime); font-weight: 700; cursor: pointer; }
.review-upload:hover, .review-upload:focus-within { border: 1px solid var(--lime); }
.review-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.review-section .review-feedback { min-height: 17px; margin: 5px 0; color: var(--muted); font-size: 12px; }
.review-clips { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.review-clips li { display: grid; grid-template-columns: minmax(90px, 134px) minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.review-clips video { width: 100%; aspect-ratio: 16 / 9; background: #090a09; border-radius: 5px; }
.review-clips strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.review-clips small { color: var(--muted); font-size: 11px; }
.review-clips button { padding: 5px; border-radius: 6px; font-size: 11px; }
.review-payment-button:disabled { background: #2d3428; color: #c3cbbd; border-color: #414a3a; cursor: not-allowed; }
.review-payment-button { display: block; margin-inline: auto; }
.booking-footer .review-payment-status { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.instructor-link { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 13px; }
.instructor-link:hover { color: var(--lime); }
.instructor-settings { max-width: 760px; }
.instructor-settings h1 { font: 700 clamp(30px, 6vw, 48px)/1.05 var(--display); letter-spacing: -.06em; }
.settings-intro { color: var(--muted); margin: 10px 0; }
.settings-intro:empty { display: none; }
.settings-signin:not([hidden]) { display: inline-block; margin-top: 6px; text-decoration: none; }
.settings-profiles { display: grid; gap: 12px; margin-top: 20px; }
.settings-card h2 { font: 700 20px/1.2 var(--display); }
.settings-card form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; align-items: end; margin-top: 12px; }
.settings-card label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.settings-card input { background: #101310; color: var(--ink); padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; width: 100%; }
.settings-card form p { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
@media (max-width: 460px) {
  .top .brand { font-size: 21px; }
  .top .brand-icon { width: 30px; height: 30px; }
  .nav { gap: 7px; }
  .nav button { padding-inline: 7px; gap: 4px; }
  .instructor-link { font-size: 12px; }
  .settings-card .primary { padding-inline: 9px; }
}

@media (max-width: 760px) {
  body[data-page=directory] .top .browse-link,
  body[data-page=directory] .top #saved,
  body[data-page=instructor] .top .nav a[href="/"] { display: none; }
}
body:has(.bottom-nav) { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(calc(100% - 12px), 510px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 5px;
    border: 1px solid #3b413b;
    border-radius: 999px;
    background: #181b18;
    box-shadow: 0 8px 24px #000a, inset 0 1px 0 #ffffff0e;
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 61px;
    min-width: 0;
    padding: 5px 1px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-size: clamp(12px, 3.25vw, 14px);
    font-weight: 700;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav a svg { width: 23px; height: 23px; stroke-width: 1.5; }
  .nav-tab-icon { position: relative; display: grid; place-items: center; }
  .tab-badge:not([hidden]) {
    position: absolute;
    inset-block-start: -5px;
    inset-inline-start: calc(100% - 5px);
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #b91c1c;
    color: white;
    font-size: 10px;
    line-height: 1;
  }

  .bottom-nav a[aria-current=page] { background: #333c2b; color: var(--lime); }
  .bottom-nav a:focus-visible { outline-offset: -3px; }

.customer-lessons { max-width: 760px; }
.customer-lessons h1 { font: 750 clamp(34px, 7vw, 52px)/1.05 var(--display); letter-spacing: -.06em; }
.customer-lessons section { margin-top: 26px; }
.customer-lessons h2 { font: 700 20px/1.2 var(--display); margin: 0 0 9px; }
.lesson-history-list { display: grid; gap: 9px; }
.lesson-history-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 5px 8px; }
.lesson-coach-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; border-radius: 8px; text-decoration: none; overflow-wrap: anywhere; }
.lesson-coach-link:hover { color: var(--lime); }
.lesson-coach-portrait { position: relative; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #252c20; color: var(--lime); font-size: 13px; }
.lesson-coach-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.lesson-history-card h3:has(.lesson-coach-link) + .tag { align-self: center; }
.lesson-history-card .booking-confirmed { background: #20452d; color: #a8efb5; }
.lesson-history-card p { grid-column: 1 / -1; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.lesson-history-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; color: var(--muted); font-size: 12px; }
.lesson-history-footer a { text-decoration: none; }
.lesson-request-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.open-online-review, .lesson-request-actions :is(button, a) { min-height: 44px; width: 100%; justify-content: center; text-align: center; }
.lesson-request-actions .lesson-confirmation-error { color: #ffada3; }
.lesson-request-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.lesson-request-heading h2 { margin: 0; }
#open-lesson-calendar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 10px; color: var(--lime); }
#open-lesson-calendar svg { width: 21px; height: 21px; }
#lesson-calendar { max-height: calc(100dvh - 24px); }
#lesson-calendar .calendar-header button { border-radius: 8px; }
#lesson-calendar .has-lesson[aria-pressed=false] { border-color: var(--lime); }
.lesson-calendar-agenda { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.lesson-calendar-agenda h3 { margin: 0; }
#lesson-agenda-slots { list-style: none; padding: 0; margin: 0; }
#lesson-agenda-slots li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
#lesson-agenda-slots strong { color: var(--lime); }
.lesson-request-actions .lesson-cancel, .lesson-request-actions .lesson-keep { border-radius: 8px; }
.lesson-request-actions .lesson-cancel { color: #ffada3; border-color: #8e514a; }
.lesson-request-actions .lesson-cancel:hover { background: #492a26; }
.lesson-request-actions .lesson-keep { color: var(--ink); }

.save-review-button { display: block; margin: 7px auto 0; padding: 6px 9px; color: var(--lime); background: transparent; border-radius: 7px; font-size: 13px; }
.save-review-button:hover { border-color: var(--lime); }

.facility-results { margin-top: 20px; }
.facility-results h3 { margin: 0; font: 700 20px/1.2 var(--display); }
.facility-results > p { margin: 5px 0 10px; color: var(--muted); font-size: 13px; }
.facility-card .details { align-self: flex-start; text-decoration: none; }
.facility-card .details svg { width: 15px; height: 15px; }
.facility-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.facility-address { color: var(--muted); overflow-wrap: anywhere; }
.facility-amenities { display: grid; margin: 12px 0 16px; }
.facility-amenities > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; }
.facility-amenities dt { font-weight: 700; }
.facility-amenities dd { margin: 0; color: var(--muted); line-height: 1.4; }
.map-legend { display: flex; flex-wrap: wrap; gap: 15px; margin: 0; padding: 9px 12px; list-style: none; border-bottom: 1px solid #363d37; color: var(--muted); font-size: 12px; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-key-coach, .map-key-facility { width: 11px; height: 11px; box-sizing: border-box; border: 1px solid; }
.map-key-coach { border-radius: 50%; border-color: var(--lime); background: #2b3624; }
.map-key-facility { border-radius: 2px; border-color: #d7dfdb; background: #26312f; box-shadow: 0 2px 6px #0007; }
.map-facility { height: 41px; padding: 2px; border-radius: 7px; border-color: #d7dfdb; background: #26312f; box-shadow: 0 2px 6px #0007; }
.map-facility::after { border-width: 5px; border-top: 8px solid #d7dfdb; border-bottom: 0; }
.map-facility .map-headshot { flex-basis: 34px; height: 35px; border-radius: 4px; border-color: transparent; background: transparent; }
.map-facility .map-headshot:hover, .map-facility .map-headshot:focus-visible { outline-color: #e0e7e9; }
#lesson-map .map-facility .map-headshot img { object-position:center; }
#lesson-map .map-facility .map-headshot img.map-pin-logo { object-fit:contain; background:#fff; }
.map-facility .map-headshot svg { width: 20px; height: 20px; }
.coach-form:not([hidden]) { display: grid; gap: 14px; }
.coach-form label { display: grid; gap: 5px; font-weight: 700; font-size: 13px; }
.coach-form input:not([type=checkbox], [type=radio]), .coach-form textarea, .coach-form select { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px 10px; background: #101310; color: var(--ink); border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.coach-form small { color: var(--muted); font-weight: 500; }
.coach-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 10px; }
.coach-form legend { font-weight: 700; font-size: 14px; }
.coach-form .coach-check { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
.coach-check input { accent-color: var(--lime); }
.coach-form fieldset div label { margin-bottom: 8px; }
.coach-form .actions { flex-wrap: wrap; }
.coach-form button[hidden], .coach-form[hidden] { display: none; }

.featured-tag { background: #2a351d; color: var(--lime); }

.top .nav, .top > .instructor-link { margin-left: auto; }
.facility-directory .directory.with-map { display: block; }
.facility-directory .with-map .list-panel { display: none; }
.welcome-page { min-height: 100svh; display: grid; place-items: center; padding: 32px 18px; }
.welcome-shell { width: min(100%, 440px); display: grid; justify-items: center; gap: 24px; }
.welcome-card { width: 100%; padding: clamp(20px, 5vw, 34px); }
.welcome-card h1 { margin: 0 0 20px; font: 750 clamp(30px, 8vw, 40px)/1.12 var(--display); letter-spacing: -.04em; }
.welcome-card p, .welcome-actions small { color: var(--muted); }
.welcome-roles { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.welcome-roles legend { margin-bottom: 10px; font-weight: 650; }
.welcome-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 14px; background: #0d100e; }
.welcome-switch label { position: relative; min-width: 0; cursor: pointer; }
.welcome-switch input { position: absolute; opacity: 0; }
.welcome-switch span { display: grid; min-height: 44px; place-items: center; border-radius: 10px; font-weight: 700; color: var(--muted); }
.welcome-switch input:checked + span { color: var(--lime); background: #2b3521; }
.welcome-switch input:focus-visible + span { outline: 2px solid var(--lime); }
.welcome-actions:not([hidden]) { display: grid; gap: 10px; }
.welcome-actions a, .welcome-continue:not([hidden]) { display: block; text-align: center; text-decoration: none; }
.welcome-actions .primary, .welcome-actions .details, .welcome-continue:not([hidden]) { padding: 12px 16px; min-height: 46px; font: 700 16px/1.3 var(--display); }
.welcome-recovery:not([hidden]) { display: block; width: fit-content; margin: 12px auto 0; padding: 8px 0; color: var(--lime); font-size: 14px; text-underline-offset: 4px; }
.welcome-actions small { text-align: center; }
#welcome-status:empty { display: none; }
#welcome-logout:not([hidden]) { display: inline-block; margin-top: 18px; color: var(--muted); }

.account-text-button { justify-self: center; padding: 8px 0; border: 0; background: transparent; color: var(--lime); cursor: pointer; }
.account-legacy { display: block; margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }
#password-auth form { gap: 12px; }

.coach-card-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.coach-card-contact:empty { display: none; }
.message-link { display: inline-flex; align-items: center; gap: 5px; color: var(--lime); font-size: 13px; font-weight: 700; text-decoration: none; }
.message-link:hover, .coach-email:hover { text-decoration: underline; }
.booking-request, .booking-message, .review-payment-button, .save-review-button { min-height: 42px; }
.booking-request, .booking-message, .review-payment-button, .save-review-button,
.open-online-review, .lesson-request-actions :is(button, a) { font: 700 15px/1.3 var(--display); }
.online-review-card .open-online-review, .lesson-request-actions .details {
  border: 1px solid #849b58;
  color: var(--lime);
  font-weight: 800;
}
.online-review-card .open-online-review:hover, .lesson-request-actions .details:hover { border-color: var(--lime); }
.booking-message { display: flex; justify-content: center; margin-top: 8px; }
.booking-message:hover { text-decoration: none; }
.coach-email { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.lessons-switch { --switch-position: 0%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); position: relative; isolation: isolate; width: min(100%, 380px); margin: 0 auto 24px; padding: 4px; border: 1px solid #3b413b; border-radius: 999px; background: #171a16; }
.lessons-switch.is-online { --switch-position: 100%; }
.lessons-switch::before { content: ""; position: absolute; z-index: -1; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: 999px; background: #333c2b; transform: translateX(var(--switch-position)); }
.lessons-switch button { display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; }
.lessons-switch button:hover { color: var(--ink); }
.lessons-switch button[aria-pressed=true] { color: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  .lessons-switch::before { transition: transform .22s ease-out; }
}
html:has(.messages-layout[data-thread-open]) { overflow: hidden; overscroll-behavior: none; }
body:has(.messages-layout[data-thread-open]) { height: 100dvh; overflow: hidden; }
.messages-page { --message-bar-background: #181b18; max-width: 760px; -webkit-tap-highlight-color: transparent; overflow-anchor:none; }
html[data-native-tabs] .messages-page { --message-bar-background: #141414; }
.messages-page:has(.messages-layout[data-thread-open]) { display: grid; grid-template-rows: auto minmax(0, 1fr); height: min(100%, var(--chat-viewport-height, 100dvh)); }
.messages-titlebar { display: grid; align-items: center; min-height: 44px; margin: 22px 0 20px; }
.messages-titlebar h1 { margin: 0; text-align: center; font: 720 27px/1.15 var(--display); }
.inbox-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.messages-layout { display: grid; align-items: start; gap: 20px; }
.messages-layout[data-thread-open] { min-height: 0; align-items: stretch; }
.messages-layout[data-thread-open] .message-conversation:not([hidden]) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; margin: 0; }
.messages-layout [hidden] { display: none; }
.inbox-search { display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border); border-radius: 13px; background: #1b1e1a; color: var(--muted); }
.inbox-search:focus-within { border-color: var(--lime); }
.inbox-search svg { flex: none; width: 18px; height: 18px; }
.inbox-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--ink); outline: none; font-size: 16px; }
.inbox-search input::placeholder { color: var(--muted); }
#message-threads, #message-history { list-style: none; padding: 0; margin: 0; }
#message-threads { margin-top: 8px; }
#message-threads li { border-bottom: 1px solid var(--border); }
#message-threads a { display: grid; grid-template-columns: 50px minmax(0,1fr) 14px; align-items: center; gap: 13px; padding: 16px 5px; border-radius: 9px; text-decoration: none; }
@media (hover:hover) { #message-threads a:hover { background: #191919; } }
.thread-avatar img, .message-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thread-avatar { position: relative; overflow: hidden; display: grid; place-items: center; width: 50px; height: 50px; background: #26311f; border: 1px solid #394b2d; border-radius: 50%; color: var(--lime); font-weight: 750; }
.thread-details { display: grid; gap: 3px; min-width: 0; }
.thread-details strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; }
.thread-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: #c7cdc5; font-size: 14px; line-height: 1.35; }
.thread-details time { color: var(--muted); font-size: 12px; }
.thread-unread { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; justify-self: center; }
.thread-chevron { width: 8px; height: 8px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.conversation-heading { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 10px; margin-bottom: 14px; }
.conversation-heading h2 { margin: 0; font: 720 22px/1.2 var(--display); overflow-wrap: anywhere; text-align: center; }
#messages-title:focus, #conversation-name:focus { outline: none; }
#back-to-inbox { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--lime); }
#back-to-inbox svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#back-to-inbox:hover { background: #333f29; }
#older-messages:not([hidden]) { display: block; margin: 10px auto 0; }
.message-scroll:focus { outline: none; }
.message-scroll { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
#message-history { display: flex; flex-direction: column; gap: 16px; padding: 12px 3px 16px; }
.message-day { flex-shrink: 0; align-self: center; padding: 10px 0 2px; color: var(--muted); font-size: 13px; font-weight: 700; }
.message-mine, .message-theirs { display: flex; align-items: flex-start; gap: 9px; width: 100%; flex: 0 0 auto; }
.message-mine { align-self: flex-end; flex-direction: row-reverse; }
.message-theirs { align-self: flex-start; }
.message-avatar { position: relative; overflow: hidden; display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 50%; background: #26311f; color: var(--lime); font-size: 10px; font-weight: 750; }
.message-content { width: max-content; min-width: 0; max-width: min(calc(100% - 40px), 410px); }
.message-bubble { padding: 10px 13px; border-radius: 5px 15px 15px; background: #222623; }
.message-mine .message-bubble { background: #2a3821; border-radius: 15px 5px 15px 15px; }
.message-mine[data-pending] .message-bubble { opacity: .72; }
.message-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; font-size: 16px; line-height: 1.5; }
.message-bubble a { margin-top: 6px; white-space: normal; }
.message-bubble p a { color:var(--lime); text-underline-offset:3px; }
#message-history time { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.message-mine time { text-align: right; }
#message-compose[data-native-composer]:not([hidden]) { display: none; }
#message-compose:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; padding: 8px; background: var(--message-bar-background); border: 1px solid var(--border); border-radius: 14px; }
#message-compose textarea { width: 100%; min-height: 44px; padding: 10px; font: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 8px; resize: vertical; }
#message-compose textarea:focus { outline: none; }
#message-compose button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
#message-compose button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.messages-layout .result-status { margin: 8px 0 0; }
.messages-layout .result-status:empty { display: none; }
@media (min-width: 621px) {
  .messages-layout[data-thread-open] { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .messages-layout[data-thread-open] .messages-inbox { min-height: 0; overflow-y: auto; }
}
@media (max-width: 620px) {
  body[data-page=messages]:has(.messages-layout[data-thread-open]) {
    height: auto;
    overflow: visible;
  }
  .messages-layout[data-thread-open] .messages-inbox,
  .messages-page:has(.messages-layout[data-thread-open]) .messages-titlebar { visibility: hidden; }
  .messages-page:has(.messages-layout[data-thread-open]) { display: block; height: auto; }
  .messages-layout[data-thread-open] .message-conversation:not([hidden]) {
    position: fixed;
    inset: var(--chat-viewport-top, 0px) 0 auto;
    height: var(--chat-viewport-height, 100dvh);
    padding-top: 10px;
    background: var(--background);
    z-index: 2;
    touch-action: pan-y pinch-zoom;
  }
  html[data-native-tabs] .messages-layout[data-thread-open] .message-conversation:not([hidden]) {
    top: 0;
    height: min(100%, var(--chat-viewport-height, 100dvh));
    overflow: clip;
  }
  body:has(.messages-layout[data-thread-open]) #bottom-nav { display: none; }
  .messages-layout[data-thread-open] .conversation-footer {
    padding-bottom: max(0px, calc(env(safe-area-inset-bottom, 0px) - var(--chat-keyboard-overlap, 0px)));
  }
  .conversation-toolbar { padding: 0 14px 8px; }
  .conversation-footer { background: var(--message-bar-background); }

  .conversation-heading { flex-shrink: 0; margin-bottom: 18px; }
  .conversation-heading h2 { font-size: clamp(19px, 5.2vw, 23px); }
  #back-to-inbox { border-radius: 50%; }
  #thread-search-control { flex-shrink: 0; }
  #thread-search-control input { min-height: 44px; }
  .message-scroll { overflow-anchor: none; }
  #message-history { padding: 12px 14px 18px; }
  .message-day { padding: 13px 0 2px; font-size: 14px; color: var(--ink); }
  .message-avatar { flex-basis: 30px; height: 30px; }
  .message-bubble { padding: 13px 14px; border-radius: 13px; }
  .message-mine .message-bubble { border-radius: 13px; }
  #message-history time { margin-top: 6px; }
  #message-compose:not([hidden]) { flex-shrink: 0; padding: 8px 14px; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
  .conversation-footer #message-status:not(:empty) { padding: 0 14px 6px; }
  #message-compose textarea,
  #message-compose .composer-preview {
    grid-area: 1 / 1;
    height: 44px;
    margin: 0;
    padding: 10px;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
  }
  #message-compose textarea { appearance: none; resize: none; }
  #message-compose button { grid-area: 1 / 2; }
  #message-compose:has(.composer-preview) textarea {
    opacity: 0;
    transform: translateY(var(--composer-focus-offset, 0px));
  }
  #message-compose .composer-preview {
    min-width: 0;
    white-space: pre;
    overflow: hidden;
    pointer-events: none;
  }
  #message-compose textarea::placeholder,
  #message-compose .composer-placeholder { color: #a9ada9; opacity: 1; }
}

.facility-card, .coach-directory-card { position: relative; isolation: isolate; }
.facility-card .facility-open, .coach-directory-card .coach-details { position: static; }
.facility-open::after, .coach-directory-card .coach-details::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 17px;
  cursor: pointer;
}
.facility-card-actions a,
.facility-save-row .save,
.coach-directory-card .save { position: relative; z-index: 2; }
.facility-card:has(.facility-open:focus-visible),
.coach-directory-card:has(.coach-details:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.facility-cover { display: block; width: calc(100% + 50px); max-width: none; height: clamp(150px, 25vh, 215px); margin: -25px -25px 20px; object-fit: cover; }
dialog:has(.facility-cover) .close { background: #101411; color: white; z-index: 1; }
.facility-roster { border-top: 1px solid var(--border); padding: 16px 0; }
.facility-roster h3, #facility-admin h3 { margin-bottom: 8px; }
.facility-book { display: block; margin-top: 8px; }
#roster-settings[hidden], .menu-facilities[hidden] { display: none; }

.facility-roster [data-roster] { display: grid; gap: 10px; }
.facility-roster .card { padding: clamp(12px, 3vw, 16px); background: #151815; }
.facility-roster .profile { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; }
.facility-roster .profile h3 { margin: 0; }
.facility-roster .venue { margin: 3px 0 0; }
.facility-roster .portrait { width: 48px; height: 48px; border-radius: 12px; }
.facility-roster .card { overflow-wrap: anywhere; }
.facility-roster .card-foot, .facility-roster .coach-card-contact { flex-wrap: wrap; }

.facility-card { overflow: hidden; }
.facility-card-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.facility-offer {
  display:grid;
  justify-items:start;
  gap:8px;
  padding:16px;
  border:1px solid #495641;
  border-radius:12px;
  background:#192219;
  color:#f3f7ef;
  overflow-wrap:anywhere;
}
.facility-offer .overline { color:#d5fb70; padding:0; }
.facility-offer h3 { margin:0; color:#f3f7ef; font:750 clamp(1.2rem,5vw,1.55rem)/1.2 var(--display); }
.facility-offer p, .facility-public-section .facility-offer p { margin:0; color:#dae3d6; }
.facility-offer .details { min-height:44px; margin-top:3px; background:#d5fb70; color:#151b10; border-color:#d5fb70; font-weight:750; text-decoration:none; }
.facility-offer .details:focus-visible { outline:2px solid #d5fb70; outline-offset:3px; }
.promotion-tools { padding:10px 0; font-size:14px; }
.promotion-tools summary { cursor:pointer; }
.facility-claim-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--lime);
  border-radius: 10px;
  background: #232d1c;
  color: var(--lime);
  font-size: 15px;
  font-weight: 750;
  touch-action: manipulation;
}
.facility-claim-link { margin-block: 10px; text-decoration: none; }
.facility-claim-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.promotion-tools form, .promotion-tools label { display:grid; gap:6px; margin:12px 0; }
.promotion-tools textarea { min-height:58px; }
.offer-pass { text-align:center; max-width:480px; padding:28px 18px; }
.offer-pass h1 { font:750 clamp(40px,12vw,66px)/1.1 var(--display); color:var(--lime); margin:8px auto; }
.offer-pass canvas { width:min(100%,300px); height:auto; margin:20px auto 4px; image-rendering:pixelated; }
.offer-pass p { margin:12px auto; }
.facility-card-actions { align-items: center; }
.facility-promo-chip { margin-left:auto; display:inline-flex; align-items:center; min-height:36px; padding:6px 14px; border-radius:999px; color:#d5fa6b; background:#28341d; border:1px solid #536837; font:700 14px/1.2 var(--display); text-decoration:none; }
.facility-promo-chip:hover, .facility-promo-chip:focus-visible { background:#374726; }

.coach-card-actions { justify-content: space-between; }
.coach-card-actions .coach-details { margin-left:auto; }
.coach-stats { display:grid; gap:3px; font-size:13px; }
.coach-stats span { color:var(--muted); }
.coach-stats b { color:var(--lime); }
.card .coach-card-bio { margin: -4px 0 14px; color: var(--muted); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.coach-details { justify-content: center; width: auto; min-height: 40px; padding: 8px 16px; border-radius: 9px; font: 700 14px/1.25 var(--display); background: var(--lime); border-color: var(--lime); color: #151b10; }
.coach-details:hover { background: #e0ff8c; border-color: #e0ff8c; }
.lesson-feedback-form { display:grid; gap:8px; margin-top:14px; }
.lesson-feedback-form .details { justify-self:start; }
body[data-page=profile] .actions [hidden] { display:none; }
.profile-settings { max-width:650px; padding-bottom:16px; }
.profile-settings h1 { text-align:center; font:750 clamp(25px,5vw,34px)/1.15 var(--display); margin:6px 0 22px; }
.identity-panel,.settings-list { background:var(--surface); border:1px solid var(--border); border-radius:18px; margin-bottom:16px; overflow:hidden; }
.identity-panel { display:flex; align-items:center; gap:16px; padding:22px; overflow-wrap:anywhere; }
.identity-avatar { flex:none; width:68px; height:68px; display:grid; place-items:center; border-radius:50%; overflow:hidden; background:#29331f; color:var(--lime); font:700 23px var(--display); }
.identity-avatar img { width:100%; height:100%; object-fit:cover; }
.identity-panel h2 { margin:0; font:700 23px var(--display); }
.identity-panel p { margin:3px 0; font-size:14px; color:var(--muted); }
.identity-panel #account-role { color:var(--lime); font-size:12px; }
.pending-facility-note, .identity-panel .pending-facility-note { margin:8px 0; color:#f7d98b; font-size:14px; }
.settings-row { display:flex; align-items:center; gap:14px; min-height:58px; width:100%; padding:12px 18px; border:0; border-radius:0; background:transparent; color:var(--ink); text-decoration:none; text-align:left; font:600 15px var(--display); }
.settings-row + .settings-row { border-top:1px solid var(--border); }
.settings-row[hidden] { display:none; }
.settings-row svg { width:20px; height:20px; fill:none; stroke:var(--lime); stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; }
.settings-row i { margin-left:auto; color:var(--muted); font:400 24px var(--display); }
.settings-row:hover,.settings-row:focus-visible { background:#22281d; }
#delete-account svg,#confirm-delete { color:#ffa99d; }
#week-hours { margin-top:10px; }
.hours-row { display:grid; grid-template-columns:minmax(96px,1fr) repeat(2,minmax(0,1fr)); align-items:center; gap:8px 12px; padding:10px; }
.hours-row + .hours-row { border-top:1px solid var(--border); }
.coach-form .hours-row label { margin:0; min-width:0; }
.hours-row .hours-field span { color:var(--muted); font-size:12px; }
#availability-form > fieldset, #week-hours, .hours-row { min-inline-size:0; max-inline-size:100%; }
.coach-form .hours-row select {
  appearance:none;
  display:block;
  inline-size:100%;
  max-inline-size:100%;
  min-inline-size:0;
  min-block-size:42px;
  padding:8px 24px 8px 8px;
  font-size:16px;
  font-variant-numeric:tabular-nums;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:right 12px center,right 8px center;
  background-size:4px 4px;
  background-repeat:no-repeat;
}
.hours-row select:disabled { opacity:.55; }
@media (max-width:560px) {
  .hours-row { grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px 0; }
  .hours-row .coach-check { grid-column:1/-1; }
}
.lesson-prices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.lesson-prices[hidden] { display:none; }
#calendar-blocks { display:grid; gap:8px; list-style:none; padding:0; margin:0; }
#calendar-blocks li { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--border); padding-top:8px; }
#calendar-blocks button, #add-block { width:auto; padding:9px 14px; }
#block-status:empty { display:none; }
.calendar-header { display:flex; align-items:center; justify-content:space-between; margin:12px 0 8px; }
.calendar-header button { min-width:42px; min-height:40px; font-size:20px; }
.calendar-grid, #calendar-hours { display:grid; gap:5px; }
.calendar-grid { grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; }
.calendar-grid span { color:var(--muted); font-size:12px; }
.calendar-grid button, #calendar-hours button { min-height:40px; padding:4px 1px; border-radius:8px; font-size:13px; }
.calendar-grid button[aria-current=date] { border-color:var(--lime); }
.calendar-grid button[aria-pressed=true], #calendar-hours button[aria-pressed=true] { background:var(--lime); color:var(--green); }
.calendar-grid .has-block::after { content:""; display:block; width:4px; height:4px; margin:2px auto 0; border-radius:50%; background:currentColor; }
.calendar-grid button:disabled, #calendar-hours button:disabled { opacity:.46; text-decoration:line-through; }
#calendar-hours { grid-template-columns:repeat(6,minmax(0,1fr)); margin-top:8px; }
#calendar-hours .partial-block[aria-pressed=false] { border-color:var(--lime); }
#calendar-day { margin:16px 0 10px; }
#selected-date { font-size:15px; }
.calendar-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.calendar-actions button { padding:9px 12px; }
.calendar-actions button:disabled { opacity:.46; }
.range-status { margin-top:8px; color:var(--muted); font-size:13px; }
#range-time-controls { margin-top:8px; }
.blocked-schedule { margin-top:16px; }
.blocked-schedule h2 { margin-bottom:8px; font-size:15px; }
#calendar-blocks { gap:0; max-height:20rem; overflow-y:auto; }
#calendar-blocks li { padding:9px 4px; }
#calendar-blocks li span { display:block; color:var(--muted); font-size:13px; }
#calendar-blocks button { flex-shrink:0; }
#no-calendar-blocks, #block-status { color:var(--muted); font-size:13px; }
#block-status:not(:empty) { margin-top:8px; }
#time-selection-status:empty { display:none; }
.calendar-grid .block-start-date, #calendar-hours .booked-hour { border-color:var(--lime); }
#calendar-hours .booked-hour[aria-pressed=false] { color:var(--muted); }
.lesson-vouchers { display:grid; gap:16px; }
.lesson-vouchers h1 { margin:0; }
.voucher-back { color:var(--lime); text-decoration:none; }
.lesson-vouchers fieldset { display:grid; gap:10px; padding:14px; }
.lesson-vouchers h2 { font-size:17px; }
.voucher-list { list-style:none; padding:0; margin:8px 0; }
.voucher-list li { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; border-top:1px solid var(--border); }
.voucher-list li span { display:block; font-size:13px; color:var(--muted); }
.voucher-actions { display:flex; flex-wrap:wrap; gap:6px; }
.voucher-share-link { display:block; width:100%; margin-top:8px; padding:10px; border:1px solid var(--border); border-radius:8px; background:var(--background); color:var(--ink); font-size:16px; }
.voucher-actions button { padding:8px 10px; }
.lesson-code { margin-bottom:10px; }
.lesson-code label { display:block; font-size:13px; margin-bottom:5px; }
.booking-footer .lesson-code { margin-bottom: 14px; }
.booking-footer .lesson-code label { margin-bottom: 7px; }
.lesson-code-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.lesson-code input { min-width:0; padding:8px; border-radius:8px; background:var(--background); border:1px solid var(--border); }
.lesson-code-status { color:var(--muted); font-size:13px; margin-top:5px; }
#roster-settings { margin-top:16px; }
.roster-heading { display:flex; align-items:flex-start; gap:12px; }
.roster-heading p { margin:5px 0 0; color:var(--muted); line-height:1.45; }
.roster-icon { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:11px; background:#252e20; color:var(--lime); }
.roster-icon svg, .roster-search-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.roster-request-panel { padding:14px; border:1px solid var(--border); border-radius:12px; background:#101310; }
#facility-request { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:10px; }
.roster-search-label { display:block; margin-bottom:6px; font-size:14px; line-height:18px; font-weight:650; }
.roster-search-icon { position:absolute; inset:13px auto auto 12px; color:var(--muted); pointer-events:none; }
#facility-request input[type=search] { padding-inline-start:39px; border-radius:10px; }
#facility-request input[type=search]:focus-visible, #roster-no-facility:focus-visible { outline:2px solid var(--lime); outline-offset:2px; }
#facility-request button { min-height:46px; margin-top:24px; padding-inline:15px; white-space:nowrap; }
#facility-request button:disabled { background:#252b23; border-color:var(--border); color:#a1ab9d; opacity:1; }
#facility-request .teaching-facility-dropdown { padding:4px; border-radius:11px; background:#1b211b; box-shadow:0 12px 26px #0008; }
#facility-request [role=option] { border:0; border-radius:7px; }
#facility-request [data-facility-results-status] { margin:6px 0 0; }
.teaching-facility-picker { width:100%; min-width:0; }
.teaching-facility-control { position:relative; }
.teaching-facility-picker input[type=search] { display:block; box-sizing:border-box; width:100%; min-height:46px; padding:9px 12px; border:1px solid var(--border); border-radius:8px; background:var(--background); color:var(--ink); font-size:16px; }
.teaching-facility-dropdown { position:absolute; z-index:5; inset-inline:0; top:calc(100% + 4px); max-height:14rem; overflow:auto; overscroll-behavior:contain; border:1px solid var(--border); border-radius:8px; background:var(--background); box-shadow:0 8px 20px #0008; }
.teaching-facility-dropdown [role=option] { min-height:44px; padding:9px 12px; cursor:pointer; overflow-wrap:anywhere; }
.teaching-facility-dropdown [role=option] + [role=option] { border-top:1px solid var(--border); }
.teaching-facility-dropdown [role=option]:is(:hover,.active,[aria-selected=true]) { background:#263022; }
.teaching-facility-dropdown small { display:block; color:var(--muted); }
.teaching-facility-dropdown [data-facility-empty] { margin:0; padding:10px 12px; }
[data-facility-results-status] { color:var(--muted); font-size:14px; }
[data-facility-results-status]:empty { display:none; }
#roster-settings button:disabled { opacity:.55; }
.facility-listings, #facility-admin { padding-top:14px; border-top:1px solid var(--border); }
.facility-listings h3, #facility-admin h3 { font-size:16px; margin:0 0 10px; }
#my-facilities, .facility-review-queue { display:grid; gap:8px; list-style:none; padding:0; margin:0; }
.facility-listing { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 14px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--background); }
.facility-listing strong { overflow-wrap:anywhere; }
.facility-listing-status { padding:4px 9px; border-radius:999px; background:var(--surface); color:var(--muted); font-size:12px; }
.facility-listing-status[data-status=approved] { color:var(--lime); background:var(--green); }
.facility-listing-status[data-status=pending] { color:#f7d98b; background:#33291a; }
.facility-review p, .facility-review-queue, #no-facility-listings, #roster-feedback { color:var(--muted); font-size:13px; }
.facility-review strong { color:var(--ink); font-size:15px; }
.facility-review-actions { display:flex; gap:6px; flex-wrap:wrap; }
.facility-review-actions button { padding:8px 10px; min-height:40px; }
#roster-feedback:empty { display:none; }
#roster-feedback, #coach-facility-pending, #no-facility-listings { margin:0; padding:11px 12px; border-radius:10px; background:#101310; color:var(--muted); font-size:14px; line-height:1.45; }
#coach-facility-pending { color:#f7d98b; }
#no-facility-listings { border:1px dashed var(--border); }
@media (max-width:540px) {
  #facility-request { grid-template-columns:1fr; }
  #facility-request button { width:100%; margin-top:0; }
}

:is(#student-preview-banner,#facility-preview-banner):not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:12px; margin-bottom:14px; }
:is(#student-preview-banner,#facility-preview-banner) p { color:var(--muted); font-size:13px; }
:is(#student-preview-banner,#facility-preview-banner) strong { color:var(--ink); font-size:15px; }
:is(#student-preview-banner,#facility-preview-banner) a { padding:8px 10px; text-decoration:none; }

.profile-settings [hidden] { display: none !important; }
#profile-load-status:empty { display:none; }

.promo-controls{display:grid;gap:.8rem;margin:1rem 0}
.promo-switch{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;border:1px solid #394037;background:#141714;border-radius:1rem;padding:4px}
.promo-switch>span{position:absolute;z-index:-1;inset:4px auto 4px 4px;width:calc(50% - 4px);background:#d5fb70;border-radius:.78rem;transition:transform .2s ease}
.promo-switch.coach-active>span{transform:translateX(100%)}
.promo-switch button{background:transparent;border:0;padding:.8rem .25rem;color:#bdc4ba;font:inherit;font-weight:700;cursor:pointer}
.promo-switch button[aria-pressed=true]{color:#141913}
.promo-search{display:flex;align-items:center;gap:.6rem;padding:0 .9rem;border:1px solid #394037;border-radius:.85rem;background:#161916}
.promo-search:focus-within{outline:2px solid #d5fb70}
.promo-search svg{width:20px;fill:none;stroke:#a7b09f;stroke-width:1.8}
.promo-search input{background:transparent;border:0;outline:none;color:white;min-width:0;width:100%;font:inherit;padding:.8rem 0}
.promo-board{columns:2 17rem;column-gap:1rem}
.promo-tile{break-inside:avoid;display:inline-block;width:100%;margin:0 0 1rem;border-radius:1.15rem;border:1px solid #373e34;overflow:hidden;background:#151815}
.promo-art{position:relative;background:#20251e}
.promo-art:not(:has(img)){min-height:5rem}
.promo-art img{width:100%;height:auto;max-height:32rem;object-fit:contain;display:block}
.promo-art strong{position:absolute;left:.85rem;bottom:.85rem;border-radius:2rem;background:#d5fb70;color:#172010;padding:.3rem .75rem;font-weight:800}
.promo-copy{padding:1rem}.promo-copy p{margin:0 0 .65rem;color:#bbc3b6;overflow-wrap:anywhere}.promo-copy h2{font-size:1.45rem;line-height:1.12;margin:0 0 .7rem;overflow-wrap:anywhere}
.promo-copy .details{display:inline-flex;gap:.5rem;color:#d5fb70}
.promo-qr-button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:44px;padding:.55rem 1rem;border-radius:999px;background:#d5fb70;color:#18200e;line-height:1.2;font-family:inherit;font-size:.96rem;font-weight:700;text-decoration:none}
.promo-qr-button svg{width:1.15rem;height:1.15rem;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linejoin:round;stroke-linecap:round}
.promo-qr-button:hover{background:#e2ff99}
.promo-qr-button:active{background:#c4ea62}
.promo-qr-button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.promo-switch>span{transition:none}}

.promo-heading #map-toggle{justify-self:end;display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.45rem .9rem;border:1px solid #535e49;border-radius:999px;color:#d5fb70;background:#20261d;cursor:pointer}
.promo-heading #map-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
body[data-page=promotions] .map-panel{position:relative;top:0;margin-bottom:1rem}
body[data-page=promotions] #lesson-map{height:clamp(260px,46vh,480px)}
body[data-page=promotions] .map-headshots .promo-pin{width:54px;height:32px;border-radius:12px;background:#d5fb70;color:#15200c;border:2px solid #192314;font-weight:800}

.promo-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.promo-heading h1{margin:0}.promo-heading #map-toggle{position:static;flex:none;white-space:nowrap}
#board-status:empty{display:none}
.promo-heading #map-toggle[aria-pressed=true]{border-color:#b2d563;background:#29331f}
.promo-switch button:focus-visible,.promo-heading button:focus-visible{outline:2px solid white;outline-offset:2px}
.sport-picker{display:flex;align-items:center;gap:.65rem;justify-content:center;font-weight:650;margin:.65rem 0;color:#cbd4c7}.sport-picker select{font:inherit;background:#1a2019;color:#dcfa88;border:1px solid #454e40;padding:.5rem .75rem;border-radius:.7rem;max-width:100%}

#directory-hero h1{font-size:clamp(36px,5vw,72px);letter-spacing:-.055em;line-height:1.06;text-wrap:balance}
#directory-hero .search{display:grid;gap:12px;max-width:470px;margin:22px auto 0}
.home-sports{margin:0;border:0;padding:0;min-width:0}
.home-sports legend{margin:0 0 8px;padding:0;color:#bec6bc;font-size:.84rem;font-weight:600}
.home-sports>div{display:flex;gap:3px;padding:3px;border:1px solid #343a34;border-radius:12px;background:#0f120f}
.home-sports label{position:relative;flex:1 1 auto;cursor:pointer}
.home-sports input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.home-sports span{display:grid;place-items:center;min-height:44px;padding:0 3px;border-radius:8px;font-size:clamp(.74rem,2.9vw,.9rem);font-weight:600;color:#c4cbc3}
.home-sports input:checked+span{background:#303c23;color:var(--lime)}
.home-sports input:focus-visible+span{outline:2px solid var(--lime)}
#directory-hero .locate{justify-self:center;min-height:44px;padding:4px 12px;color:#cbd6c5}
.search-box input[role=combobox]:focus-visible{outline:none}
.search-box:has(input[role=combobox]:focus){border-color:#848e84}
#directory-hero .hero-inner{overflow:visible}
#directory-hero:has(.directory-suggestions:not([hidden])){position:relative;z-index:20}
.search-box:has(.directory-suggestions:not([hidden])){z-index:10}
.directory-suggestions{text-align:left}
@media(max-width:700px){
 #directory-hero .hero-image{display:none}
 #directory-hero .hero-inner{display:block;padding:0;background:linear-gradient(155deg,#1b211a,#101310 68%)}
 #directory-hero .hero-content{padding:32px clamp(16px,4vw,24px) 20px}
 #directory-hero .search{margin-top:26px;gap:16px}
 #directory-hero .search-box input{font-size:16px}
 #directory-hero .hint:empty{display:none}
}
#saved-controls:not([hidden]){display:grid;gap:12px;margin:14px 0}
.facility-save-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
#results:has(#saved-controls:not([hidden])) #facility-results>:is(h3,p){display:none}
.directory-kind{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid #394037;background:#141714;border-radius:1rem;margin:.75rem 0;width:100%}
.directory-kind a{display:grid;place-items:center;min-height:44px;border-radius:.75rem;color:#bdc4ba;text-decoration:none;font-weight:700}
.directory-kind a[aria-current=page]{background:#d5fb70;color:#141913}
.home-sports>div{overflow-x:auto}
.home-sports label{flex-shrink:0}
.voucher-discount{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--border);border-radius:12px}
.voucher-discount label{position:relative;cursor:pointer}
.voucher-discount input{position:absolute;inset:0;opacity:0;cursor:pointer}
.voucher-discount span{display:grid;place-items:center;min-height:44px;text-align:center;border-radius:8px;color:var(--muted)}
.voucher-discount input:checked+span{background:var(--lime);color:var(--green);font-weight:700}
.voucher-discount input:focus-visible+span{outline:2px solid white;outline-offset:-2px}
#voucher-tools:not([hidden]){display:grid;gap:12px;border:1px solid var(--border);border-radius:16px;padding:14px}
#voucher-tools h2{margin:0}
#voucher-create .voucher-board-option{display:flex;align-items:center;gap:10px;min-height:44px;line-height:1.35;cursor:pointer}
#voucher-create .voucher-board-option input{width:18px;height:18px;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--lime)}
.lesson-vouchers .reward-toggle{position:relative;min-width:76px;min-height:44px;border-radius:999px;padding:0 10px 0 31px;background:#252a25;color:var(--ink);text-align:right}
.reward-toggle::before{content:"";position:absolute;inset:50% auto auto 8px;transform:translateY(-50%);width:18px;height:18px;border-radius:50%;background:currentColor}
.lesson-vouchers .reward-toggle[aria-checked=true]{background:var(--lime);color:var(--green);padding:0 31px 0 10px;text-align:left}
.reward-toggle[aria-checked=true]::before{left:auto;right:8px}

.reward-state-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.reward-state-row .reward-toggle{width:auto;flex:none}

/* Keep iPhone form focus at the current zoom level, including fields in sheets. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"], [type="radio"], [type="button"], [type="submit"], [type="reset"], [type="range"], [type="file"], [type="color"]),
  textarea,
  select,
  [contenteditable="true"] {
    font-size: max(16px, 1rem) !important;
  }
}

#password-login .primary { width: 100%; justify-content: center; text-align: center; }

#password-login [data-account-mode="register"] {
  background: #252c20;
  color: #d5fa68;
  box-shadow: inset 0 0 0 1px #52603e;
}

.welcome-card .confirm-instructions { margin: 0 0 24px; font-weight: 600; line-height: 1.55; }
#resend-confirmation { display: block; margin: 8px auto 0; min-height: 44px; text-decoration: underline; }
#resend-status:empty { display: none; }

#student-account:not([hidden]), #student-preferences:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
#student-account, #student-account fieldset, #student-account label {
  min-width: 0;
  box-sizing: border-box;
}
#student-account fieldset { margin: 0; padding: 0; border: 0; }
#student-account legend { max-width: 100%; padding: 0; margin: 0 0 10px; }
#student-account > label, #student-account legend { font-size: 15px; font-weight: 650; }
#student-account > label { gap: 10px; }
#student-account small { font-size: 13px; white-space: nowrap; }
#student-account input[name="name"], .birthday-pickers select { min-height: 46px; }
.birthday-pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#student-account .birthday-pickers select { padding-inline: 6px; }
#interest-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#interest-choices label {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 10px;
  background: #1c211c; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
#interest-choices label:has(:checked) { border-color: var(--lime); color: var(--lime); }
#interest-choices input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--lime); }
#student-account > button { width: 100%; min-height: 46px; text-align: center; }
.welcome-card:has(#student-account:not([hidden])) #welcome-status:empty { display: none; }

#nearby-switch { margin-bottom: 16px; }
#nearby-switch[hidden], #results > .section-top[hidden] { display: none; }
#results:has(#nearby-switch:not([hidden])) #facility-results > :is(h3,p) { display: none; }
#results:has(#nearby-switch:not([hidden])) #facility-results { margin-top: 0; padding-top: 0; border-top: 0; }

#directory-hero .home-sports span { font-size: clamp(.9375rem, 4vw, 1.0625rem); }

#sport-filter.home-sports span { font-size:clamp(1rem,4vw,1.125rem); min-height:46px; }

[hidden]:not([hidden="until-found"]) { display: none !important; }

html[data-native-tabs] .bottom-nav { display: none !important; }
html[data-native-tabs] body:has(.bottom-nav) { padding-bottom: 12px; }
html[data-native-stable-viewport] body:has(.bottom-nav:not([hidden])) { padding-bottom: 68px; }
html[data-native-stable-viewport] .messages-layout[data-thread-open] .conversation-footer {
  padding-bottom: var(--native-composer-height, 60px);
}

button, a, label, select, summary, input[type="button"], input[type="submit"] { touch-action: manipulation; }

@media (pointer: coarse) {
  :where(button:enabled, .bottom-nav a, a.primary, a.details, .account-panel summary):active {
    opacity: .78;
  }
}

#picture-preview { width: 112px; height: 112px; margin: 4px auto 20px; font-size: 36px; }
.student-photo-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.student-photo-actions #remove-picture { min-height: 44px; background: transparent; color: var(--muted); }
.student-photo-actions #remove-picture:hover { color: #ffada3; border-color: #8e514a; }
.account-panel {
  min-width: 0;
  margin-block: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.account-panel summary { cursor: pointer; list-style: none; padding-inline: 16px; }
.account-panel summary::-webkit-details-marker { display: none; }
.account-panel summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-left: auto;
  margin-right: 3px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.account-panel[open] summary::after { transform: rotate(225deg); }
.account-panel[open] summary { background: transparent; }
.account-panel summary:focus-visible { outline: 2px solid var(--muted); outline-offset: -3px; }
.account-panel .coach-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.account-panel .coach-form label { min-width: 0; gap: 7px; }
.account-panel .coach-form input { min-height: 44px; font-size: 16px; }
.account-panel .coach-form p { margin: 0; font-size: 14px; color: var(--muted); }
.account-panel .coach-form [role=status]:empty { display: none; }
.account-submit {
  justify-self: start;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  font-weight: 650;
}
.account-submit:disabled { opacity: .65; }

#save-student-profile { width:100%; min-height:46px; margin-top:20px; }

.account-panel[open] ~ #save-student-profile { background: var(--surface); border-color: var(--border); color: var(--ink); }

.subscription-page section { margin-top: 24px; }
.subscription-page .card { padding: 18px; }
.subscription-page h2 { margin-block: 0 12px; font-size: 20px; }
.subscription-page h3 { margin: 0; font-size: 18px; }
.plan-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-list { display: grid; gap: 12px; }
.plan-card { display: grid; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.plan-card p { margin: 0; color: var(--muted); white-space: pre-line; }
.plan-card button { min-height: 44px; justify-self: start; }
.plan-cadence { color: var(--lime); }
#subscription-status:empty { display: none; }

#status:empty, #coach-roster-status:empty, #facility-status:empty { margin: 0; }

.coach-form .teaching-facilities-choice { padding: 0; border: 0; }
#facility-request[hidden] { display: none; }
#instructor-account > .primary { min-height: 44px; }
#instructor-account input[type=checkbox] { min-height: auto; }
.roster-choice { display:flex; align-items:center; gap:9px; min-height:44px; margin-top:10px; color:var(--muted); font-size:14px; cursor:pointer; }
#facility-request[hidden] + .roster-choice { margin-top:0; }
#roster-no-facility { flex:none; width:18px; height:18px; margin:0; accent-color:var(--lime); }

#facility-request-groups { display:grid; gap:14px; }
#facility-request-status:empty { margin:0; }
#facility-requests-unclaimed[hidden] { display:none; }
#facility-requests-unclaimed .details { align-self:flex-start; margin-top:8px; text-decoration:none; }

body[data-page=coach] {
  --profile-safe-top: max(env(safe-area-inset-top, 0px), var(--native-profile-top, 0px));
  --profile-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--native-profile-bottom, 0px));
  overflow-anchor: none;
}
html[data-native-stable-viewport] body[data-page=coach] {
  --profile-safe-top: 0px;
  --profile-safe-bottom: 0px;
}
body[data-page=coach]:has(.bottom-nav),
html[data-native-tabs] body[data-page=coach]:has(.bottom-nav) { padding-bottom: calc(102px + var(--profile-safe-bottom)); }
body[data-page=coach] dialog.booking-dialog {
  max-height: calc(100dvh - 22px - 2 * max(var(--profile-safe-top), var(--profile-safe-bottom)));
}
.coach-page-bar { position: absolute; z-index: 1; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: min(100% - 28px, 840px); padding-block: calc(14px + var(--profile-safe-top)) 14px; }
.coach-page-bar > :first-child, .coach-page-bar .save { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff38; border-radius: 14px; background: #101611dc; }
.coach-page-bar > :first-child { justify-self: start; font-size: 23px; }
.coach-page-bar .save { position: static; justify-self: end; }
.coach-page-bar .brand { color: var(--lime); }
.coach-page { display: flow-root; width: min(100%, 880px); }
#coach-page-status { padding: calc(90px + var(--profile-safe-top)) 16px 0; }
#coach-page-status[data-coach-loading] { animation: show-coach-loading 0s 350ms backwards; }
@keyframes show-coach-loading { from { visibility:hidden; } to { visibility:visible; } }
.coach-page-hero { display: grid; justify-items: center; gap: 9px; padding: calc(76px + var(--profile-safe-top)) 20px 26px; text-align: center; background: linear-gradient(150deg,#374732,#121813 75%); }
.coach-page-golf { background: linear-gradient(180deg,#10171152,#101711f0),url(/course-mobile.webp?v=6e27c3b823129fd1ffcd) center 58% / cover; }
.coach-page-portrait { display: grid; place-items: center; width: 128px; height: 128px; object-fit: cover; object-position: center 28%; border-radius: 50%; border: 3px solid #d5fa6ba6; background: #252c20; color: var(--lime); font: 700 34px/1 var(--display); }
.coach-page-hero .tags { justify-content: center; margin: 4px 0 0; }
.coach-page-hero h1 { margin: 4px 0 0; font: 750 clamp(29px,8vw,44px)/1.1 var(--display); overflow-wrap: anywhere; }
.coach-page-hero p { margin: 0; color: #e1e7de; font-size: 15px; overflow-wrap: anywhere; }
.coach-page-location { display: flex; align-items: center; gap: 6px; }
.coach-page-location svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; }
.coach-page-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0 8px; border-block: 1px solid var(--border); background: #1a2119; }
.coach-page-stats div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 4px; padding: 15px 4px; text-align: center; }
.coach-page-stats div + div { border-inline-start: 1px solid var(--border); }
.coach-page-stats dt { color: var(--muted); font-size: 12px; }
.coach-page-stats dd { margin: 0; font-size: clamp(14px,4.2vw,21px); font-weight: 750; }
.coach-page-stats dd span { color: var(--lime); }
.coach-page-section { margin-inline: 16px; padding: 20px 3px; border-bottom: 1px solid var(--border); }
.coach-page-section h2 { margin: 0 0 8px; font-size: 20px; }
.coach-page-section p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.coach-page-section a { display: inline-block; margin: 8px 14px 0 0; color: var(--lime); overflow-wrap: anywhere; }
.coach-page-plans .plan-list { margin-top: 12px; }
.coach-page-plans .plan-card { padding: 16px; }
.coach-page-plans h3 { margin: 0; font-size: 17px; }
.coach-page-plans .coach-plan-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 4px 0 0;
  border-radius: 10px;
  color: var(--green);
  font-size: 16px;
  text-align: center;
  text-decoration: none;
}
.coach-page-plans .coach-plan-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.coach-page-plans .coach-plan-link:active { filter: brightness(.9); }
.subscription-page .plan-card { scroll-margin-top: 80px; }
.coach-page-actions { position: fixed; z-index: 100; inset: auto 0 0; display: flex; justify-content: center; gap: 10px; padding: 12px max(14px,calc((100vw - 680px)/2)) calc(12px + var(--profile-safe-bottom)); border-top: 1px solid var(--border); background: #151815; }
.coach-page-actions > :is(a,button) { flex: 1; min-width: 0; display: grid; place-items: center; min-height: 46px; padding: 8px; text-align: center; font-size: 14px; }

.coach-page-actions > .primary { margin: 0; border: 1px solid transparent; border-radius: 10px; font: 750 14px/1.25 var(--display); text-decoration: none; }
.coach-page-actions > .primary:hover { background: #c6ed66; }
@media (min-width: 620px) {
  .coach-page-golf { background-image: linear-gradient(180deg,#10171152,#101711f0),url(/course.webp?v=dde1afbdcc70c855975f); }
}

 .online-review-card { position: relative; }
.online-review-card .open-online-review { grid-column: 1 / -1; order: 2; display: flex; align-items: center; text-decoration: none; justify-content: center; color: var(--lime); }
.open-online-review::after { content: ""; position: absolute; inset: 0; }
.online-review-card :is(.lesson-coach-link,.lesson-history-footer a) { position: relative; z-index: 1; }
#online-review-detail { box-sizing: border-box; inset: 0; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; border-radius: 0; background: #101110; color: var(--ink); }
#online-review-detail header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: max(12px,env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid #303330; }
#review-detail-coach { justify-self: center; }
#online-review-detail header button { width: 44px; height: 44px; border-radius: 50%; }
#online-review-detail section { max-width: 680px; margin: auto; padding: 24px 18px max(28px,env(safe-area-inset-bottom)); }
#online-review-detail h1 { font-size: 1.55rem; margin: 0; }
#review-detail-date { color: var(--muted); }
#online-review-detail h2 { margin-top: 24px; font-size: 1.1rem; }
#online-review-detail video { display: block; width: 100%; max-height: 52dvh; background: #080908; border-radius: 12px; margin: 10px 0 18px; }

#online-review-detail { background: #000; color: #fafafa; }
#online-review-detail header button { background:#141414; color:white; border:1px solid #333; border-radius:50%; }
#online-review-detail section { padding-top:18px; }
#online-review-detail .package-name { color:#aaa; margin:2px 0 16px; }
.review-dates { display:flex; justify-content:space-between; gap:10px; border-top:1px solid #262626; padding:16px 0 20px; color:#bbb; font-size:.69rem; text-transform:uppercase; }
.review-dates div:last-child { text-align:right; }
.review-dates time { display:block; }
.review-actions,.review-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.review-actions button { background:#20232b; color:#fff; padding:9px 4px; border-radius:8px; }
#review-action-status:empty { display:none; }
.review-tabs { display:flex; gap:18px; border-bottom:1px solid #292929; margin-top:12px; }
.review-tabs button { background:none; border:0; border-radius:0; padding:12px 0; color:#ccc; }
.review-tabs [aria-pressed=true] { color:white; box-shadow:inset 0 -3px var(--lime); }
#online-review-detail h2 { text-transform:uppercase; margin:20px 0 14px; font-size:.95rem; }
.review-tile { overflow:hidden; border-radius:12px; background:#1c1d1d; }
#online-review-detail .review-tile video { display:block; width:100%; aspect-ratio:1; object-fit:contain; border-radius:0; margin:0; }
.review-tile button { display:block; width:100%; background:transparent; color:var(--lime); padding:9px; }

.coach-page-section .directions-button { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; border:1px solid #849b58; border-radius:10px; font-weight:750; text-decoration:none; }
.tab-badge[data-badge="lessons"]:not([hidden]) { background:#ce2734; color:white; }
.incoming-lesson-notice { position:fixed; top:max(12px,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); z-index:9999; width:max-content; max-width:90vw; padding:12px 18px; background:#252923; border:1px solid #849b58; border-radius:12px; color:var(--lime); font-weight:700; }

#student-note-label:not([hidden]) { display:grid; gap:8px; margin-top:16px; font-weight:700; }
#student-lesson-note { width:100%; box-sizing:border-box; padding:12px; background:#141614; color:var(--ink); border:1px solid var(--border); border-radius:10px; font:400 16px/1.45 var(--display); }
body dialog.booking-dialog[data-note-editing] {
  top: var(--note-dialog-top);
  bottom: auto;
  margin-block: 0;
  height: var(--note-dialog-height);
  max-height: none;
}
dialog[data-note-editing] .review-body { padding-bottom: calc(8px + var(--note-keyboard-overlap, 0px)); }

.coach-page-hero:has(.coach-cover-image) { position:relative; isolation:isolate; background:#111; }
.coach-cover-image { position:absolute; inset:0; z-index:-1; width:100%; height:100%; object-fit:cover; opacity:.52; }

.swipe-row { position:relative; }
.swipe-row > .swipe-delete { position:absolute; inset-inline-end:0; top:50%; transform:translateY(-50%); padding:10px 14px; border:0; border-radius:8px; background:#ac2638; color:white; z-index:2; opacity:0; pointer-events:none; }
.swipe-open > .swipe-delete,.swipe-delete:focus-visible { opacity:1; pointer-events:auto; }
@media (hover:hover) { .swipe-row:hover > .swipe-delete { opacity:1; pointer-events:auto; } }

.swipe-row { overflow:hidden; touch-action:pan-y; --swipe-offset:0px; }
.swipe-row.swipe-open { --swipe-offset:-64px; }
.swipe-row > :not(.swipe-delete) { transform:translateX(var(--swipe-offset)); transition:transform .09s ease-out; }
.swipe-row.swipe-dragging > * { transition:none; }
.swipe-row > .swipe-delete { display:grid; place-content:center; justify-items:center; gap:1px; right:4px; width:48px; height:48px; padding:0; border-radius:50%; background:#df3044; font-size:10px; }
.swipe-delete svg { width:21px; height:21px; }
.swipe-dragging > .swipe-delete { opacity:1; transform:translate(calc(64px + var(--swipe-offset)),-50%); }

html:not([data-native-tabs]) #online-review-detail section { padding-bottom:calc(108px + env(safe-area-inset-bottom,0px)); }

#online-review-detail .review-preview { position:relative; }
#online-review-detail .review-preview video { object-fit:cover; }
#online-review-detail .review-preview video[controls] { object-fit:contain; }
.review-preview .review-play:not([hidden]) { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:44px; height:44px; padding:0; border:2px solid white; border-radius:50%; color:white; background:#0006; }
.review-preview .review-play[hidden] { display:none; }
.review-tile-actions { display:grid; grid-template-columns:1fr 44px; }
.review-tile-actions button { min-height:44px; }
#review-options { border-left:1px solid #383838; }
#review-download:not([hidden]) { display:block; padding:10px; text-align:center; color:var(--lime); }
#online-review-detail [data-review-panel=videos] h2:not(:first-child) { margin-top:36px; }
.review-empty { color:var(--muted); font-size:.9rem; }

/* Keep the lesson detail and the persistent tab bar in separate layers. */
#online-review-detail[open] { position:fixed; z-index:1050; overflow-y:auto; overscroll-behavior:contain; }
body:has(#online-review-detail[open]) { overflow:hidden; }
body:has(#online-review-detail[open]) > :is(header, main) { visibility:hidden; }

.booking-policy { display:grid; gap:6px; margin:16px 0 10px; padding:12px 14px; border:1px solid var(--border); border-radius:10px; font-size:.875rem; line-height:1.5; }
.booking-policy span { color:var(--muted); }

.in-person-booking-footer .booking-total { margin-bottom: 14px; }
.in-person-booking-footer .booking-request { margin-bottom: 12px; }

#availability-status { margin: 18px 0 0; }
#availability-status:empty { margin: 0; }
#availability-status[data-saved] {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--lime);
  text-align: center;
  font-size: .9375rem;
  font-weight: 650;
}

.card .coach-card-price { margin: 0 0 10px; color: var(--lime); font-weight: 700; }

html, body { touch-action: pan-x pan-y; }
@supports (-webkit-touch-callout: none) {
  /* Keep Safari from magnifying smaller fields when the keyboard opens. */
  input:not([type="checkbox"], [type="radio"], [type="range"]), textarea, select {
    font-size: 16px !important;
  }
}

.plan-editor-header, .plan-form-actions, .plan-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.plan-editor-header { justify-content: space-between; margin-bottom: 12px; }
.plan-editor-header h2 { margin: 0; scroll-margin-top: 16px; }
.plan-form-actions { justify-content: flex-end; }
.plan-form-actions button, .plan-editor-header button { min-height: 44px; }
#plan-form { gap: 16px; }
#plan-form label { font-size: 14px; gap: 7px; }
#plan-form [hidden] { display: none; }
#plan-form input, #plan-form select, #plan-form textarea { font-size: 16px; min-height: 44px; }
#plan-form-status { margin: 0; }
#plan-form-status:empty { display: none; }
#plan-preview { margin-top: 14px; }
#plan-preview h3 { margin-bottom: 8px; }
.plan-card .plan-lesson-count { color: var(--ink); font-weight: 700; }
.plan-benefits { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.plan-benefits li::marker { color: var(--lime); }
@media (max-width: 360px) {
  #plan-form .plan-fields { grid-template-columns: 1fr; }
  .plan-form-actions button { flex: 1 1 100%; }
}

.coach-setup { max-width: 680px; padding-bottom: 32px; }
.coach-setup h1 { margin: 12px 0 8px; letter-spacing: -.045em; }
.coach-setup > .settings-intro { margin: 0 0 22px; }
.coach-setup .coach-form:not([hidden]) { gap: 16px; }
.coach-setup .profile-edit-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(16px,4vw,24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #151815;
}
.coach-setup .profile-edit-section h2 { margin: 0; font: 700 20px/1.2 var(--display); }
.profile-photo-grid, .profile-detail-grid { display: grid; gap: 10px; }
.coach-setup .coach-form .profile-photo-control {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101310;
  cursor: pointer;
}
.coach-setup .profile-photo-control:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.coach-setup .profile-photo-control input[type=file] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-photo-preview { display: grid; place-items: center; width: 62px; height: 46px; overflow: hidden; border-radius: 7px; background: #252d20; color: var(--lime); font-size: 22px; }
.profile-photo-preview > * { grid-area: 1 / 1; }
.profile-photo-preview img { z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview.profile-headshot { width: 46px; margin-inline: auto; border-radius: 50%; }
.profile-photo-copy { display: grid; gap: 3px; }
.profile-photo-copy strong { font-size: 15px; }
.profile-photo-copy small { font-size: 13px; }
.profile-photo-action { color: var(--lime); padding-inline: 4px; font-size: 14px; }
.coach-setup .coach-form label { font-size: 14px; }
.coach-setup .coach-form :is(input:not([type=file]),textarea,select) { min-height: 46px; padding: 10px 12px; font: 500 16px/1.35 var(--display); }
.coach-setup .coach-form textarea { resize: vertical; }
.coach-setup .coach-form select {
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position: calc(100% - 17px) 50%,calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.profile-save-actions { display: grid; gap: 8px; }
.profile-save-actions .primary { min-height: 48px; border-radius: 12px; font-size: 16px; }
#coach-save-status, .coach-setup #coach-visibility { margin: 0; }
#coach-save-status:empty, .coach-setup #coach-status:empty { display: none; }
#coach-unpublish { justify-self: center; min-height: 44px; padding-inline: 12px; background: transparent; border: 0; color: var(--muted); }
.coach-setup #roster-settings { margin-top: 20px; }
.coach-setup #facility-request { margin-top: 0; }
@media (min-width: 520px) {
  .profile-detail-grid { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
}

.coach-review-list { display: grid; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.coach-review-list li { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.coach-review-stars { color: var(--lime); letter-spacing: .08em; }

#student-picture[hidden] { display: none; }
#choose-student-picture { min-height: 44px; }

body[data-page=directory]:has(#saved-controls:not([hidden])) > .top {
  margin-top: 8px;
}

.lesson-history-card .lesson-booking-policy {
  display: grid;
  gap: 4px;
  margin-block: 5px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lesson-booking-policy span { color: var(--muted); }
.lesson-request-actions .lesson-cancel:disabled { opacity: .55; cursor: default; }

.identity-panel { position: relative; }
.identity-profile-link:not([hidden]) { position: absolute; inset: 0; border-radius: inherit; }
.identity-profile-link:focus-visible { outline-offset: -3px; }
.identity-panel:has(.identity-profile-link:not([hidden])) { padding-inline-end: 40px; }
.identity-profile-link:not([hidden])::after {
  content: '';
  position: absolute;
  inset-inline-end: 20px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

.booking-success .booking-success-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-top: 14px;
  text-decoration: none;
}
.lesson-history-card .booking-cancelled { background: #432522; color: #ffada3; }

/* Account tools share the same spacing and action styles. */
:is(.profile-settings, .coach-setup) {
  --settings-gap: 16px;
  padding-bottom: 24px;
}
:is(.profile-settings, .coach-setup) > h1 {
  margin-block: 14px 24px;
  font: 750 clamp(26px, 6vw, 36px)/1.15 var(--display);
  letter-spacing: -.035em;
}
.profile-settings > :is(.identity-panel, .settings-list, .profile-preview-link, #student-preview-banner, #facility-preview-banner) {
  margin-block: 0 var(--settings-gap);
}
.profile-settings .settings-row { min-height: 60px; padding: 13px 16px; }
.profile-settings .settings-row > span { min-width: 0; overflow-wrap: anywhere; }
.profile-settings .settings-row i { flex: none; }
.profile-settings .settings-row:focus-visible { outline-offset: -3px; }
.profile-settings .profile-preview-link {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.profile-settings .profile-preview-link:hover,
.identity-panel:has(.identity-profile-link:not([hidden]):hover) { border-color: #526347; }
:is(.profile-settings, .coach-setup) :is(.primary, .details):not([hidden]) {
  min-height: 44px;
  border-radius: 10px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
:is(.profile-settings, .coach-setup) :is(.actions, .plan-form-actions, .plan-card-actions) {
  flex-wrap: wrap;
  gap: 10px;
}
:is(.profile-settings, .coach-setup) .coach-form > fieldset {
  padding: 14px;
  border-radius: 12px;
}
:is(.profile-settings, .coach-setup) .coach-form > :is(.primary, .actions) { margin-top: 4px; }
:is(.profile-settings, .coach-setup) button:disabled { opacity: .58; }

#support-status:empty { display: none; }
#support-inbox { margin-top: 28px; }
#support-heading { margin-bottom: 12px; }
#support-messages .details { justify-self: start; }

.coach-rewards-list { display: grid; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.coach-rewards-list li { display: grid; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.coach-rewards-list strong { color: var(--lime); }
.coach-rewards-list span { color: var(--muted); }

.pt-facility-cover { display:grid; place-items:center; background:linear-gradient(135deg,#263720,#111a12); color:var(--lime); }
.pt-facility-cover svg { width:48px; height:48px; }

.pt-facility-cover { position:relative; overflow:hidden; }
.pt-facility-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

.messages-layout[data-thread-open]:has(#message-compose[hidden]) #thread-search-control { visibility:hidden; }
#conversation-name:focus:not(:focus-visible), #messages-title:focus:not(:focus-visible) { outline:none; }

#dismiss-message-keyboard { min-height:44px; padding:0; font-size:13px; }

.swipe-back-active:not(body),
body.swipe-back-active > :is(header,main,section,footer,nav,div) {
  translate: var(--swipe-back-x, 0px) 0;
  will-change: translate;
}
.swipe-back-settling:not(body),
body.swipe-back-settling > :is(header,main,section,footer,nav,div) { transition: translate var(--swipe-back-duration, 145ms) ease-out; }
dialog.swipe-back-active::backdrop { background: #0003; }
body:has(#online-review-detail.swipe-back-active) > :is(header, main) { visibility: visible; }
body:has(main.swipe-back-active) > main[hidden] {
  display: block !important;
  position: absolute;
  inset-inline: 0;
  z-index: 0;
}
main.swipe-back-active { position: relative; z-index: 1; background: var(--background); }
@media (prefers-reduced-motion: reduce) {
  .swipe-back-settling:not(body),
  body.swipe-back-settling > :is(header,main,section,footer,nav,div) { transition: none; }
}

html:has(body.swipe-back-active, main.swipe-back-active, .message-conversation.swipe-back-active) { overflow-x:clip; }

@media (max-width:620px) {
  html.profile-swipe-page,
  html.profile-swipe-page body,
  html.profile-swipe-page main { touch-action:pan-y pinch-zoom; }
}

.swipe-profile-preview {
  color: var(--ink);
  font: 15px -apple-system, system-ui, Arial, sans-serif;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--background);
  pointer-events: none;
  z-index: 10000;
  clip-path: inset(0 calc(100% - var(--swipe-back-x, 0px)) 0 0);
}
@media (prefers-reduced-motion: no-preference) {
  .swipe-profile-preview:has(+ body.swipe-back-settling) {
    transition: clip-path var(--swipe-back-duration, 145ms) ease-out;
  }
}
.swipe-profile-preview .settings-row { min-height: 60px; }

.swipe-profile-aligned {
  box-sizing: border-box;
  position: absolute;
  max-width: none;
  margin: 0 !important;
}

@media (max-width:620px) {
  .messages-page:has(.message-conversation.swipe-back-active) :is(.messages-titlebar,.messages-inbox) { visibility: visible; }
}

body[data-facility-preview] [aria-label="Account actions"] { display:none; }

/* Facility dashboard and instructor review */
[data-facility-preview] #profile-identity,
[data-facility-preview] [aria-label="Profile and activity"],
[data-facility-preview] [aria-label="Account actions"] { display:none; }

[data-facility-profile] { max-width:860px; }
[data-facility-profile] > h1 { margin-block:14px 16px; }
#facility-dashboard { display:grid; gap:14px; margin-bottom:14px; min-width:0; }
.facility-dashboard-header {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:clamp(16px,4vw,24px);
  border:1px solid #353d33;
  border-radius:18px;
  background:linear-gradient(110deg,#21291e,#151815 75%);
}
.facility-dashboard-header h2 { margin:6px 0; font:750 clamp(1.3rem,4.8vw,1.9rem)/1.12 var(--display); letter-spacing:-.035em; }
.facility-dashboard-header p, .facility-dashboard-panel p { margin:0; color:var(--muted); }
.facility-dashboard-badge {
  padding:6px 10px;
  border-radius:30px;
  background:#30342e;
  color:#d7dfd2;
  font-size:.8rem;
  font-weight:700;
}
.facility-dashboard-badge[data-status="pending"],
.facility-dashboard-badge[data-status="documents"] { background:#40371f; color:#ffe1a0; }
.facility-dashboard-picker { display:grid; gap:6px; font-size:.84rem; color:var(--muted); }
.facility-dashboard-picker select { width:100%; }
.facility-dashboard-tabs {
  display:grid;
  grid-auto-columns:minmax(0,1fr);
  grid-auto-flow:column;
  gap:3px;
  padding:4px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#141714;
}
.facility-dashboard-tabs button {
  display:grid;
  justify-items:center;
  align-content:center;
  gap:5px;
  min-height:46px;
  min-width:0;
  padding:7px 2px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#bfc8bd;
  font-size:clamp(.66rem,2.7vw,.88rem);
  font-weight:700;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.facility-dashboard-tabs button svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round; }
.facility-dashboard-tabs button:hover { background:#252c23; }
.facility-dashboard-tabs button[aria-current="page"],
.facility-campaign-tabs button[aria-pressed="true"] { background:#27341f; color:var(--lime); border-color:#46583a; }
.facility-dashboard-panel { display:grid; gap:12px; min-width:0; }
.facility-dashboard-panel > .card, .facility-review-group {
  display:grid;
  justify-items:start;
  width:100%;
  gap:14px;
  padding:clamp(14px,3.5vw,22px);
  border-radius:16px;
}
.facility-dashboard-panel h2, .facility-review-group h2 { margin:0; font-size:1.15rem; line-height:1.25; }
.facility-panel-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; width:100%; }
.facility-dashboard-actions { display:flex; flex-wrap:wrap; gap:8px; }
.facility-dashboard-actions:empty { display:none; }
.facility-dashboard-map-photo { width:64px; height:64px; object-fit:contain; border:1px solid var(--border); border-radius:10px; background:#fff; }
.facility-dashboard-cover { display:block; width:100%; max-height:280px; aspect-ratio:2; object-fit:cover; border-radius:12px; }
.facility-listing-form fieldset { display:grid; gap:14px; width:100%; min-width:0; margin:0; padding:0; border:0; }
.facility-listing-form label, .roster-submission-fields label { display:grid; gap:6px; }
.facility-listing-form .facility-dashboard-checkbox { display:flex; align-items:center; gap:8px; }
.facility-listing-form input[type="checkbox"] { width:auto; }
.facility-listing-form input, .facility-listing-form textarea { min-width:0; }
.facility-review-sections, #facility-request-groups { display:grid; gap:12px; }
.facility-review-location { margin:8px 0; font-size:1.05rem; }
.facility-review-group > header { display:flex; align-items:center; justify-content:space-between; width:100%; gap:10px; }
.facility-review-group > header span { display:grid; place-items:center; min-width:27px; min-height:27px; border-radius:8px; background:#272e26; color:#d6ddd4; font-size:.78rem; }
.facility-review-row { width:100%; min-width:0; border:1px solid #333b31; border-radius:13px; background:#191e19; overflow:hidden; }
.facility-review-row summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px; list-style:none; cursor:pointer; }
.facility-review-row summary::-webkit-details-marker { display:none; }
.facility-review-row summary:hover { background:#232a22; }
.facility-review-row summary:focus-visible { outline-offset:-3px; }
.facility-review-row summary strong { display:block; overflow-wrap:anywhere; }
.facility-review-row summary small { display:block; margin-top:4px; color:var(--muted); }
.facility-review-row summary svg { width:18px; height:18px; fill:none; stroke:#aeb9aa; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.facility-review-row details[open] summary svg { transform:rotate(90deg); }
.facility-review-avatar { position:relative; display:grid; place-items:center; width:46px; height:46px; border-radius:12px; overflow:hidden; color:var(--lime); background:#293622; font-weight:750; font-size:.85rem; }
.facility-review-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.facility-review-buttons { display:flex; flex-wrap:wrap; gap:8px; padding:0 12px 12px; }
.facility-review-buttons button { flex:1 1 auto; }
.facility-review-detail { display:grid; gap:12px; margin:0 12px 12px; padding:12px; background:#131713; border-radius:9px; }
.facility-review-detail h3 { margin:0 0 5px; font-size:.84rem; }
.facility-review-detail p { margin:0; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.facility-review-detail ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.facility-review-detail a { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; padding:10px; border:1px solid var(--border); border-radius:8px; color:var(--lime); overflow-wrap:anywhere; }
.facility-review-detail a span { color:var(--muted); font-size:.76rem; }
.facility-review-feedback:empty { display:none; }
.facility-review-empty { color:var(--muted); margin:0; }
.roster-submission-fields { display:grid; width:100%; gap:12px; }
.roster-submission-fields small { font-weight:400; color:var(--muted); }
.roster-submission-fields input, .roster-submission-fields textarea { min-width:0; width:100%; }
.facility-listing-text { white-space:pre-line; overflow-wrap:anywhere; }

.facility-campaigns { width:100%; }
.facility-campaigns-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; width:100%; }
.facility-campaign-tabs { width:100%; }
.facility-campaign-form, #voucher-redemption { display:grid; gap:12px; width:100%; }
.facility-campaign-form { padding:clamp(12px,3vw,18px); border:1px solid #323a31; border-radius:12px; background:#171c17; }
.facility-campaign-form h3, .facility-campaign-list h3 { margin:5px 0 0; }
.facility-campaign-form label, #voucher-redemption label { display:grid; gap:5px; min-width:0; }
.facility-campaign-form small { color:var(--muted); }
.facility-campaign-form :is(input,select,textarea), #voucher-redemption input { width:100%; min-width:0; }
.facility-campaign-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:12px; align-items:end; }
.facility-campaign-list { display:grid; gap:10px; width:100%; }
.facility-campaign-item { display:grid; gap:8px; padding:14px; border:1px solid #343d32; border-radius:12px; background:#1b201a; }
.facility-campaign-item h4 { display:inline; margin:0 10px 0 0; }
.facility-campaign-state { color:#b9c4b7; font-size:.8rem; }
.facility-campaign-state[data-active="true"] { color:#d2fb68; }
.facility-campaign-item code { overflow-wrap:anywhere; color:#d2fb68; user-select:all; -webkit-user-select:all; }
#voucher-redemption { padding:16px; margin:20px 0; background:#171c16; border-radius:14px; width:min(100%,450px); }
#facility-request .teaching-facility-picker, #facility-request .roster-submission-fields { grid-column:1/-1; }
#facility-request > button { margin-top:2px; justify-self:start; }
#facility-request .roster-submission-fields :is(textarea,input) { padding:10px; border:1px solid var(--border); border-radius:8px; background:#111511; color:var(--ink); font:inherit; }

.facility-preview-panel { width:100%; min-width:0; margin-top:8px; }
.facility-preview-panel > header { padding:3px 2px 12px; }
.facility-preview-page { width:100%; min-width:0; overflow:hidden; border:1px solid #343638; border-radius:20px; background:#161718; }
.facility-public-hero { position:relative; display:grid; align-items:end; isolation:isolate; overflow:hidden; min-height:145px; padding:clamp(16px,4vw,30px); background:linear-gradient(135deg,#303234,#171819); }
.facility-public-hero:has(img) { min-height:clamp(205px,46vw,340px); }
.facility-public-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.facility-public-hero:has(img)::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,#101112f5 0%,#10111256 62%,#10111200 100%); z-index:-1; }
.facility-public-title h2, #profile .facility-public-title h2 { margin:5px 0; color:#f5f5f4; font:750 clamp(1.45rem,6vw,2.35rem)/1.12 var(--display); letter-spacing:-.04em; }
.facility-public-title .overline { color:#e3e4e5; }
.facility-public-title p { margin:6px 0 0; color:#dededd; }
.facility-public-content { display:grid; gap:15px; min-width:0; padding:clamp(12px,3vw,20px); }
.facility-public-section { display:grid; gap:11px; padding:14px; border:1px solid #343638; border-radius:12px; background:#1b1c1e; }
.facility-public-section h3 { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin:0; color:var(--ink); font-size:1rem; }
.facility-public-section :is(p,dd) { margin:0; color:var(--muted); overflow-wrap:anywhere; }
.facility-public-section small { color:var(--muted); font-weight:400; }
.facility-public-actions {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,156px),1fr));
  gap:10px;
}
.facility-visit-action {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:50px;
  padding:11px 12px;
  border:1px solid #46494c;
  border-radius:10px;
  background:#27292b;
  color:#f2f3f3;
  font-size:.9rem;
  font-weight:700;
  line-height:1.25;
  text-align:left;
  text-decoration:none;
  overflow-wrap:anywhere;
}
.facility-visit-action:hover { background:#333639; border-color:#737779; }
.facility-visit-action svg { flex:none; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.facility-visit-action[data-action-kind="booking"] {
  grid-column:1/-1;
  justify-content:center;
  min-height:52px;
  background:#d5fb70;
  color:#151b10;
  border-color:#d5fb70;
}
.facility-visit-action[data-action-kind="booking"]:hover { background:#e0ff97; }
.facility-public-hours, .facility-public-facts { display:grid; gap:8px; margin:0; }
.facility-public-hours div { display:grid; grid-template-columns:minmax(80px,1fr) auto; gap:8px; align-items:start; border-bottom:1px solid #353739; padding-bottom:7px; }
.facility-public-hours div:last-child { border:0; padding-bottom:0; }
.facility-public-hours dd { text-align:right; }
.facility-public-hours small { display:inline-block; }
.facility-public-about, .facility-public-visit { gap:14px; padding:clamp(14px,4vw,20px); }
.facility-public-about h3, .facility-public-visit h3 { font-size:1.14rem; }
.facility-public-visit { gap:16px; }
.facility-public-about .facility-public-description { color:#e0e1e0; line-height:1.6; white-space:pre-line; }
.facility-public-highlights { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.facility-public-highlights li { padding:4px 9px; border-radius:7px; background:#2b2d2f; color:#e2e3e2; font-size:.8rem; line-height:1.4; overflow-wrap:anywhere; }
.facility-public-facts { gap:0; min-width:0; }
.facility-public-facts div {
  display:grid;
  gap:4px 12px;
  grid-template-columns:minmax(88px,.7fr) minmax(0,1.5fr);
  padding-block:9px;
  border-top:1px solid #393b3d;
}
.facility-public-facts dt { color:#e5e5e4; font-weight:700; font-size:.82rem; }
.facility-public-facts dd { font-size:.9rem; line-height:1.45; }
.facility-public-facts div:last-child { padding-bottom:0; }
.facility-public-offers, .facility-public-roster { display:grid; gap:8px; }
.facility-public-coach {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:66px;
  min-width:0;
  padding:9px 12px;
  border:1px solid #3c3e40;
  border-radius:11px;
  background:#232527;
  color:var(--ink);
  text-decoration:none;
}
a.facility-public-coach:hover, a.facility-public-coach:focus-visible { border-color:#727779; background:#2a2c2f; }
.facility-public-coach strong { overflow-wrap:anywhere; }
.facility-public-coach-arrow { width:18px; height:18px; fill:none; stroke:#bfc3c5; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.facility-public-avatar { position:relative; display:grid; place-items:center; width:48px; height:48px; border-radius:10px; overflow:hidden; background:#34373a; color:#e9ebed; font-size:.8rem; }
.facility-public-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#profile:has(.facility-public-hero) { padding:0; }
#profile .facility-profile-close { z-index:2; background:#1a1b1deb; }
#profile :is([data-facility-tools],[data-facility-claim]):not(:empty) { margin:0 14px 14px; }
.facility-hours-editor { display:grid; gap:14px; min-width:0; width:100%; padding:clamp(12px,3vw,18px); border:1px solid #394436; border-radius:16px; background:#151a15; }
.facility-hours-editor header, .facility-hours-day-heading, .facility-time-options-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; }
.facility-hours-editor :is(h3,h4) { margin:0; font-size:1rem; }
.facility-hours-editor header p { margin-top:4px; font-size:.84rem; }
.facility-hours-editor [data-week-hours] { display:grid; gap:12px; min-width:0; }
.facility-hours-days { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(62px,1fr); gap:6px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:thin; overscroll-behavior-inline:contain; padding:2px 2px 7px; }
.facility-hours-days button { display:grid; place-items:center; gap:4px; min-height:52px; padding:6px 4px; border:1px solid #343f33; border-radius:11px; background:#1d251d; scroll-snap-align:start; }
.facility-hours-days button[aria-pressed="true"] { border-color:#566a46; background:#2e3d25; color:var(--lime); }
.facility-hours-days small { color:#b1bbae; font-size:.7rem; }
.facility-hours-row { display:grid; min-width:0; gap:12px; padding-top:12px; border-top:1px solid #323d31; }
.facility-hours-times { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.facility-time-field { display:grid; gap:4px; min-width:0; }
.facility-time-field > span, .facility-hours-closed, .facility-hours-overnight { color:var(--muted); font-size:.84rem; }
.facility-time-field button { display:flex; justify-content:space-between; align-items:center; padding:8px 10px; min-height:44px; border-radius:10px; background:#212a20; color:var(--ink); gap:4px; }
.facility-time-field button[aria-expanded="true"] { border-color:#70845f; color:var(--lime); }
.facility-time-field svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.facility-time-options { display:grid; gap:8px; padding:10px; border:1px solid #374337; border-radius:12px; background:#111611; }
.facility-time-options-heading button { width:44px; min-height:44px; font-size:1.3rem; border-radius:10px; }
.facility-time-scroll { position:relative; display:grid; gap:2px; max-height:190px; overflow-y:auto; overscroll-behavior-y:contain; scroll-snap-type:y proximity; scrollbar-width:thin; }
.facility-time-scroll button { min-height:44px; border:0; border-radius:8px; background:transparent; color:var(--ink); scroll-snap-align:start; }
.facility-time-scroll button[aria-pressed="true"] { background:#2a3b23; color:var(--lime); }
.facility-time-scroll button:hover { background:#283324; }
.facility-time-custom { display:flex; align-items:end; justify-content:space-between; gap:8px; padding-top:6px; }
.facility-time-custom label { min-width:0; font-size:.86rem; }
.facility-time-custom input { max-width:100%; min-height:44px; }
.profile-settings .facility-listing-form .facility-save-listing {
  display:grid;
  place-items:center;
  width:100%;
  min-height:54px;
  padding:12px 16px;
  text-align:center;
}

.facility-chat-page { max-width:740px; margin-top:12px; }
.facility-chat-page .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.facility-chat-back { margin-top:12px; }
.facility-chat { width:100%; min-width:0; border:1px solid #303a30; border-radius:20px; overflow:hidden; background:#111511; }
.facility-chat h2, .facility-chat p { margin:0; }
.facility-chat [data-chat-status]:empty { display:none; }
.facility-chat-inbox-heading { display:grid; gap:4px; padding:20px clamp(16px,4vw,24px); border-bottom:1px solid #303a30; }
.facility-chat-inbox-heading h2 { font:750 clamp(1.18rem,4vw,1.55rem)/1.15 var(--display); letter-spacing:-.025em; }
.facility-chat-inbox-heading p { font-size:.86rem; color:var(--muted); }
.facility-chat-threads { display:grid; min-width:0; }
.facility-chat-thread { display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; gap:4px 11px; width:100%; min-height:76px; text-align:left; background:transparent; border:0; border-bottom:1px solid #2d362d; border-radius:0; padding:13px clamp(14px,4vw,22px); }
.facility-chat-thread:last-child { border:0; }
.facility-chat-thread:hover, .facility-chat-thread:focus-visible { background:#1c251b; }
.facility-chat-avatar { display:grid; place-items:center; width:44px; height:44px; border:1px solid #4b5b41; border-radius:50%; color:var(--lime); background:#293824; font-weight:750; font-size:.88rem; }
.facility-chat-thread .facility-chat-avatar { grid-row:1/3; }
.facility-chat-thread-copy { display:grid; min-width:0; gap:4px; grid-row:1/3; }
.facility-chat-thread strong, .facility-chat-thread small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.facility-chat-thread small { color:var(--muted); font-size:.84rem; font-weight:400; }
.facility-chat-thread-time { grid-column:3; grid-row:1; text-align:right; color:var(--muted); font-size:.71rem; font-weight:400; }
.facility-chat :is(.facility-chat-thread-next,.facility-chat-icon svg,.facility-chat-send svg,.facility-chat-empty svg) { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
.facility-chat-thread-next { grid-row:2; grid-column:3; justify-self:end; color:#a5afa3; }
.facility-chat-empty { display:grid; justify-items:center; gap:8px; padding:46px 16px; text-align:center; }
.facility-chat-empty svg { color:var(--lime); }
.facility-chat-empty p, .facility-chat-draft { color:var(--muted); font-size:.9rem; }
.facility-chat-person { display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid #303a30; background:#181e18; }
.facility-chat-person h2 { min-width:0; overflow-wrap:anywhere; font-size:1.08rem; font-weight:750; }
.facility-chat-icon, .facility-chat-send { display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:50%; }
.facility-chat-icon { color:var(--lime); background:#202920; border:1px solid #354033; }
.facility-chat-history { min-height:0; height:clamp(255px,43vh,510px); height:clamp(255px,43dvh,510px); overflow:auto; padding:12px clamp(12px,4vw,22px) 16px; overscroll-behavior-y:contain; background:#0f120f; }
.facility-chat-history ol { display:grid; align-content:start; gap:3px; list-style:none; margin:0; padding:0; }
.facility-chat-earlier { display:flex; justify-content:center; margin:4px auto 10px; }
.facility-chat-date, .facility-chat-draft { justify-self:center; text-align:center; }
.facility-chat-date { margin:6px 0 8px; color:#aeb8ac; font-size:.74rem; font-weight:650; }
.facility-chat-message { justify-self:start; display:grid; gap:3px; margin-top:8px; max-width:min(82%,490px); min-width:0; }
.facility-chat-message.is-grouped { margin-top:0; }
.facility-chat-message.is-mine { justify-self:end; }
.facility-chat-bubble { padding:10px 13px; border-radius:16px 16px 16px 5px; background:#242c24; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.95rem; line-height:1.47; }
.facility-chat-message.is-mine .facility-chat-bubble { border-radius:16px 16px 5px 16px; color:#f3faec; background:#374c2d; }
.facility-chat-message time { padding:0 4px; font-size:.68rem; color:var(--muted); }
.facility-chat-message.is-mine time { text-align:right; }
.facility-chat-footer { padding:10px 12px; border-top:1px solid #303a30; background:#181e18; }
.facility-chat-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; }
.facility-chat-compose textarea { display:block; width:100%; min-height:44px; max-height:116px; resize:none; border-radius:21px; padding:10px 14px; font-size:16px; line-height:1.4; background:#111611; }
.facility-chat-send { color:#10180d; background:var(--lime); border:0; }
.facility-chat-send:disabled { opacity:.55; }
.facility-chat-feedback { padding:10px 14px; color:var(--muted); font-size:.84rem; }
.facility-chat-footer .facility-chat-feedback { padding:8px 2px 0; }

.facility-public-closures { border-color:#5c4d2c; background:#211d14; }
.facility-public-closures ul { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.facility-public-closures li { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
.facility-public-closures li strong { color:#ffe1a0; }
.facility-public-facts a { color:#edf0f2; text-underline-offset:3px; }
.facility-closure-editor, .facility-closure-fields { grid-template-columns:minmax(0,1fr); }
.facility-closure-fields { display:grid; gap:14px; min-width:0; }
.facility-closure-fields label { min-width:0; }
.facility-closure-fields input:not([type="checkbox"]) { width:100%; min-width:0; max-width:100%; }
.facility-closure-fields small { color:var(--muted); font-weight:400; }
.facility-closure-dates, .facility-closure-fields [data-closure-times] {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  min-width:0;
}
@media (min-width:640px) {
  .facility-closure-dates:has([data-closure-end-date]:not([hidden])),
  .facility-closure-fields [data-closure-times] { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.facility-closure-fields :is(.facility-closure-dates,[data-closure-times]) label { grid-template-columns:minmax(0,1fr); align-content:start; }
.facility-closure-fields :is(.facility-closure-dates,[data-closure-times]) label > span:first-child { color:#e5ece2; font-size:.88rem; font-weight:650; }
.facility-closure-dates small { margin-inline-start:4px; font-size:.8em; }
.facility-closure-date-control {
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  border:1px solid #3a4538;
  border-radius:10px;
  background:#202720;
}
.facility-closure-date-control:focus-within { border-color:var(--lime); box-shadow:0 0 0 1px var(--lime); }
.facility-closure-date-control input {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:48px;
  margin:0;
  padding:10px 12px;
  border:0;
  background:transparent;
  color:var(--ink);
  color-scheme:dark;
  font-size:16px;
  appearance:none;
  -webkit-appearance:none;
}
.facility-closure-date-control input:focus { outline:none; }
.facility-closure-date-control:has(input:disabled) { background:#1a1e1a; }
.facility-closure-date-control input:disabled { opacity:.5; }
.facility-closure-fields [data-closure-time-help] { font-size:.82rem; margin-top:-6px; }
.facility-closure-date-control input::-webkit-date-and-time-value { min-height:1.25em; margin:0; text-align:left; }
.facility-closure-fields [data-add-closure] { justify-self:start; }
.facility-closure-fields [data-closure-status]:empty, [data-closure-list]:empty { display:none; }
[data-closure-list] { display:grid; gap:8px; }
.facility-closure-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding:10px; border:1px solid var(--border); border-radius:10px; }
.facility-closure-row small { display:block; color:var(--muted); margin-top:4px; }
.facility-expiration, .promo-copy .facility-expiration, #offer-expiration {
  display:block;
  color:#d5fb70;
  font-size:.875rem;
  font-weight:700;
  line-height:1.4;
}
.promo-copy .facility-expiration { margin-bottom:.65rem; }
.facility-promo-chip:has(.facility-expiration) { flex-direction:column; align-items:flex-start; gap:2px; border-radius:13px; }
.facility-promo-chip .facility-expiration { color:#e4eadf; font-size:.78rem; }

.facility-chat-inbox-tools { display:grid; justify-items:end; gap:10px; padding:12px clamp(12px,3vw,22px); border-bottom:1px solid var(--border); }
.facility-chat-inbox-tools .inbox-search { width:100%; }
.facility-chat-icon.facility-chat-add { background:var(--lime); color:var(--green); border-color:var(--lime); }
.facility-chat-location { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; }
.facility-chat-location[hidden] { display:none; }
.facility-chat-location select { max-width:100%; }
.facility-inbox-shortcut { display:inline-flex; margin-top:12px; text-decoration:none; }
body[data-owner-inbox] .facility-inbox-shortcut { display:none; }
.message-group-tools:not([hidden]) { display:flex; justify-content:flex-end; margin-top:10px; }
.message-group-tools svg { width:21px; height:21px; }
#message-group { max-height:calc(100dvh - 24px); overflow-y:auto; }
.message-group-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
#message-group .facility-chat-group-form { padding:16px 0 0; }
#message-group [data-group-facility][hidden] { display:none; }
.facility-chat-conversation { touch-action:pan-y pinch-zoom; }
body[data-page=facility-messages]:has(.facility-chat-conversation.swipe-back-active) { overflow-x:clip; }
.facility-chat-person:has([data-group-back]) { grid-template-columns:auto minmax(0,1fr); }
.facility-chat-avatar svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; }
.facility-chat-members { margin-top:3px; color:var(--muted); font-size:.82rem; }
.facility-chat-members summary { cursor:pointer; }
.facility-chat-members ul { margin:5px 0 0; padding-left:18px; overflow-wrap:anywhere; }
.facility-chat-sender { padding:0 4px; color:#d6e7ce; font-size:.78rem; }
.facility-chat-group-form { display:grid; gap:14px; padding:clamp(14px,4vw,22px); }
.facility-chat-group-form > label { display:grid; gap:5px; }
.facility-chat-group-form fieldset { display:grid; gap:5px; min-width:0; max-height:240px; overflow:auto; margin:0; border:1px solid var(--border); border-radius:12px; }
.facility-chat-member-option { display:grid; align-items:center; gap:10px; grid-template-columns:auto minmax(0,1fr) auto; padding:6px; cursor:pointer; }
.facility-chat-member-option span { overflow-wrap:anywhere; }
.facility-chat-member-option input { width:18px; height:18px; accent-color:var(--lime); }
.facility-chat-group-form .primary { justify-self:start; }

.facility-chat-inbox-link { margin-bottom:10px; }
.facility-chat-inbox-link[hidden] { display:none; }

.facility-chat-avatar { position:relative; overflow:hidden; flex:none; }
.facility-chat-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
.facility-chat-avatar img.is-loaded { opacity:1; }
.facility-chat-message-content { display:grid; min-width:0; gap:3px; grid-column:1; }
.facility-chat-message.has-avatar { grid-template-columns:28px minmax(0,1fr); column-gap:8px; }
.facility-chat-message.has-avatar .facility-chat-message-content { grid-column:2; }
.facility-chat-message .facility-chat-avatar { width:28px; height:28px; align-self:start; font-size:.65rem; }
.facility-chat-members ul { padding:0; list-style:none; }
.facility-chat-members li { display:flex; align-items:center; gap:7px; margin-top:4px; }
.facility-chat-members .facility-chat-avatar { width:24px; height:24px; font-size:.61rem; }


.facility-public-more-offers {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:9px 2px 0;
  border-top:1px solid #383b39;
  color:#e0f5bf;
  font-size:.9rem;
  font-weight:700;
  text-decoration:none;
}
.facility-public-more-offers:hover { text-decoration:underline; }
.facility-public-more-offers span { flex:none; font-size:1.3rem; }
.promo-facility-filter {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  padding:10px 13px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#1b201a;
}
.promo-facility-filter span { font-weight:700; }
.promo-facility-filter a { color:var(--lime); text-underline-offset:3px; }


.facility-location-controls { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.facility-location-controls .locate { margin:0; }
#facility-location-hint:empty, #facility-status:empty { display:none; }
