/* =========================================================================
   Tee sheet slice — week calendar, phone agenda, booking flow, booking
   detail, open seats. Reuses tokens from /css/app.css only.
   Text uses --muted or brighter (>= 4.5:1); --faint is for decoration only.
   ========================================================================= */

.ts-page { --ts-hour-h: 48px; }
.ts-page [hidden] { display: none !important; }

/* show/hide around the 860px calendar/agenda breakpoint */
@media (max-width: 860px) { .ts-wide-only { display: none !important; } }
@media (min-width: 861px) { .ts-narrow-only { display: none !important; } }

.ts-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin: -8px 0 6px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.ts-back:hover { color: var(--gold-strong); }
.ts-back .icon { width: 18px; height: 18px; }

/* ---------- header + toolbar ---------- */
.ts-head { margin-bottom: 18px; }
/* desktop: the toolbar sits beside the title so the week grid starts higher on the first screen */
@media (min-width: 861px) {
  .ts-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
  .ts-top .ts-head { margin-bottom: 0; }
  .ts-top .ts-toolbar { justify-content: flex-end; }
}
.ts-head .eyebrow .icon { width: 16px; height: 16px; }
.ts-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.ts-bay {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 14px; letter-spacing: 0.14em; color: var(--gold-strong);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.ts-detail { margin-top: 8px !important; font-size: 16px; }

.ts-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ts-weeknav, .ts-cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-navbtn .icon { width: 18px; height: 18px; }
.ts-cta .btn .icon { width: 17px; height: 17px; }
.ts-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 11.5px; letter-spacing: 0;
}
/* the badge counts seats over the same window as /open-seats, and says which */
.ts-count-window {
  margin-left: 6px; font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--gold);
}

.ts-legend {
  list-style: none; margin: 16px 0 12px; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--muted);
}
.ts-legend li { display: inline-flex; align-items: center; gap: 7px; }
.ts-legend .icon { width: 16px; height: 16px; color: var(--gold); }
.ts-legend-hint { margin-left: auto; color: var(--text-2); }
.ts-sw { width: 18px; height: 12px; border-radius: 4px; flex: none; }
.ts-sw-book { background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: inset 3px 0 0 var(--text-2); }
.ts-sw-mine { background: rgba(215, 178, 93, 0.22); border: 1px solid var(--gold); box-shadow: inset 3px 0 0 var(--gold-strong); }
.ts-sw-open { border: 1.5px dashed var(--gold); background: transparent; }
.ts-sw-block { border: 1px solid var(--line-strong); background: repeating-linear-gradient(135deg, rgba(141, 147, 158, 0.38) 0 2px, transparent 2px 5px); }
.ts-sw-closed { border: 1px solid var(--line-strong); background: repeating-linear-gradient(-45deg, #050607 0 3px, #0c0e11 3px 6px); }

/* ---------- desktop week calendar ---------- */
.ts-cal {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow);
}
.ts-cal-head {
  display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr));
  position: sticky; top: var(--header-h); z-index: 6;
  background: rgba(14, 16, 20, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong); border-radius: var(--radius) var(--radius) 0 0;
}
.ts-corner {
  display: grid; place-items: end center; padding-bottom: 8px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
/* day heading: "WED (30)" on one line, hours under it */
.ts-dh {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 7px; padding: 8px 4px 7px;
  border-left: 1px solid var(--line); color: var(--text-2); text-align: center;
}
.ts-dh:hover { color: var(--text); background: rgba(255, 255, 255, 0.02); }
.ts-dh-dow { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ts-dh-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--text);
}
.ts-dh-hours { flex-basis: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ts-dh-hours .icon { width: 12px; height: 12px; }
.ts-dh-hours.is-override { color: var(--gold-strong); }
.ts-dh.is-today .ts-dh-dow { color: var(--gold); }
.ts-dh.is-today .ts-dh-num { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 18px rgba(215, 178, 93, 0.35); }
.ts-dh.is-past .ts-dh-num { color: var(--muted); }

/* The hours scroll inside the card so the first screen shows the evening (see JS).
   column-reverse makes a no-JS scroller open at its bottom — the evening hours. */
.ts-cal-viewport { position: relative; }
.ts-cal-scroll {
  display: flex; flex-direction: column-reverse;
  max-height: clamp(360px, calc(100vh - 360px), calc(var(--ts-hours) * var(--ts-hour-h) + 24px));
  overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  border-radius: 0 0 var(--radius) var(--radius);
}
.ts-cal-scroll:focus-visible { outline-offset: -2px; }
.ts-cal-body {
  position: relative; flex: none; display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr));
  height: calc(var(--ts-hours) * var(--ts-hour-h));
  margin: 12px 0;
}
.ts-scroll-anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.ts-fade {
  position: absolute; left: 0; right: 0; height: 34px; z-index: 5; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.ts-fade-top { top: 0; background: linear-gradient(to bottom, rgba(8, 9, 11, 0.9), rgba(8, 9, 11, 0)); }
.ts-fade-bottom { bottom: 0; background: linear-gradient(to top, rgba(8, 9, 11, 0.9), rgba(8, 9, 11, 0)); border-radius: 0 0 var(--radius) var(--radius); }
.ts-cal.has-above .ts-fade-top, .ts-cal.has-below .ts-fade-bottom { opacity: 1; }
.ts-axis { position: relative; }
.ts-mark {
  position: absolute; right: 10px; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; letter-spacing: 0.02em;
}
.ts-mark.is-first { transform: translateY(-20%); }
.ts-mark.is-last { transform: translateY(-80%); }

.ts-col {
  position: relative; border-left: 1px solid var(--line);
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% var(--ts-hour-h), 100% calc(var(--ts-hour-h) / 2);
}
.ts-col.is-today { background-color: rgba(215, 178, 93, 0.045); }

/* closed hours + time already gone */
.ts-closed {
  position: absolute; left: 0; right: 0; display: flex; justify-content: center; padding: 8px 6px;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.55) 0 7px, rgba(0, 0, 0, 0.32) 7px 14px);
  border-top: 1px solid rgba(255, 255, 255, 0.025); border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  font-size: 11px; color: var(--muted); text-align: center; letter-spacing: 0.04em; overflow: hidden;
}
.ts-closed-end { align-items: flex-end; }
.ts-closed-start, .ts-closed-mid { align-items: flex-start; }
.ts-closed-mid { align-items: center; }
.ts-closed span { display: inline-flex; align-items: center; gap: 4px; line-height: 1.25; }
.ts-closed .icon { width: 12px; height: 12px; flex: none; }
.ts-closed.has-note { color: var(--gold); }
.ts-pastzone { position: absolute; left: 0; right: 0; background: rgba(0, 0, 0, 0.28); pointer-events: none; }
.ts-col.is-past { background-color: rgba(0, 0, 0, 0.22); }

