/* FlexTee members area. Built on the site's tokens (styles.css); mobile first. */
.pt-hero .page-hero__content { padding-block: calc(var(--header-h) + var(--s-4)) var(--s-3); }
.pt-hero .h2 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.pt-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: var(--fs-small); }
.pt-nav a, .pt-nav .pt-linkbtn { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.pt-nav[hidden] { display: none; }
.pt-main { padding-block: var(--s-4) var(--s-6); }
.pt-wrap { max-width: 760px; }
.pt-wrap--wide { max-width: 1440px; }
.pt-main [data-portal] > * + * { margin-top: var(--s-3); }

.pt-card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.1rem, 4vw, 2rem); }
.pt-card > * + * { margin-top: var(--s-2); }
.pt-card.form > * + * { margin-top: 0; }
.btn--block { width: 100%; }
.pt-big { min-height: 64px; font-size: .95rem; }
.pt-hello { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.pt-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4.5vw, 2.1rem); margin-top: var(--s-4); }
.pt-h3 { font-size: 1rem; font-weight: 600; margin-top: var(--s-3); }
.pt-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pt-msg { padding: .85rem 1rem; border-left: 4px solid var(--sage); background: #f3f7f4; font-size: .98rem; }
.pt-msg--ok { border-color: var(--green); }
.pt-msg--warn { border-color: #b7791f; background: #fbf6ec; }
.pt-msg--error { border-color: #b3261e; background: #fbefee; }
.pt-msg a { color: inherit; }

/* Live recording screen */
.pt-status { border-top: 4px solid var(--line); }
.pt-status--on { border-top-color: var(--green); }
.pt-status--done { border-top-color: var(--sage); }
.pt-status__big { font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.15; }
.pt-dot { display: inline-block; width: .55em; height: .55em; margin-right: .45em; border-radius: 50%; background: #c0392b; vertical-align: .12em; animation: pt-pulse 1.6s ease-in-out infinite; }
@keyframes pt-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pt-dot { animation: none; } }
.pt-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pt-stats > div { background: var(--white); padding: .85rem 1rem; display: grid; gap: .15rem; }
.pt-stats .pt-wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .pt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pt-k { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pt-v { font-family: var(--serif); font-size: 2rem; line-height: 1.05; color: var(--green-ink); }
.pt-v small { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.pt-v--sm { font-family: var(--sans); font-size: 1rem; }
.pt-end { text-align: center; font-size: var(--fs-small); color: var(--muted); }

/* Session list */
.pt-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pt-session { display: grid; gap: .2rem; padding: 1rem 1.1rem; background: var(--white); text-decoration: none; }
.pt-session:hover, .pt-session:focus-visible { background: #f7f6f1; }
.pt-session__date { font-weight: 600; }
.pt-session__meta { font-size: var(--fs-small); color: var(--muted); }

/* Session detail */
.pt-filter { display: inline-flex; border: 1px solid var(--green); }
.pt-filter button { background: transparent; border: 0; padding: .6rem 1.1rem; min-height: 44px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--green); }
.pt-filter button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.pt-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pt-table th, .pt-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pt-table th:first-child, .pt-table td:first-child { text-align: left; }
.pt-table--shots td:nth-child(2), .pt-table--shots td:nth-child(5), .pt-table--shots th:nth-child(2), .pt-table--shots th:nth-child(5) { text-align: left; }
.pt-table--shots th, .pt-table--shots td { padding-inline: .5rem; }
.pt-table thead th { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #f7f6f1; position: sticky; top: 0; }
.pt-x { background: none; border: 1px solid var(--line); width: 36px; height: 36px; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.pt-x:hover { color: #b3261e; border-color: #b3261e; }
.pt-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: var(--s-4); }

/* Admin */
.pt-section + .pt-section { margin-top: var(--s-5); }
.pt-meter + .pt-meter { margin-top: var(--s-3); }
.pt-meter__top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-small); margin-bottom: .4rem; flex-wrap: wrap; }
.pt-bar { height: 12px; background: var(--paper-2); }
.pt-bar span { display: block; height: 100%; background: var(--green); }
.pt-bar--amber span { background: #b7791f; }
.pt-bar--red span { background: #b3261e; }
.pt-bays { display: grid; gap: var(--s-2); }
@media (min-width: 860px) { .pt-bays { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pt-bay__name { font-family: var(--serif); font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.pt-pill { font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; }
.pt-pill--on { background: #e3efe6; color: var(--green); }
.pt-pill--off { background: #f3e3e1; color: #8a1f17; }
.pt-names { columns: 2 14rem; font-size: var(--fs-small); padding-left: 1.1rem; }
.pt-preview > * + * { margin-top: var(--s-1); }
details.pt-card summary { cursor: pointer; font-weight: 600; }
.pt-prose > * + * { margin-top: var(--s-2); }
.pt-prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-top: var(--s-4); }
.pt-prose ul { padding-left: 1.2rem; }
.pt-confirm { background: #fff3c4; padding: 0 .25em; font-weight: 600; }

/* ===================================================================
   Dark app layout (members area). Tokens are redefined on body.pt-app so
   every members component above picks up the dark theme. FlexTee colours:
   deep green-black surfaces, sage text accents, a brighter lime-sage for
   highlights and primary buttons.
   =================================================================== */
body.pt-app {
  --app-bg: #0a120d;
  --app-card: #111c16;
  --app-card-2: #172620;
  --app-line: rgba(207, 224, 211, 0.10);
  --app-text: #e9f0eb;
  --app-muted: #93a59a;
  --accent: #a8dd6c;        /* highlight / primary */
  --accent-ink: #0a120d;
  --blue: #6cb8e6;          /* second data series */
  --violet: #b493e8;        /* third data series */
  --amber: #e7b453;
  --red: #e5786d;

  --white: var(--app-card);
  --paper: var(--app-bg);
  --paper-2: var(--app-card-2);
  --ink: var(--app-text);
  --muted: var(--app-muted);
  --line: var(--app-line);
  --green: var(--accent);
  --green-ink: var(--app-text);
  --header-h: 0px;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--sans);
}
html:has(body.pt-app) { background: #0a120d; color-scheme: dark; }
body.pt-app a { color: inherit; }
body.pt-app .btn--green { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.pt-app .btn--green:hover { background: #bfe98c; border-color: #bfe98c; }
body.pt-app .btn--ghost { color: var(--app-text); border-color: var(--app-line); background: transparent; }
body.pt-app input, body.pt-app select { background: var(--app-bg); color: var(--app-text); border-color: rgba(207,224,211,.22); }
body.pt-app .eyebrow { color: var(--accent); }
body.pt-app .form-note, body.pt-app .muted { color: var(--app-muted); }
body.pt-app .pt-msg { background: var(--app-card-2); }
body.pt-app .pt-msg--warn { background: rgba(231,180,83,.10); border-color: var(--amber); }
body.pt-app .pt-msg--error { background: rgba(229,120,109,.10); border-color: var(--red); }
body.pt-app .pt-msg--ok { background: rgba(168,221,108,.08); }
body.pt-app .pt-table thead th { background: var(--app-card-2); }
body.pt-app .pt-session:hover, body.pt-app .pt-session:focus-visible { background: var(--app-card-2); }
body.pt-app .pt-pill--on { background: rgba(168,221,108,.14); color: var(--accent); }
body.pt-app .pt-pill--off { background: rgba(229,120,109,.14); color: var(--red); }
body.pt-app .pt-confirm { background: rgba(231,180,83,.25); color: var(--app-text); }
body.pt-app .pt-status__big, body.pt-app .pt-hello, body.pt-app .pt-h, body.pt-app .pt-bay__name, body.pt-app .pt-v { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
body.pt-app .pt-v { color: var(--app-text); }
body.pt-app .pt-card { border-radius: 10px; }
body.pt-app .pt-stats, body.pt-app .pt-list, body.pt-app .table-wrap { border-radius: 10px; overflow: hidden; }
body.pt-app .table-wrap { overflow-x: auto; background: var(--app-card); border-color: var(--app-line); }
body.pt-app .pt-filter { border-radius: 8px; overflow: hidden; }
body.pt-app .pt-status--on { border-top-color: var(--accent); }

/* Shell: sidebar on desktop, tab bar on phones */
.app-main { min-height: 100vh; padding-bottom: 84px; }
.app-side { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: #070d09; border-top: 1px solid var(--app-line); }
.app-logo, .app-side__foot { display: none; }
.app-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); }
.app-nav a { display: grid; justify-items: center; gap: .25rem; padding: .6rem .25rem .55rem; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--app-muted); text-decoration: none; }
.app-nav a[hidden] { display: none; }
.app-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-nav a[aria-current="page"] { color: var(--accent); }
.app-nav a:hover { color: var(--app-text); }
.pt-app--bare .app-side { display: none; }
.pt-app--bare .app-main { padding-bottom: 0; }
@media (min-width: 960px) {
  .app-side { top: 0; right: auto; width: 96px; border-top: 0; border-right: 1px solid var(--app-line); display: flex; flex-direction: column; align-items: stretch; padding: 1.1rem 0 1rem; }
  .app-logo { display: grid; justify-items: center; gap: .3rem; padding: 0 .9rem 1.2rem; text-decoration: none; }
  .app-logo img { width: 64px; height: auto; }
  .app-logo span { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  .app-nav { grid-auto-flow: row; grid-auto-columns: auto; gap: .2rem; padding: 0; }
  .app-nav a { padding: .8rem .25rem; position: relative; }
  .app-nav a[aria-current="page"] { background: rgba(168,221,108,.07); }
  .app-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; }
  .app-side__foot { display: grid; gap: .6rem; justify-items: center; margin-top: auto; font-size: .66rem; }
  .app-logout { background: none; border: 1px solid var(--app-line); color: var(--app-text); border-radius: 6px; padding: .45rem .6rem; font: inherit; font-weight: 600; cursor: pointer; }
  .app-logout[hidden] { display: none; }
  .app-site { color: var(--app-muted); text-decoration: none; font-size: .6rem; }
  .app-main { margin-left: 96px; padding-bottom: 0; }
  .pt-app--bare .app-main { margin-left: 0; }
}

/* Page header and content width */
.app-head { padding: clamp(1.4rem, 4vw, 2.4rem) clamp(16px, 3vw, 40px) .4rem; }
.app-head .eyebrow { font-size: .68rem; letter-spacing: .16em; }
.app-title { font-family: var(--sans); font-weight: 650; font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; margin-top: .3rem; color: var(--app-text); }
.app-sub { color: var(--app-muted); font-size: .92rem; margin-top: .35rem; }
.app-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
body.pt-app .pt-main { padding: var(--s-3) clamp(16px, 3vw, 40px) var(--s-6); }
body.pt-app .pt-wrap { max-width: 760px; margin-inline: auto; }
body.pt-app .pt-wrap--wide { max-width: 1480px; }
.pt-app--bare .app-head { text-align: center; padding-top: clamp(2rem, 7vw, 4rem); }
.pt-app--bare .app-head .pt-wrap::before { content: ""; display: block; width: 120px; height: 48px; margin: 0 auto 1.4rem; background: url(/assets/img/logo-white.svg) center / contain no-repeat; }

/* Segmented control (date range) */
.pt-seg { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.pt-seg[hidden] { display: none; }
.pt-seg button { background: var(--app-card); color: var(--app-text); border: 1px solid var(--app-line); border-radius: 7px; padding: .5rem .85rem; min-height: 40px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pt-seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* My game dashboard */
.g-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .g-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.g-card { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 12px; padding: 1rem 1.1rem; min-width: 0; }
.g-kpi { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.g-k { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--app-muted); }
.g-v { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.g-v small { font-size: .55em; font-weight: 500; color: var(--app-muted); margin-left: .15em; }
.g-note { font-size: .72rem; color: var(--app-muted); margin-top: .2rem; }
.g-v--accent { color: var(--accent); }
.g-v--blue { color: var(--blue); }
.g-v--violet { color: var(--violet); }
.g-ring { flex: none; display: block; }
.g-ring text { font: 600 13px var(--sans); fill: var(--app-text); }
.g-grid { display: grid; gap: .9rem; margin-top: .9rem; }
@media (min-width: 1180px) { .g-grid { grid-template-columns: minmax(0, 2.3fr) minmax(320px, 1fr); align-items: start; } }
.g-side { display: grid; gap: .9rem; }
.g-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .8rem; }
.g-h h2 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.g-h select { min-height: 36px; border-radius: 7px; padding: .3rem .6rem; font: inherit; font-size: .85rem; }
.g-table-wrap { overflow-x: auto; margin: 0 -1.1rem; padding: 0 1.1rem; }
.g-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9rem; }
.g-table th { font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--app-muted); text-align: right; padding: .5rem .6rem; white-space: nowrap; border-bottom: 1px solid var(--app-line); }
.g-table td { text-align: right; padding: .7rem .6rem; border-bottom: 1px solid var(--app-line); white-space: nowrap; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table th:first-child, .g-table td:first-child { text-align: left; padding-left: 0; }
.g-table td.g-shape, .g-table th.g-shape { text-align: left; }
.g-club { display: flex; align-items: center; gap: .65rem; }
.g-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.g-badge--wood { background: #7fd3a5; } .g-badge--hybrid { background: var(--blue); } .g-badge--iron { background: var(--violet); } .g-badge--wedge { background: var(--amber); }
.g-club b { display: block; font-weight: 600; }
.g-club small { display: block; font-size: .7rem; color: var(--app-muted); }
.g-dim { color: var(--app-muted); }
.g-l { color: var(--amber); } .g-r { color: var(--blue); }
.g-chart { width: 100%; height: auto; display: block; }
.g-chart text { font: 500 10px var(--sans); fill: var(--app-muted); }
.g-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .75rem; color: var(--app-muted); }
.g-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; vertical-align: .05em; }
.g-sessions { display: grid; }
.g-session { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--app-line); text-decoration: none; }
.g-session:first-child { border-top: 0; padding-top: 0; }
.g-session b { display: block; font-size: .9rem; font-weight: 600; }
.g-session small { display: block; font-size: .72rem; color: var(--app-muted); margin-top: .1rem; }
.g-session__n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.g-session:hover b { color: var(--accent); }
.g-insights { display: grid; gap: .9rem; margin-top: .9rem; }
@media (min-width: 760px) { .g-insights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-insight b { display: block; color: var(--accent); font-size: .8rem; font-weight: 600; margin-bottom: .25rem; }
.g-insight p { font-size: .9rem; }
.g-foot { font-size: .72rem; color: var(--app-muted); margin-top: .9rem; }
.g-cons { display: inline-flex; align-items: center; gap: .45rem; justify-content: flex-end; min-width: 4.6rem; }
.g-grid > *, .g-side > * { min-width: 0; }
@media (max-width: 599px) {
  .g-kpi .g-ring { display: none; }
  .g-kpis > :last-child:nth-child(odd), .c-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Session page: dispersion map */
.pt-seg-btn { background: var(--app-card); color: var(--app-text); border: 1px solid var(--app-line); border-radius: 7px; padding: .5rem .85rem; min-height: 40px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pt-seg-btn:hover:not(:disabled) { border-color: rgba(207,224,211,.3); }
.pt-seg-btn:disabled { opacity: .4; cursor: default; }
.s-del, .s-del-session { color: var(--red); }
.s-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.s-actions[hidden] { display: none; }
.pt-seg--sm button { padding: .4rem .7rem; min-height: 36px; font-size: .8rem; }
.s-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .s-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.s-grid { display: grid; gap: .9rem; margin: .9rem 0; }
.s-grid > * { min-width: 0; }
@media (min-width: 760px) { .s-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .s-filter { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .s-grid { grid-template-columns: 250px minmax(0, 1fr) 340px; align-items: start; } .s-filter { grid-column: auto; } }
.s-clubs { display: flex; gap: .4rem; overflow-x: auto; margin-top: .6rem; padding-bottom: .2rem; }
@media (min-width: 1200px) { .s-clubs { flex-direction: column; overflow: visible; } }
.s-club { display: flex; align-items: center; gap: .55rem; flex: none; background: transparent; color: var(--app-text); border: 1px solid var(--app-line); border-radius: 8px; padding: .55rem .7rem; min-height: 42px; font: inherit; font-size: .88rem; cursor: pointer; text-align: left; }
.s-club i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.s-club span { flex: 1; white-space: nowrap; }
.s-club b { font-weight: 600; color: var(--app-muted); font-variant-numeric: tabular-nums; }
.s-club[aria-pressed="true"] { border-color: var(--accent); background: rgba(168,221,108,.08); }
.s-gap { margin-top: 1rem; margin-bottom: .45rem; }
.s-check { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: var(--app-muted); cursor: pointer; }
.s-check input { width: 18px; height: 18px; accent-color: #a8dd6c; }
.s-map__svg { width: 100%; height: auto; display: block; max-height: 78vh; }
.s-map__svg text { font: 500 11px var(--sans); fill: var(--app-muted); }
.s-map__svg .s-map__target { fill: var(--app-text); font-weight: 600; }
.s-map__svg .s-map__empty { font-size: 14px; }
.s-dot { cursor: pointer; }
.s-dot:hover { stroke: #fff; stroke-width: 2; }
.s-detail__top { display: flex; align-items: center; gap: .7rem; }
.s-detail__top b { display: block; font-size: 1.05rem; }
.s-detail__top small { display: block; font-size: .75rem; color: var(--app-muted); }
.s-detail__big { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0 .4rem; padding: .9rem 0; border-block: 1px solid var(--app-line); }
.s-dl { display: grid; margin-top: .6rem; font-size: .86rem; }
.s-dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px solid var(--app-line); }
.s-dl dt { color: var(--app-muted); }
.s-dl dd { font-variant-numeric: tabular-nums; font-weight: 600; margin: 0; }
.s-detail__nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.g-table tr[data-row], .g-table tr[data-club-row] { cursor: pointer; }
.g-table tr[data-row]:hover td, .g-table tr[data-club-row]:hover td { background: rgba(207,224,211,.04); }
.g-table tr.is-on td { background: rgba(168,221,108,.09); }
.s-dotkey { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .45rem; vertical-align: .05em; }
.s-shots td:nth-child(2), .s-shots th:nth-child(2), .s-shots td:nth-child(5), .s-shots th:nth-child(5) { text-align: left; }
.s-back { margin-top: 1rem; }
[data-portal="session"] > .g-card { margin-top: .9rem; }
.s-detail__big > div { display: grid; gap: .15rem; }
@media (max-width: 599px) { .s-map__svg text { font-size: 19px; } .s-dot { r: 8px; } }

/* Live recording screen */
[data-portal="bay"] > .pt-card, [data-portal="bay"] > .pt-msg { max-width: 640px; margin-inline: auto; }
.l-wrap { display: grid; gap: .9rem; max-width: 1240px; margin-inline: auto; }
.l-wrap > .pt-msg { margin: 0; }
.l-status { padding: .85rem 1.1rem; }
.l-status__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.l-rec { display: inline-flex; align-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.l-badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: rgba(168,221,108,.14); color: var(--accent); }
.l-left { margin-left: auto; font-size: .85rem; color: var(--app-muted); font-variant-numeric: tabular-nums; }
.l-bar { height: 5px; border-radius: 3px; background: rgba(207,224,211,.1); margin-top: .7rem; overflow: hidden; }
.l-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.l-status--wait { padding: 1.2rem 1.1rem; }
.l-status__big { font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 650; letter-spacing: -.02em; margin: .6rem 0 .3rem; }
.l-grid { display: grid; gap: .9rem; }
.l-grid > * { min-width: 0; }
.l-col { display: grid; gap: .9rem; align-content: start; }
@media (min-width: 900px) { .l-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.l-hero { padding: 1.2rem 1.2rem 1.1rem; text-align: center; }
.l-hero__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; }
.l-where { font-size: .78rem; color: var(--app-muted); }
.l-club { font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 650; letter-spacing: -.02em; margin-top: .6rem; }
.l-hero--empty { text-align: left; }
.l-hero--empty .l-club { font-size: 1.6rem; }
.l-big { display: grid; grid-template-columns: 1fr 1fr; margin-top: .9rem; }
.l-big > div { display: grid; gap: .2rem; padding: .4rem 0; }
.l-big > div + div { border-left: 1px solid var(--app-line); }
.l-num { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.l-num small { font-size: .32em; font-weight: 500; color: var(--app-muted); margin-left: .15em; letter-spacing: 0; }
.l-pending { margin-top: .5rem; font-size: .85rem; color: var(--amber); }
.l-off { margin-top: .7rem; font-size: 1.05rem; font-weight: 600; min-height: 1.4em; }
.l-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--app-line); border: 1px solid var(--app-line); border-radius: 10px; overflow: hidden; margin-top: 1rem; text-align: left; }
.l-mini > div { background: var(--app-card); padding: .7rem .8rem; display: grid; gap: .15rem; }
.l-mini b { font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.l-mini b small, .l-mini > div > small { font-size: .7rem; font-weight: 500; color: var(--app-muted); }
.l-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.l-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--app-line); border-radius: 999px; padding: .3rem .65rem; font-size: .8rem; }
.l-chip i { width: 8px; height: 8px; border-radius: 50%; }
.l-chip span { color: var(--app-muted); font-variant-numeric: tabular-nums; }
.l-map { margin-top: .8rem; }
.l-map .s-map__svg { max-height: 420px; margin-inline: auto; }
.l-recent td:nth-child(2), .l-recent th:nth-child(2) { text-align: left; }
.l-done { max-width: 640px; margin-inline: auto; width: 100%; padding: 1.3rem; }
.l-done__big { font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 650; letter-spacing: -.02em; margin: .4rem 0 0; }
.l-done .btn { margin-top: 1.1rem; }
.l-mini .g-k { letter-spacing: .06em; font-size: .6rem; white-space: nowrap; }
.l-mini b { white-space: nowrap; font-size: 1.15rem; }
@media (max-width: 380px) { .l-mini > div { padding: .6rem .55rem; } }
.l-mini > div { align-content: start; }
@media (min-width: 900px) { .l-map .s-map__svg { max-height: 600px; } }

/* Club detail */
.c-back { font-size: .8rem; color: var(--app-muted); text-decoration: none; }
.c-back:hover { color: var(--accent); }
.c-title { display: flex; align-items: center; gap: .7rem; }
.c-title .g-badge { width: 42px; height: 42px; font-size: .8rem; }
.c-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .c-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .c-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); } .c-kpis .g-kpi { flex-direction: column; align-items: flex-start; } .c-kpis .g-ring { align-self: flex-end; margin-top: -.5rem; } }
.c-two { display: grid; gap: .9rem; margin-top: .9rem; }
.c-two > * { min-width: 0; }
@media (min-width: 1000px) { .c-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.c-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-map .s-map__svg { max-height: 460px; margin-inline: auto; }
.c-miss { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-top: .9rem; background: rgba(207,224,211,.1); }
.c-miss__l { background: var(--amber); } .c-miss__c { background: var(--accent); } .c-miss__r { background: var(--blue); }
.c-miss__key { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; font-weight: 600; margin-top: .45rem; }
.c-diags { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.c-diags figure { margin: 0; background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 10px; padding: .5rem; }
.c-diag { width: 100%; height: auto; display: block; }
.c-diag text { font: 500 11px var(--sans); fill: var(--app-muted); }
.c-diags figcaption { font-size: .7rem; color: var(--app-muted); text-align: center; margin-top: .3rem; }
.c-diags figcaption i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 .25rem 0 .4rem; }
.c-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--app-line); border: 1px solid var(--app-line); border-radius: 10px; overflow: hidden; margin-top: .9rem; }
@media (min-width: 600px) { .c-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .c-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .c-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.c-stat { background: var(--app-card); padding: .7rem .8rem; display: grid; gap: .15rem; }
.c-stat b { font-size: 1.2rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.c-stat small { font-size: .72rem; color: var(--app-muted); min-height: 1em; }
.c-blue { color: var(--blue); } .c-green { color: var(--accent); } .c-violet { color: var(--violet); }
.g-link { cursor: pointer; }
.g-link:hover td { background: rgba(207,224,211,.04); }
.g-club a { text-decoration: none; }
.g-link:hover .g-club a { color: var(--accent); }

/* Admin: bay QR codes */
.pt-qr__img { background: #fff; border-radius: 8px; padding: 8px; max-width: 220px; }
.pt-qr__img svg { display: block; width: 100%; height: auto; }
.pt-qr__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Admin: website chat history (/admin/chats/) */
.pt-chat-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between; margin-top: var(--s-3); }
.pt-chat-search { margin: 0; flex: 1 1 220px; max-width: 360px; }
.pt-chat-search input { width: 100%; }
.pt-chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-chats { display: grid; gap: .6rem; margin-top: var(--s-2); }
.pt-card.pt-chat { padding: 0; }
.pt-chat > summary { display: grid; gap: .25rem; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.pt-chat > summary::-webkit-details-marker { display: none; }
.pt-chat > summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.pt-chat[open] > summary { border-bottom: 1px solid var(--line); }
.pt-chat__when { font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pt-chat__first { font-weight: 600; overflow-wrap: anywhere; }
.pt-chat__meta { font-size: var(--fs-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pt-chat__msgs { list-style: none; margin: 0 !important; padding: 1rem 1.1rem 1.2rem; display: grid; gap: .7rem; }
.pt-chat__msg { max-width: min(42rem, 88%); padding: .65rem .85rem; border-radius: 10px; background: var(--paper-2); }
.pt-chat__msg--visitor { justify-self: end; background: rgba(168,221,108,.12); }
.pt-chat__msg p { margin: .2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-chat__who { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