/* click-to-book slots */
.ts-slot {
  position: absolute; left: 3px; right: 3px; z-index: 1; display: flex; align-items: center; padding: 0 8px;
  border-radius: 7px; color: transparent; font-size: 12px; font-weight: 700;
}
.ts-slot span { display: inline-flex; align-items: center; gap: 4px; }
.ts-slot .icon { width: 14px; height: 14px; }
.ts-slot:hover, .ts-slot:focus-visible {
  color: var(--gold-strong); background: var(--gold-soft); outline: 1px dashed var(--gold-line); outline-offset: -1px;
}
/* fixed tee times (Admin → Bay): each open tee time shows, not only on hover */
.ts-slot.is-fixed { align-items: flex-start; padding-top: 6px; color: var(--muted); outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.ts-slot.is-fixed:hover, .ts-slot.is-fixed:focus-visible { color: var(--gold-strong); outline-color: var(--gold-line); }
.ts-slot-open { font-weight: 500; }

/* events */
.ts-ev {
  position: absolute; left: 4px; right: 4px; z-index: 2; display: flex; flex-direction: column; gap: 4px;
  padding: 7px 8px 7px 10px; border-radius: 9px; overflow: hidden; min-height: 22px;
}
.ts-ev-time { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ts-ev-block {
  background: repeating-linear-gradient(135deg, rgba(141, 147, 158, 0.14) 0 6px, rgba(141, 147, 158, 0.04) 6px 12px), var(--bg-elev);
  border: 1px solid var(--line-strong); color: var(--muted);
}
.ts-ev-label {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); line-height: 1.2;
}
.ts-ev-block .ts-ev-time { color: var(--muted); font-weight: 600; }

.ts-ev-book {
  background: linear-gradient(180deg, #252a34, #1c2028);
  border: 1px solid var(--line-strong); box-shadow: inset 3px 0 0 var(--text-2), 0 6px 16px rgba(0, 0, 0, 0.35);
  color: var(--text-2); transition: border-color .15s, transform .15s;
}
.ts-ev-book:hover { color: var(--text-2); border-color: var(--gold-line); transform: translateY(-1px); z-index: 3; }
.ts-ev-book.is-mine {
  background: linear-gradient(180deg, rgba(215, 178, 93, 0.26), rgba(215, 178, 93, 0.12)), #18150e;
  border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold-strong), 0 8px 22px rgba(215, 178, 93, 0.12);
}
/* played groups: a flat, quiet box — the text stays at readable contrast */
.ts-ev-book.is-done {
  background: var(--bg-elev); border-color: var(--line); box-shadow: inset 3px 0 0 var(--line-strong);
}
.ts-ev-book.is-done .ts-ev-time, .ts-ev-book.is-done .ts-ev-p { color: var(--muted); }
.ts-ev-book.is-done .ts-ev-open { border-color: var(--line-strong); color: var(--muted); }
.ts-ev-book.is-live { box-shadow: inset 3px 0 0 var(--green), 0 6px 16px rgba(0, 0, 0, 0.35); }
.ts-ev-time { font-size: 12.5px; }
.ts-ev-meta { margin-top: -3px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-ev-book.is-mine .ts-ev-meta { color: var(--gold); }
.ts-ev-players { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ts-ev-mate { color: var(--muted); font-weight: 400; } /* a team week: the player's partner */
.ts-teams { margin-top: 6px; }
.ts-ev-p {
  display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0;
  font-size: 12px; line-height: 1.25; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ts-ev-p.is-me { color: var(--gold-strong); font-weight: 700; }
.ts-ev-open {
  padding: 1px 6px; border: 1px dashed var(--gold-line); border-radius: 6px; color: var(--gold); font-size: 11.5px;
}
.ts-join {
  flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--gold); border-radius: 999px; padding: 1px 6px;
}
.ts-ev-book:hover .ts-join { background: var(--gold-strong); }

.ts-now { position: absolute; left: -1px; right: 0; z-index: 4; height: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(215, 178, 93, 0.6); pointer-events: none; }
.ts-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.ts-now span {
  position: absolute; right: 4px; top: -9px; padding: 1px 6px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}

@media (max-width: 1040px) {
  .ts-ev { padding: 6px 6px 6px 8px; }
  .ts-join { padding: 1px 5px; letter-spacing: 0.02em; }
  .ts-join-word { display: none; } /* narrow columns: just "+" so the pill never clips */
}

/* ---------- phone: day strip + agenda ---------- */
.ts-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 4px 0 18px; }
.ts-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.ts-day:hover { color: var(--text); border-color: var(--line-strong); }
.ts-day-dow { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ts-day-num { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--text); }
.ts-day-mark { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.ts-day-mark.has-open { background: var(--gold); box-shadow: 0 0 8px rgba(215, 178, 93, 0.7); }
.ts-day-mark.has-book { background: var(--faint); }
.ts-day.is-today { border-color: var(--gold-line); }
.ts-day.is-today .ts-day-dow { color: var(--gold); }
.ts-day.is-closed .ts-day-num, .ts-day.is-past .ts-day-num { color: var(--muted); }
.ts-day.is-selected { background: var(--gold); border-color: var(--gold); }
.ts-day.is-selected .ts-day-dow, .ts-day.is-selected .ts-day-num { color: var(--gold-ink); }
.ts-day.is-selected .ts-day-mark.has-open { background: var(--gold-ink); box-shadow: none; }
.ts-day.is-selected .ts-day-mark.has-book { background: rgba(28, 21, 5, 0.45); }

.ts-agenda-head { margin-bottom: 12px; }
.ts-agenda-head .h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 19px; }
.ts-hours-line { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.ts-hours-line .icon { width: 16px; height: 16px; }
.ts-hours-line.is-override { color: var(--gold-strong); }
.ts-past-note { display: flex; align-items: center; gap: 6px; }
.ts-past-note .icon { width: 16px; height: 16px; }

.ts-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ts-item { display: flex; gap: 12px; }
.ts-item-time {
  flex: none; width: 58px; display: flex; flex-direction: column; align-items: flex-end; padding-top: 12px; text-align: right;
}
.ts-item-clock { font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1; color: var(--text); }
.ts-item-ampm { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin-top: 2px; }
.ts-item-len { font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.ts-item-body {
  flex: 1 1 auto; min-width: 0; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--text-2);
}
.ts-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ts-item-range { font-weight: 700; color: var(--text); font-size: 15px; }
a.ts-item-range:hover { color: var(--gold-strong); }
.ts-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-chip { font-size: 13px; padding-top: 4px; padding-bottom: 4px; }
.ts-chip.chip-open { padding-left: 9px; }
.ts-chip.chip-open .icon { width: 16px; height: 16px; }
.ts-chip .avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.ts-chip.is-me { border-color: var(--gold-line); color: var(--gold-strong); }
.ts-item-actions { display: flex; gap: 8px; margin-top: 12px; }
.ts-item-actions .icon { width: 16px; height: 16px; }
.ts-item-book.is-mine .ts-item-body {
  border-color: var(--gold-line); box-shadow: inset 3px 0 0 var(--gold), var(--shadow-gold);
  background: linear-gradient(180deg, #1f1b11, var(--surface) 80%);
}
.ts-item-book.is-mine .ts-item-clock { color: var(--gold-strong); }
.ts-item-book.is-done .ts-item-body { background: var(--bg-elev); box-shadow: inset 3px 0 0 var(--line-strong); }
.ts-item-book.is-done .ts-item-clock, .ts-item-book.is-done .ts-item-range { color: var(--text-2); }

.ts-item-block .ts-item-body {
  background: repeating-linear-gradient(135deg, rgba(141, 147, 158, 0.08) 0 7px, transparent 7px 14px), var(--bg-elev);
  box-shadow: inset 3px 0 0 var(--faint); border-style: solid;
}
.ts-item-block .ts-item-top { margin-bottom: 4px; }
.ts-item-block .ts-item-range, .ts-item-block .ts-item-clock { color: var(--text-2); }
.ts-block-label { margin: 0; font-size: 13.5px; color: var(--muted); }

.ts-item-free { padding-left: 70px; }
.ts-free {
  flex: 1 1 auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: var(--radius);
  border: 1px dashed var(--gold-line); background: rgba(215, 178, 93, 0.04); color: var(--text-2);
}
.ts-free:hover { background: var(--gold-soft); color: var(--text); }
.ts-free .btn { flex: none; }
.ts-free .btn .icon { width: 16px; height: 16px; margin-right: -4px; }
.ts-free-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 8px rgba(215, 178, 93, 0.6); }
.ts-free-dot.is-muted { background: var(--faint); box-shadow: none; }
.ts-free-title { display: block; font-weight: 700; color: var(--gold-strong); font-size: 14.5px; }
.ts-free-sub { display: block; font-size: 12.5px; color: var(--muted); }
.ts-item-gap { padding-left: 74px; align-items: center; gap: 10px; padding-top: 0; padding-bottom: 0; }
.ts-full-note { margin-top: 14px; }
.ts-empty-day { text-align: center; padding: 28px 20px; }

@media (max-width: 380px) {
  .ts-item-time { width: 50px; }
  .ts-item-free, .ts-item-gap { padding-left: 0; }
  .ts-days { gap: 3px; }
}

/* ---------- booking flow ---------- */
.ts-book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ts-book-side { position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 960px) {
  .ts-book-grid { grid-template-columns: 1fr; }
  .ts-book-side { position: static; }
}
.ts-notices { display: grid; gap: 10px; margin-bottom: 18px; }
.ts-notices .notice .icon { flex: none; }
.ts-notices .notice a { font-weight: 700; }

.ts-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ts-step-head .h3 { flex: 1 1 auto; }
.ts-step-n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--gold-ink); background: var(--gold);
}
.ts-step-aside { font-size: 13px; color: var(--muted); }

.ts-daypick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ts-dchip {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 7px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--text-2); text-align: center;
}
.ts-dchip:hover { border-color: var(--gold-line); color: var(--text); }
.ts-dchip .dow { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ts-dchip .num { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--text); }
.ts-dchip .mon { font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.ts-dchip.is-today { border-color: var(--gold-line); }
.ts-dchip.is-today .dow { color: var(--gold); }
.ts-dchip.is-selected { background: var(--gold); border-color: var(--gold); }
.ts-dchip.is-selected .dow, .ts-dchip.is-selected .num, .ts-dchip.is-selected .mon { color: var(--gold-ink); }
.ts-dchip.is-closed { opacity: 0.38; pointer-events: none; background: transparent; border-style: dashed; }
.ts-dchip.is-closed .mon::after { content: " · shut"; }
.ts-dayline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.ts-dayline .icon { width: 16px; height: 16px; color: var(--gold); }

.ts-size { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; }
.ts-size label { min-height: 58px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-display); font-size: 15px; }
.ts-size label small { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
@media (max-width: 560px) { .ts-size { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ts-noscript { margin-top: 12px; }

.ts-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ts-time { position: relative; display: block; cursor: pointer; }
.ts-time input { position: absolute; opacity: 0; pointer-events: none; }
.ts-time span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 6px; border-radius: 10px;
  background: var(--bg-elev); border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; font-size: 14.5px; white-space: nowrap;
}
.ts-time:hover span { border-color: var(--gold-line); }
.ts-time input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.ts-time input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.ts-time.is-off { cursor: not-allowed; }
.ts-time.is-off span { background: transparent; border-style: dashed; border-color: var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(141, 147, 158, 0.6); font-weight: 600; }
.ts-time.is-off:hover span { border-color: var(--line); }
.ts-times-empty { grid-column: 1 / -1; margin: 0; }
.ts-times-foot { margin: 12px 0 0; }

.ts-joinbox { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed var(--gold-line); background: rgba(215, 178, 93, 0.04); }
.ts-joinbox-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; color: var(--gold-strong); font-size: 14.5px; }
.ts-joinbox-title .icon { width: 18px; height: 18px; }
.ts-joinbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ts-joinbox li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.ts-joinbox li .grow { color: var(--text-2); }
.ts-joinbox li strong { color: var(--text); }

.ts-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ts-partner {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); cursor: pointer; min-width: 0;
}
.ts-partner:hover { border-color: var(--line-strong); }
.ts-partner input { position: absolute; opacity: 0; pointer-events: none; }
.ts-partner .grow { display: flex; flex-direction: column; min-width: 0; }
.ts-pname { font-weight: 600; color: var(--text); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-pnote { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-tick {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-strong); color: transparent;
}
.ts-tick .icon { width: 15px; height: 15px; }
.ts-partner:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.ts-partner input:checked ~ .ts-tick { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.ts-partner input:checked ~ .avatar { background: linear-gradient(180deg, var(--gold-strong), var(--gold-deep)); color: var(--gold-ink); border-color: var(--gold); }
.ts-partner input:focus-visible ~ .ts-tick { outline: 2px solid var(--gold); outline-offset: 2px; }
.ts-partner:has(input:disabled:not(:checked)) { opacity: 0.45; cursor: not-allowed; }
.ts-partners-hint { margin: 0 0 12px; }

/* step 4: solo = one line; 2–4 players = a collapsible picker */
.ts-solo-note {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed var(--gold-line); background: rgba(215, 178, 93, 0.04); color: var(--gold-strong); font-size: 14.5px;
}
.ts-solo-note .icon { width: 20px; height: 20px; flex: none; }
.ts-pickbox > summary { list-style: none; }
.ts-pickbox > summary::-webkit-details-marker { display: none; }
.ts-pick-sum {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
}
.ts-pick-sum:hover { border-color: var(--gold-line); }
.ts-pick-sum .grow { display: flex; flex-direction: column; min-width: 0; }
.ts-pick-who { font-weight: 700; color: var(--text); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-pick-sub { font-size: 13px; color: var(--muted); }
.ts-pick-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px 0 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-strong);
}
.ts-pick-toggle .icon { width: 18px; height: 18px; transition: transform .15s; }
.ts-pickbox[open] .ts-pick-toggle .icon { transform: rotate(90deg); }
.ts-pick-close, .ts-pickbox[open] .ts-pick-open { display: none; }
.ts-pickbox[open] .ts-pick-close { display: inline; }
.ts-pickbox[open] > .ts-pick-sum { border-color: var(--gold-line); }
.ts-pick-body { padding-top: 14px; }
.ts-pfilter { margin-bottom: 10px; }
.ts-pfilter-none { margin: 4px 0 0; }
.ts-short { display: none; }
@media (max-width: 560px) {
  .ts-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ts-partner { gap: 8px; padding: 8px 8px 8px 7px; border-radius: 10px; }
  .ts-partner .avatar-sm { width: 26px; height: 26px; font-size: 10px; }
  .ts-partner .ts-tick { display: none; }
  .ts-pname { font-size: 14px; }
  .ts-pnote { font-size: 11px; }
  .ts-long { display: none; }
  .ts-short { display: inline; }
}

.ts-summary { padding: 22px; }
.ts-sum-time { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; margin: 8px 0 4px; }
.ts-sum-time.is-empty { color: var(--muted); font-size: 22px; }
.ts-sum-day { color: var(--text-2); font-size: 15px; margin: 0 0 14px; }
.ts-sum-list { margin: 0 0 14px; display: grid; gap: 0; }
.ts-sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(215, 178, 93, 0.16); font-size: 14.5px; }
.ts-sum-list dt { color: var(--muted); }
.ts-sum-list dd { margin: 0; text-align: right; color: var(--text); font-weight: 600; min-width: 0; }
.ts-sum-seats {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 16px; border-radius: 12px;
  border: 1px dashed var(--gold-line); color: var(--gold-strong); font-size: 13.5px; line-height: 1.35;
}
.ts-sum-seats .icon { width: 20px; height: 20px; flex: none; }
.ts-sum-seats.is-full { border-style: solid; border-color: var(--line); color: var(--text-2); }
.ts-sum-note { margin: 12px 0 0; text-align: center; }

/* phone + tablet confirm bar (above the tab bar on phones). Desktop has the sticky summary. */
.ts-bar { display: none; }
@media (max-width: 960px) {
  .ts-book-page { padding-bottom: 120px; }
  .ts-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    padding-bottom: calc(10px + var(--safe-bottom));
    background: rgba(14, 16, 20, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--gold-line); box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
    transition: transform .18s ease, opacity .18s ease, visibility .18s;
  }
  .ts-bar.is-away { opacity: 0; visibility: hidden; transform: translateY(12px); }
  .ts-bar-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .ts-bar-range {
    font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
    line-height: 1.1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ts-bar-range.is-empty { color: var(--muted); font-size: 16px; }
  .ts-bar-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ts-bar-btn { flex: none; min-height: 46px; padding: 10px 20px; }
}
@media (max-width: 860px) {
  .ts-bar { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: 10px; }
}

/* ---------- booking detail ---------- */
.ts-ticket { position: relative; overflow: hidden; padding: 26px 24px 22px; }
.ts-ticket-crest {
  position: absolute; right: -28px; top: 50%; transform: translateY(-50%); width: 200px; height: 200px;
  opacity: 0.07; pointer-events: none;
}
.ts-ticket > *:not(.ts-ticket-crest) { position: relative; }
.ts-ticket-time { font-family: var(--font-display); font-size: clamp(34px, 7vw, 54px); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; margin: 10px 0 8px; }
.ts-ticket-day { font-size: 17px; color: var(--text-2); }
.ts-ticket-badges { margin-top: 14px; }
.ts-ticket.is-cancelled { border-color: rgba(240, 112, 106, 0.35); box-shadow: var(--shadow); background: linear-gradient(180deg, #1d1515, var(--surface) 70%); }
.ts-ticket.is-cancelled .ts-ticket-time { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(240, 112, 106, 0.6); }

.ts-who .list-item .avatar { width: 40px; height: 40px; }
.ts-who .badge { flex: none; }
.ts-who .open-title { font-weight: 600; color: var(--gold-strong); }

.ts-actions-card .h3 { margin-bottom: 4px; }
.ts-act { padding: 14px 0; border-top: 1px solid var(--line); }
.ts-act:first-of-type { border-top: 0; padding-top: 4px; }
.ts-act:last-child { padding-bottom: 0; }
.ts-act p { margin: 0 0 10px; color: var(--text-2); font-size: 14.5px; }
.ts-act .btn .icon { width: 18px; height: 18px; }
.ts-addform { display: flex; gap: 8px; }
.ts-addform .select { flex: 1 1 auto; min-width: 0; }

.ts-confirm > summary { list-style: none; display: inline-flex; }
.ts-confirm > summary::-webkit-details-marker { display: none; }
.ts-confirm[open] > summary { background: var(--red-soft); } /* "pressed", without dimming the text */
.ts-confirm-body {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--red-soft); border: 1px solid rgba(240, 112, 106, 0.35); color: #f8d3d0;
}
.ts-confirm-body p { color: #f8d3d0; }
.ts-confirm-body .btn-danger { background: rgba(240, 112, 106, 0.12); }

/* ---------- open seats ---------- */
.ts-seats-head { align-items: flex-end; }
.ts-explainer { margin-bottom: 8px; }
.ts-seat-days { display: grid; gap: 4px; }
.ts-seat-day {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.ts-seat-day:first-child { border-top: 0; }
.ts-seat-rail { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 14px; position: sticky; top: calc(var(--header-h) + 14px); }
.ts-rail-dow { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.ts-rail-date { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; color: var(--text); }
.ts-seat-rail .badge { margin-top: 4px; }
.ts-seat-list { display: grid; gap: 12px; }
.ts-seat-card {
  position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 18px 20px; box-shadow: inset 3px 0 0 var(--gold-line), var(--shadow);
}
.ts-seat-card > *, .ts-seat-day > *, .ts-seat-list > * { min-width: 0; }
.ts-seat-card.is-mine { border-color: var(--gold-line); box-shadow: inset 3px 0 0 var(--gold), var(--shadow-gold); }
.ts-seat-time { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.ts-seat-act { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ts-seat-act form { margin: 0; }
.ts-seat-act .btn .icon, .ts-seat-act .badge .icon { width: 16px; height: 16px; }
/* desktop: a tab on the card's top edge; phones: in flow beside the time (see below) */
.ts-seat-count { position: absolute; top: -11px; right: 18px; background: #2a2414; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.ts-empty .crest { width: 84px; height: 84px; margin: 0 auto 8px; opacity: 0.9; }

@media (max-width: 960px) {
  .ts-seat-card { grid-template-columns: minmax(0, 1fr) auto; }
  .ts-seat-card .ts-chips { grid-column: 1 / -1; grid-row: 2; }
  .ts-seat-act { grid-column: 2; grid-row: 1; }
}
@media (max-width: 720px) {
  .ts-seat-day { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0; }
  .ts-seat-rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 4px; }
  .ts-rail-date { font-size: 22px; order: -1; }
  .ts-seat-rail .badge { margin-top: 0; align-self: center; }
  .ts-seat-card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .ts-seat-card .ts-chips { grid-row: auto; }
  .ts-seat-act { grid-column: auto; grid-row: auto; padding-top: 12px; border-top: 1px solid var(--line); }
  .ts-seat-time { font-size: 22px; }
  .ts-seat-when { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; }
  .ts-seat-main { min-width: 0; }
  .ts-seat-count { position: static; box-shadow: none; }
}
@media (max-width: 360px) {
  .ts-seat-time { white-space: normal; font-size: 20px; }
}

/* ---------- phones: 40px+ tap targets ---------- */
@media (max-width: 640px) {
  .ts-page .btn-sm { min-height: 40px; }
  .ts-navbtn { min-width: 44px; }
  a.ts-item-range { display: inline-flex; align-items: center; min-height: 40px; margin: -10px 0; }
  .ts-act p a, .ts-joinbox a:not(.btn) { display: inline-block; padding: 10px 0; margin: -10px 0; }
}

/* tee choice (lib/tees): a player's tee when it isn't the week's, and the booking's Tees card */
.tee-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--tee, #8d939e); border: 1px solid rgba(255, 255, 255, 0.35); flex: none; }
.ts-tee-line { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ts-tee-line .icon { width: 16px; height: 16px; flex: none; }
.ts-ev-tee { color: var(--gold-strong); font-weight: 600; }
.ts-chip-tee { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--gold-strong); font-weight: 600; }
.ts-chip-tee .tee-dot, .ts-seat-tee .tee-dot { width: 9px; height: 9px; }
.ts-seat-tee { display: flex; align-items: center; gap: 6px; }
.ts-seat-tee.is-moved { color: var(--gold-strong); }
.ts-teeform fieldset, .ts-tee-options { display: grid; gap: 6px; border: 0; margin: 0 0 8px; padding: 0; }
.ts-tee-admin summary { list-style: none; }
.ts-tee-admin .ts-addform { flex-wrap: wrap; }

/* a walk-in an admin recorded (routes/bookings.js) */
.ts-ev-walkin { color: var(--blue); font-weight: 600; }
.ts-legend-walkin { font-size: 11px; padding: 1px 7px; }
.ts-admin-edit { margin-top: 10px; }
