:root {
  --green: #1f6b3a;
  --green-deep: #124526;
  --fairway: #3d8f54;
  --flag: #d32f2f;
  --sand: #f4efe4;
  --ink: #1b241d;
  --muted: #5d6b61;
  --line: #d7e5d9;
  --paper: #eef5ef;
  --white: #fff;
  --shadow: 0 10px 28px rgba(18, 69, 38, 0.1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Calibri, Arial, sans-serif; font-size: 14px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 14px; }
h5 { font-size: 11px; }
h6 { font-size: 9px; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--fairway); }
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 22px; background: var(--white); border-bottom: 2px solid var(--green);
  box-shadow: var(--shadow);
}
.top-bar-center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  padding: 10px 22px;
}
.top-bar-center .brand img {
  height: 56px;
  width: 56px;
}
.top-bar-center .top-wordmark {
  font-size: 20px;
}
.top-bar-center .top-actions {
  justify-self: end;
  align-self: center;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; justify-self: start; z-index: 1; }
.brand img {
  height: 28px; width: 28px; object-fit: contain; display: block; flex-shrink: 0;
  border-radius: 50%; background: #fff;
}
.top-wordmark {
  justify-self: center; z-index: 1; color: inherit;
  font-size: 14px; line-height: 1;
}
.top-wordmark .wordmark { font-size: 1em; }
.brand-name { font-weight: 700; font-size: 20px; color: var(--green-deep); letter-spacing: .02em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wordmark { display: inline-flex; align-items: center; color: var(--green-deep); line-height: 1; }
.wordmark-line { display: inline-flex; align-items: center; }
.wm-txt { font-weight: 700; letter-spacing: .02em; }
.wm-gap { width: .32em; }
.wm-ball, .wm-tee { display: block; flex-shrink: 0; overflow: visible; }
.wm-ball { width: .92em; height: .92em; margin: 0 .04em; }
.wm-tee { width: .42em; height: .95em; margin: 0 .05em .02em; }
.wm-ball-fill { fill: #fff; }
.wm-ball-edge { stroke: var(--green-deep); stroke-width: 1.8; }
.wm-dimples { fill: #c5d0c7; }
.wm-tee path, .wm-tee rect { fill: var(--green-deep); }
.brand .wordmark { font-size: 14px; }
.top-actions { display: flex; gap: 8px; align-items: center; justify-self: end; z-index: 1; }
.build-ver {
  font-size: 12px;
  line-height: 1;
  color: var(--muted, #5c6b63);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.top-app-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-deep);
  flex-shrink: 0;
}
.top-app-dl img {
  width: 20px;
  height: 20px;
  display: block;
}
.top-app-dl:hover {
  background: var(--paper);
  color: var(--green-deep);
}
.pwa-install[hidden],
.pwa-install [hidden] {
  display: none !important;
}
.pwa-install {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 69, 38, 0.55);
}
.pwa-install-sheet {
  width: min(440px, 100%);
  background: #fff;
  color: #124526;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(18, 69, 38, 0.28);
  padding: 20px 18px 16px;
}
.pwa-install-sheet h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}
.pwa-install p,
.pwa-install-sheet > p {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.pwa-install-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.pwa-step-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f3ec;
  color: #124526;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pwa-step-icon svg { width: 22px; height: 22px; display: block; }
.pwa-install-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pwa-login-install { margin: 16px 0 0; }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .pwa-install,
  .js-app-install,
  .top-app-dl,
  .m-switch,
  .pwa-web-escape {
    display: none !important;
  }
}
html.gb-standalone .pwa-install,
html.gb-standalone .js-app-install,
html.gb-standalone .top-app-dl,
html.gb-standalone .m-switch,
html.gb-standalone .pwa-web-escape,
html.gb-pwa-installed .pwa-install,
html.gb-pwa-installed .js-app-install,
html.gb-pwa-installed .top-app-dl {
  display: none !important;
}
.pwa-install-spin {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pwa-spin 0.7s linear infinite;
}
.pwa-install-busy .pwa-install-spin { display: inline-block; }
.pwa-install-busy #pwa-install-go,
.pwa-install-busy #pwa-install-no,
#pwa-install-go:disabled,
#pwa-install-no:disabled {
  pointer-events: none;
  opacity: 0.75;
  cursor: wait;
}
.js-app-install.is-installing,
.top-app-dl.is-installing {
  pointer-events: none;
  opacity: 0.55;
}
.pwa-install-manual #pwa-install-go {
  display: none !important;
}
@keyframes pwa-spin {
  to { transform: rotate(360deg); }
}
.pwa-update[hidden] { display: none !important; }
.pwa-update {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 69, 38, 0.45);
}
.pwa-update-card {
  width: min(420px, 100%);
  background: #fff;
  color: #124526;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(18, 69, 38, 0.22);
  padding: 16px;
}
.pwa-update-card p {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.pwa-update-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.top-bar .btn {
  padding: 3px 10px;
  font-size: 12px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 16px; font-weight: 600; cursor: pointer; font-size: 14px;
}
.btn:hover { background: var(--green-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--green-deep); border: 1px solid var(--line); }
.btn.danger { background: var(--flag); }
.btn.is-waiting,
.btn.is-waiting:disabled,
.btn.is-waiting:hover {
  background: var(--flag);
  border-color: var(--flag);
  color: #fff;
  cursor: not-allowed;
  opacity: 0.9;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 18px 60px; }
.home-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px; align-items: start;
}
.home-schools {
  position: sticky; top: 16px; max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; overflow: hidden;
}
.home-schools h2 { flex-shrink: 0; }
.home-school-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  flex-shrink: 0;
}
.home-school-stat {
  padding: 8px;
  border-radius: 10px;
  background: #f3faf4;
  border: 1px solid var(--line);
}
.home-school-stat-num {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--green-deep);
}
.home-school-stat-lab {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.home-school-stat-lab strong { color: var(--green-deep); }
.school-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.school-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.school-list li:last-child { border-bottom: 0; }
.school-icon {
  width: 40px; height: 40px; object-fit: cover; border-radius: 8px;
  flex-shrink: 0; background: #f3faf4; border: 1px solid var(--line);
}
.school-icon-link {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  color: inherit;
}
.school-icon-lg { width: 72px; height: 72px; }
.school-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.school-country .country-flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
}
.school-pick-text .school-country {
  display: flex;
  justify-content: flex-start;
}
.profile-school-tile-text .school-country {
  display: flex;
  justify-content: flex-start;
}
.school-icon-edit { display: flex; gap: 16px; align-items: flex-start; }
.school-icon-edit form { flex: 1; min-width: 0; }
.school-ident {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.school-ident .school-icon-lg {
  width: 96px;
  height: 96px;
}
.school-ident-form .field { margin-bottom: 10px; }
.school-ident-read p { margin: 0 0 8px; }
/* Hero fairway: original illustration inspired by Augusta National Amen Corner. */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(10, 36, 20, 0.58) 0%, rgba(18, 69, 38, 0.38) 48%, rgba(18, 69, 38, 0.18) 100%),
    url("/img/hero-fairway.jpg?v=20260914d") center / cover no-repeat;
  color: #fff; border-radius: 18px; padding: 42px 36px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-body {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; align-items: start;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hero-copy { min-width: 0; }
.hero-list {
  margin: 0 0 12px 1.2em;
  padding: 0;
  color: #f3faf4;
  text-shadow: 0 1px 8px rgba(10, 36, 20, 0.45);
}
.hero-list li { margin: 0 0 4px; }
.hero-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-top .hero-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-top: 0;
  gap: 8px;
}
.hero-btn {
  min-width: 196px;
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  gap: 8px;
}
.hero-top .hero-btn {
  min-width: 168px;
}
.hero-btn-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.hero h1 { margin: 0; font-size: 34px; line-height: 1.15; }
.hero h1.wordmark-hero { margin: 0 0 20px; font-size: 44px; }
.hero p { margin: 0 0 12px; line-height: 1.5; color: #f3faf4; text-shadow: 0 1px 8px rgba(10, 36, 20, 0.45); }
.hero .tagline { font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 16px; }
.hero h2 { margin: 18px 0 10px; font-size: 22px; line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(10, 36, 20, 0.45); }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}
.hero-stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 36, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stat-num {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(10, 36, 20, 0.45);
}
.hero-stat-lab {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(10, 36, 20, 0.45);
}
.hero-stat-lab strong { color: #fff; }
.hero .closer { font-weight: 700; color: #fff; margin: 16px 0 0; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(18, 69, 38, 0.25); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-logo {
  justify-self: start; width: 72px; height: 72px; padding: 0;
  background: #fff; border-radius: 50%; overflow: hidden;
  box-shadow: 0 8px 20px rgba(18, 69, 38, 0.18);
  flex-shrink: 0;
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 12%; box-sizing: border-box; }
.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 22px; align-items: start;
}
.buddy-home .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-info-card { position: relative; }
.home-info-icon {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 0 10px;
}
.home-dash {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  align-items: stretch;
}
.home-dash-box {
  border-radius: 22px;
  min-height: 240px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.home-dash-box h2 {
  font-size: 20px;
}
.home-dash-num {
  margin: 4px 0 10px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--green-deep);
}
.home-dash-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  flex: 1;
}
.home-dash-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.home-dash-list li:last-child { border-bottom: 0; }
.home-dash-list a { display: block; font-weight: 700; }
.home-dash-list .muted { display: block; font-size: 12px; }
.home-dash-box .btn { margin-top: auto; align-self: flex-start; }
.home-dash-box > p:last-child { margin-top: auto; }
.home-second {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}
.home-second-box {
  border-radius: 22px;
  min-height: 240px;
  padding: 22px 20px;
}
.home-fav-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}
.home-fav-tile {
  position: relative;
  border-radius: 16px;
  background: #f3faf4;
  border: 1px solid var(--line);
  min-height: 148px;
}
.home-fav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 12px 14px;
  color: inherit;
  text-decoration: none;
}
.home-fav-link strong {
  font-size: 13px;
  line-height: 1.25;
  color: var(--green-deep);
}
.home-fav-link span {
  font-size: 12px;
  color: var(--muted);
}
.home-fav-star-form,
.fav-star-form {
  margin: 0;
}
.home-fav-star,
.fav-star {
  border: 0;
  background: transparent;
  color: #c5c5c5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.home-fav-star {
  position: absolute;
  top: 6px;
  right: 8px;
}
.home-fav-star.is-on,
.fav-star.is-on {
  color: #e0a106;
}
.fav-star-club {
  font-size: 22px;
  padding: 0 4px 2px;
  flex-shrink: 0;
}
.home-played-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-played-list li {
  border-bottom: 1px solid var(--line);
}
.home-played-list li:last-child { border-bottom: 0; }
.home-played-list a {
  display: block;
  padding: 10px 0;
  color: inherit;
}
.home-played-list strong { display: block; color: var(--green-deep); }
.home-played-list .muted { display: block; font-size: 12px; }
.card { background: var(--white); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.card.home-dash-box,
.card.home-second-box {
  border-radius: 22px;
  padding: 24px 22px;
}
.card h2 { margin: 0 0 8px; font-size: 18px; color: var(--green-deep); }
.card.home-dash-box h2 { font-size: 20px; }
.card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--fairway); }
.card p.muted { margin: 0 0 10px; }
.card p.muted:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.app-shell { display: grid; grid-template-columns: max-content minmax(0, 1fr); min-height: calc(100vh - 78px); }
.side {
  background: var(--green-deep); color: #dff3e4; padding: 18px 12px;
}
.side a, .side span {
  display: block; color: #dff3e4; padding: 9px 12px; border-radius: 8px; margin-bottom: 4px;
  white-space: nowrap;
}
.side a.active, .side a:hover { background: rgba(255,255,255,.12); color: #fff; }
.side a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; background: rgba(255,255,255,.12); color: #fff; }
.side a.nav-circles { margin-bottom: 12px; font-weight: 700; }
.side.side-ico a { display: flex; align-items: center; gap: 10px; }
.side.side-ico a span { display: block; padding: 0; margin: 0; white-space: nowrap; }
.side .nav-ico { width: 18px; height: 18px; flex-shrink: 0; }
.side img.nav-ico { width: 20px; height: 20px; margin: -1px; object-fit: contain; }
.content { padding: 22px; }
.flash-ok { background: #e5f6ea; color: #146c2e; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.flash-err { background: #fdecea; color: #8a1f16; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
form .field { margin-bottom: 12px; }
.logo-url-input { display: block; width: 100%; margin-top: 8px; box-sizing: border-box; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.gender-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gender-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.gender-btn:has(input:checked),
.gender-btn[aria-pressed="true"] {
  background: #e5f6ea;
  border-color: var(--green);
}
input, select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
input[type="checkbox"], input[type="radio"] {
  width: auto; height: auto; padding: 0; margin: 0; flex-shrink: 0;
  accent-color: var(--green);
}
label.check {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; margin: 0 0 14px; cursor: pointer;
}
.login-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.login-actions a:not(.btn) { font-weight: 600; }
.pw-meter { margin-top: 6px; font-weight: 700; font-size: 11px; min-height: 1.2em; }
.pw-meter.pw-weak { color: #b42318; }
.pw-meter.pw-medium { color: #b54708; }
.pw-meter.pw-strong { color: #146c2e; }
.pw-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.pw-wrap input {
  padding-right: 42px;
}
.pw-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pw-eye:hover,
.pw-eye:focus {
  color: var(--green-deep);
  outline: none;
}
.pw-eye:focus-visible {
  box-shadow: 0 0 0 2px var(--green);
}
.pw-eye svg {
  width: 18px;
  height: 18px;
  display: block;
}
.profile-hero { display: flex; align-items: stretch; gap: 18px; margin-bottom: 22px; position: relative; }
.profile-hero-text {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.profile-hero-text .profile-heading {
  white-space: nowrap;
}
.profile-hero-boxes {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  align-self: stretch;
  align-items: stretch;
}
.profile-hero-box.profile-defaults-box,
.profile-hero-box.profile-hcp-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.profile-hero-box {
  position: relative;
  margin: 10px 0 0;
  padding: 16px 10px 8px;
  border: 1px solid #9bb89a;
  border-radius: 10px;
  background: transparent;
  min-width: 0;
}
.profile-hero-box > h3 {
  position: absolute;
  left: 14px;
  top: 0;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 6px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-deep);
  white-space: nowrap;
}
.profile-defaults-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.profile-hero-box .field { margin-bottom: 0; min-width: 0; }
.profile-hero-box label,
.profile-hero-box .field-label {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
  font-weight: 700;
}
.profile-hero-box input:not([type="radio"]):not([type="checkbox"]),
.profile-hero-box select {
  width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  background: transparent;
  border: 1px solid #c5d3c2;
  border-radius: 6px;
  box-sizing: border-box;
}
.profile-hero-box .gender-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}
.profile-hero-box .gender-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  box-sizing: border-box;
  line-height: 1;
  font-size: 11px;
  white-space: nowrap;
}
.profile-hero-box .gender-btn input[type="radio"] {
  width: auto;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
}
.profile-hero-box .hcp-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-hero-box .hcp-line input:not([type="radio"]) {
  flex: 1 1 64px;
  min-width: 52px;
  max-width: 80px;
  height: 28px;
}
.profile-hero-box .hcp-line .gender-btn {
  flex: 0 0 auto;
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  white-space: nowrap;
}
.profile-hero.is-ro .profile-hero-box input:not([type="hidden"]),
.profile-hero.is-ro .profile-hero-box select,
.profile-hero.is-ro .profile-hero-box .gender-btn {
  pointer-events: none;
}
.profile-hero.is-ro .profile-hero-box input:not([type="hidden"]):not([type="file"]),
.profile-hero.is-ro .profile-hero-box select {
  background: #f3f6f4;
}
.profile-hero-boxes-one { grid-template-columns: minmax(0, 1fr); }
.profile-cyc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  align-items: stretch;
}
.profile-cyc-col {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
.profile-hero-box .profile-cyc-col > label { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-hero-box .profile-cyc-col > input,
.profile-hero-box .profile-cyc-col > select,
.profile-hero-box .profile-cyc-col > textarea { width: 100%; max-width: none; min-width: 0; box-sizing: border-box; }
.profile-cyc-about { align-items: stretch; }
.profile-hero-box .profile-cyc-about > label { padding-top: 5px; }
.profile-cyc-about textarea { height: 100%; min-height: 56px; }

/* Cycling: Pelotons and Venues finder (list left, detail right) */
.cyc-find {
  display: grid;
  grid-template-columns: minmax(280px, 30%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.cyc-find-list, .cyc-find-side { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cyc-find-side > .card { margin: 0; }
.cyc-search { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cyc-search .club-search-row select {
  flex: 0 0 auto;
  max-width: 45%;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #f7fbf6;
}
.cyc-find-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cyc-find-btn { display: inline-flex; align-items: center; gap: 6px; }
.cyc-find-btn svg { width: 18px; height: 18px; }
.cyc-find-btn.is-on { background: #e5f6ea; }
.cyc-filters {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cyc-filters[hidden], .cyc-near[hidden] { display: none; }
.cyc-search-box { margin: 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; min-width: 0; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.cyc-search-box .cyc-find-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; }
.cyc-search-box .cyc-find-btn { justify-content: center; min-width: 0; white-space: nowrap; }
.cyc-search-box legend { padding: 0 4px; font-weight: 700; font-size: 13px; color: var(--green-deep); }
.cyc-search-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.course-page-search .cyc-search-grid input[type="search"],
.cyc-search-grid select { width: 100%; min-width: 0; box-sizing: border-box; }
.cyc-filters legend { padding: 0 4px; font-weight: 700; font-size: 13px; }
.cyc-filters .muted { margin: 0; font-size: 12px; }
.cyc-filter-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.cyc-filter-grid label { font-size: 13px; color: var(--muted); }
.cyc-unit { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cyc-unit input { width: 80px; }
.cyc-filter-actions { display: flex; gap: 8px; }
.cyc-near {
  padding: 8px 12px;
  border: 1px solid #8ec89a;
  border-radius: 10px;
  background: #f3faf4;
}
.cyc-near p { margin: 4px 0 0; font-size: 12px; }
.cyc-near-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cyc-near-close { border: 0; background: transparent; padding: 0 2px; font-size: 40px; line-height: 0.8; cursor: pointer; color: #b42318; }
.cyc-near-close:hover { color: #8f1c13; }
.cyc-filters { position: relative; }
.cyc-filters > .cyc-near-close { position: absolute; top: 2px; right: 8px; }
.cyc-dist { flex-shrink: 0; font-size: 12px; }
.cyc-find .club-block-head { flex-direction: column; align-items: stretch; gap: 4px; }
.cyc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cyc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2ee;
  color: #39463c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cyc-tag.is-open { background: #e5f6ea; color: #146c2e; }
.cyc-tag.cyc-amenity { background: #eef3f8; color: #2d4b63; }
.cyc-tag.cyc-amenity.is-on { background: #2d4b63; color: #fff; }
a.cyc-tag.cyc-amenity { text-decoration: none; }
a.cyc-tag.cyc-amenity:hover { background: #dbe6f0; }
.cyc-amenity-links { margin-bottom: 12px; }
.cyc-amenity-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cyc-amenity-filter-label { font-weight: 600; flex-basis: 100%; }
.cyc-tag.is-stop { background: #fff4dc; color: #8a5a00; }
.cyc-tag.is-arrive { background: #e6effc; color: #1f4f96; }
.cyc-tag .country-flag { margin: 0; }
.cyc-seal-sm { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cyc-detail-head { display: flex; gap: 14px; align-items: flex-start; }
.cyc-seal { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cyc-detail-title { flex: 1; min-width: 0; }
.cyc-detail-title h2 { margin: 0 0 4px; }
.cyc-detail-title p { margin: 4px 0; }
.cyc-join { flex-shrink: 0; }
.cyc-toolbar { margin: 0 0 0 auto; flex-wrap: nowrap; }
.cyc-toolbar-danger { color: #b42318; border-color: #f3c3bd; }
.cyc-toolbar-danger:hover { background: #fdf0ee; }
.cyc-logo-ball .cyc-seal { display: block; }
.cyc-logo-ball .club-logo-cam { right: -2px; bottom: -2px; }
.cyc-detail-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}
.cyc-detail-tile { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cyc-detail-foot .cyc-facts { margin: 0 0 12px; }
.cyc-detail-foot .cyc-detail-tile > :last-child { margin-bottom: 0; }
.cyc-detail-venues h3 { margin: 0 0 8px; font-size: 15px; }
.cyc-detail-venues .cyc-venue-list { margin-top: 8px; }
.cyc-detail-venues p { margin: 8px 0 0; }
@media (max-width: 700px) {
  .cyc-detail-foot { grid-template-columns: 1fr; }
}
.cyc-detail.is-edit .cyc-peloton-form,
.cyc-detail.is-edit .cyc-venue-form { margin-top: 14px; }
.cyc-join-switch { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .cyc-join-switch { grid-template-columns: 1fr; } }
.cyc-tag.is-closed { background: #f1f1f1; color: #555; }
.cyc-list-join { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.cyc-list-join form { margin: 0; }
.cyc-list-join .btn { padding: 4px 12px; font-size: .9em; }
.cyc-list-join .cyc-exit { color: var(--flag); border-color: rgba(211, 47, 47, .35); }
.cyc-home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cyc-home .home-dash.cyc-home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.cyc-home-tiles .card.home-dash-box { min-height: 190px; padding: 16px 14px; border-radius: 18px; }
.cyc-home-tiles .card.home-dash-box h2 { font-size: 16px; }
.cyc-home-tiles .home-dash-num { font-size: 32px; }
.cyc-home-tiles .muted { font-size: 13px; }
.cyc-home-side { display: grid; gap: 16px; }
.cyc-home .cyc-home-title,
.card .cyc-sec-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--green-deep); }
.card .cyc-sec-title { margin: 0 0 8px; }
.cyc-home .cyc-home-title .nav-ico,
.card .cyc-sec-title .nav-ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); }
.card .cyc-cal-head .cyc-sec-title { margin: 0; }
.card .cyc-sec-title .muted { font-weight: 400; }
.cyc-facts.cyc-facts-wide { width: 100%; grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
.cyc-facts.cyc-facts-wide dt,
.cyc-facts.cyc-facts-wide dd { padding: 6px 0; border-bottom: 1px solid #edf3eb; }
.cyc-facts.cyc-facts-wide dd { text-align: right; padding-left: 14px; }
.cyc-home-side .card { margin: 0; }
.cyc-home-side h2 { font-size: 18px; margin-top: 0; }
@media (max-width: 1100px) {
  .cyc-home .home-dash.cyc-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cyc-home { grid-template-columns: 1fr; }
}
.cyc-find .club-block-head.cyc-list-head { flex-direction: row; align-items: center; gap: 6px; }
.cyc-list-head .club-block-row { gap: 6px; }
.cyc-list-head .club-block-row .club-block-name { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cyc-list-head .club-block-row .cyc-tag { flex-shrink: 0; }
.cyc-list-head .cyc-dist { margin-left: auto; }
.cyc-list-head .club-block-row .club-block-flag { margin-left: 0; }
.cyc-list-act { margin: 0; flex-shrink: 0; }
.cyc-act-btn { display: inline-flex; flex-shrink: 0; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--green); cursor: pointer; }
.cyc-act-btn svg { width: 16px; height: 16px; }
.cyc-act-btn:hover { background: var(--paper); }
.cyc-act-btn.is-join { background: var(--green); border-color: var(--green); color: var(--white); }
.cyc-act-btn.is-join:hover { background: var(--green-deep); }
.cyc-act-btn.is-exit { color: var(--flag); border-color: rgba(211, 47, 47, .35); }
.cyc-act-btn.is-off { color: #9aa59d; background: transparent; cursor: default; }
.cyc-act-btn.is-blank { visibility: hidden; }
.cyc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 8px; }
.card .cyc-sec-head .cyc-sec-title { margin: 0; }
.cyc-race-when { flex-shrink: 0; font-size: 12px; white-space: nowrap; }
.cyc-req { color: #b42318; }
.cyc-ride-form .cyc-detail-tile .field:last-child { margin-bottom: 0; }
.cyc-ride-form .field input:not([type="checkbox"]),
.cyc-ride-form .field select,
.cyc-ride-form .field textarea { width: 100%; box-sizing: border-box; }
.cyc-form-foot { margin: 12px 0 0; }
.cyc-race-notes { margin: 0 0 12px; white-space: pre-line; }
.cyc-rider-list li .cyc-tag { margin-left: 6px; }
.cyc-join-switch legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.cyc-join-opt { position: relative; cursor: pointer; }
.cyc-join-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cyc-join-opt span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.cyc-join-opt small { color: var(--muted); font-size: 12px; }
.cyc-join-opt input:checked + span { border-color: var(--green); background: #e5f6ea; box-shadow: 0 0 0 1px var(--green); }
.cyc-join-opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.cyc-transfer { margin-top: 12px; border-top: 1px solid #edf3eb; padding-top: 10px; }
.cyc-link { color: var(--green-deep); font-weight: 600; text-decoration: underline; }
.cyc-venue-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; margin-top: 12px; align-items: stretch; }
.cyc-venue-titlerow { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cyc-detail-title.cyc-venue-titlerow h2 { margin: 0; }
.cyc-venue-titlerow .cyc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card .cyc-venue-info .cyc-sec-title:not(:first-child) { margin-top: 16px; }
.cyc-venue-map-tile { display: flex; flex-direction: column; }
.cyc-venue-map-tile .cyc-venue-map { flex: 1; }
.cyc-venue-races-tile { grid-column: 1 / -1; }
.cyc-venue-races-tile > :last-child { margin-bottom: 0; }
.cyc-venue-info { min-width: 0; }
.cyc-venue-card { scroll-margin-top: 72px; }
.cyc-venue-info .cyc-facts { margin-top: 0; }
.cyc-venue-info h3 { margin: 16px 0 0; font-size: 15px; }
.cyc-venue-map { min-height: 320px; border-radius: 10px; overflow: hidden; background: #f3faf4; display: flex; align-items: center; justify-content: center; }
.cyc-venue-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.cyc-venue-map p { padding: 16px; text-align: center; }
.cyc-venue-map { position: relative; }
.cyc-map-dir { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.cyc-map-dir svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .cyc-venue-split { grid-template-columns: 1fr; }
  .cyc-venue-map-tile { order: -1; }
}
.cyc-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 12px 0; }
.cyc-facts dt { color: var(--muted); }
.cyc-facts dd { margin: 0; font-weight: 600; }
.cyc-facts dd .country-flag { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.cyc-departure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #8ec89a;
  border-radius: 10px;
  background: #f3faf4;
}
.cyc-venue-list, .cyc-race-list, .cyc-manage-list, .cyc-owner-hits { list-style: none; margin: 10px 0 0; padding: 0; }
.cyc-venue-list li, .cyc-manage-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #edf3eb; }
.cyc-manage-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.cyc-manage-actions form { margin: 0; }
.cyc-role-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.cyc-role-chip { border: 1px solid #cfe0cb; background: #fff; color: inherit; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .9em; cursor: pointer; }
.cyc-role-chip span { color: #6b7a68; margin-left: 2px; }
.cyc-role-chip.is-on { background: #146c2e; border-color: #146c2e; color: #fff; }
.cyc-role-chip.is-on span { color: #d8f0de; }
.cyc-role-list li[hidden] { display: none; }
.cyc-role-list .cyc-venue-row { display: flex; align-items: center; gap: 8px; }
.cyc-venue-pin { display: inline-flex; flex: 0 0 auto; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; color: var(--green); background: var(--paper); }
.cyc-venue-pin svg { width: 17px; height: 17px; }
.cyc-venue-pin:hover { background: rgba(0, 0, 0, .1); }
.cyc-venue-pin.is-off { color: #b5b5b5; background: transparent; cursor: default; }
.cyc-title-tag { font-size: .55em; vertical-align: middle; margin-left: 8px; font-weight: 600; }
.cyc-role-form { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cyc-venue-roles { border: 0; margin: 0 0 10px; padding: 0; }
.cyc-venue-roles legend { font-weight: 600; margin-bottom: 4px; }
.cyc-venue-role-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 0; border-bottom: 1px solid #edf3eb; }
.cyc-venue-role-name { flex: 1 1 160px; font-weight: 600; }
.cyc-venue-remove { color: #b42318; }
.cyc-venue-add { margin-top: 10px; }
.cyc-race-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf3eb; }
.cyc-race-list li > div { min-width: 0; display: flex; flex-direction: column; }
.cyc-race-list form { margin: 0; flex-shrink: 0; }
.cyc-owner-hits li { margin: 4px 0; }
.cyc-owner-hits .btn { width: 100%; text-align: left; }
.cyc-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cyc-cal-head h3 { margin: 0; }
.cyc-cal-nav { display: flex; align-items: center; gap: 8px; }
.cyc-cal-nav .btn { padding: 2px 10px; }
.cyc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 0; }
.cyc-cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.cyc-cal-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  background: #f7fbf6;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
.cyc-cal-day.is-blank { background: transparent; }
.cyc-cal-day:hover { background: #e5f6ea; }
.cyc-cal-day.is-today { box-shadow: inset 0 0 0 1px var(--green); }
.cyc-cal-day.has-race { background: #d9f0de; font-weight: 700; }
.cyc-cal-day.has-race::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.cyc-cal-day.is-on { background: var(--green); color: #fff; }
.cyc-cal-day.is-on::after { background: #fff; }
.cyc-pop { position: relative; }
.cyc-pop > summary { list-style: none; cursor: pointer; }
.cyc-pop > summary::-webkit-details-marker { display: none; }
.cyc-pop:not(.cyc-pop-inline) > .cyc-pop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  width: min(460px, 92vw);
  max-height: 80vh;
  overflow: auto;
  margin: 0;
}
.cyc-members-pop > .cyc-pop-panel { width: min(340px, 92vw); text-align: left; }
.cyc-members-pop h3 { margin: 0 0 4px; }
.cyc-member-list li { justify-content: space-between; }
.cyc-pop-inline { display: block; margin-bottom: 10px; }
.cyc-pop-inline > .cyc-pop-panel { margin-top: 10px; }
.cyc-form-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.cyc-bikes { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cyc-bikes legend { font-weight: 600; margin-bottom: 4px; }
.cyc-owned-note { max-width: 320px; font-size: 13px; }
@media (max-width: 860px) {
  .cyc-find { grid-template-columns: 1fr; }
  .cyc-form-two { grid-template-columns: 1fr; }
}
.profile-hero-box textarea {
  width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  background: transparent;
  border: 1px solid #c5d3c2;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
}
.profile-hero.is-ro .profile-hero-box textarea,
.profile-hero.is-ro .profile-hero-box input[type="checkbox"] {
  pointer-events: none;
}
.profile-hero.is-ro .profile-hero-box textarea { background: #f3f6f4; }
@media (max-width: 760px) {
  .profile-cyc-grid { grid-template-columns: minmax(0, 1fr); }
}
.profile-hero.profile-hero-cycling {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.profile-hero-cycling .profile-hero-text { align-self: center; }
.profile-hero-cycling .profile-hero-boxes { align-self: stretch; }
.profile-hero-namerow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.profile-hero-cycling .profile-heading { margin: 0; }
@media (max-width: 900px) {
  .profile-hero.profile-hero-cycling { grid-template-columns: minmax(0, 1fr); }
}
.profile-hero-cycling .avatar-wrap,
.profile-hero-cycling .avatar { width: 75px; height: 75px; }
.profile-hero-cycling .avatar { border-width: 2px; }
.profile-hero-cycling .avatar-edit { width: 26px; height: 26px; right: -2px; bottom: -2px; }
.profile-hero-cycling .avatar-edit svg { width: 14px; height: 14px; }
.profile-hero.profile-hero-cycling.is-ro .avatar-edit { display: none; }
.profile-hero-cycling .profile-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  line-height: 22px;
}
.profile-hero-cycling .profile-heading .gender-ico { margin-right: 0; }
.profile-hero-cycling .profile-hero-namerow { align-items: flex-start; }
.profile-hero-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.profile-hero-titleline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-hero-cycling .profile-hero-icons { margin-top: 0; gap: 6px; }
.profile-hero-cycling .profile-hero-icons .profile-pw { align-self: center; }
.profile-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}
.profile-ico-btn svg { width: 18px; height: 18px; }
.profile-hero.profile-hero-golf {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 16px;
  align-items: center;
}
.profile-hero-golf .profile-hero-text.profile-hero-namerow {
  flex-direction: row;
  align-items: center;
  align-self: center;
}
.profile-hero-golf .profile-hero-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.profile-hero-golf .profile-hero-boxes { align-self: stretch; }
.profile-hero-golf .avatar-wrap,
.profile-hero-golf .avatar { width: 75px; height: 75px; }
.profile-hero-golf .avatar { border-width: 2px; }
.profile-hero-golf .avatar-edit { width: 26px; height: 26px; right: -2px; bottom: -2px; }
.profile-hero-golf .avatar-edit svg { width: 14px; height: 14px; }
.profile-hero-golf .profile-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  font-size: 22px;
  line-height: 22px;
}
.profile-hero-golf .profile-heading > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-hero-golf .profile-heading .gender-ico { margin-right: 0; flex: 0 0 auto; }
.profile-hero-golf .profile-hero-actions { margin-top: 2px; }
@media (max-width: 900px) {
  .profile-hero.profile-hero-golf { grid-template-columns: minmax(0, 1fr); }
}
.profile-hcp-chart {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 108px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-hcp-chart:hover { background: rgba(31, 107, 58, 0.04); }
.profile-hcp-chart:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.profile-hcp-bars {
  display: flex;
  align-items: stretch;
  gap: 3px;
  flex: 1;
  min-height: 88px;
}
.profile-hcp-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.profile-hcp-bar {
  width: 100%;
  max-width: 14px;
  border-radius: 3px 3px 0 0;
  background: #b7c9b6;
  min-height: 4px;
}
.profile-hcp-col.is-used .profile-hcp-bar { background: #1f6b3a; }
.profile-hcp-col.is-off .profile-hcp-bar { background: #d5d8d5; }
.profile-hcp-col.is-off .profile-hcp-val { text-decoration: line-through; }
.profile-hcp-val {
  font-size: 8px;
  line-height: 1.1;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}
.profile-hcp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.profile-hcp-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
  background: #b7c9b6;
}
.profile-hcp-swatch.is-used { background: #1f6b3a; }
.profile-hcp-open-hint { margin-left: auto; font-weight: 700; color: var(--green-deep); }
.profile-hcp-box .muted { margin: 8px 0 0; font-size: 11px; }
.profile-hcp-modal[hidden] { display: none !important; }
.profile-hcp-card { width: min(720px, 100%); }
.profile-hcp-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.profile-hcp-split {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
}
.profile-hcp-split::before,
.profile-hcp-split::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #9bb89a;
}
.profile-hcp-game {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px 48px 64px auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 6px;
  background: #fff;
}
.profile-hcp-game.in-20 { background: #f3faf4; }
.profile-hcp-game.is-used { border-color: #1f6b3a; }
.profile-hcp-game.is-off { opacity: 0.55; background: #f4f4f4; }
.profile-hcp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5eee6;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
}
.profile-hcp-game.is-twenty .profile-hcp-num {
  width: 32px;
  height: 32px;
  background: #1f6b3a;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(31, 107, 58, 0.2);
  font-size: 13px;
}
.profile-hcp-meta { min-width: 0; }
.profile-hcp-meta strong { display: block; font-size: 12px; }
.profile-hcp-meta span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-hcp-net { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.profile-hcp-diff { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--green-deep); }
.profile-hcp-flag {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
}
.profile-hcp-game.is-used .profile-hcp-flag { color: #1f6b3a; }
.profile-hcp-count { margin: 0; }
.profile-hcp-count label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.profile-hero-actions {
  margin-left: 0;
  margin-top: 4px;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.profile-hero-actions .btn { white-space: nowrap; }
.profile-hero .avatar-wrap,
.profile-hero-text { align-self: center; }
.profile-hero-text .profile-pw-panel {
  left: 0;
  right: auto;
}
@media (max-width: 1200px) {
  .profile-hero { flex-wrap: wrap; }
  .profile-hero-text { flex: 0 0 auto; }
  .profile-hero-boxes { flex: 1 1 100%; }
}
.profile-pw { position: relative; margin-left: 0; flex-shrink: 0; align-self: stretch; }
.profile-pw > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.profile-pw > summary::-webkit-details-marker { display: none; }
.profile-pw > summary::marker { content: ""; }
.profile-pw-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 25;
  width: 320px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; box-shadow: var(--shadow);
}
.profile-pw-panel h2 { margin: 0 0 10px; font-size: 16px; color: var(--green-deep); }
.avatar-wrap {
  position: relative; width: 120px; height: 120px; flex-shrink: 0;
}
.avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center;
  border: 3px solid #fff; box-shadow: var(--shadow); background: #124526; display: block;
}
.avatar-edit {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid #fff; box-shadow: var(--shadow);
}
.avatar-edit svg { width: 18px; height: 18px; display: block; }
.avatar-wrap:hover .avatar { filter: brightness(0.86); }
.avatar-edit:hover, .avatar-edit:focus-visible { background: #0d3320; }
.profile-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.profile-heading { margin: 0 0 6px; }
.profile-role { margin: 0; color: var(--muted); font-weight: 600; }
.country-picker { display: flex; align-items: center; gap: 8px; }
.country-picker select { flex: 1; min-width: 0; }
.country-typeahead { position: relative; flex: 1; min-width: 0; }
.country-typeahead input { width: 100%; }
.country-suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  margin: 4px 0 0; max-height: 240px; overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.country-suggest-item {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 8px 10px; cursor: pointer; font: inherit;
}
.country-suggest-item:hover, .country-suggest-item.on { background: #e5f6ea; }
.og-status { max-width: 640px; margin: 0 0 16px; }
.og-status dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; }
.og-status dt { color: var(--muted); font-size: 11px; }
.og-status dd { margin: 0; }
.og-ok { color: #0d3320; font-weight: 700; }
.og-bad { color: #8a1f1f; font-weight: 700; }
.country-flag, .country-flag-lg, .course-country-flag {
  width: 24px; height: 16px; max-width: 24px; max-height: 16px;
  aspect-ratio: 3 / 2;
  object-fit: cover; object-position: center;
  border-radius: 2px; border: 1px solid var(--line);
  background: #f3faf4; flex-shrink: 0; display: block;
  overflow: hidden;
}
.country-flag-lg { width: 30px; height: 20px; max-width: 30px; max-height: 20px; }
.tel-wrap { display: flex; align-items: stretch; position: relative; }
.tel-wrap [data-tel-input] { border-radius: 0 8px 8px 0; }
.tel-prefix {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px;
  background: #f3faf4; border: 1px solid var(--line); border-right: 0;
  border-radius: 8px 0 0 8px; font-weight: 700; color: var(--green-deep); white-space: nowrap;
  font: inherit; font-weight: 700; min-height: 38px; cursor: pointer;
}
button.tel-prefix:hover, button.tel-prefix:focus-visible {
  background: #e5f6ea; outline: none;
}
.tel-prefix .country-flag { margin: 0; }
.tel-prefix-pop {
  position: fixed; z-index: 60; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 8px;
  max-width: calc(100vw - 16px);
}
.tel-prefix-pop[hidden] { display: none; }
.tel-prefix-pop input { width: 100%; margin: 0 0 6px; }
.tel-prefix-list { max-height: 220px; overflow: auto; }
.tel-prefix-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  text-align: left; border: 0; background: #fff; padding: 8px 10px;
  cursor: pointer; font: inherit; color: inherit; border-radius: 6px;
}
.tel-prefix-item:hover, .tel-prefix-item:focus-visible { background: #e5f6ea; outline: none; }
.tel-prefix-item-name { flex: 1; min-width: 0; }
.tel-prefix-item-dial { font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.tel-prefix-empty { padding: 8px 10px; color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
th { background: #f3faf4; color: var(--green-deep); }
.bit { font-family: Consolas, monospace; font-size: 10px; color: var(--muted); }
.flight { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.flight > .btn { margin-left: 8px; vertical-align: middle; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.scorecard { overflow-x: auto; }
.scorecard td, .scorecard th { text-align: center; min-width: 42px; }
.profile-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px; align-items: start;
}
.profile-grid-play {
  grid-template-columns: minmax(0, 520px);
}
.profile-grid-cycling {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
}
.profile-grid-cycling .profile-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-grid .card { margin-top: 0; min-width: 0; }
.profile-left,
.profile-right { min-width: 0; }
.profile-info,
.profile-schools,
.profile-grid .profile-myscore {
  font-size: 12px;
  padding: 14px;
}
.profile-app-access { margin-top: 16px; }
.profile-app-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.profile-app-check { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.profile-info h2,
.profile-schools h2,
.profile-grid .profile-myscore > h2 { font-size: 15px; margin-bottom: 6px; }
.profile-info .sc-titlebar { margin-bottom: 8px; }
.profile-info .sc-titlebar h2 { margin-bottom: 0; }
.profile-grid .profile-info .sc-titlebar { align-items: flex-start; }
.profile-grid .profile-info .sc-titlebar h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.profile-grid .profile-info .profile-edit-stack .btn { min-height: 32px; }
.profile-grid .card .cyc-sec-title { font-size: 15px; }
.profile-grid .card .cyc-sec-title .nav-ico { width: 18px; height: 18px; }
.profile-kv {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 10px;
}
.profile-info .profile-kv > label,
.profile-info .profile-kv > .field-label { margin: 0; }
.profile-info .profile-kv > .profile-kv-hint { grid-column: 2; margin: -2px 0 2px; }
.profile-kv-wide { grid-template-columns: 140px minmax(0, 1fr); }
.profile-kv-pair {
  display: grid;
  grid-template-columns: minmax(48px, 80px) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}
.profile-info .profile-kv-pair > label { margin: 0; }
.profile-info.is-ro .profile-edit-only,
.profile-info:not(.is-ro) .profile-ro-only { display: none; }
.profile-heading .gender-ico { margin-right: 4px; }
.profile-info .profile-kv > .check { margin: 0; font-weight: 400; }
.profile-info .profile-kv > textarea { width: 100%; box-sizing: border-box; }
/* Camera stays visible in read-only so tap can enter edit and open the file picker. */
.profile-hero.is-ro .avatar-edit { display: flex; }
.profile-info.is-ro input:not([type="hidden"]),
.profile-info.is-ro select,
.profile-info.is-ro textarea,
.profile-info.is-ro .tel-prefix,
.profile-info.is-ro .gender-btn {
  pointer-events: none;
}
.profile-info.is-ro input:not([type="hidden"]):not([type="file"]),
.profile-info.is-ro select {
  background: #f3f6f4;
}
.sc-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.sc-titlebar h2 { margin: 0; }
.sc-title-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.profile-info-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-info-actions .club-toolbar-btn[hidden] { display: none; }
.profile-info-actions [data-profile-act] { display: none !important; }
.profile-info-actions .club-toolbar-btn img { width: 20px; height: 20px; }
.profile-wallet-modal .school-modal-card {
  width: min(720px, 100%);
  padding: 10px;
}
.profile-wallet-modal .profile-wallet {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.profile-wallet-modal .profile-wallet .sc-titlebar { display: none; }
.profile-edit-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 132px;
}
.profile-edit-stack .btn { width: 100%; }
.profile-shop-tick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  cursor: pointer;
  white-space: nowrap;
}
.profile-edit-row { display: flex; align-items: center; gap: 8px; }
.profile-edit-row .btn.profile-shop-btn { width: 32px; min-width: 32px; height: 32px; padding: 0; flex-shrink: 0; cursor: pointer; }
.profile-edit-row .profile-shop-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.profile-shop-btn.is-on { background: var(--green); border-color: var(--green); color: var(--white); }
.profile-shop-btn.is-on:hover { background: var(--green-deep); }
.profile-shop-btn[disabled] { opacity: .6; cursor: wait; }
.profile-kv-icons .profile-kv-ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; color: var(--muted); flex-shrink: 0; }
.profile-info.is-ro .profile-shop-tick {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
.profile-info .field,
.profile-grid .profile-myscore .field { margin-bottom: 8px; }
.profile-info label,
.profile-grid .profile-myscore label { font-size: 11px; margin-bottom: 2px; font-weight: 700; }
.profile-info input,
.profile-info select,
.profile-grid .profile-myscore input,
.profile-grid .profile-myscore select {
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 400;
}
.profile-info .row { gap: 8px; }
.profile-info .row > * { min-width: 0; }
.profile-info .row.profile-pair {
  flex-wrap: nowrap;
  align-items: end;
}
.profile-info .field-label {
  font-size: 11px;
  margin-bottom: 2px;
}
.profile-info .gender-picks {
  flex-wrap: nowrap;
  min-height: 32px;
}
.profile-info .gender-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  box-sizing: border-box;
  line-height: 1;
}
.profile-info .hcp-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-info .hcp-line input {
  flex: 1 1 72px;
  min-width: 56px;
  max-width: 88px;
  height: 32px;
  box-sizing: border-box;
}
.profile-info .hcp-line .gender-btn {
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}
.profile-info .muted,
.profile-schools .muted,
.profile-grid .profile-myscore .muted { font-size: 10px; margin-bottom: 8px; font-weight: 400; }
.profile-info .btn,
.profile-grid .profile-myscore .btn { padding: 7px 12px; font-size: 12px; }
.profile-info .tel-prefix { min-height: 32px; padding: 0 8px; font-size: 12px; }
.profile-info .country-flag { width: 20px; height: 14px; max-width: 20px; max-height: 14px; }
.profile-schools { margin-top: 0; }
.profile-school-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.profile-school-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  background: #f3faf4;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.profile-school-tile .school-icon { width: 36px; height: 36px; }
.profile-grid-cycling .profile-school-tiles { grid-template-columns: repeat(auto-fill, 136px); }
.profile-grid-cycling .profile-school-tile { width: 136px; height: 136px; box-sizing: border-box; overflow: hidden; gap: 4px; }
.profile-grid-cycling .profile-school-tile-text .school-country { display: flex; align-items: center; gap: 4px; }
.profile-grid-cycling .profile-school-tile-text .school-country .country-flag { margin: 0; flex-shrink: 0; }
.profile-school-tile-text { min-width: 0; width: 100%; }
.profile-school-tile-text strong { display: block; font-size: 11px; line-height: 1.25; }
.profile-school-tile-text .muted {
  display: block;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .profile-grid,
  .profile-grid-cycling { grid-template-columns: 1fr; }
  .home-layout { grid-template-columns: 1fr; }
  .home-schools { position: static; max-height: 360px; }
  .top-wordmark { font-size: 13px; }
}
@media (max-width: 1100px) {
  .home-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-second { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero-body, .hero, .grid-3, .app-shell, .home-dash { grid-template-columns: 1fr; }
  .buddy-home .grid-3 { grid-template-columns: 1fr; }
  .hero-logo { justify-self: start; }
  .hero-stats { grid-template-columns: 1fr; }
  .top-wordmark { font-size: 12px; }
}
.course-country-flag {
  margin-right: 0;
}
.course-web-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.course-web-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
.course-page {
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 70%);
  gap: 16px;
  align-items: stretch;
  height: calc(100vh - 150px);
  min-height: 520px;
}
.course-page.is-club-edit {
  height: auto;
  min-height: calc(100vh - 150px);
  align-items: start;
}
.course-page.is-club-edit .course-page-side {
  grid-template-rows: auto minmax(180px, auto);
}
.course-page.is-club-edit .course-page-map {
  overflow: visible;
  height: auto;
}
.course-page.is-club-edit .club-detail-stack {
  flex: 0 0 auto;
}
.course-page-list {
  min-width: 0;
  overflow: auto;
  padding-right: 4px;
}
.course-page-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.course-page-search .field { margin-bottom: 0; flex: 1; min-width: 140px; }
.course-page-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
}
.club-search-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.club-search-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.club-search-row input[type="search"],
.course-page-search .club-search-row input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}
.club-search-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #f3faf4;
  cursor: pointer;
}
.club-search-flag:hover,
.club-search-flag:focus-visible,
.club-search-flag.is-on {
  background: #e5f6ea;
  outline: none;
}
.club-search-flag .country-flag { margin: 0; }
.club-cc-pop { z-index: 90; }
.club-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.club-list-by-club { gap: 8px; }
.club-list-section + .club-list-section,
.club-list-section + [data-club-catalog-hits] { margin-top: 14px; }
.club-list-heading {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}
.club-list-none { margin: 0 0 8px; }
.club-join-pending {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff4d6;
  color: #7a5a00;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.club-block-schools {
  list-style: none;
  margin: 0;
  padding: 0 12px 8px 36px;
}
.club-block-schools li { margin: 0; }
.club-block-schools a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  color: #2a4a33;
  text-decoration: none;
  font-size: 13px;
}
.club-block-schools a:hover { text-decoration: underline; }
.school-icon-xs {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.club-block {
  border: 1px solid #d7e2d4;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.club-block.is-on {
  border-color: #8ec89a;
  box-shadow: 0 0 0 1px #cfe8d4;
}
.club-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f7fbf6;
}
.club-block-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.club-block-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.club-block-row .club-block-name { flex: 1; min-width: 0; }
.club-block > a.club-block-row {
  padding: 7px 10px 7px 18px;
  border-top: 1px solid #edf3eb;
}
.club-block > a.club-block-row.is-on {
  background: #eef8ef;
  font-weight: 600;
}
.club-block-flag {
  margin-left: auto;
  flex-shrink: 0;
}
.club-course-count { margin: 2px 0 0; }
.club-detail-courses {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.club-block-name {
  font-weight: 700;
  color: #124526;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-block-name:hover { text-decoration: underline; }
.club-add-course {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.club-add-course:hover { text-decoration: underline; }
.club-register-form {
  margin: 0;
  flex-shrink: 0;
}
.club-side-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.club-side-name h2,
.club-side-name {
  min-width: 0;
}
.club-side-name .fav-star-form { flex-shrink: 0; }
.club-block-courses {
  list-style: none;
  margin: 0 0 0 30%;
  width: 70%;
  padding: 4px 8px 4px 0;
}
.club-course-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px 6px 0;
}
.club-course-row.is-on {
  background: #e5f6ea;
}
.club-course-name {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-course-name:hover { text-decoration: underline; }
.club-course-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.club-side-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.club-side-title h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.club-side-title p { margin: 0; font-size: 12px; white-space: nowrap; }
.club-side-country {
  display: flex;
  align-items: center;
  gap: 6px;
}
.club-side-country .country-flag { flex-shrink: 0; }
.course-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 16px;
}
.course-group-heading:first-of-type { margin-top: 0; }
.course-page-table {
  table-layout: fixed;
  width: 100%;
}
.course-page-table col.course-col-name { width: 50%; }
.course-page-table col.course-col-country { width: 30%; }
.course-page-table col.course-col-scorecard { width: 20%; }
.course-page-table th, .course-page-table td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.course-page-table .course-col-scorecard { white-space: nowrap; }
.course-row-selected td { background: #e5f6ea; }
.course-name-cell, .course-country-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.course-select-link, .course-country-name, .course-web-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.course-web-icon-link { flex-shrink: 0; display: inline-flex; }
.course-admin-card { margin-top: 16px; }
.course-page-side {
  display: grid;
  grid-template-rows: minmax(300px, 1.25fr) minmax(180px, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
}
.course-page-map, .course-page-card {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.course-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.course-pane-head h2 { margin: 0; font-size: 16px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.club-logo {
  width: 40px;
  height: 40px;
  padding: 8px;
  box-sizing: border-box;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: url("/img/golf-ball.png?v=20260921-gb4") center / 100% 100% no-repeat transparent;
  border: 0;
  box-shadow: none;
}
.club-logo-sm { width: 32px; height: 32px; padding: 6px; }
.club-logo-md { width: 40px; height: 40px; padding: 8px; }
.club-logo-lg { width: 64px; height: 64px; padding: 12px; }
.club-logo.is-empty { padding: 0; background: none; }
.club-logo-ball { position: relative; align-self: flex-start; flex-shrink: 0; line-height: 0; }
.club-logo-cam {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.club-logo-cam svg { width: 12px; height: 12px; display: block; }
.club-logo-cam:hover, .club-logo-cam:focus-visible { background: #0d3320; }
.club-logo-pop {
  width: min(320px, calc(100vw - 24px));
  line-height: 1.4;
  overflow: visible;
}
.club-logo-pop h3 {
  line-height: 1.3;
}
.club-logo-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
.club-logo-form .muted {
  margin: 0;
  line-height: 1.4;
}
.club-logo-filename {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.club-logo-status {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--green-deep);
}
.club-logo-form.is-busy .club-logo-status {
  display: flex;
}
.club-logo-spin {
  width: 14px;
  height: 14px;
  border: 2px solid #c5d6c8;
  border-top-color: var(--green-deep);
  border-radius: 50%;
  animation: club-logo-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes club-logo-spin {
  to { transform: rotate(360deg); }
}
.club-logo-form .course-pop-actions {
  flex-wrap: wrap;
  margin-top: 4px;
}
.club-logo-form.is-off { display: none !important; }
.club-detail-stack {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.15fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.club-detail-stack.is-edit {
  grid-template-columns: 1fr;
}
.club-detail-stack.is-edit .club-map-wrap,
.club-detail-stack.is-edit .club-detail-map { display: none; }
.club-detail-info {
  min-width: 0;
}
.club-map-wrap {
  min-width: 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.club-detail-map {
  min-width: 0;
  min-height: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #eef5ef;
}
.club-detail-facts {
  margin: 0;
}
.club-detail-facts > div {
  display: grid;
  grid-template-columns: minmax(max-content, 30%) minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e5eee6;
}
.club-detail-facts > div:last-child { border-bottom: 0; }
.club-detail-facts dt {
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.club-detail-facts dd,
.club-detail-facts dd a {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}
.club-proshop {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}
.club-proshop a {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}
.club-tee-times {
  margin: 12px 0 4px;
}
.club-tee-times h3 {
  margin: 10px 0 6px;
  font-size: 13px;
}
.club-tee-times .muted {
  margin: 0 0 8px;
}
.club-tee-launch-row {
  margin: 8px 0 12px;
}
.club-tee-launch-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.club-tee-launch-btn:hover { color: var(--fairway); }
.club-tee-pop {
  width: min(560px, calc(100vw - 24px));
  max-height: min(80vh, 720px);
}
.club-tee-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.club-tee-pop-head h3 { margin: 0; }
.club-tee-pop-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.club-tee-repop { margin: 0; }
.club-tee-pop h4 {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}
.club-tee-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.club-tee-chips span {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.club-proshop span { font-weight: 700; margin-right: 6px; }
.club-edit-form {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.club-edit-form .row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}
.club-edit-form .row > * {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.club-edit-form .field {
  display: grid;
  grid-template-columns: minmax(max-content, 30%) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  min-width: 0;
  max-width: 100%;
}
.club-edit-form .field:last-of-type { margin-bottom: 8px; }
.club-edit-form label {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--muted);
  min-width: 0;
  white-space: nowrap;
}
.club-edit-form input,
.club-edit-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
}
.club-edit-form select {
  overflow: hidden;
  text-overflow: ellipsis;
}
.club-edit-form .muted { margin: 0 0 8px; font-size: 12px; }
.club-edit-form .field .club-contact-empty {
  grid-column: 1 / -1;
  margin: 0;
  white-space: nowrap;
}
.club-contact-empty {
  white-space: nowrap;
}
.course-pane-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.course-pane-actions .club-booking-row { display: contents; }
.course-pane-actions .btn,
.course-page-card p,
.course-detail-kicker {
  word-spacing: normal;
  letter-spacing: normal;
}
.course-pane-placeholder { margin: 12px 0; }
.course-map-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 0;
  display: block;
  border-radius: 10px;
  background: #eef5ef;
}
.course-page-card { overflow: auto; }
.club-below-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 0;
  flex: 1;
}
.club-below-tees,
.club-below-schools {
  min-width: 0;
}
.club-below-schools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.club-school-col {
  min-width: 0;
}
.club-below-schools .club-school-tiles {
  grid-template-columns: 1fr;
}
.club-below-tees h3,
.club-below-schools h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.club-venue-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.club-venue-item {
  padding: 10px;
  border: 1px solid #d7e2d4;
  border-radius: 10px;
  background: #f7fbf6;
}
.club-venue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: stretch;
}
.club-venue-item strong { display: block; }
.club-venue-scope {
  display: block;
  font-size: 11px;
  color: #5b6470;
}
.club-venue-loc {
  margin: 6px 0 2px;
  font-size: 13px;
}
.club-venue-gps { margin: 0 0 6px; }
.club-venue-map {
  min-height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef5ef;
}
.club-venue-map .course-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  border: 0;
}
.club-venue-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
body.play-mahjong .club-venue-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.play-mahjong .club-venue-head strong {
  flex: 0 1 auto;
  min-width: 0;
}
body.play-mahjong .club-venue-acts {
  margin-top: 0;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 2px;
}
body.play-mahjong .club-venue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 0;
}
body.play-mahjong .club-venue-icon:hover {
  background: var(--paper);
  color: var(--green);
}
body.play-mahjong .club-venue-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
body.play-mahjong .club-venue-del {
  display: inline-flex;
  margin: 0;
}
.club-venue-add {
  margin: 8px 0 16px;
}
.club-venue-del {
  margin: 0;
}
.club-venue-del .btn {
  padding: 2px 8px;
  font-size: 11px;
}
body.play-mahjong .club-below-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body.play-mahjong .mj-cc-pick {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
body.play-mahjong .mj-cc-pick .club-search-flag {
  border-left: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
body.play-mahjong .mj-cc-pick .club-search-flag:hover,
body.play-mahjong .mj-cc-pick .club-search-flag:focus-visible,
body.play-mahjong .mj-cc-pick .club-search-flag.is-on {
  background: #ead6dc;
}
body.play-mahjong .mj-cc-label-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  min-height: 38px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.play-mahjong .mj-cc-label-btn:hover,
body.play-mahjong .mj-cc-label-btn:focus-visible {
  background: var(--paper);
  outline: none;
}
.oc-register .mj-cc-pick,
.oc-account .mj-cc-pick {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.oc-register .mj-cc-pick .club-search-flag,
.oc-account .mj-cc-pick .club-search-flag {
  border-left: 0;
  border-right: 1px solid var(--line);
}
.oc-register .mj-cc-label-btn,
.oc-account .mj-cc-label-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  min-height: 38px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.oc-register .mj-cc-label-btn:hover,
.oc-register .mj-cc-label-btn:focus-visible,
.oc-account .mj-cc-label-btn:hover,
.oc-account .mj-cc-label-btn:focus-visible {
  background: #f3faf4;
  outline: none;
}
body.play-mahjong .mj-member-section {
  margin-top: 20px;
}
body.play-mahjong .mj-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
body.play-mahjong .mj-member-head h3 { margin: 0; }
body.play-mahjong .mj-member-split {
  display: grid;
  grid-template-columns: minmax(140px, 28%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
body.play-mahjong .mj-member-types {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.play-mahjong .mj-member-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
}
body.play-mahjong .mj-member-type span {
  color: var(--muted);
  font-size: 12px;
}
body.play-mahjong .mj-member-type.is-on {
  background: #ead6dc;
  color: var(--green-deep);
  font-weight: 600;
}
body.play-mahjong .create-member-pop {
  width: 320px;
  max-height: min(80vh, 560px);
}
body.play-mahjong .mj-practice-guide h2 { margin-bottom: 6px; }
body.play-mahjong .mj-guide-step {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
body.play-mahjong .mj-guide-step:first-of-type {
  border-top: 0;
  padding-top: 0;
}
body.play-mahjong .mj-guide-split {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
body.play-mahjong .mj-guide-list {
  margin: 0;
  padding-left: 18px;
}
body.play-mahjong .mj-guide-list li { margin: 0 0 8px; }
body.play-mahjong .mj-bird-title {
  font: 700 13px "Segoe UI", Calibri, Arial, sans-serif;
  fill: #5c1228;
}
body.play-mahjong .mj-bird-letter {
  font: 700 14px "Segoe UI", Calibri, Arial, sans-serif;
  fill: #5c1228;
}
body.play-mahjong .mj-bird-letter.is-on { fill: #fff; }
body.play-mahjong .mj-bird-wind {
  font: 600 10px "Segoe UI", Calibri, Arial, sans-serif;
  fill: #5d6b61;
}
body.play-mahjong .mj-bird-felt,
body.play-mahjong .mj-bird-tile {
  font: 600 11px "Segoe UI", Calibri, Arial, sans-serif;
  fill: #ead6dc;
}
body.play-mahjong .mj-rot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}
body.play-mahjong .mj-rot-card { text-align: center; }
body.play-mahjong .mj-rot-cap {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
body.play-mahjong .mj-rot-arrow {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}
body.play-mahjong .mj-rot-lines { margin-top: 8px; }
body.play-mahjong .mj-train-cal .cal-month-game {
  background: #ead6dc;
  color: var(--green-deep);
}
body.play-mahjong .mj-train-cal .cal-month-game:hover {
  background: #d9c0c8;
  color: var(--green-deep);
}
@media (max-width: 900px) {
  body.play-mahjong .mj-guide-split { grid-template-columns: 1fr; }
  body.play-mahjong .mj-rot-arrow { display: none; }
}
body.play-mahjong .mj-games-split {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 70%);
  gap: 16px;
  align-items: start;
}
body.play-mahjong .mj-game-cal .cal-month-game {
  background: #ead6dc;
  color: var(--green-deep);
}
body.play-mahjong .mj-game-cal .cal-month-game:hover {
  background: #d9c0c8;
  color: var(--green-deep);
}
body.play-mahjong .mj-cal-join {
  margin: 4px 0 0;
}
body.play-mahjong .mj-cal-join .btn {
  padding: 2px 8px;
  font-size: 11px;
}
body.play-mahjong .mj-table-modal {
  position: fixed;
  inset: 0;
  background: rgba(92, 18, 40, 0.45);
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px 16px;
}
body.play-mahjong .mj-table-modal[hidden] { display: none; }
body.play-mahjong .mj-table-modal-card {
  width: min(640px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}
body.play-mahjong .mj-table-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
body.play-mahjong .mj-table-modal-head h3 { margin: 0; }
body.play-mahjong .mj-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
body.play-mahjong .mj-table-canvas {
  position: relative;
  width: min(520px, 100%);
  height: 520px;
  margin: 0 auto;
  background: #f7eef1;
  border: 1px solid var(--line);
  border-radius: 16px;
}
body.play-mahjong .mj-table-board {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
}
body.play-mahjong .mj-board-art { width: 100%; height: 100%; display: block; }
body.play-mahjong .mj-chair {
  position: absolute;
  width: 92px;
  text-align: center;
}
body.play-mahjong .mj-chair-wind {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 2px;
}
body.play-mahjong .mj-chair.is-west { left: 50%; top: 10px; transform: translateX(-50%); }
body.play-mahjong .mj-chair.is-east { left: 50%; top: 330px; transform: translateX(-50%); }
body.play-mahjong .mj-chair.is-north { left: 16px; top: 190px; }
body.play-mahjong .mj-chair.is-south { right: 16px; top: 190px; }
body.play-mahjong .mj-chair.is-sit {
  right: 22px;
  top: 28px;
  transform: rotate(45deg);
  transform-origin: center;
}
body.play-mahjong .mj-chair.is-sit .mj-chair-wind {
  transform: rotate(-45deg);
}
body.play-mahjong .mj-chair.is-west .mj-person img { transform: rotate(180deg); }
body.play-mahjong .mj-chair.is-east .mj-person img { transform: rotate(0deg); }
body.play-mahjong .mj-chair.is-north .mj-person img { transform: rotate(90deg); }
body.play-mahjong .mj-chair.is-south .mj-person img { transform: rotate(-90deg); }
body.play-mahjong .mj-chair.is-sit .mj-person img { transform: rotate(0deg); }
body.play-mahjong .mj-bench {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  min-height: 72px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  background: #fff;
}
body.play-mahjong .mj-bench [data-chair-hold] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.play-mahjong .mj-person {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: grab;
  color: inherit;
  font: inherit;
  max-width: 88px;
}
body.play-mahjong .mj-person img {
  width: 48px;
  height: 60px;
  display: block;
}
body.play-mahjong .mj-person span {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}
body.play-mahjong .mj-person[disabled] { cursor: default; opacity: 0.85; }
@media (max-width: 900px) {
  body.play-mahjong .mj-games-split { grid-template-columns: 1fr; }
  body.play-mahjong .mj-table-canvas { height: 460px; }
}
@media (max-width: 900px) {
  body.play-mahjong .mj-member-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .club-venue-card { grid-template-columns: 1fr; }
}
.club-school-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.club-school-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 6px;
  row-gap: 0;
  align-items: center;
  min-width: 0;
  padding: 1pt;
  background: #f3faf4;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: #124526;
  box-sizing: border-box;
}
.club-school-tile:hover {
  border-color: var(--green);
  color: inherit;
}
.club-school-tile .school-icon {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 48px;
  height: 100%;
  min-height: 48px;
  border-radius: 6px;
  object-fit: contain;
  align-self: stretch;
}
.club-school-tile strong,
.club-school-tile .school-tile-local,
.club-school-tile .school-tile-contact,
.club-school-tile .school-tile-wa {
  grid-column: 2;
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.club-school-tile strong {
  font-size: 13px;
}
.club-school-tile .school-tile-local,
.club-school-tile .school-tile-contact,
.club-school-tile .school-tile-wa {
  font-size: 11px;
  font-weight: 500;
  color: #2a5a38;
}
.primary-col {
  width: 52px;
  text-align: center;
}
.captain-flag-col {
  width: 40px;
  text-align: center;
}
.captain-flag-col .country-flag {
  margin: 0;
  vertical-align: middle;
}
.captain-phone {
  white-space: nowrap;
}
.captains-table {
  display: table;
  width: 100%;
  table-layout: fixed;
  background: transparent;
}
.school-mid-row table,
.school-head-grid table {
  background: transparent;
}
.school-mid-row th,
.school-head-grid th,
.captains-table th {
  background: transparent;
}
.school-mid-row .captains-table,
.school-head-grid .captains-table {
  display: table;
  width: 100%;
}
.captains-table th,
.captains-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.captains-table:not(.school-guests-table) { table-layout: auto; }
.captains-table th:nth-child(1),
.captains-table td:nth-child(1) { width: auto; }
.captains-table:not(.school-guests-table) th:nth-child(2),
.captains-table:not(.school-guests-table) td:nth-child(2) {
  width: auto;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
.captains-table:not(.school-guests-table) .captain-phone { width: 1%; }
.primary-tick-form {
  display: inline-block;
  margin: 0;
}
.primary-tick {
  display: inline-block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}
button.primary-tick {
  font-family: inherit;
}
.primary-tick.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
span.primary-tick {
  cursor: default;
}
.course-card-meta { margin: 0 0 8px; flex-shrink: 0; }
.course-tee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 0;
}
.course-tee-table th,
.course-tee-table td {
  text-align: left;
  padding: 7px 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.course-tee-table th {
  font-weight: 700;
  color: #3d5a36;
  font-size: 11px;
}
.course-tee-table td:nth-child(n+2),
.course-tee-table th:nth-child(n+2) { text-align: right; }
.course-mini-scorecard { overflow: auto; }
.course-mini-scorecard table { width: 100%; }
.course-mini-scorecard th, .course-mini-scorecard td {
  text-align: center;
  padding: 5px 6px;
  font-size: 10px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .course-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .course-page-list { overflow: visible; }
  .course-page-side {
    min-height: 0;
    height: auto;
  }
  .club-below-split {
    grid-template-columns: 1fr;
  }
  .club-detail-stack {
    grid-template-columns: 1fr;
  }
  .club-school-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-detail-map .course-map-frame { min-height: 240px; }
}
.schools-page.course-page {
  grid-template-columns: minmax(0, 20%) minmax(0, 80%);
}
.schools-page.course-page .course-page-side {
  display: block;
  overflow: auto;
  grid-template-rows: none;
}
.schools-page .club-block { cursor: pointer; }
.schools-page .club-block-row { min-height: 32px; }
.schools-page .school-pick-request {
  margin: 0;
  flex-shrink: 0;
}
.schools-page .school-pick-request button {
  margin: 0;
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.schools-page .school-pick-request button:hover { text-decoration: underline; }
.schools-split {
  display: grid;
  grid-template-columns: minmax(220px, 22%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.schools-list-col,
.schools-detail-stack,
.schools-detail-col > .card:first-child,
.schools-detail-col > .school-head-card {
  margin-top: 0;
}
.schools-detail-stack > .school-head-card { margin-top: 0; }
.schools-list-col h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.schools-list-col h3 { margin: 16px 0 8px; font-size: 14px; color: var(--fairway); }
.school-pick-list { list-style: none; margin: 0; padding: 0; }
.school-pick-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.school-pick-list li:last-child { border-bottom: 0; }
.school-pick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: inherit;
  padding: 8px 36px 8px 0;
  border-radius: 0;
  background: transparent;
}
.school-pick .school-icon {
  align-self: flex-start;
}
.school-pick:hover, .school-pick.selected { background: transparent; color: inherit; }
.school-pick.selected strong { color: var(--green-deep); }
.school-pick-text { min-width: 0; }
.school-pick-text strong { display: block; }
.school-pick-text .muted {
  display: block;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.school-pick-action {
  position: absolute;
  top: 6px;
  right: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  line-height: 1;
}
.school-pick-action img {
  width: 16px;
  height: 16px;
  display: block;
}
.school-pick-request button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.school-pick-request button:hover { text-decoration: underline; }
.schools-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.schools-detail-head h2 { margin: 0 0 8px; }
.school-detail-top { margin-top: 0; margin-bottom: 0; }
.school-sec { position: relative; }
.school-sec-edit,
.school-sec-gpt {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
}
.school-sec-edit {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 1;
}
.school-sec-edit:hover,
.school-sec-gpt:hover { text-decoration: underline; }
.school-sec-gpt.is-open { text-decoration: underline; }
.school-sec-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
}
.school-sec-bar .school-sec-edit,
.school-sec-bar .school-sec-gpt {
  position: static;
}
.schools-page-top,
.school-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
}
.schools-page-top h1 { margin: 0; }
.schools-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.schools-page-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}
.schools-page-top .btn,
.school-page-toolbar .btn {
  width: auto;
  flex-shrink: 0;
}
.schools-page-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.school-page-back { margin: 0; }
.school-page-head,
.school-detail-row,
.school-mid-row,
.school-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.school-page-head { margin: 0 0 8px; }
.school-page-head-main h1 { margin: 0 0 6px; }
.school-page-head-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}
.school-title-motto {
  margin: 0;
}
.school-motto-input {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: inherit;
  box-sizing: border-box;
}
.school-sec > h2 { padding-right: 48px; }
.school-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 0;
}
.school-sec > .school-sec-title { padding-right: 0; }
.school-sec-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}
.school-sec-title-btn {
  width: auto;
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 12px;
}
.school-detail-names { min-width: 0; }
.school-detail-names h2 { margin: 0 0 4px; }
.school-detail-names .school-country { margin: 0; }
.school-edit-title {
  margin: 0 0 8px;
}
.school-title-form { margin: 0; }
.school-title-form .school-detail-title { margin: 0 0 8px; }
.school-title-input {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  box-sizing: border-box;
}
.school-detail-names .school-title-input,
.school-title-form .school-title-input {
  font-size: 22px;
}
.school-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.school-title-actions .btn { margin: 0; }
.school-detail-motto {
  min-width: 0;
  margin: 4px 0 0;
}
.school-detail-motto p { margin: 0; }
.school-detail-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.school-detail-meta .school-icon-lg {
  width: 56px;
  height: 56px;
}
.school-detail-meta-text { min-width: 0; }
.school-detail-meta-text p { margin: 0 0 4px; }
.school-head-card { position: relative; }
.school-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.school-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  background: #f3faf4;
  border: 1px solid var(--line);
}
.school-head-text { min-width: 0; flex: 1; }
.school-head-text h1,
.school-head-text h2 { margin: 0 0 4px; }
.school-head-text .school-title-motto,
.school-head-text .school-detail-motto { margin: 4px 0 0; }
.school-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.school-head-meta p { margin: 0; }
.school-head-gpt {
  margin-left: auto;
  flex-shrink: 0;
  width: auto;
}
.school-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 32, 18, 0.45);
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
}
.school-modal-card {
  width: min(640px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}
.school-modal-card h2 { margin: 0 0 12px; }
.school-modal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.school-modal-logo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3faf4;
  border: 1px solid var(--line);
}
.school-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.school-modal[hidden] { display: none; }
.sp-modal-card { width: min(480px, 100%); }
.sp-modal-card.sp-modal-sm { width: min(360px, 100%); }
.sp-modal-card .field { margin: 0 0 12px; }
.sp-modal-card .tel-wrap [data-sg-phone] { flex: 1; min-width: 0; border-radius: 0 8px 8px 0; }
.sp-modal-card .tel-prefix-pop { z-index: 130; }
.sp-check { min-height: 18px; margin: 4px 0 0; font-size: 12px; }
.sp-check.is-ok { color: var(--green-deep); font-weight: 600; }
.sp-check.is-err { color: #b3261e; font-weight: 600; }
.sp-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}
.sp-ico-btn svg { width: 16px; height: 16px; display: block; }
.sp-ico-btn:hover,
.sp-ico-btn:focus-visible { background: #e5f6ea; border-color: var(--green); outline: none; }
.sp-ico-btn.is-ok { color: #fff; background: var(--green); border-color: var(--green); }
.sp-ico-btn.is-ok:hover,
.sp-ico-btn.is-ok:focus-visible { background: var(--green-deep); border-color: var(--green-deep); }
.sp-ico-btn.is-no { color: #b3261e; }
.sp-ico-btn.is-no:hover,
.sp-ico-btn.is-no:focus-visible { background: #fdecea; border-color: #b3261e; }
.school-sec-title .school-sec-title-ico { margin-left: auto; width: 32px; height: 32px; }
.school-sec-title .school-sec-title-ico svg { width: 18px; height: 18px; }
.sp-oc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 6px 1px 3px;
  border: 1px solid #cfe6d4;
  border-radius: 999px;
  background: #f3faf4;
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  vertical-align: middle;
  white-space: nowrap;
}
.sp-oc-badge img { width: 12px; height: 12px; object-fit: contain; }
.school-guests-table td:nth-child(1) { white-space: normal; }
.school-members-table .sp-actions-col { width: 104px; text-align: right; white-space: nowrap; }
.sp-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.sp-actions form { margin: 0; display: inline-flex; }
.sp-status { white-space: nowrap; }
.sp-status-pending { color: #8a5a00; font-weight: 600; }
.sp-status-rejected { color: #b3261e; }
.school-mid-row {
  margin-top: 16px;
  align-items: stretch;
}
.school-mid-row.school-cap-events {
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
}
.school-mid-row.school-people-row { align-items: start; }
.school-mid-row.school-people-row .card { height: auto; }
.school-mid-row .card {
  margin-top: 0;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.school-mid-row table { display: block; overflow-x: auto; }
.school-head-grid { margin-top: 16px; }
.school-head-grid .card { margin-top: 0; min-width: 0; }
.school-head-grid table { display: block; overflow-x: auto; }
.school-head-grid .school-icon-edit { flex-direction: column; }
.school-head-grid .school-icon-edit form { width: 100%; }
.school-head-grid .school-cal-col { grid-column: 1 / -1; }
.school-gpt-col { margin-bottom: 16px; }
.school-gpt-col .row { flex-wrap: wrap; }
.school-gpt-col .row > * { min-width: 0; }
.gpt-form .gpt-on { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; }
.gpt-form input[readonly] { background: #f3faf4; }
.gpt-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #f3f8f2;
}
.gpt-status div { margin: 0; }
.gpt-status dt { font-size: 11px; letter-spacing: 0.03em; color: #3d5a36; }
.gpt-status dd { margin: 2px 0 0; color: #124526; word-break: break-word; }
@media (max-width: 900px) {
  .schools-split { grid-template-columns: 1fr; }
  .school-head { flex-wrap: wrap; }
  .school-head-gpt { margin-left: 0; }
  .school-page-head,
  .school-detail-row,
  .school-mid-row,
  .school-head-grid { grid-template-columns: 1fr; }
  .school-head-grid .school-ident-col,
  .school-head-grid .school-guest-col,
  .school-head-grid .school-members-col,
  .school-head-grid .school-cal-col { grid-column: auto; }
  .school-ident { grid-template-columns: 1fr; }
}
.course-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.course-section-head h1 { margin: 0 0 6px; }
.clubs-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.clubs-page-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}
.cal-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-page-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}
.tourney-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tourney-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.tourney-edit-head .tourney-page-title { margin: 0; }
.tourney-page-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}
.gt-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gt-page-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}
.course-section-head .muted { margin: 0; }
.course-head-actions { flex-shrink: 0; }
.course-pop-wrap { position: relative; display: inline-flex; }
.course-pop {
  width: min(340px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px;
  text-align: left;
  white-space: normal;
}
.course-pop h3 { margin: 0 0 10px; font-size: 14px; }
.course-pop .field { margin-bottom: 10px; }
.course-pop-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}
.course-web-edit { flex-shrink: 0; }
.course-web-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
}
.course-web-edit-btn:hover { background: #e5f6ea; }
.course-web-edit-icon { width: 14px; height: 14px; display: block; }
.course-page-table .course-col-scorecard .btn { padding: 4px 10px; font-size: 11px; }
.course-search-country-field { min-width: 200px; flex: 1.1; }
.course-page-search .country-picker { width: 100%; }
.course-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 32, 18, 0.45);
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
}
.course-modal[hidden] { display: none; }
.course-modal-card {
  width: min(520px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}
.course-modal-card h3 { margin: 0 0 10px; }
.course-modal-country { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.course-catalog-progress { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.course-catalog-log {
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
  background: #f6fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font-size: 10px;
  white-space: pre-wrap;
}
.course-scorecard-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.course-scorecard-opt .muted { display: block; font-size: 10px; }
.tourney-page {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}
.tourney-page-main,
.tourney-page-side {
  min-width: 0;
}
.tourney-school-group {
  margin: 0 0 20px;
}
.tourney-school-group:last-child { margin-bottom: 0; }
.tourney-school-group-title {
  margin: 0 0 8px;
  padding: 2px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #2a4a33;
}
.tourney-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.tourney-tile-dates {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.tourney-range-note { margin: 0 0 12px; font-size: 12px; }
.tourney-page-side .tourney-split,
.tourney-page-side .tourney-edit-grid {
  grid-template-columns: 1fr;
}
.tourney-page-side .tourney-detail,
.tourney-page-side .tourney-edit { margin-top: 0; }
.tourney-page-side .tourney-edit + .tourney-detail { margin-top: 16px; }
.tourney-page-side .tourney-board { overflow-x: auto; }
.tourney-tile-wrap {
  position: relative;
  padding: 0;
  min-height: 188px;
}
.tourney-tile-wrap:hover,
.tourney-tile-wrap.selected {
  background: #e5f6ea;
}
.tourney-tile-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tourney-tile-edit img {
  width: 16px;
  height: 16px;
  display: block;
}
.tourney-tile-edit:hover {
  border-color: var(--green);
  background: #f3faf4;
}
a.tourney-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  padding: 28px 16px 18px;
  min-height: 188px;
  text-decoration: none;
}
a.tourney-tile:hover {
  color: inherit;
}
.tourney-tile-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f3faf4;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.tourney-tile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 6px;
}
.tourney-tile-motto {
  font-size: 11px;
  margin: 0 0 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tourney-tile-cue {
  font-size: 11px;
  font-weight: 600;
  color: var(--fairway);
  margin: auto 0 0;
}
.tourney-empty { margin: 16px 0 0; }
.tourney-school { margin-top: 16px; }
.tourney-page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.tourney-page-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tourney-page-col .tourney-edit,
.tourney-page-col .tourney-board,
.tourney-page-col .tourney-games,
.tourney-page-col .tourney-edit-col,
.tourney-page-col #tourney-games { margin-top: 0; }
.tourney-edit { margin-top: 16px; }
.tourney-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.tourney-edit-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tourney-edit-col h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--green-deep);
}
.tourney-players-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}
.tourney-players-head h3 { margin: 0; }
.tourney-add-player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.tourney-add-player img {
  width: 18px;
  height: 18px;
  display: block;
}
.tourney-add-player:hover {
  border-color: var(--green);
  background: #f3faf4;
}
.tourney-add-player-card {
  width: min(480px, 100%);
}
.tourney-add-game-card {
  width: min(720px, 100%);
}
.tourney-add-game-card h3 {
  margin: 0;
  font-size: 14px;
  color: var(--green-deep);
}
.tourney-add-existing {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.tourney-add-existing .school-modal-actions {
  margin: 0;
}
.cal-new-form select:disabled {
  opacity: 1;
  background: #f3f4f3;
  color: #222;
}
.tourney-add-game-card h3.tourney-add-game-create {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tourney-edit-col .muted { margin: 0 0 10px; font-size: 12px; }
.tourney-edit-list { list-style: none; margin: 0 0 12px; padding: 0; }
.tourney-edit-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tourney-edit-item:last-child { border-bottom: 0; }
.tourney-edit-item span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tourney-edit-item form { margin: 0; }
.tourney-edit-item .btn { padding: 4px 10px; font-size: 12px; }
.tourney-final-badge {
  display: inline-block;
  width: fit-content;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fairway);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tourney-detail { margin-top: 16px; }
.tourney-detail-head h2 { margin: 0 0 4px; }
.tourney-detail-head .muted { margin: 0 0 8px; }
.tourney-years { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 4px; }
.tourney-years a { font-size: 12px; }
.tourney-years a.is-on { font-weight: 700; color: var(--green-deep); text-decoration: none; }
.tourney-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}
.tourney-games h3,
.tourney-board h3 { margin: 0 0 6px; font-size: 16px; color: var(--green-deep); }
.tourney-games .muted,
.tourney-board .muted { margin: 0 0 10px; font-size: 12px; }
.tourney-game-cat {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tourney-game-list { list-style: none; margin: 0; padding: 0; }
.tourney-game-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tourney-game-item:last-child { border-bottom: 0; }
.tourney-game-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tourney-game-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tourney-game-main strong { font-size: 13px; line-height: 1.25; }
.tourney-game-main .gt-name { font-size: 12px; }
.tourney-game-main .muted { margin: 0; font-size: 11px; }
.tourney-rank { width: 36px; color: var(--muted); }
.tourney-board td:last-child { white-space: nowrap; }
@media (max-width: 1100px) {
  .tourney-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tourney-page { grid-template-columns: 1fr; }
  .tourney-page-split { grid-template-columns: 1fr; }
  .tourney-split { grid-template-columns: 1fr; }
  .tourney-edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tourney-tiles { grid-template-columns: 1fr; }
}
.side a.nav-sub { padding-left: 22px; font-size: 12px; }
.course-page-table col.course-col-club { width: 40%; }
.course-page-table col.course-col-course { width: 22%; }
.course-page-table col.course-col-remove { width: 40px; }
.course-remove-form { display: inline; margin: 0; }
.course-bin-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; margin: 0;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--green-deep); cursor: pointer;
}
.course-bin-btn svg { width: 16px; height: 16px; display: block; }
.course-bin-btn:hover { background: #fde8e8; color: #8a1f1f; }
.btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: .45; pointer-events: none; cursor: default;
}
.course-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.course-school-pick { margin: 0; min-width: 180px; }
.course-gate { max-width: 460px; }
.course-tee-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 12px;
}
.course-tee-stats div { margin: 0; }
.course-tee-stats dt { font-size: 10px; color: var(--muted); font-weight: 600; }
.course-tee-stats dd { margin: 0; font-weight: 700; }
.course-teeboxes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.course-teeboxes .btn { padding: 6px 12px; font-size: 11px; }
.tee-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 148px;
  width: 148px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tee-pill.is-on { box-shadow: 0 0 0 2px #0d3320; }
.tee-pill-blue { background: #1e5aa8; color: #fff; border-color: #163e75; }
.tee-pill-gold { background: #d4a017; color: #1a1400; border-color: #a57d10; }
.tee-pill-white { background: #f7f7f7; color: #1a1a1a; border-color: #b8b8b8; }
.tee-pill-green { background: #1f6b3a; color: #fff; border-color: #14512b; }
.tee-pill-red { background: #b42318; color: #fff; border-color: #841910; }
.tee-pill-black { background: #1a1a1a; color: #fff; border-color: #000; }
.tee-pill-yellow { background: #f5d000; color: #1a1400; border-color: #c4a800; }
.tee-pill-orange { background: #e67a00; color: #fff; border-color: #b35f00; }
.tee-pill-silver { background: #c0c4c8; color: #1a1a1a; border-color: #8e949a; }
.tee-pill-bronze { background: #a56a2d; color: #fff; border-color: #7c4f21; }
.tee-pill-gray { background: #6b7280; color: #fff; border-color: #4b5563; }
.tee-pill-plain { background: #e5f6ea; color: #0d3320; border-color: #b7d4c0; }
.course-tee-actions { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; }
.course-tee-create { margin: 0; }
.course-detail-kicker { font-weight: 700; margin: 0 0 8px; }
.course-scorecard-opt.latest { background: #e5f6ea; border-radius: 8px; padding: 8px; }
.profile-myscore { margin-top: 16px; }
.profile-grid .profile-myscore { margin-top: 0; }
.profile-myscore-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 0 0 10px;
}
.profile-myscore-form .field { margin: 0; flex: 1; min-width: 140px; }
.profile-myscore-form .sc-pick-go { flex: 0 0 auto; min-width: 0; }
.profile-myscore-form .sc-pick-go .btn { min-height: 32px; }
.profile-playhcp { margin: 12px 0; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.profile-playhcp-val { font-size: 20px; color: var(--green-deep); }
.profile-myscore-table { margin-top: 8px; }
.profile-myscore-table tfoot th { background: #e5f6ea; }
.profile-myscore-table.is-stroke .sf-only { display: none; }
.catalog-lead { margin: 0 0 10px; }
.catalog-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 12px;
}
.catalog-card {
  margin: 0;
  padding: 10px 12px;
  max-width: none;
}
.catalog-card h2 { margin: 0 0 6px; font-size: 14px; }
.catalog-card .muted { font-size: 11px; margin: 0 0 8px; }
.catalog-card .field { margin-bottom: 8px; }
.catalog-card .field label { font-size: 11px; }
.catalog-card .btn { padding: 5px 12px; font-size: 12px; }
.catalog-status { max-width: none; }
.catalog-status dl {
  grid-template-columns: 108px 1fr;
  gap: 2px 8px;
  font-size: 12px;
}
.catalog-status dt { font-size: 10px; }
.catalog-card-actions { margin-top: 8px; }
.catalog-unlock { max-width: none; }
.catalog-search {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: auto;
  flex: 1 1 auto;
  max-width: none;
  margin-bottom: 0;
}
.catalog-search-mode {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
.catalog-search-mode legend { padding: 0; }
.catalog-mode-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-deep);
  white-space: nowrap;
  cursor: pointer;
}
.catalog-mode-opt input { margin: 0; }
.catalog-search-row { margin-bottom: 0; }
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}
.catalog-toolbar .course-page-search { margin-bottom: 0; }
.catalog-add-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
}
.catalog-add-bar .field { margin-bottom: 0; min-width: 160px; }
.catalog-search-actions { flex: 0 0 auto !important; min-width: 0 !important; }
.catalog-col-mark { width: 36px; text-align: center; }
.course-page-table col.catalog-col-mark { width: 36px; }
@media (max-width: 800px) {
  .catalog-top { grid-template-columns: 1fr; }
}
.cal-two-col {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.45fr);
  grid-template-areas: "lists cal";
  gap: 16px;
  align-items: stretch;
}
.cal-col-events {
  grid-area: lists;
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cal-col-cal {
  grid-area: cal;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cal-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.cal-draft-head h2 { margin: 0; }
.cal-draft-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.cal-draft-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff7ea;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.cal-draft-tile:hover {
  background: #f3ead6;
  border-color: #c47b1a;
}
.cal-draft-tile strong {
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cal-draft-tile span {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1200px) {
  .cal-draft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cal-draft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cal-col-new,
.cal-col-events {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cal-col-new .row { flex-direction: column; }
.cal-col-new .row > * { min-width: 0; }
.cal-col-events .card {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
}
.cal-events-table { width: 100%; }
.cal-events-table th,
.cal-events-table td { white-space: nowrap; }
.cal-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cal-side-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cal-side-item:last-child { border-bottom: 0; }
.cal-side-tourney { background: #f3faf4; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.cal-side-indent { padding-left: 12px; }
.cal-side-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-side-body a { font-weight: 700; }
.cal-side-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  column-gap: 10px;
  align-items: center;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}
.cal-side-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-side-meta .gt-name,
.cal-side-meta .cal-school {
  min-width: 0;
}
.cal-side-meta .gt-icon,
.cal-side-meta .cal-school-icon {
  width: 16px;
  height: 16px;
}
.cal-meta-holes,
.cal-meta-players {
  text-align: right;
}
.cal-kind { width: 18px; height: 18px; vertical-align: middle; }
.cal-tourney-row td { background: #f3faf4; }
.cal-game-indent td:nth-child(2),
.cal-game-indent td:nth-child(3) { padding-left: 22px; }
.cal-school { display: inline-flex; align-items: center; gap: 6px; }
.cal-school-icon { width: 22px; height: 22px; border-radius: 5px; }
.cal-month-card { margin: 0 0 16px; }
.cal-two-col .cal-month-card { margin: 0; }
.cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cal-month-head h2 { margin: 0; }
.cal-month-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.cal-month-sub h3 { margin: 0; font-size: 18px; }
.cal-new-card {
  width: min(720px, 100%);
  max-height: min(88vh, 920px);
}
.cal-new-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.cal-new-form .field { margin: 0; min-width: 0; }
.cal-new-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cal-new-card .cal-new-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.cal-new-head .nav-ico {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--green);
}
.cal-new-head .school-modal-actions {
  margin: 0;
  margin-left: auto;
  flex: none;
}
.cal-club-field { position: relative; }
.cal-club-search { position: relative; min-width: 0; }
.cal-club-search input[type="search"] { width: 100%; box-sizing: border-box; }
.cal-club-hits {
  margin-top: 4px;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.cal-club-hits[hidden] { display: none !important; }
.cal-club-hit {
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  cursor: pointer;
  color: #111;
  font: inherit;
}
.cal-club-hit:last-child { border-bottom: 0; }
.cal-club-hit:hover,
.cal-club-hit.is-on { background: #e5f6ea; }
.cal-club-none {
  padding: 8px 10px;
  color: var(--muted);
}
@media (max-width: 560px) {
  .cal-new-form { grid-template-columns: 1fr; }
}
.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cal-month-dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep);
  text-align: center;
  padding: 4px 0 2px;
}
.cal-month-day {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: transparent;
}
.cal-month-day.is-out { opacity: 0.42; }
.cal-month-day.is-today { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.cal-month-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
}
.cal-month-game {
  display: block;
  margin-top: 4px;
  padding: 3px 5px;
  border-radius: 5px;
  background: #e8f4ea;
  color: var(--green-deep);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-month-game:hover { color: var(--green-deep); background: #d5ecd9; }
.cal-month-game.is-active {
  background: var(--green);
  color: #fff;
}
.cal-month-game.is-active:hover { color: #fff; background: var(--green-deep); }
.cal-month-game.is-joined { font-weight: 700; }
.cal-month-game.is-closed {
  white-space: normal;
  background: #ececec;
  color: #555;
}
.cal-month-game.is-closed:hover {
  background: #e2e2e2;
  color: #444;
}
.cal-month-closed,
.cal-meta-closed {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #777;
}
.cal-month-slot {
  display: block;
  font-size: 10px;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .cal-month-day { min-height: 72px; }
}
.cal-active-list { list-style: none; margin: 0; padding: 0; }
.cal-active-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cal-active-list li:last-child { border-bottom: 0; }
.cal-active-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep);
}
.cal-active-tag.is-blocked { color: #8a6d1b; }
.ampm-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ampm-form label { margin: 0; font-weight: 700; }
.ampm-form select { min-height: 40px; }
.cal-edit { font-weight: 700; }
.cal-side-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.cal-join-form { margin: 0; }
.cal-join-form .btn {
  white-space: nowrap;
  width: 100%;
}
.cal-month-join .btn {
  width: 100%;
  margin-top: 4px;
  font-size: 11px;
  padding: 4px 6px;
}
@media (max-width: 1000px) {
  .cal-two-col {
    grid-template-columns: 1fr;
    grid-template-areas: "cal" "lists";
  }
  .cal-col-events .card {
    flex: 0 0 auto;
    overflow: visible;
  }
}
.gt-split {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}
.gt-nav h2, .gt-detail h2 { margin-top: 0; }
.gt-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.gt-tiles .gt-cat {
  grid-column: 1 / -1;
  margin: 10px 0 0;
}
.gt-cat {
  margin: 16px 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.gt-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 4px;
  align-items: start;
  min-height: 92px;
  padding: 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
}
.gt-item-head,
.gt-name,
.gt-detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gt-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: block;
}
.gt-item .gt-icon {
  grid-column: 1;
  grid-row: 1;
  width: 28px;
  height: 28px;
  margin-top: 1px;
}
.gt-item strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  line-height: 1.25;
  color: inherit;
}
.gt-icon-lg {
  width: 32px;
  height: 32px;
}
.gt-item span {
  grid-column: 2;
  grid-row: 2;
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.gt-item .gt-item-head { margin-bottom: 2px; }
.gt-item .gt-item-head strong { color: inherit; }
.gt-m-item { display: block; margin: 8px 0; padding: 12px; }
.gt-item.is-on, .gt-item:hover { background: #f3faf4; border-color: var(--green); }
.gt-kicker { color: var(--muted); margin-bottom: 4px; }
.gt-settings .gt-check { display: block; margin: 8px 0 12px; }
.gt-points .field { min-width: 70px; }
.gt-readonly { padding-left: 18px; }
@media (max-width: 900px) {
  .gt-split { grid-template-columns: 1fr; }
}
.sc-standings {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbf7;
}
.sc-standings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  align-items: start;
}
.sc-standings h3 { margin: 0 0 6px; }
.sc-standings h4 {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
}
.sc-standings p { margin: 0 0 6px; }
.sc-standings-board h3 { margin-bottom: 8px; }
.sc-board {
  width: 100%;
  border-collapse: collapse;
}
.sc-board th,
.sc-board td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sc-board th:last-child,
.sc-board td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.sc-board tbody tr.is-lead td { font-weight: 700; color: var(--green-deep); }
.sc-winner { font-weight: 700; color: var(--green-deep); margin: 8px 0 0; }
@media (max-width: 900px) {
  .sc-standings-grid { grid-template-columns: 1fr; }
}

/* Multi-game play themes. Golf pages do not use these body classes. */
.play-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.play-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}
.play-switch a.active {
  background: var(--green);
  color: #fff;
}
.play-switch-app { justify-content: flex-start; padding-left: 22px; }
.play-switch-m { justify-content: center; }
.inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
body.play-mahjong {
  --green: #8b1e3f;
  --green-deep: #5c1228;
  --fairway: #c45c2a;
  --line: #ead6dc;
  --paper: #f7eef1;
  --shadow: 0 10px 28px rgba(92, 18, 40, 0.1);
}
body.play-mahjong .hero {
  background:
    linear-gradient(115deg, rgba(92, 18, 40, 0.62) 0%, rgba(139, 30, 63, 0.40) 48%, rgba(196, 92, 42, 0.22) 100%),
    url("/img/hero-mahjong-mixed.jpg?v=20261026-mix1") center / cover no-repeat;
}
body.play-mahjong .gt-item.is-on,
body.play-mahjong .gt-item:hover {
  background: var(--paper);
  border-color: var(--green);
}
body.play-mahjong .gt-formula {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
}
body.play-mahjong .gt-setup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 0 0 12px;
}
body.play-mahjong .gt-setup-form .field {
  margin: 0;
  min-width: 160px;
}
body.play-mahjong .gt-setup-plan {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
body.play-mahjong .gt-setup-plan p { margin: 0 0 8px; }
body.play-mahjong .gt-setup-plan ul {
  margin: 0;
  padding-left: 18px;
}
body.play-mahjong .gt-setup-plan li { margin: 0 0 4px; }
body.play-mahjong .gt-rotation { margin: 8px 0 0; padding-left: 18px; }
body.play-mahjong .mj-night-line { margin: 0 0 6px; }
body.play-mahjong .mj-clock { margin: 0 0 10px; }
body.play-mahjong .mj-clock.is-ahead { color: var(--green-deep); }
body.play-mahjong .mj-clock.is-on { color: var(--green-deep); }
body.play-mahjong .mj-clock.is-behind { color: var(--flag); }
body.play-mahjong .mj-clock.is-ended,
body.play-mahjong .mj-clock.is-before { color: var(--muted); }
body.play-mahjong .mj-stop-now { font-weight: 600; }
body.play-mahjong .mj-board {
  width: 100%;
  border-collapse: collapse;
}
body.play-mahjong .mj-board th,
body.play-mahjong .mj-board td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
body.play-mahjong .mj-board tr.is-lead td { font-weight: 700; color: var(--green-deep); }
body.play-mahjong .mj-board tr.is-sit td { color: var(--muted); }
body.play-mahjong .mj-season-board th,
body.play-mahjong .mj-season-board td { font-size: 13px; }
body.play-mahjong .mj-count {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-deep);
  font-weight: 700;
  text-align: center;
}
body.play-mahjong .mj-season-tours li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body.play-mahjong .mj-game-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.play-mahjong .mj-inline-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
body.play-mahjong .mj-inline-add select { max-width: 180px; }
body.play-mahjong .mj-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
body.play-mahjong .mj-sheet-block { margin: 0 0 16px; }
body.play-mahjong .mj-sheet-block h3 { margin: 0 0 8px; }
body.play-mahjong .mj-sheet-hand {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
  background: #fff;
}
body.play-mahjong .mj-sheet-hand h4 { margin: 0 0 8px; color: var(--green-deep); }
body.play-mahjong .mj-sheet-table { margin: 0 0 8px; }
body.play-mahjong .mj-sheet-seats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
body.play-mahjong .mj-sheet-seats input { width: 100%; }
body.play-padel {
  --green: #0e7c66;
  --green-deep: #0a5344;
  --fairway: #1aa883;
  --line: #cfe8e1;
  --paper: #eef7f4;
  --shadow: 0 10px 28px rgba(10, 83, 68, 0.1);
}
body.play-padel .hero {
  background:
    linear-gradient(115deg, rgba(10, 83, 68, 0.62) 0%, rgba(14, 124, 102, 0.40) 48%, rgba(26, 168, 131, 0.22) 100%),
    url("/img/hero-padel.jpg?v=20260920-padel1") center / cover no-repeat;
}
body.play-quiznight {
  --green: #2a3f8f;
  --green-deep: #1a275c;
  --fairway: #d4a017;
  --line: #d5dced;
  --paper: #f3f5fb;
  --shadow: 0 10px 28px rgba(26, 39, 92, 0.1);
}
body.play-quiznight .hero {
  background: linear-gradient(115deg, rgba(26, 39, 92, 0.88) 0%, rgba(42, 63, 143, 0.72) 52%, rgba(212, 160, 23, 0.28) 100%);
}
body.play-culinary {
  --green: #b45309;
  --green-deep: #7c2d12;
  --fairway: #3f6212;
  --line: #eadfd0;
  --paper: #faf6f1;
  --shadow: 0 10px 28px rgba(124, 45, 18, 0.1);
}
body.play-culinary .hero {
  background: linear-gradient(115deg, rgba(124, 45, 18, 0.72) 0%, rgba(180, 83, 9, 0.55) 52%, rgba(63, 98, 18, 0.28) 100%);
}
body.play-cycling {
  --green: #0f766e;
  --green-deep: #134e4a;
  --fairway: #3f6212;
  --line: #d5e5e2;
  --paper: #f3faf8;
  --shadow: 0 10px 28px rgba(19, 78, 74, 0.12);
}
body.play-cycling .hero {
  background: linear-gradient(115deg, rgba(19, 78, 74, 0.72) 0%, rgba(15, 118, 110, 0.50) 52%, rgba(63, 98, 18, 0.22) 100%);
}
body.play-markets {
  --green: #c2410c;
  --green-deep: #7c2d12;
  --fairway: #b45309;
  --line: #f3e8d8;
  --paper: #fffaf4;
  --shadow: 0 10px 28px rgba(194, 65, 12, 0.12);
}
body.play-markets .hero {
  background: linear-gradient(115deg, rgba(124, 45, 18, 0.78) 0%, rgba(194, 65, 12, 0.55) 52%, rgba(180, 83, 9, 0.28) 100%);
}
body.play-markets main.content { padding: 10px; }
body.play-markets main.m-main { padding: 10px; }
.cycle-map {
  width: 100%;
  min-height: 360px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #e8f2f0;
}
.cycle-route-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}
.cycle-route-stats strong { color: var(--green-deep); }
.cycle-seal {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
}
.food-meta { color: var(--muted); margin: 0 0 8px; }
.food-photo { max-width: 180px; border-radius: 10px; }
.play-discover {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 22px;
  font-size: 12px;
  color: var(--muted);
}
.play-discover a { font-weight: 600; }
.play-discover-dot { color: var(--muted); }
.reg-schools {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
}
.reg-schools.is-focus { border-color: var(--green); background: #f7fbf8; }
.reg-schools legend { font-weight: 700; padding: 0 6px; }
.reg-schools label { display: block; margin: 4px 0; }
.reg-legal {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}
.reg-legal legend { font-weight: 700; padding: 0 6px; }
.reg-legal label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 8px;
  margin: 8px 0;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.35;
}
.reg-legal label.check {
  margin: 8px 0;
}
.reg-legal input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}
.legal-head { display: flex; align-items: center; gap: 12px; }
.legal-head h1 { margin: 0; min-width: 0; }
.legal-head + * { margin-top: 12px; }
.legal-back {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #f3faf4; color: var(--green-deep);
  font-size: 20px; font-weight: 700; line-height: 1; text-decoration: none;
}
.legal-back:hover, .legal-back:focus-visible { background: #e5f6ea; outline: none; text-decoration: none; }
.legal h2 { margin-top: 22px; }
.legal h3 { margin-top: 16px; }
.legal ul { margin: 8px 0 12px 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.legal th, .legal td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-footer { flex-wrap: wrap; }
.play-roster { list-style: none; margin: 0 0 12px; padding: 0; }
.play-roster li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.play-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.play-score-row input, .play-score-row select { min-width: 70px; }
.play-sets { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play-sets input { width: 40px; }
.buddy-mark, .buddy-wordmark {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}
.buddy-home .home-info-icon {
  width: 56px;
  height: 56px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
.buddy-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.buddy-bar-name {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buddy-app-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--green-deep);
  letter-spacing: .02em;
  line-height: 1;
}
.welcome-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  align-items: start;
}
.welcome-app-title {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: center;
  margin: 0 0 10px;
}
.welcome-app-title .home-info-icon {
  margin: 0;
  border-radius: 50%;
}
.welcome-app-title h2 {
  margin: 0;
  line-height: 1.2;
}
@media (max-width: 800px) {
  .welcome-apps { grid-template-columns: 1fr; }
}
body.buddy-body .buddy-brand img,
.brand img.buddy-mark,
body.buddy-body .buddy-brand img.buddy-mark {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}
body.buddy-body .buddy-brand img.buddy-lockup,
.brand img.buddy-lockup {
  height: 36px;
  width: auto;
  max-width: min(280px, 52vw);
  border-radius: 0;
  background: transparent;
}
body.buddy-body.has-canvas-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.canvas-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  background: var(--green-deep);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 18px rgba(18, 69, 38, 0.18);
}
.canvas-nav a {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  color: #dff3e4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
}
.canvas-nav a.active, .canvas-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.canvas-nav svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.canvas-nav img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.app-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
  width: 100%;
}
.app-sport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 120px;
  padding: 12px 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--green-deep);
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}
.app-sport span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.app-sport img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}
.app-sport img[src*="/img/circles/"] {
  object-fit: cover;
  border-radius: 14px;
}
.app-welcome {
  margin-top: 18px;
}
.app-welcome .app-sport {
  border: 2px solid transparent;
  text-decoration: none;
}
.app-welcome .app-sport:hover,
.app-welcome .app-sport:focus-visible {
  color: var(--green-deep);
  border-color: var(--green);
}
.app-welcome .app-sport-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}
@media (min-width: 768px) {
  .app-welcome {
    gap: 20px;
  }
  .app-welcome .app-sport {
    min-height: 190px;
    padding: 18px 16px;
    font-size: 18px;
  }
  .app-welcome .app-sport img {
    width: 88px;
    height: 88px;
  }
  .app-welcome .app-sport-desc {
    font-size: 14px;
  }
}
.canvas-picks {
  margin-top: 16px;
}
.canvas-pick {
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}
.canvas-pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.canvas-pick.is-on,
.canvas-pick:has(input:checked) {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 2px rgba(18, 69, 38, 0.18);
}
.canvas-pick.is-off,
.app-sport.is-off,
.home-info-card.is-off {
  filter: grayscale(1);
  opacity: 0.42;
  cursor: default;
}
.canvas-pick.is-off[aria-disabled="true"] {
  pointer-events: none;
}
.canvas-pick.is-off.is-activate,
.app-sport.is-off.is-activate,
.home-info-card.is-off.is-activate {
  pointer-events: auto !important;
  cursor: pointer;
  border: 0;
  font: inherit;
  color: inherit;
}
.canvas-picks .canvas-pick { justify-content: flex-start; }
.canvas-pick .canvas-pick-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}
.canvas-pick.is-off.is-activate { filter: none; opacity: 1; }
.canvas-pick.is-off.is-activate img,
.canvas-pick.is-off.is-activate > span:not(.canvas-pick-join) { filter: grayscale(1); opacity: 0.45; }
.canvas-pick .canvas-pick-join {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.canvas-pick.is-off.is-activate:hover .canvas-pick-join,
.canvas-pick.is-off.is-activate:focus-visible .canvas-pick-join { background: var(--green); }
.canvas-pick.is-on.is-activate {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: transparent;
}
button.app-sport {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.canvas-activate-pop {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 18, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}
.canvas-activate-pop[hidden] { display: none; }
.canvas-activate-card {
  width: min(420px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.canvas-activate-card.is-wide {
  width: min(560px, calc(100vw - 24px));
}
.canvas-activate-card h2 {
  margin: 0 0 8px;
  color: #146c2e;
  font-size: 20px;
}
.canvas-activate-card p {
  margin: 0 0 14px;
  color: #35543f;
}
.canvas-activate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.canvas-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.canvas-config-head h1 { margin: 0; }
.canvas-delete-acc {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #8a1c16;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.canvas-delete-acc svg { width: 22px; height: 22px; display: block; }
.canvas-delete-acc:hover,
.canvas-delete-acc:focus-visible { background: #fde8e6; }
.canvas-delete-pop {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 18, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 16px;
}
.canvas-delete-pop.is-closed { display: none !important; }
.canvas-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.canvas-club-join {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.canvas-club-join h3 {
  margin: 0 0 8px;
  color: #146c2e;
  font-size: 17px;
}
.canvas-club-kind {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}
.canvas-club-kind legend {
  font-weight: 600;
  margin-bottom: 6px;
}
.canvas-club-kind label {
  display: block;
  margin: 4px 0;
}
.club-join-hits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.club-join-hit {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid #c9d8cc;
  background: #f4faf5;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}
.club-join-hit:hover {
  background: #e7f4ea;
}
.club-join-hit .country-flag {
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
}
.club-members-card h3 {
  margin: 0 0 8px;
  color: #146c2e;
}
.club-members-card h3 + .muted,
.club-members-card .club-member-add {
  margin-bottom: 12px;
}
.club-member-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.club-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e4eee6;
}
.club-member-row strong {
  display: block;
}
.club-member-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body.buddy-body .buddy-wrap {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
body.buddy-body .buddy-wrap:has(.oc-auth) {
  max-width: 1080px;
}
body.buddy-body .buddy-wrap:has(.oc-signin) {
  max-width: 520px;
}
body.buddy-body .buddy-wrap:has(.oc-register) {
  max-width: 560px;
}
.oc-signin {
  text-align: left;
}
.oc-signin > h1 {
  margin: 0 0 8px;
}
.oc-signin > .tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 8px;
}
.oc-signin > .muted {
  margin: 0 0 18px;
}
.oc-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
  text-align: left;
}
.oc-teaser h1 { margin: 0 0 10px; }
.oc-teaser h2 { margin: 18px 0 10px; font-size: 22px; line-height: 1.2; }
.oc-teaser p { margin: 0 0 12px; line-height: 1.5; }
.oc-teaser .tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 16px;
}
.oc-auth-form { min-width: 0; }
.oc-auth-form > h1 { margin-top: 0; }
@media (max-width: 800px) {
  .oc-auth { grid-template-columns: 1fr; }
}
body.buddy-body .buddy-home {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
body.buddy-front {
  background:
    linear-gradient(180deg, rgba(8, 22, 16, 0.18) 0%, rgba(8, 22, 16, 0.08) 45%, rgba(8, 22, 16, 0.28) 100%),
    url("/img/ourcircles-bg.png?v=20260928-div2") center / cover no-repeat fixed;
  background-color: #1a2a20;
}
body.buddy-front .legal-footer {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin: 16px auto 24px;
  max-width: 420px;
  padding: 10px 18px;
  box-sizing: border-box;
}
html:has(body.buddy-front) {
  background: #1a2a20;
}
body.buddy-front {
  min-height: 100vh;
}
body.buddy-front .buddy-wrap {
  padding-bottom: 0;
}
body.buddy-front .legal-footer {
  position: relative;
  z-index: 20;
  background: rgba(10, 36, 20, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  margin: 10px auto 24px;
}
body.buddy-front .legal-footer a {
  color: #fff;
}
body.buddy-front .buddy-wrap,
body.buddy-body.buddy-front .buddy-home {
  max-width: 1080px;
}
body.buddy-front .buddy-home .hero {
  padding: 20px 22px;
}
body.buddy-front .buddy-home .hero-top {
  margin-bottom: 10px;
}
body.buddy-front .hero-lockup {
  margin-bottom: 10px;
}
body.buddy-body.buddy-front .buddy-home .hero-copy {
  max-width: none;
}
body.buddy-front .hero p {
  margin-bottom: 8px;
}
body.buddy-front .hero .tagline {
  margin-bottom: 10px;
}
body.buddy-front .hero h2 {
  margin: 12px 0 8px;
}
body.buddy-front .buddy-home .hero-actions {
  margin-top: 12px;
}
body.buddy-front .legal-footer a:hover {
  color: #e8f5e9;
}
body.buddy-front .legal-footer .play-discover-dot {
  color: rgba(255, 255, 255, 0.75);
}
body.buddy-body .buddy-home .hero {
  background:
    linear-gradient(115deg, rgba(10, 36, 20, 0.58) 0%, rgba(18, 69, 38, 0.38) 48%, rgba(18, 69, 38, 0.18) 100%),
    url("/img/ourcircles-bg.png?v=20260928-div2") center / cover no-repeat;
}
@media (orientation: portrait) {
  body.buddy-front {
    background:
      linear-gradient(180deg, rgba(8, 22, 16, 0.18) 0%, rgba(8, 22, 16, 0.08) 45%, rgba(8, 22, 16, 0.28) 100%),
      url("/img/ourcircles-bg-vert.png?v=20260928-divv2") center / cover no-repeat scroll;
    background-color: #1a2a20;
  }
  body.buddy-body .buddy-home .hero {
    background:
      linear-gradient(115deg, rgba(10, 36, 20, 0.58) 0%, rgba(18, 69, 38, 0.38) 48%, rgba(18, 69, 38, 0.18) 100%),
      url("/img/ourcircles-bg-vert.png?v=20260928-divv2") center / cover no-repeat;
  }
}
body.buddy-body .buddy-home .hero-top {
  justify-content: center;
}
body.buddy-body .buddy-home .hero-top h1 {
  margin: 0 0 8px;
}
.hero-lockup {
  margin: 0 0 16px;
  text-align: center;
}
.hero-lockup img {
  height: 88px;
  width: auto;
  max-width: min(560px, 94%);
  display: inline-block;
  vertical-align: middle;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.oc-lockup {
  margin: 0 0 12px;
}
.oc-lockup img {
  height: 52px;
  width: auto;
  max-width: 100%;
  display: block;
}
body.buddy-body .buddy-home .hero-copy {
  max-width: 42em;
  margin: 0 auto;
  text-align: left;
}
body.buddy-body .buddy-home .hero-actions {
  justify-content: center;
  flex-wrap: wrap;
}
body.buddy-body .buddy-home .hero-book-card {
  flex: 1 1 100%;
  justify-content: center;
  max-width: 280px;
}
body.buddy-body .buddy-home .grid-3 {
  text-align: left;
}
body.buddy-body .buddy-home .home-info-card {
  text-align: center;
}
body.buddy-body .buddy-home .home-info-card .btn {
  margin: 0 auto;
}
.home-apps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.home-app-tile {
  aspect-ratio: 1 / 1;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(18, 69, 38, 0.12);
  color: inherit;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.home-app-tile:hover {
  transform: translateY(-2px);
  border-color: #146c2e;
  box-shadow: 0 10px 22px rgba(18, 69, 38, 0.18);
}
.home-app-tile:focus-visible {
  outline: 3px solid #146c2e;
  outline-offset: 2px;
}
.home-app-icon {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}
.home-app-icon.home-app-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}
.home-app-name {
  color: #124526;
  font-size: 14px;
  line-height: 1.2;
}
.home-app-tag {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-app-tile.is-off {
  background: #f1f3f2;
  box-shadow: none;
}
.home-app-tile.is-off .home-app-icon {
  filter: grayscale(1);
  opacity: 0.55;
}
.home-app-tile.is-off .home-app-name,
.home-app-tile.is-off .home-app-tag {
  color: #6b7a71;
}
.home-apps-empty {
  margin: 22px 0 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  text-align: center;
}
@media (max-width: 900px) {
  .home-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-app-icon { width: 40px; height: 40px; }
  .home-app-icon.home-app-photo { width: 56px; height: 56px; }
  .home-app-name { font-size: 14px; }
  .home-app-tag { font-size: 11.5px; }
}
body.buddy-body .buddy-opt {
  display: inline-block;
  margin: 22px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.club-booking-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 14px;
}
.club-booking-publish { display: inline; }
.club-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin: 0 0 10px; flex: none; }
.club-toolbar-form { display: contents; }
.club-head-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.club-head-tools .club-toolbar { margin: 0; }
.club-toolbar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  color: #146c2e;
  border: 1px solid #cfe3d4;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  cursor: pointer;
  text-decoration: none;
}
.club-toolbar-btn:hover { background: #f1f8f3; text-decoration: none; }
.club-toolbar-btn:focus-visible { outline: 2px solid #146c2e; outline-offset: 2px; }
.club-toolbar-btn svg { width: 20px; height: 20px; display: block; pointer-events: none; }
.club-rules-launch { display: inline-flex; align-items: center; flex: none; }
.course-modal[data-club-rules-modal].is-open {
  display: flex !important;
  z-index: 400;
}
.course-modal[data-club-rules-modal] .course-modal-card { width: min(880px, 100%); }
.club-rules-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}
.club-rules-body,
.club-rules-title,
.club-rules-note { min-width: 0; width: 100%; }
.club-rules-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.club-toolbar-btn img { width: 24px; height: 24px; display: block; }
.club-toolbar-btn.is-primary { background: #146c2e; border-color: #146c2e; color: #fff; }
.club-toolbar-btn.is-primary:hover { background: #0f5a24; }
.club-toolbar-btn.is-danger { color: #b42318; border-color: #f3c3bd; background: #fff; }
.club-toolbar-btn.is-danger:hover { background: #fee4e2; }
.club-toolbar-bell { color: #9aa59d; }
.club-toolbar-bell.is-active { color: #b42318; border-color: #f3c3bd; }
.club-toolbar-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
.m-stack .club-toolbar {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 6px 6px 4px 2px;
  margin: 8px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-stack .club-toolbar::-webkit-scrollbar { display: none; }
.club-director-link { margin-left: 8px; font-size: 13px; }
.club-director-warn { display: block; margin: 4px 0 0; color: #b42318; font-size: 13px; }
.club-director-read p { margin: 0; }
.club-director-read p a { margin-left: 8px; font-size: 13px; }
.club-edit-form .club-director-read .club-director-warn { grid-column: 1 / -1; }
.bk-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  background: var(--white);
  border-bottom: 2px solid var(--green);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 25;
}
.bk-top-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
  line-height: 1.15;
}
.bk-top-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.bk-top-logo-link:hover .bk-top-club,
.bk-top-logo-link:focus-visible .bk-top-club {
  text-decoration: underline;
}
.bk-top-logo-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}
.bk-top-logo .club-logo-lg {
  width: 72px;
  height: 72px;
  padding: 12px;
}
.bk-top-club {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.15;
  padding-top: 0;
  max-width: 14em;
}
.bk-top-club-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bk-top-logged {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.bk-top-center {
  text-align: center;
  min-width: 0;
  justify-self: center;
}
.bk-top-actions {
  justify-self: end;
}
.bk-top-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.bk-top-title-day {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.bk-top-title-day .mb-day-pick {
  flex: 0 1 auto;
  min-height: 0;
}
.bk-top-title-day .mb-day-pick span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.mk-app-stack {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #fff;
  box-shadow: var(--shadow);
}
.mk-app-stack .top-bar,
.mk-app-stack .m-header {
  position: static;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.mk-app-stack .bk-top-bar {
  position: static;
  box-shadow: none;
  border-bottom: 2px solid var(--green);
}
.mk-app-stack .mk-oc-logo-link {
  display: block;
  line-height: 0;
  border-radius: 50%;
}
.mk-app-stack .mk-oc-logo-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.mk-app-stack .m-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: #fff;
}
.mk-app-stack .m-header-canvas {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.mk-app-stack .m-head-app {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  display: block;
}
.mk-app-stack .m-head-canvas-name {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.2;
}
.mk-app-stack .m-head-canvas-me {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mk-app-stack .m-head-photo {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.mk-app-stack a.m-head-photo { display: block; }
.mk-app-stack .m-head-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f3faf4;
  border: 1px solid var(--line);
}
.mk-app-stack .m-head-flag {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 16px;
  height: 11px;
  object-fit: cover;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.bk-top-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.bk-day-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-deep);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
.bk-day-arrow:hover {
  background: var(--paper);
  color: var(--green);
}
.bk-day-wait {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(18, 69, 38, 0.42);
  color: #fff;
  text-align: center;
  padding: 24px;
}
.bk-day-wait[hidden] {
  display: none !important;
}
.bk-day-wait-spin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: bk-day-spin 0.8s linear infinite;
}
.bk-day-wait-text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
@keyframes bk-day-spin {
  to { transform: rotate(360deg); }
}
.bk-top-actions { flex-wrap: wrap; }
.bk-hold-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}
.bk-hold-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
}
.bk-hold-icon svg { width: 22px; height: 22px; display: block; }
.bk-hold-icon:hover { background: var(--paper); }
.bk-hold-icon.is-on {
  background: #fde8e8;
  border-color: #c44848;
  color: #8a1f1f;
}
.bk-hold-chip {
  font-size: 12px;
  font-weight: 700;
  color: #8a1f1f;
  background: #fde8e8;
  border-radius: 999px;
  padding: 3px 8px;
}
.bk-hold-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 20;
}
.bk-hold-pop-title { margin: 0 0 8px; font-weight: 700; }
.bk-hold-pop .muted { margin: 6px 0 10px; font-size: 12px; }
.bk-hold-pop input { width: 100%; }
.bk-hold-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-hold-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fde8e8;
  color: #8a1f1f;
  font-weight: 700;
}
.bk-gd-lines {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.bk-gd-lines .bk-hold-banner {
  width: 100%;
  margin: 0 0 8px;
  box-sizing: border-box;
}
.bk-gd-lines .bk-hold-banner:last-child {
  margin-bottom: 12px;
}
.bk-gd-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}
.bk-gd-line span {
  font-weight: 700;
}
.bk-gd-line-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #8a1f1f;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
button.bk-gd-line-title:hover { color: #6a1212; }
strong.bk-gd-line-title {
  font-weight: 800;
  text-decoration: none;
  cursor: default;
}
.bk-gd-line-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #fff;
}
.bk-body .mk-wrap {
  max-width: 1400px;
  padding: 10px;
}
.bk-body .bk-wrap {
  max-width: none;
  width: 100%;
  padding-top: 12px;
}
.bk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}
.bk-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 14px;
}
.bk-tabs a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #fff;
}
.bk-tabs a.active { background: var(--green); color: #fff; }
.bk-tab-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.bk-params-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
}
.bk-params-icon svg { width: 18px; height: 18px; display: block; }
.bk-params-icon:hover { background: var(--paper); }
.bk-params-form { width: min(920px, calc(100vw - 48px)); }
.bk-params-form .bk-club-params-item {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0 0 12px;
}
.bk-params-form .bk-club-params-label {
  flex: 0 0 auto;
  min-width: auto;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.bk-params-form .bk-club-params-row {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}
.bk-bin {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: 1px dashed #c44848;
  border-radius: 8px;
  background: #fff4f4;
  color: #8a1f1f;
  flex-shrink: 0;
}
.bk-bin svg { width: 18px; height: 18px; display: block; }
.bk-bin.is-drop {
  background: #f8c4c4;
  border-style: solid;
}
.bk-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 436px);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}
.bk-board.is-past {
  opacity: 0.78;
}
.bk-board.is-past .bk-panels,
.bk-board.is-past .bk-side {
  pointer-events: none;
}
.bk-board.is-past .bk-score-link {
  pointer-events: auto;
}
.bk-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.bk-side-rails {
  display: grid;
  grid-template-columns: 200px 220px;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}
.bk-slot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.bk-slot-stats span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.bk-slot-free { color: var(--green-deep); }
.bk-slot-booked { color: #8a6a12; }
.bk-rail { min-width: 0; width: 100%; }
.bk-canvas {
  position: sticky;
  top: 106px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.bk-canvas h2 { margin-top: 0; font-size: 16px; }
.bk-guest-form .field { margin-bottom: 8px; }
.bk-canvas-empty { margin-top: 10px; }
.bk-canvas.is-drop,
.gd-canvas.is-drop { outline: 2px dashed var(--green); }
.bk-canvas-school {
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}
.bk-canvas-school-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bk-canvas-school-head img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}
.bk-canvas-school-head strong { flex: 1; font-size: 13px; }
.bk-canvas-school-head .bk-mini { margin-left: auto; }
.gd-schools { margin: 0 0 14px; }
body.is-bk-wait { cursor: wait; }
.bk-wait {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: rgba(18, 40, 28, 0.42);
}
.bk-wait.is-on { display: flex; }
.bk-wait-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 360px;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}
.bk-wait-spin {
  width: 36px;
  height: 36px;
  border: 3px solid #d7e4da;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: bk-spin 0.7s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }
.bk-wait-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.bk-guest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed #c9a227;
  border-radius: 8px;
  background: #fff8e6;
  cursor: grab;
}
.bk-guest-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bk-person.bk-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.bk-guest span { display: block; color: var(--muted); font-size: 12px; }
.bk-schools {
  position: sticky;
  top: 106px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.bk-schools h2 { margin: 0 0 8px; font-size: 16px; }
.bk-club-params {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin: 0 0 12px;
}
.bk-club-params h2 { margin: 0 0 8px; font-size: 16px; }
.bk-club-params label { display: block; margin: 0 0 8px; font-weight: 700; }
.bk-club-params-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 600;
}
.bk-club-params-row input {
  width: 72px;
  padding: 6px 8px;
}
.bk-club-params .muted { margin: 0 0 10px; font-size: 12px; }
.bk-school-group { margin-top: 12px; }
.bk-school-group:first-child { margin-top: 0; }
.bk-school-group h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.bk-school {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
  cursor: grab;
}
.bk-school img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.bk-school-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.bk-school strong { font-size: 13px; line-height: 1.2; }
.bk-school-club {
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}
.bk-school-people {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  width: 100%;
}
.bk-person {
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  cursor: grab;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-person-guest { background: #fff8e6; border-style: dashed; }
.club-affil-add,
.club-affil-local {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.club-affil-add select,
.club-affil-local select { min-width: 140px; }
.club-affil-tiles .club-school-tile { cursor: pointer; }
.school-affil-edit {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.school-affil-edit h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.school-affil-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.school-affil-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbf6;
}
.school-affil-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.school-affil-name .school-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.school-affil-name strong,
.school-affil-name .muted {
  display: block;
}
.school-affil-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.school-affil-acts .club-affil-local,
.school-affil-edit .club-affil-add {
  margin: 0;
}
.bk-flight.is-drop { outline: 2px dashed var(--green); }
.bk-panels { min-width: 0; width: 100%; }
.bk-hour-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.bk-hour-head,
.bk-hour-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: center;
}
.bk-hour-head.has-back,
.bk-hour-line.has-back {
  grid-template-columns: 72px 1fr 1fr;
}
.bk-hour-head {
  padding: 6px 8px;
  font-weight: 700;
  color: var(--green-deep);
  border-bottom: 1px solid var(--line);
}
.bk-hour-group {
  margin: 10px 0 4px;
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-deep);
  background: #eef5ef;
  border-radius: 6px;
}
.bk-hour-line {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.bk-hour-time {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.bk-hour-time span { font-size: 11px; color: var(--muted); }
.bk-flight-line {
  margin: 0;
  padding: 4px;
}
.bk-seats-line {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bk-seats-line .bk-seat {
  min-height: 58px;
  padding: 4px;
}
.bk-seats-line .bk-seat img { width: 28px; height: 28px; }
.bk-hour-line.is-closed { background: #fff6f6; }
.bk-flight-line.is-closed {
  background: transparent;
  border-color: transparent;
  padding: 0;
}
.bk-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px 10px;
  border: 1px solid #b0b0b0;
  border-radius: 8px;
  background: #d5d5d5;
  color: #4a4a4a;
}
.bk-closed-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.bk-closed-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.bk-closed-text strong {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bk-closed-text span {
  font-size: 15px;
  font-weight: 700;
  word-break: break-word;
}
.bk-flight-line.is-blocked {
  background: transparent;
  border-color: transparent;
  padding: 0;
}
.bk-blocked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px 10px;
  border: 1px solid #b0b0b0;
  border-radius: 8px;
  background: #d5d5d5;
  color: #4a4a4a;
}
.bk-flight-square.is-golfday .bk-closed,
.bk-flight-square.is-golfday .bk-blocked,
.bk-flight-line.is-golfday .bk-closed,
.bk-flight-line.is-golfday .bk-blocked {
  background: #ffe7a3;
  border-color: #e0c36a;
  color: #8a5a00;
}
.bk-blocked-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.bk-block-pop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  background: rgba(20, 40, 28, 0.35);
}
.bk-block-pop[hidden] { display: none; }
.bk-block-form {
  width: min(920px, 100%);
  max-height: calc(100vh - 72px);
  overflow: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.bk-block-form label { display: block; margin: 8px 0 12px; }
.bk-block-form input { width: 100%; }
.bk-gd-block-toolbar { margin: 4px 0 12px; }
.bk-gd-block-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.bk-gd-block-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #f7fbf8;
  color: var(--green-deep);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-gd-block-tab-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #fff;
}
.bk-gd-block-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bk-gd-block-panel-head label { flex: 1; margin: 8px 0 12px; }
.bk-gd-block-panel-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #f4f4f4;
}
.bk-gd-create-form { width: min(440px, 100%); }
.bk-gd-create-preview { margin: 0 0 12px; }
.bk-gd-create-preview img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f7;
}
.bk-gd-block-tab.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.bk-gd-block-panel.is-off { display: none; }
.bk-block-toolbar { margin: 0 0 10px; }
.bk-block-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 14px;
  align-items: start;
}
.bk-block-side h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-deep);
}
.bk-block-flights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
  margin: 0;
  max-height: 42vh;
  overflow: auto;
}
@media (max-width: 720px) {
  .bk-block-sides { grid-template-columns: 1fr; }
}
.bk-block-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
  color: var(--green-deep);
  cursor: pointer;
  text-align: left;
}
.bk-block-chip span { font-size: 12px; color: var(--muted); }
.bk-block-chip.is-on {
  background: #1b4d2b;
  border-color: #1b4d2b;
  color: #fff;
}
.bk-block-chip.is-on span { color: #d6eadb; }
.bk-block-chip.is-golfday,
.bk-block-chip[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f1e8;
  color: #6b5d3a;
}
.bk-block-chip.is-golfday span { color: #8a7a4a; }
.bk-cancel-confirm-card { max-width: 420px; }
.bk-cancel-list {
  margin: 0 0 12px;
  padding-left: 18px;
  max-height: 40vh;
  overflow: auto;
}
.bk-cancel-list li { margin: 4px 0; }
.bk-line-empty {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-line-school { display: block; font-size: 11px; margin-top: 2px; }
.bk-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.bk-section h2 { margin: 0 0 8px; font-size: 16px; }
.bk-day-board { display: flex; flex-direction: column; gap: 16px; }
.bk-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  align-items: start;
}
.bk-quad {
  min-width: 0;
  background: #fff;
  border: 1px solid #b8d0bc;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.bk-quad-title {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--green-deep);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
}
.bk-quad-body { min-width: 0; }
.bk-quad-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.bk-quad-row:last-child { border-bottom: 0; }
.bk-hour-sheet {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.bk-hour-sheet-head,
.bk-hour-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
}
.bk-hour-sheet-head {
  padding: 4px 2px 10px;
  font-weight: 700;
  color: var(--green-deep);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.bk-hour-sheet-head > :nth-child(3),
.bk-hour-row > .bk-hour-flights:last-child {
  border-left: 3px solid var(--green-deep);
  padding-left: 14px;
}
.bk-session-row {
  margin: 10px 0 6px;
  padding: 10px 14px;
  background: var(--green-deep);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 8px;
}
.bk-hour-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.bk-hour-row:last-child { border-bottom: 0; }
.bk-hour-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.1;
  padding-top: 8px;
}
.bk-hour-flights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.bk-session {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.bk-session h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--green-deep);
}
.bk-session-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bk-flight-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
}
.bk-flight-square .bk-flight-head {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-bottom: 6px;
  min-width: 0;
}
.bk-flight-group {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #1a4a8a;
}
.bk-flight-group.is-mixed {
  color: #8a5a00;
}
.bk-flight-square .bk-seats {
  flex: 1;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.bk-flight-square .bk-seat {
  min-height: 0;
  padding: 4px;
}
.bk-flight-square .bk-seat img { width: 28px; height: 28px; }
.bk-flight-square .bk-closed,
.bk-flight-square .bk-blocked {
  flex: 1;
  min-height: 0;
  flex-direction: column;
  text-align: center;
}
.bk-flight-square.is-school .bk-flight-school {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #c5d8f7;
}
.bk-flight-square.is-gd-logo .bk-flight-gdlogo {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffe7a3;
}
.bk-flight-square .bk-flight-gdlogo img {
  width: clamp(52px, 58%, 104px);
  height: clamp(52px, 58%, 104px);
  object-fit: contain;
}
.bk-flight-square.is-school.is-warning .bk-flight-school {
  background: repeating-linear-gradient(45deg, #f3c48a, #f3c48a 8px, #c5d8f7 8px, #c5d8f7 14px);
}
.bk-flight-square.is-slots-locked .bk-flight-school {
  box-shadow: inset 0 0 0 2px #0d6b63;
}
.bk-flight-school-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 90%;
  text-align: center;
}
.bk-flight-square .bk-flight-school img {
  width: clamp(48px, 36%, 80px);
  height: clamp(48px, 36%, 80px);
  object-fit: contain;
}
.bk-flight-school-name {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a4a8a;
  text-align: center;
}
.bk-flight-school .bk-mini {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
}
.bk-flight-square.is-closed,
.bk-flight-square.is-blocked {
  padding: 8px;
}
.bk-flight-square.is-confirmed {
  border-color: #0d6b63;
  background: #e8f6f4;
}
.bk-flight-lock {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d6b63;
}
.bk-seat[draggable="true"] { cursor: grab; }
.bk-board .bk-seat[data-occupied="1"] { cursor: pointer; }
.bk-seat[data-locked="1"] { cursor: pointer; }
.bk-board .bk-flight.is-golfday .bk-seat[data-occupied="1"],
.bk-board .bk-seat[data-golfday-seat="1"][data-occupied="1"] {
  cursor: default;
}
.bk-player-pop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 40, 28, 0.35);
}
.bk-player-pop[hidden] { display: none; }
.bk-player-pop-card {
  width: min(360px, 92vw);
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.bk-player-pop-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bk-player-pop-actions .btn { width: 100%; }
.bk-player-pop-actions .btn[hidden] { display: none !important; }
.bk-person img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
}
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.bk-flight {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #f7fbf8;
}
.bk-flight-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.bk-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bk-seat {
  min-height: 72px;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  border: 1px solid transparent;
}
.bk-seat img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.bk-seat--free { background: #c8efd4; color: #146c2e; }
.bk-seat--na { background: #d5d5d5; color: #4a4a4a; }
.bk-seat--golfday { background: #ffe7a3; color: #8a5a00; }
.bk-seat.bk-seat--gt-individual { background: #c8efd4; color: #146c2e; }
.bk-seat.bk-seat--gt-team { background: #d7e8fb; color: #1a4d86; }
.bk-seat.bk-seat--gt-social { background: #ffe7a3; color: #8a5a00; }
.bk-seat--web { background: #d7e8fb; color: #1a4d86; }
.bk-flight-square.is-web { box-shadow: inset 0 0 0 2px #4a86c8; }
.bk-flight-square.is-web-lock { box-shadow: inset 0 0 0 2px #1a4d86; }
.bk-flight-web {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: #1a4d86;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.bk-seat--school { background: #c5d8f7; color: #1a4a8a; }
.bk-seat--booked { background: #f5c0c0; color: #8a1f1f; }
.bk-seat--confirmed { background: #b8e4e0; color: #0d6b63; }
.bk-seat--broken {
  background: repeating-linear-gradient(45deg, #f3c48a, #f3c48a 8px, #fff6e8 8px, #fff6e8 14px);
  color: #8a4b00;
}
.bk-seat-free { font-weight: 600; color: inherit; }
.bk-seat-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
}
.bk-status-tip {
  display: none;
}
.bk-seat:hover .bk-status-tip,
.bk-flight-school:hover .bk-status-tip {
  display: block;
}
.bk-mini {
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.bk-mini.is-on { background: var(--green); color: #fff; }
.bk-reserve, .bk-rate { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.bk-reserve select { font-size: 12px; max-width: 100%; }
.bk-flight--behind { border-color: #c62828; }
.bk-flight--ahead { border-color: #2e7d32; }
.bk-flight--ontime { border-color: #1565c0; }
.bk-hole { font-weight: 600; }
.mk-board {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1.3fr;
  gap: 10px;
}
.mk-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  min-height: 60vh;
}
.mk-col h2 { margin: 0 0 8px; font-size: 16px; }
.mk-list { list-style: none; margin: 0; padding: 0; }
.mk-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid transparent;
}
.mk-row.bk-flight--behind { border-left-color: #c62828; }
.mk-row.bk-flight--ahead { border-left-color: #2e7d32; }
.mk-row.bk-flight--ontime { border-left-color: #1565c0; }
@media (max-width: 1100px) {
  .bk-board, .mk-board, .mb-board, .bk-panels, .bk-quad-grid, .bk-side-rails { grid-template-columns: 1fr; }
  .bk-session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-hour-flights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mb-body {
  overflow-x: hidden;
  max-width: 100%;
}
.mb-body .bk-top-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.mb-body .mb-top-head {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  background: #146c2e;
  box-sizing: border-box;
}
.mb-body .mb-top-head.has-close {
  position: relative;
  min-height: 56px;
  padding: 6px 64px;
}
.mb-x-btn {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #146c2e;
  color: #fff;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #0e4d20, 0 5px 10px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.mb-x-btn svg {
  display: block;
  pointer-events: none;
}
.mb-x-btn:hover,
.mb-x-btn:focus-visible {
  background: #17833a;
  color: #fff;
}
.mb-x-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.mb-x-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0e4d20, 0 2px 4px rgba(0, 0, 0, 0.16);
}
.mb-body .mb-page-close {
  display: inline-flex;
  position: absolute;
  top: 6px;
  right: 10px;
  background: #0e4d20;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 0 #093a17, 0 5px 10px rgba(0, 0, 0, 0.22);
}
.mb-body .mb-page-close:hover,
.mb-body .mb-page-close:focus-visible {
  background: #17833a;
}
.mb-body .mb-page-close:active {
  box-shadow: 0 1px 0 #093a17, 0 2px 4px rgba(0, 0, 0, 0.2);
}
.mb-body .mb-oc-close {
  position: absolute;
  top: 6px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mb-body .mb-oc-close img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}
.mb-body .mb-oc-close:hover,
.mb-body .mb-oc-close:focus-visible {
  background: #eaf5ec;
}
.mb-body .mb-oc-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.mb-body .mb-oc-close:active {
  transform: translateY(1px);
}
.mb-body .mb-top-ball {
  align-self: start;
}
.mb-body .mb-top-ball .club-logo-lg,
.mb-body .bk-top-logo .club-logo-lg {
  width: 36px;
  height: 36px;
  padding: 4px;
}
.mb-body .mb-top-who {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}
.mb-body .mb-top-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 8px 12px 4px;
  box-sizing: border-box;
}
.mb-body .bk-top-logo {
  justify-self: start;
  align-self: start;
  align-items: start;
  min-width: 0;
}
.mb-body .bk-top-club {
  font-size: 16px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mb-body .mb-club-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.mb-body .mb-club-select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  min-height: 34px;
  padding: 4px 30px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23124526' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px 8px;
  font-family: inherit;
  cursor: pointer;
}
.mb-body .mb-club-select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.mb-body .mb-club-go {
  min-height: 34px;
  padding: 4px 10px;
}
.mb-body .bk-top-title {
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}
.mb-body .mb-top-day {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 6px 12px 10px;
  box-sizing: border-box;
}
.mb-body .bk-top-date {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  gap: 12px;
  font-size: 15px;
}
.mb-body .bk-top-date span,
.mb-body .bk-top-date .mb-day-pick {
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
  line-height: 1.2;
}
.mb-day-pick {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mb-day-pick span {
  flex: 0 1 auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mb-day-pick input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.011;
  z-index: 2;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: transparent;
}
.dj-pop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 69, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dj-pop[hidden] { display: none; }
.dj-pop-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
}
.dj-pop-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.dj-pop-card p {
  margin: 0 0 14px;
  color: var(--muted);
}
.dj-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.dj-cal-nav strong {
  flex: 1 1 auto;
  text-align: center;
  font-size: 16px;
}
.dj-cal-arrow {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}
.dj-cal-dow,
.dj-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.dj-cal-dow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.dj-cal-empty {
  min-height: 44px;
}
.dj-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}
.dj-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--green); }
.dj-cal-day.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.dj-cal-day.is-off {
  background: #f3f4f2;
  color: #9aa39c;
  cursor: default;
}
.dj-pop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.mb-body .bk-day-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #146c2e;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 3px 0 #0e4d20, 0 5px 10px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.mb-body .bk-day-arrow:hover {
  background: #17833a;
  color: #fff;
}
.mb-body .bk-day-arrow:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0e4d20, 0 2px 4px rgba(0, 0, 0, 0.16);
}
.mb-body .bk-wrap,
.mb-body .mb-board {
  max-width: 100%;
  min-width: 0;
}
.mb-body.mb-app .bk-wrap,
.mb-body.mb-app .mb-board {
  padding-left: 12px;
  padding-right: 12px;
}
.mb-add-close {
  display: none;
}
.mb-add-pop,
.mb-add-card {
  display: contents;
}
.mb-add-head {
  display: none;
}
.mb-body.mb-app .mb-add-pop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px 24px;
  background: rgba(18, 40, 28, 0.45);
  overflow: auto;
}
.mb-body.mb-app .mb-add-pop.is-open {
  display: flex;
}
.mb-body.mb-app .mb-add-card {
  display: block;
  width: min(440px, 100%);
  margin-top: 8vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  box-sizing: border-box;
}
.mb-body.mb-app .mb-add-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.mb-body.mb-app .mb-add-head h2 {
  margin: 0;
  font-size: 18px;
  color: #146c2e;
}
.mb-body.mb-app .mb-add-close {
  display: inline-flex;
}
.mb-body.mb-app .mb-add-head .mb-x-btn {
  margin-left: auto;
}
.mb-body.mb-app .mb-book-top {
  display: block;
  width: 100%;
  margin: 0 0 12px;
}
.mb-body.mb-app .mb-book-top.is-off,
.mb-body.mb-app .mb-book-top:disabled,
.mb-book.is-off,
.mb-book:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.mb-body.mb-app .mb-book-top[hidden],
.mb-body.mb-app .mb-flight-note[hidden],
.mb-body.mb-app .mb-add-players[hidden] {
  display: none !important;
}
.mb-body.mb-app .mb-flight-note {
  margin: 0 0 10px;
}
.mb-body.mb-app .mb-pop-seats {
  margin: 0 0 14px;
}
.mb-body.mb-app .mb-pop-seats .bk-seats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}
.mb-body.mb-app .mb-pop-seats .bk-seat {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  padding: 6px 2px;
  box-sizing: border-box;
}
.mb-body.mb-app .mb-pop-seats .mb-seat-core {
  gap: 2px;
}
.mb-body.mb-app .mb-pop-seats .mb-seat-core img {
  width: 32px;
  height: 32px;
}
.mb-body.mb-app .mb-pop-seats .mb-seat-core span {
  font-size: 10px;
}
.mb-body.mb-app .mb-pop-seats .bk-mini {
  margin-top: 2px;
  font-size: 9px;
  padding: 2px 4px;
}
.mb-body.mb-app .mb-add-players {
  display: block;
}
.mb-body.mb-app .mb-add-players[hidden] {
  display: none !important;
}
.mb-mate-search-field {
  margin: 0 0 8px;
}
.mb-mate-search-field input {
  width: 100%;
  box-sizing: border-box;
}
.mb-mate-search-hits {
  margin: 0 0 12px;
  max-height: 240px;
  overflow: auto;
}
.mb-guest-saved {
  margin: 8px 0 12px;
}
.mb-body.mb-web [data-book-me],
.mb-body.mb-web [data-flight-seats],
.mb-body.mb-web [data-flight-note] {
  display: none !important;
}
.mb-dupe-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.mb-dupe-go {
  display: inline-block;
  margin-left: 4px;
  white-space: nowrap;
}
.mb-dupe-go::after {
  content: " \203A";
}
.mb-tee-tile.is-dupe-hit,
.bk-flight.is-dupe-hit {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  animation: mb-dupe-pulse 1.2s ease-in-out 4;
}
@keyframes mb-dupe-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}
.mb-body.mb-web .mb-add-players[hidden] {
  display: contents !important;
}
.mb-body.mb-app .mb-rail {
  box-shadow: none;
  padding: 0;
  background: transparent;
}
@media (max-width: 900px) {
  .mb-body .bk-top-actions { display: none !important; }
  .mb-body .mb-top-row {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 8px 12px 2px;
  }
  .mb-body .bk-top-title {
    font-size: 16px;
  }
  .mb-body .bk-top-date {
    font-size: 14px;
    gap: 10px;
  }
}
.mb-course-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
}
.mb-course-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 56px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}
.mb-course-tile.is-on {
  background: #146c2e;
  border-color: #146c2e;
  color: #fff;
}
.mb-tee-wrap {
  width: 100%;
  min-width: 0;
}
.mb-side-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
}
.mb-side-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}
.mb-side-tile.is-on {
  background: #146c2e;
  border-color: #146c2e;
  color: #fff;
}
.mb-tee-pane {
  width: 100%;
  min-width: 0;
}
.mb-tee-pane[hidden] {
  display: none !important;
}
.mb-tee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  width: 100%;
}
.mb-tee-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}
.mb-tee-tile strong {
  font-size: 15px;
}
.mb-tee-tile span {
  font-size: 11px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mb-tee-tile.is-open { background: #c8efd4; color: #146c2e; }
.mb-tee-tile.is-gur { background: #d5d5d5; color: #4a4a4a; }
.mb-tee-tile.is-school { background: #c5d8f7; color: #1a4a8a; }
.mb-tee-tile.is-broken {
  background: repeating-linear-gradient(45deg, #f3c48a, #f3c48a 6px, #c5d8f7 6px, #c5d8f7 12px);
  color: #1a4a8a;
}
.mb-tee-tile.is-web { background: #d7e8fb; color: #1a4d86; }
.mb-tee-tile.is-golf { background: #ffe7a3; color: #8a5a00; }
.mb-tee-tile.is-booked { background: #f5c0c0; color: #8a1f1f; }
.mb-tee-tile.is-confirm { background: #b8e4e0; color: #0d6b63; }
.mb-tee-tile.is-mine { background: #146c2e; color: #fff; }
.mb-board {
  grid-template-columns: minmax(0, 1fr) 260px;
}
.mb-body.mb-app .mb-board {
  grid-template-columns: minmax(0, 1fr);
}
.mb-rail h3 { margin: 16px 0 8px; font-size: 14px; }
.mb-mate {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 6px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1.3;
  padding: 10px 12px;
  white-space: normal;
}
.mb-book {
  display: none;
}
.mb-body.mb-web .bk-flight-square .bk-flight-head {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}
.mb-add-me {
  margin-left: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}
.mb-add-me img {
  width: 22px;
  height: 22px;
  display: block;
}
.mb-body .bk-hour-flights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mb-body .bk-flight-square {
  aspect-ratio: 1 / 1;
  height: auto;
}
.mb-body .mb-flight-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.mb-body .bk-flight-square .bk-seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.mb-body .bk-flight-square .bk-seat {
  aspect-ratio: auto;
  width: auto;
  min-height: 0;
  padding: 2px;
  box-sizing: border-box;
}
.mb-seat-core,
.mb-seat-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: inherit;
  box-sizing: border-box;
}
.mb-seat-book {
  cursor: pointer;
}
.mb-seat-core img,
.mb-seat-book img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mb-seat-core span,
.mb-seat-book span {
  display: block;
  width: 100%;
  font-size: 10px;
  text-align: center;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-flight-square.is-mine {
  box-shadow: inset 0 0 0 2px #0d6b63;
}
.bk-seat.is-mine { outline: 2px solid #0d6b63; }
.bk-hold-chip.is-link {
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.bk-hold-chip.is-link:hover { filter: brightness(0.97); }
.bk-gd-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 168px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #c44848;
  border-radius: 10px;
  background: #fde8e8;
  color: #8a1f1f;
  text-align: left;
  cursor: pointer;
}
.bk-gd-card:hover { filter: brightness(0.97); }
.bk-gd-card-row {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.bk-gd-card-row em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b44848;
}
.bk-flight-hole {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
}
.bk-score-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--green-deep);
  border-radius: 6px;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.bk-score-link svg { width: 16px; height: 16px; display: block; pointer-events: none; }
.bk-score-link:hover { background: var(--paper); color: var(--green); }
.bk-flight-line {
  position: relative;
}
.bk-flight-line .bk-score-link {
  position: absolute;
  top: 2px;
  right: 2px;
  margin-left: 0;
}
.gd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 24px;
  background: rgba(18, 40, 28, 0.42);
}
.gd-overlay.is-open { display: flex; }
.gd-canvas {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid #b8d0bc;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px 20px;
}
.gd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.gd-brand { display: flex; align-items: center; gap: 12px; }
.gd-brand h2 { margin: 0; font-size: 22px; }
.gd-brand .muted { margin: 0 0 2px; font-size: 12px; }
.gd-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.gd-logo.is-empty { display: inline-block; }
.gd-meta, .gd-logo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.gd-meta .field, .gd-logo-form label { margin: 0; }
.gd-shotgun { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.gd-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.gd-side h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--green-deep);
}
.gd-flights { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gd-flight {
  border: 1px solid #b8d0bc;
  border-radius: 12px;
  padding: 10px;
  background: #f7fbf7;
  min-width: 0;
}
.gd-flight-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gd-flight-head strong { flex-shrink: 0; }
.gd-hole { margin-left: 0; font-size: 12px; font-weight: 600; }
.gd-hole select {
  min-width: 88px;
  font: inherit;
  font-weight: 700;
  color: var(--green-deep);
  border: 1px solid #b8d0bc;
  border-radius: 8px;
  background: #fff;
  padding: 2px 6px;
}
.gd-hole.is-off { display: none; }
.gd-seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gd-seats.is-logo {
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  min-height: 120px;
  padding: 10px;
  border-radius: 10px;
  background: #ffe7a3;
}
.gd-seats.is-logo img {
  width: min(96px, 40%);
  height: min(96px, 40%);
  object-fit: contain;
}
.gd-seats.is-logo .gd-seat.is-add {
  min-height: 0;
  width: auto;
  padding: 6px 10px;
  background: #fff;
}
.gd-seat {
  position: relative;
  min-height: 58px;
  border: 1px dashed #b8d0bc;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.gd-seat.is-add { cursor: pointer; color: var(--green-deep); font-weight: 700; }
.gd-seat.is-on { border-style: solid; padding-right: 38px; min-height: 92px; }
.gd-seat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
}
.gd-seat strong, .gd-seat span { display: block; }
.gd-seat-acts {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gd-seat-act {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #c8d8cc;
  border-radius: 6px;
  background: #fff;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gd-seat-act[data-gd-remove] { color: #8a1f1f; border-color: #e2b6b6; background: #fff6f6; }
.gd-seat-act svg { width: 14px; height: 14px; display: block; }
.gd-player-pop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 40, 28, 0.35);
}
.gd-player-pop[hidden] { display: none; }
.gd-player-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .gd-sides { grid-template-columns: 1fr; }
  .gd-flights { grid-template-columns: 1fr; }
}
body.is-sc-show { overflow: hidden; }
.sc-show-pop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 88;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 22, 14, 0.72);
}
.sc-show-pop.is-open { display: flex; }
.sc-show-pop[hidden] { display: none !important; }
.sc-show-pop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, 96vw);
  height: min(92vh, 860px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.sc-show-pop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f4f8f4;
  border-bottom: 1px solid #d5ddd6;
}
.sc-show-pop-bar p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #124526;
}
.sc-show-pop-close {
  border: 0;
  background: #e8f3ea;
  color: #124526;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}
.sc-show-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}
.sc-show-pop-wait {
  position: absolute;
  inset: 48px 0 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
}
.sc-show-pop.is-loading .sc-show-pop-wait { display: flex; }
.sc-show-pop-wait p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #124526;
}
.sc-show-pop-wait .sc-wait-spin {
  width: 32px;
  height: 32px;
  border: 3px solid #d7e4da;
  border-top-color: #1f6b3a;
  border-radius: 50%;
  animation: sc-show-spin 0.7s linear infinite;
}
@keyframes sc-show-spin { to { transform: rotate(360deg); } }
.bk-score-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.gd-flight-head .bk-score-link {
  margin-left: auto;
}
.hero-book-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  height: auto;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #124526;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.hero-book-card:hover { background: #fff; }
.hero-book-icon { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.web-cal-book {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 36;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  background: rgba(12, 28, 18, 0.45);
  overflow: auto;
}
.web-cal-book.is-open { display: flex; }
.web-cal-book-card {
  width: min(920px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 16px 18px 20px;
}
.web-cal-book-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.web-cal-book-head h2 { margin: 0; }
.web-cal-club { margin: 12px 0 0; max-width: 420px; }
.web-cal {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.web-cal-head h2 { margin: 0 0 4px; }
.web-cal-err { color: #8a1f1f; font-weight: 700; }
.web-cal-ok { color: #146c2e; font-weight: 700; }
.web-cal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.web-cal-tabs a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef6ef;
  color: #124526;
  font-weight: 700;
  text-decoration: none;
}
.web-cal-tabs a.active { background: #1f6b3a; color: #fff; }
.web-cal-course { font-weight: 700; margin: 8px 0 0; }
.web-cal-month { margin-top: 14px; }
.web-cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.web-cal-dow, .web-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.web-cal-dow span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #4a5c50;
}
.web-cal-day {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f4f7f4;
  color: #124526;
  text-decoration: none;
  font-weight: 700;
}
.web-cal-day.is-empty { background: transparent; }
.web-cal-day.has-web { box-shadow: inset 0 0 0 2px #1f6b3a; }
.web-cal-day.is-on { background: #1f6b3a; color: #fff; }
.web-cal-day.is-past { opacity: 0.55; }
.web-cal-dayboard { margin-top: 18px; }
.web-cal-dayboard h3 { margin: 0 0 10px; }
.web-cal-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.web-cal-side h4 { margin: 0 0 8px; }
.web-cal-flight {
  position: relative;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f3faf4;
  border: 1px solid #b7d8c0;
}
.web-cal-flight.is-booked {
  background: #fff3f3;
  border-color: #e2b0b0;
}
.web-cal-flight-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.web-cal-pay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #1a4d86;
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.web-cal-pay svg { width: 16px; height: 16px; }
.web-cal-pay.is-on { background: #0d6b63; cursor: default; min-width: 32px; justify-content: center; }
.web-cal-booker { margin: 0 0 8px; font-size: 12px; color: #35543f; font-weight: 700; }
.web-cal-who { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #eef6ef; color: #124526; font-weight: 600; }
.web-cal-id { margin-top: 14px; max-width: 420px; }
.web-cal-id-lead { margin: 0 0 10px; color: #35543f; }
.web-cal-id[data-step="ask"] .web-cal-id-code { display: none; }
.web-cal-id[data-step="code"] .web-cal-id-ask { display: none; }
.web-cal-id .btn { margin-top: 8px; }
.web-cal-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.web-cal-slot {
  min-height: 64px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
  font-size: 12px;
  border: 0;
}
.web-cal-slot.is-free {
  background: #c8efd4;
  color: #146c2e;
  cursor: pointer;
}
.web-cal-slot.is-free.is-past { cursor: default; opacity: 0.7; }
.web-cal-slot.is-taken {
  background: #f5c0c0;
  color: #8a1f1f;
}
.web-cal-slot.is-taken.is-paid { box-shadow: inset 0 0 0 2px #0d6b63; }
.web-cal-slot img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.web-cal-pop {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 18, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.web-cal-pop[hidden] { display: none; }
.web-cal-pop-card {
  width: min(420px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.web-cal-wait {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.55);
  z-index: 50;
}
@media (max-width: 860px) {
  .web-cal-sides { grid-template-columns: 1fr; }
  .web-cal-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.crumb { font-size: 13px; margin: 0 0 8px; }
.tourney-home-split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: 16px;
  align-items: start;
}
.tourney-home-main,
.tourney-home-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tourney-home-main .tourney-page {
  grid-template-columns: 1fr;
  margin-top: 0;
}
.tourney-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tourney-list-school {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #2a4a33;
}
.tourney-list-school:first-of-type { margin-top: 8px; }
.tourney-list-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tourney-list-item:last-child { border-bottom: 0; }
.tourney-list-item.is-child {
  padding-left: 28px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
}
.tourney-list-item.is-child .tourney-list-icon {
  width: 28px;
  height: 28px;
}
.tourney-list-item.selected {
  background: #e5f6ea;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
}
.tourney-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f3faf4;
}
.tourney-list-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tourney-list-body a { font-weight: 700; }
.tourney-list-edit { font-weight: 700; font-size: 12px; }
.tourney-list-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tourney-list-del { margin: 0; }
.tourney-list-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #8a1f16;
}
.tourney-list-del-btn img {
  width: 16px;
  height: 16px;
  display: block;
}
.tourney-list-del-btn:hover {
  border-color: #8a1f16;
  background: #fdecea;
}
.tourney-home-side .tourney-tiles,
.ct-templates .tourney-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ct-templates a.tourney-tile {
  padding: 18px 8px 12px;
  min-height: 0;
}
.ct-templates .tourney-tile-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}
.ct-templates .tourney-tile-name {
  font-size: 13px;
}
.tourney-home-side .row {
  flex-wrap: wrap;
}
.tourney-create-bar .btn { margin-top: 4px; }
.tourney-create-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tourney-create-btns .btn { margin-top: 0; }
.ct-templates .tourney-edit-head { margin-bottom: 4px; }
.ct-templates .tourney-edit-head h2 { margin: 0; }
.tourney-active-club { margin: 4px 0 0; }
.tourney-setup-card {
  width: min(720px, 100%);
}
.tourney-setup-card.tourney-club-card { width: min(760px, 100%); }
.tourney-setup-card .row { flex-wrap: wrap; }
.tourney-tpl-heading { margin: 18px 0 6px; font-size: 16px; color: var(--green-deep); }
.tourney-tpl-picks { margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
button.tourney-tpl-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 168px;
  padding: 18px 12px 14px;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 2px solid var(--line);
  cursor: pointer;
}
button.tourney-tpl-pick.is-on {
  border-color: var(--green);
  background: #e5f6ea;
}
button.tourney-tpl-pick[hidden] { display: none !important; }
.js-tourney-race[hidden],
.js-tourney-scoring-wrap[hidden],
.js-tourney-final[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .tourney-home-split { grid-template-columns: 1fr; }
  .tourney-home-side .tourney-tiles,
  .ct-templates .tourney-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ct-templates .tourney-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ct-home { margin: 0; }
.ct-home h3 { margin: 16px 0 8px; font-size: 16px; color: var(--green-deep); }
.ct-logo-preview { max-width: 72px; max-height: 72px; object-fit: contain; }
.ct-tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 12px 0 20px;
}
.ct-tpl-col { min-width: 0; }
.ct-tpl-col h2 { margin: 0 0 6px; font-size: 18px; }
.ct-tpl-col h3 { margin: 16px 0 6px; font-size: 15px; color: var(--green-deep); }
.ct-tpl-col .field { width: 100%; }
.ct-day-stack {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.js-ct-inter[hidden],
.js-ct-inter-off[hidden],
.js-ct-redblue[hidden] {
  display: none !important;
}
@media (max-width: 1200px) {
  .ct-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ct-tpl-grid { grid-template-columns: 1fr; }
}
.ct-day-row { align-items: flex-end; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ct-day-card { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.ct-day-card.selected { background: #f6faf7; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.ct-rules { white-space: pre-wrap; }
.ct-match { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.ct-match th, .ct-match td { padding: 8px 6px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
.ct-match .ct-red { color: #8a1f16; }
.ct-match .ct-blue { color: #1a365d; }
.ct-match .ct-vs { text-align: center; font-weight: 700; width: 28px; }
.ct-match select { display: block; margin: 0 0 6px; min-width: 160px; }
.ct-select .muted { margin-top: 0; }
.wg-club {
  margin: 8px 0 16px;
  max-width: 480px;
}
.wg-club label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #124526;
}
.wg-club select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #b7d8c0;
  padding: 8px 10px;
  font-size: 16px;
}
.wg-cal-day {
  min-height: 64px;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
}
.wg-cal-num { line-height: 1; }
.wg-cal-slots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #1e5aa8;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px 1px 3px;
  font-size: 11px;
  line-height: 1;
}
.wg-cal-day.is-on .wg-cal-slots {
  background: #fff;
  color: #1e5aa8;
}
.wg-cal-slots img {
  width: 14px;
  height: 14px;
}
.wg-cal-slots b { font-weight: 800; }
.wg-board .bk-flight-head .web-cal-pay { margin-left: auto; }
.wg-body .bk-top-bar { border-bottom-color: #1e5aa8; }
.wg-body.mb-body .mb-top-head { background: #1e5aa8; }
.wg-body.mb-body .bk-top-logo { align-items: center; }
.wg-body.mb-body .mb-top-ball { align-self: center; line-height: 0; }
.wg-home {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c9d8ee;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.wg-body.mb-body .mb-top-head.wg-top-head {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  min-height: 56px;
  padding: 6px 10px;
}
.wg-top-titles {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wg-top-kicker {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.wg-top-head .bk-top-title {
  min-width: 0;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-top-club-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.wg-top-club-logo img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.wg-home img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}
.wg-home:hover,
.wg-home:focus-visible {
  background: #eaf1fb;
  border-color: #1e5aa8;
}
.wg-home:focus-visible {
  outline: 2px solid #1e5aa8;
  outline-offset: 2px;
}
.wg-day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
  min-width: 0;
}
.wg-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #1e5aa8;
  border-radius: 10px;
  background: #fff;
  color: #1e5aa8;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}
.wg-back:hover,
.wg-back:focus-visible {
  background: #eaf1fb;
}
.wg-day-course {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #163e75;
}
.wg-course-tabs {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 14px;
  padding: 0 0 2px;
}
.wg-course-tabs::-webkit-scrollbar { display: none; }
.wg-body.mb-body .mb-top-day.has-cal {
  position: relative;
  padding-left: 64px;
  padding-right: 64px;
}
.wg-body.mb-body .bk-day-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: #1e5aa8;
  box-shadow: 0 3px 0 #153f76, 0 5px 10px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.wg-body.mb-body .bk-day-arrow:hover {
  background: #2468c0;
}
.wg-body.mb-body .bk-day-arrow.is-off {
  opacity: 0.35;
  box-shadow: none;
  cursor: default;
}
.wg-cal-back {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -24px;
  border: 1px solid #1e5aa8;
  border-radius: 10px;
  background: #fff;
  color: #1e5aa8;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.wg-cal-back svg {
  width: 24px;
  height: 24px;
}
.wg-cal-back:hover,
.wg-cal-back:focus-visible {
  background: #eaf1fb;
}
.wg-cal-back:focus-visible {
  outline: 2px solid #1e5aa8;
  outline-offset: 2px;
}
.wg-course-tab {
  flex: 1 0 auto;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #1e5aa8;
  border-radius: 999px;
  background: #fff;
  color: #1e5aa8;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}
.wg-course-tab.is-on {
  background: #1e5aa8;
  color: #fff;
}
.wg-course-tab.is-empty {
  border-style: dashed;
  color: #5a7299;
}
.wg-course-tab.is-on.is-empty {
  color: #fff;
  opacity: 0.8;
}
.wg-course-tab.has-mine { gap: 8px; }
.wg-tab-mine {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f9d4c;
  box-shadow: 0 0 0 2px #fff;
}
.wg-booked-line,
.wg-where {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 4px solid #1e5aa8;
  border-radius: 8px;
  background: #eef4fb;
  color: #12345a;
  line-height: 1.4;
}
.wg-booked-line a,
.wg-where a,
.wg-session-lock a {
  color: #1e5aa8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wg-where {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.wg-where-open { color: #1f6b3a; font-weight: 700; }
.wg-cal-day.is-booked {
  background: #cdeed6;
  color: #0f3d20;
  box-shadow: inset 0 0 0 2px #1f6b3a;
}
a.wg-cal-day.is-booked:hover,
a.wg-cal-day.is-booked:focus-visible { background: #b9e5c5; }
.wg-cal-day.is-booked .wg-cal-slots { box-shadow: 0 0 0 2px #fff; }
.wg-cal-booked {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #1f6b3a;
  letter-spacing: 0.02em;
}
.wg-session-lock {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #eef1ee;
  color: #3d4a42;
  font-size: 13px;
  line-height: 1.35;
}
.wg-board .bk-quad.is-session-locked .bk-flight.is-locked,
.wg-board .bk-flight.is-locked,
.wg-board .bk-flight.is-past-tee {
  position: relative;
  overflow: hidden;
  opacity: 0.6;
  filter: grayscale(0.7);
  pointer-events: none;
}
.wg-board .mb-tee-tile.is-locked,
.wg-board .mb-tee-tile.is-past-tee,
.wg-board .mb-tee-tile:disabled {
  background: #e3e6e4;
  color: #6b756f;
  opacity: 0.7;
  cursor: not-allowed;
}
.wg-board .bk-flight.is-locked .bk-flight-head strong,
.wg-board .bk-flight.is-past-tee .bk-flight-head strong,
.wg-board .mb-tee-tile.is-locked strong,
.wg-board .mb-tee-tile.is-past-tee strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.wg-board .bk-flight.is-locked::after,
.wg-board .bk-flight.is-past-tee::after,
.wg-board .mb-tee-tile.is-locked::after,
.wg-board .mb-tee-tile.is-past-tee::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 50%;
  width: 120%;
  border-top: 2px solid #8a948e;
  transform: rotate(-18deg);
  pointer-events: none;
}
.wg-board .mb-tee-tile.is-locked,
.wg-board .mb-tee-tile.is-past-tee {
  position: relative;
  overflow: hidden;
}
.mb-board .bk-flight.is-past-tee,
.mb-board .bk-flight.is-session-off,
.bk-board .bk-flight.is-past-tee {
  position: relative;
  overflow: hidden;
  opacity: 0.6;
  filter: grayscale(0.7);
  pointer-events: none;
}
.mb-board .mb-tee-tile.is-past-tee,
.mb-board .mb-tee-tile.is-session-off {
  position: relative;
  overflow: hidden;
  background: #e3e6e4;
  color: #6b756f;
  opacity: 0.7;
  cursor: not-allowed;
}
.mb-board .bk-flight.is-past-tee .bk-flight-head strong,
.mb-board .bk-flight.is-session-off .bk-flight-head strong,
.mb-board .mb-tee-tile.is-past-tee strong,
.mb-board .mb-tee-tile.is-session-off strong,
.bk-board .bk-flight.is-past-tee .bk-flight-head strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.mb-board .bk-flight.is-past-tee::after,
.mb-board .bk-flight.is-session-off::after,
.mb-board .mb-tee-tile.is-past-tee::after,
.mb-board .mb-tee-tile.is-session-off::after,
.bk-board .bk-flight.is-past-tee::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 50%;
  width: 120%;
  border-top: 2px solid #8a948e;
  transform: rotate(-18deg);
  pointer-events: none;
}
.wg-inactive {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b655f;
}
.wg-board .bk-flight-square.is-mine {
  position: relative;
  margin-bottom: 26px;
  box-shadow: inset 0 0 0 3px #1f9d4c;
  background: #eaf7ee;
}
.wg-add-guests {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 13px;
}
.wg-board .bk-flight-square .wg-add-guests {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  margin: 4px 0 0;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
.mb-body.mb-web .wg-board .mb-add-pop:not(.is-open) .mb-add-players,
.mb-body.mb-web .wg-board .mb-add-pop:not(.is-open) .mb-add-players[hidden] {
  display: none !important;
}
.mb-body.mb-web .wg-board:not(.is-rail-open) {
  grid-template-columns: minmax(0, 1fr);
}
.oc-account {
  max-width: 640px;
}
.oc-account-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.oc-account-hero > .oc-account-head {
  min-width: 0;
  flex: 1 1 220px;
}
.oc-account-hint { margin: 6px 0 0; }
.oc-account .avatar-busy {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 40, 28, 0.45);
}
.oc-account .avatar-wrap.is-busy .avatar-busy { display: flex; }
.oc-account .avatar-busy-ring {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bk-spin 0.7s linear infinite;
}
.oc-account .avatar-edit { z-index: 3; }
.oc-account .avatar-edit.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
.oc-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.oc-account-actions .btn { min-width: 128px; border: 1px solid transparent; }
.oc-account-actions .btn:disabled,
.oc-account-actions .btn:disabled:hover {
  background: #b8c4bc;
  color: #f4f7f5;
  cursor: default;
}
.oc-account-actions .btn.ghost {
  background: #fff;
  color: var(--green-deep);
  border: 1px solid var(--green);
}
.oc-account-actions .btn.ghost:hover,
.oc-account-actions .btn.ghost:focus-visible {
  background: #e5f6ea;
  color: var(--green-deep);
}

/* Race lock (Edit unlocked / Join unlocked) */
.cyc-tag.cyc-tag-edit { background: #fff4dc; color: #8a5a00; }
.cyc-lock-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.cyc-lock-bar.is-edit { background: #fffaf0; border-color: #f0d9a8; }
.cyc-lock-bar.is-join { background: #f2fbf4; border-color: #bfe3c9; }
.cyc-lock-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.cyc-lock-state svg { width: 20px; height: 20px; flex-shrink: 0; }
.cyc-lock-bar.is-edit .cyc-lock-state svg { color: #8a5a00; }
.cyc-lock-bar.is-join .cyc-lock-state svg { color: #146c2e; }
.cyc-unlock-form { margin: 0; }
.cyc-unlock-btn { display: inline-flex; align-items: center; gap: 6px; }
.cyc-unlock-btn svg { width: 18px; height: 18px; }
.cyc-lock-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 8px 10px; border-radius: 10px; background: #fffaf0; }
.cyc-lock-note svg { width: 18px; height: 18px; flex-shrink: 0; color: #8a5a00; margin-top: 1px; }
.cyc-status-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #edf3eb; }
.cyc-status-form label { font-weight: 600; }
.cyc-status-form select { width: auto; }

/* Notification bell and list */
.notify-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 32px; border-radius: 8px; color: var(--green-deep, #1d4d2b); text-decoration: none; }
.notify-bell:hover { background: rgba(0, 0, 0, .05); }
.notify-bell svg { width: 22px; height: 22px; }
.notify-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #b42318; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.notify-card { padding: 6px; }
.notify-list { list-style: none; margin: 0; padding: 0; }
.notify-item + .notify-item { border-top: 1px solid #edf3eb; }
.notify-item form { margin: 0; }
.notify-open { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.notify-open:hover { background: #f4f8f3; }
.notify-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.notify-item.is-unread .notify-dot { background: #b42318; }
.notify-item.is-unread .notify-open { background: #f7fbf6; }
.notify-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.notify-when { flex-shrink: 0; font-size: 12px; white-space: nowrap; }
.push-optin { margin-top: 12px; }
.push-optin .cyc-sec-title { margin-top: 0; }
.push-optin p { margin: 0 0 10px; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notify-card { margin-top: 12px; }
/* Languages (GbLang): fonts with Korean and Chinese characters, and the language picker. */
html:lang(ko) body { font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif; line-height: 1.55; word-break: keep-all; }
html:lang(zh-Hans) body { font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif; line-height: 1.6; }
html:lang(ko) em, html:lang(ko) i, html:lang(zh-Hans) em, html:lang(zh-Hans) i { font-style: normal; font-weight: 600; }
.lang-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.lang-pick select { font: inherit; padding: 3px 6px; border: 1px solid var(--line, #ccd); border-radius: 6px; background: #fff; color: inherit; }
.lang-pick-ico { width: 16px; height: 16px; fill: currentColor; opacity: .75; }
.legal-footer .lang-pick { margin-left: 4px; }
.lang-pop { position: relative; display: inline-block; flex: 0 0 auto; }
.lang-pop-btn { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line, #ccd); background: #fff; color: #1f5d3a; cursor: pointer; }
.lang-pop-btn::-webkit-details-marker { display: none; }
.lang-pop-btn::marker { content: ""; }
.lang-pop-btn:hover, .lang-pop[open] > .lang-pop-btn { border-color: currentColor; }
.lang-pop-btn:focus-visible { outline: 2px solid #1f5d3a; outline-offset: 2px; }
.lang-pop-btn .lang-pick-ico { width: 18px; height: 18px; opacity: 1; }
.lang-pop-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #fff; color: #1d2b22; border: 1px solid var(--line, #ccd); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.lang-pop-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: inherit; text-decoration: none; white-space: nowrap; font-size: 14px; }
.lang-pop-item:hover, .lang-pop-item:focus-visible { background: #eef5f0; }
.lang-pop-item.is-on { font-weight: 700; background: #e3efe7; }
.lang-pop-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.legal-lang-note { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--accent, #2a7); background: rgba(0, 0, 0, .04); border-radius: 6px; font-size: .95em; }
.club-list.is-idle > [data-cyc-item] { display: none; }
.cyc-mine { margin: 0 0 14px; }
.cyc-mine .cyc-sec-title { margin: 0 0 8px; }
.cyc-mine > p { margin: 0; }
.cyc-mine .cyc-sec-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--green-deep); }
.cyc-mine .cyc-sec-title .nav-ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); }
.cyc-mine-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.cyc-mine .cyc-mine-head > .cyc-sec-title { margin: 0; min-width: 0; }
.cyc-venue-head { margin-top: 0; }
.cyc-venue-add > summary.cyc-act-btn { display: inline-flex; }
.cyc-venue-add > .cyc-pop-panel { width: min(400px, 92vw); text-align: left; }
.cyc-venue-add .cyc-pop-panel input[type=search] { width: 100%; box-sizing: border-box; margin: 0 0 8px; }
.cyc-venue-pick { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; }
.cyc-venue-pick li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #edf3eb; }
.cyc-venue-pick li:first-child { border-top: 0; }
.cyc-venue-pick li[hidden] { display: none; }
.cyc-venue-pick-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cyc-venue-pick-name .muted { font-size: 12px; }
.cyc-venue-pick form { margin: 0; }
.cyc-venue-pick .btn { padding: 4px 12px; }
.cyc-venue-pick-foot { margin: 10px 0 0; font-size: 13px; }
.cyc-status-card .cyc-status-form { margin: 0; padding-top: 0; border-top: 0; }
.cyc-tag.cyc-tag-hold { background: #fdecea; color: #9b2c1f; }
.cyc-lock-bar.is-hold { background: #fff5f3; border-color: #f2c6bf; }
.cyc-lock-bar.is-hold .cyc-lock-state svg { color: #9b2c1f; }
.cyc-status-card .cyc-sec-title { margin-top: 0; }
.cyc-status-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cyc-status-btns .cyc-status-form { display: inline-flex; }
.cyc-status-btn.is-current { cursor: default; }
.cyc-status-btn[disabled] { opacity: .45; cursor: not-allowed; }
.cyc-delete-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf3eb; }
.cyc-est-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.cyc-dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.cyc-dialog::backdrop { background: rgba(20, 30, 24, .45); }
.cyc-dialog h3 { margin: 0 0 8px; }
.cyc-dialog textarea { width: 100%; min-height: 70px; }
.cyc-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cyc-hold-reasons { border: 0; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.cyc-hold-reasons legend { font-weight: 600; margin-bottom: 4px; }
.cyc-join-facts { margin: 6px 0 10px; padding-left: 18px; }
.cyc-join-warn { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fff4dc; color: #6d4700; border: 1px solid #f0d9a8; }
.cyc-join-warn p { margin: 0; }
.cyc-join-warn p + p { margin-top: 6px; }

.cyc-cal-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "races month"; gap: 20px; align-items: start; }
.cyc-cal-split > .cyc-cal-month { grid-area: month; }
.cyc-cal-split > .cyc-cal-races { grid-area: races; min-width: 0; }
.cyc-cal-races > .cyc-sec-head { margin-top: 0; min-height: 34px; }
.cyc-cal-races .cyc-race-list li { flex-wrap: wrap; }
@media (max-width: 860px) { .cyc-cal-split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "month" "races"; gap: 4px; } }

.card .cyc-sec-title .cyc-sec-count { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--green-deep); background: #e8f3ec; border-radius: 999px; min-width: 26px; padding: 2px 9px; text-align: center; box-sizing: border-box; }

/* Competitions, race results and standings (20261027-comp1) */
.cyc-detail-tile > .cyc-sec-head:first-child { margin-top: 0; }
.card .cyc-detail-tile .cyc-sec-head > .cyc-sec-title { flex: 1; min-width: 0; }
.cyc-comp-add > summary.cyc-act-btn { display: inline-flex; }
.cyc-comp-list li { flex-wrap: nowrap; justify-content: space-between; }
.cyc-comp-name { min-width: 0; }
.cyc-comp-list form, .cyc-comp-race-list form { margin: 0; }
.cyc-results-tile, .cyc-standings-tile { grid-column: 1 / -1; }
.cyc-results-list { list-style: none; margin: 0 0 10px; padding: 0; }
.cyc-results-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #edf3eb; }
.cyc-results-list li.is-dnf { color: var(--muted); }
.cyc-results-list li.is-me .cyc-res-name, .cyc-standings-row.is-me .cyc-st-name { font-weight: 700; color: var(--green-deep); }
.cyc-res-rank, .cyc-st-rank { font-weight: 700; text-align: center; color: var(--green-deep); }
.cyc-res-time, .cyc-st-time { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.cyc-results-edit { margin-top: 6px; }
.cyc-results-edit > summary { display: inline-flex; list-style: none; cursor: pointer; }
.cyc-results-edit > summary::-webkit-details-marker { display: none; }
.cyc-results-edit[open] > summary { margin-bottom: 8px; }
.cyc-results-table { width: 100%; border-collapse: collapse; }
.cyc-results-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.cyc-results-table td { padding: 5px 6px; border-bottom: 1px solid #edf3eb; vertical-align: middle; }
.cyc-results-table td:nth-child(2) { width: 130px; }
.cyc-results-table td:nth-child(3), .cyc-results-table th:nth-child(3) { width: 48px; text-align: center; }
.cyc-results-table input[type="text"], .cyc-results-table input:not([type]) { width: 100%; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.cyc-results-table input:invalid { border-color: var(--flag); }
.cyc-scope-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cyc-scope-switch input:disabled + span { opacity: .55; cursor: not-allowed; }
.cyc-comp-form .field input:not([type="radio"]), .cyc-comp-form .field select, .cyc-comp-form .field textarea { width: 100%; box-sizing: border-box; }
.cyc-comp-form-tile { margin-top: 12px; }
.cyc-comp-form-tile .cyc-facts { margin-top: 0; }
.cyc-comp-page .cyc-facts.cyc-facts-wide { grid-template-columns: max-content minmax(0, 1fr); }
.cyc-comp-page .cyc-facts.cyc-facts-wide dd { overflow-wrap: anywhere; }
.cyc-comp-when { margin-left: auto; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cyc-standings-rule { margin: 0 0 10px; font-size: 13px; }
.cyc-standings-head, .cyc-standings-row > summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 92px 64px 72px; gap: 8px; align-items: center; }
.cyc-standings-head { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.cyc-standings-head span:nth-child(n+3) { text-align: right; }
.cyc-standings-row { border-bottom: 1px solid #edf3eb; }
.cyc-standings-row > summary { list-style: none; cursor: pointer; padding: 8px 0; }
.cyc-standings-row > summary::-webkit-details-marker { display: none; }
.cyc-standings-row > summary:hover { background: #f7fbf6; }
.cyc-standings-row[open] > summary { background: #eef7f0; }
.cyc-st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cyc-st-name::before { content: "\25B8"; display: inline-block; width: 14px; color: var(--green); transition: transform .15s; }
.cyc-standings-row[open] .cyc-st-name::before { transform: rotate(90deg); }
.cyc-st-num { text-align: right; font-variant-numeric: tabular-nums; }
.cyc-st-num.is-pen { color: #9b2c1f; font-weight: 700; }
.cyc-st-legs { list-style: none; margin: 0 0 8px 42px; padding: 0; }
.cyc-st-legs li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 120px; gap: 8px; padding: 4px 0; font-size: 13px; border-top: 1px dashed #e3ece4; }
.cyc-st-legs li.is-pen { color: #9b2c1f; }
.cyc-st-leg-time { text-align: right; font-variant-numeric: tabular-nums; }
.cyc-st-leg-note { font-size: 12px; }
@media (max-width: 600px) {
  .cyc-standings-head, .cyc-standings-row > summary { grid-template-columns: 26px minmax(0, 1fr) 76px 40px 40px; gap: 6px; font-size: 14px; }
  .cyc-st-legs { margin-left: 8px; }
  .cyc-st-legs li { grid-template-columns: minmax(0, 1fr) 70px; }
  .cyc-st-leg-note { grid-column: 1 / -1; }
  .cyc-scope-switch { grid-template-columns: 1fr; }
  .cyc-comp-when { display: none; }
}
/* Route planner: Add waypoint (venue pick / typed place / lat, lng) */
.cycle-route-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.cycle-wp-pop { display: inline-block; }
.cycle-wp-pop > summary.btn { display: inline-block; }
.cycle-wp-pop > .cyc-pop-panel { left: 0; right: auto; width: min(420px, 92vw); text-align: left; }
.cycle-wp-pop .cyc-pop-panel label { display: block; font-size: 13px; margin: 0 0 4px; }
.cycle-wp-pop .cyc-pop-panel input[type=search] { width: 100%; box-sizing: border-box; margin: 0 0 8px; }
.cycle-wp-find { display: flex; gap: 6px; align-items: flex-start; }
.cycle-wp-find input[type=search] { flex: 1; min-width: 0; }
.cycle-wp-suggest { list-style: none; margin: -4px 0 8px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cycle-wp-suggest[hidden] { display: none; }
.cycle-wp-suggest button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid #edf3eb; padding: 7px 10px; font: inherit; cursor: pointer; }
.cycle-wp-suggest li:first-child button { border-top: 0; }
.cycle-wp-suggest button:hover, .cycle-wp-suggest button:focus { background: #eef7f4; }
.cycle-wp-msg { font-size: 13px; margin: 0 0 8px; }
.cycle-wp-sub { margin: 10px 0 6px; font-size: 14px; }
.cycle-wp-list { margin: 0 0 12px; padding-left: 22px; font-size: 14px; }
.cycle-wp-list:empty { display: none; }
.cycle-wp-list li { padding: 2px 0; }
.cycle-wp-list .muted { font-size: 12px; }
.cycle-wp-del { margin-left: 6px; border: 0; background: none; color: #a33; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; }
/* Route planner: guide / venue points, point editing, versions */
.cycle-ver { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.cycle-ver-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cycle-ver-head .muted { font-size: 13px; }
.cyc-tag.cycle-ver-draft { background: #fff4d6; color: #7a5200; }
.cyc-tag.cycle-ver-rel { background: #e5f6ea; color: #146c2e; }
.cycle-ver-old { margin: 0; padding: 6px 10px; border-radius: 8px; background: #fff4d6; font-size: 13px; }
.cycle-ver-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.cycle-ver-list a.cyc-tag { text-decoration: none; }
.cycle-ver-list .cyc-tag.is-on { background: var(--green-deep); color: #fff; }
.cycle-ver-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cycle-ver-hint { font-size: 13px; margin: 0; }
.cycle-route-del { margin: 0 0 16px; }
.cycle-wp-list { list-style: decimal; }
.cycle-wp-row { padding: 4px 0; border-top: 1px solid #edf3eb; }
.cycle-wp-row:first-child { border-top: 0; }
.cycle-wp-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cycle-wp-name { font-weight: 600; }
.cycle-wp-type { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef3f8; color: #2d4b63; }
.cycle-wp-row.is-venue .cycle-wp-type { background: #e5f6ea; color: #146c2e; }
.cycle-wp-acts { margin-left: auto; display: inline-flex; gap: 2px; }
.cycle-wp-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-width: 28px; height: 28px; padding: 0 6px; cursor: pointer; font-size: 14px; line-height: 1; }
.cycle-wp-btn:hover:not(:disabled) { background: #eef7f4; }
.cycle-wp-btn:disabled { opacity: 0.35; cursor: default; }
.cycle-wp-edit { margin: 8px 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf7; max-width: 520px; }
.cycle-wp-edit .field { margin-bottom: 8px; }
.cycle-wp-edit input, .cycle-wp-edit select { width: 100%; box-sizing: border-box; }
.cycle-wp-typerow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 8px; }
.cycle-wp-typerow input[type=radio] { width: auto; }
.cycle-wp-typelabel { font-size: 13px; font-weight: 600; }
.cycle-wp-venuebox[hidden] { display: none; }
.cycle-wp-newvenue { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.cycle-wp-nvnote, .cycle-wp-hint { font-size: 12px; margin: 0 0 8px; }
.cycle-wp-editmsg { margin: 0 0 8px; }
.cycle-wp-editbtns { margin: 0; }
.cycle-wp-typerow label.check { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; }

/* Route planner: two columns 30 / 70 (details left; map with the waypoints below it right) */
.cycle-plan { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 14px; align-items: start; }
.cycle-plan-side, .cycle-plan-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cycle-plan .cycle-ver { margin: 0; }
.cycle-plan .cyc-detail-tile > :last-child { margin-bottom: 0; }
.cycle-plan .cycle-route-stats { flex-direction: column; gap: 4px; margin: 8px 0 0; font-size: 14px; }
.cycle-plan .cycle-map { height: 60vh; min-height: 360px; }
.cycle-plan .cycle-route-tools { margin: 0 0 10px; }
.cycle-plan .cycle-wp-list { margin-bottom: 0; }
.cycle-plan-details .cycle-ver-btns { margin: 4px 0 8px; }
.cycle-plan-details .cycle-route-del { margin: 10px 0 0; }
.cycle-plan-notes { white-space: pre-line; }
.cycle-plan-list ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.cycle-plan-list li { padding: 2px 0; }
.cycle-plan-list li.is-on a { color: var(--green-deep); }
.cycle-plan-list p { margin: 0; }
@media (max-width: 900px) {
  .cycle-plan { display: flex; flex-direction: column; }
  .cycle-plan-side, .cycle-plan-main { display: contents; }
  .cycle-plan-status { order: 1; }
  .cycle-plan-map { order: 2; }
  .cycle-plan-wps { order: 3; }
  .cycle-plan-details { order: 4; }
  .cycle-plan-list { order: 5; }
  .cycle-plan .cycle-map { height: 55vh; }
}
@media (max-width: 900px) { .cycle-plan { align-items: stretch; } }

/* Route planner: map locked until the route is saved; peloton decides visibility */
.cycle-map-wrap { position: relative; }
.cycle-map-wrap.is-locked .cycle-map { filter: grayscale(1); opacity: 0.55; pointer-events: none; }
.cycle-map-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.cycle-map-lock p { margin: 0; max-width: 340px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--green-deep); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.cycle-plan-vis { margin: 6px 0 0; font-size: 13px; }
.cycle-plan-details .cycle-ver-old { margin-top: 6px; }

/* Race form: "Use peloton average" button beside the estimated pace (2026-10-27) */
.cyc-pace-row { display: flex; align-items: center; gap: 6px; }
.cyc-pace-row input { flex: 1 1 auto; min-width: 0; }
.cyc-pace-avg { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 999px; background: #fff; color: #146c2e; border: 1px solid #cfe3d4; box-shadow: 0 1px 3px rgba(0,0,0,.12); cursor: pointer; }
.cyc-pace-avg:hover { background: #f1f8f3; }
.cyc-pace-avg:focus-visible { outline: 2px solid #146c2e; outline-offset: 2px; }
.cyc-pace-avg:disabled { color: #9aa59d; background: #f5f6f5; box-shadow: none; cursor: not-allowed; }
.cyc-pace-avg svg { width: 20px; height: 20px; display: block; }
.cyc-pace-note { margin: 4px 0 0; font-size: 12px; }

/* 2026-10-27 race form: one label column, status in column 1, route diagram and timeline */
.cyc-form-cols { align-items: start; }
.cyc-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.cyc-detail-foot > .cyc-tile-wide { grid-column: 1 / -1; }
.cyc-ride-form { --cyc-label: 10.5em; }
.cyc-ride-form .cyc-est-grid { display: block; }
.cyc-ride-form .cyc-detail-tile .field { display: grid; grid-template-columns: var(--cyc-label) minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: center; margin: 0 0 10px; }
.cyc-ride-form .cyc-detail-tile .field > label:first-child { grid-column: 1; margin: 0; font-weight: 600; line-height: 1.25; }
.cyc-ride-form .cyc-detail-tile .field > :not(:first-child) { grid-column: 2; min-width: 0; }
.cyc-ride-form .cyc-detail-tile .field > input[type="hidden"] { display: none; }
.cyc-ride-form .cyc-detail-tile .field > p { margin: 0; font-size: 13px; }
.cyc-ride-form .cyc-detail-tile .field:has(textarea) > label:first-child,
.cyc-ride-form .cyc-stops-field > label:first-child { align-self: start; padding-top: 8px; }
.cyc-ride-form .cyc-detail-tile .field > label.check { margin: 0; font-weight: 400; }
.cyc-ride-form .cyc-form-help,
.cyc-ride-form .cyc-detail-tile > .cyc-lock-note { margin: 0 0 10px calc(var(--cyc-label) + 12px); font-size: 13px; }
.cyc-ride-form input[readonly] { background: var(--paper); color: var(--ink); }
.cyc-status-tile .cyc-lock-bar { margin: 0; }
.cyc-status-tile .cyc-status-title { margin: 12px 0 8px; font-size: 15px; }
.cyc-status-tile > p.muted { margin: 8px 0 0; font-size: 13px; }
.cyc-status-tile .cyc-delete-row { margin-top: 10px; }
.cyc-stops-box { display: grid; gap: 8px; }
.cyc-stops-box > p { margin: 0; font-size: 13px; }
.cyc-stop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cyc-stop-list:empty { display: none; }
.cyc-stop { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.cyc-stop-head { display: flex; align-items: center; gap: 6px; }
.cyc-stop-head select { flex: 1 1 auto; min-width: 0; }
.cyc-stop-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cyc-stop label { display: grid; gap: 2px; margin: 0; font-size: 12px; color: var(--muted); }
.cyc-ride-form .cyc-stop input,
.cyc-ride-form .cyc-stop select { width: 100%; box-sizing: border-box; }
.cyc-stop-add { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.cyc-stop-add svg { width: 16px; height: 16px; }
.cyc-tl-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 14px; }
.cyc-tl-sum strong { color: var(--green-deep); }
.cyc-tl-tile > p.muted, .cyc-tl-tile [data-cyc-tl] > p.muted { margin: 0 0 8px; font-size: 13px; }
.cyc-tl-diagram { overflow-x: auto; margin: 0 0 6px; padding: 0 0 4px; }
.cyc-tl-track { position: relative; min-width: 460px; padding: 0 56px; }
.cyc-tl-row { position: relative; }
.cyc-tl-row.is-out { height: 108px; }
.cyc-tl-row.is-back { height: 104px; }
.cyc-tl-line { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--green); }
.cyc-tl-row.is-out .cyc-tl-line { top: 94px; }
.cyc-tl-row.is-back .cyc-tl-line { top: 14px; background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 16px); }
.cyc-tl-track.is-round::after { content: ""; position: absolute; right: 38px; top: 94px; width: 18px; height: 32px; box-sizing: border-box; border: 4px solid var(--green); border-left: 0; border-radius: 0 16px 16px 0; }
.cyc-tl-node { position: absolute; width: 0; height: 0; }
.cyc-tl-row.is-out .cyc-tl-node { top: 96px; }
.cyc-tl-row.is-back .cyc-tl-node { top: 16px; }
.cyc-tl-node > i, .cyc-tl-legend i { display: block; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--green); background: #fff; }
.cyc-tl-node > i { position: absolute; left: -7px; top: -7px; }
.cyc-tl-node.is-guide > i, .cyc-tl-legend .is-guide i { width: 8px; height: 8px; left: -4px; top: -4px; border: 0; background: #8fa596; }
.cyc-tl-node.is-venue > i, .cyc-tl-node.is-turn > i, .cyc-tl-legend .is-venue i { background: var(--green); }
.cyc-tl-node.is-start > i, .cyc-tl-node.is-end > i { width: 18px; height: 18px; left: -9px; top: -9px; background: var(--green-deep); border-color: var(--green-deep); }
.cyc-tl-node.is-transport > i, .cyc-tl-legend .is-transport i { width: 14px; height: 14px; left: -7px; top: -7px; border-radius: 4px; border: 3px solid #146c2e; background: #9ad0a8; }
.cyc-tl-node.is-break > i, .cyc-tl-legend .is-break i { width: 14px; height: 14px; left: -7px; top: -7px; border-radius: 3px; border: 3px solid #b26a00; background: #ffd58a; }
.cyc-tl-node.is-race > i, .cyc-tl-legend .is-race i { width: 14px; height: 14px; left: -7px; top: -7px; border-radius: 2px; border: 3px solid #1d4f9c; background: #cfe0fb; transform: rotate(45deg); }
.cyc-tl-lab { position: absolute; left: 0; transform: translateX(-50%); width: max-content; max-width: 120px; text-align: center; font-size: 12px; line-height: 1.2; }
.cyc-tl-row.is-out .cyc-tl-lab { bottom: 14px; }
.cyc-tl-row.is-out .is-alt .cyc-tl-lab { bottom: 54px; }
.cyc-tl-row.is-back .cyc-tl-lab { top: 14px; }
.cyc-tl-row.is-back .is-alt .cyc-tl-lab { top: 54px; }
.cyc-tl-lab b, .cyc-tl-lab small, .cyc-tl-lab em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cyc-tl-lab b { color: var(--ink); font-weight: 600; }
.cyc-tl-lab small { color: var(--muted); font-size: 11px; }
.cyc-tl-lab em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--green-deep); }
.cyc-tl-node.is-break .cyc-tl-lab em { color: #8a5a00; }
.cyc-tl-node.is-race .cyc-tl-lab em { color: #1d4f9c; }
.cyc-tl-node.is-start .cyc-tl-lab, .cyc-tl-node.is-end .cyc-tl-lab { left: -12px; transform: none; text-align: left; }
.cyc-tl-node.is-turn .cyc-tl-lab { left: auto; right: -12px; transform: none; text-align: right; }
.cyc-tl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: 12px; }
.cyc-tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cyc-tl-legend i { flex-shrink: 0; }
.cyc-tl-list { list-style: none; margin: 0; padding: 0 0 0 4px; }
.cyc-tl-item { position: relative; display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 10px; padding: 6px 0 6px 16px; border-left: 3px solid #cfe3d4; }
.cyc-tl-item::before { content: ""; position: absolute; left: -8px; top: 10px; width: 13px; height: 13px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--green); background: #fff; }
.cyc-tl-item.is-start::before, .cyc-tl-item.is-end::before { background: var(--green-deep); border-color: var(--green-deep); }
.cyc-tl-item.is-guide::before { width: 9px; height: 9px; left: -6px; top: 12px; border: 0; background: #8fa596; }
.cyc-tl-time { font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cyc-tl-what { min-width: 0; }
.cyc-tl-what .muted { font-size: 13px; }
.cyc-tl-events { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.cyc-tl-events li { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 4px 8px; border-radius: 8px; background: var(--paper); font-size: 13px; }
.cyc-tl-events .cyc-tl-time { font-weight: 600; font-size: 12px; }
.cyc-tl-events li.is-race { background: #eef4fd; }
.cyc-tl-events li.is-race .cyc-tl-time { color: #1d4f9c; }
.cyc-tl-events li.is-break, .cyc-tl-events li.is-wait { background: #fff7e8; }
.cyc-tl-events li.is-break .cyc-tl-time, .cyc-tl-events li.is-wait .cyc-tl-time { color: #8a5a00; }
.cyc-tl-join { display: inline; margin: 0 0 0 6px; }
.cyc-tl-join .btn { padding: 2px 10px; font-size: 12px; }
.cyc-tl-note { margin: 4px 0 0; font-size: 13px; }
.cyc-tl-warn { margin: 10px 0 0; padding: 8px 12px 8px 28px; border: 1px solid #f0d9a8; border-radius: 10px; background: #fff8ec; color: #6b4500; font-size: 13px; }
.cyc-tl-warn li + li { margin-top: 4px; }
@media (max-width: 600px) {
  .cyc-ride-form .cyc-detail-tile .field { grid-template-columns: minmax(0, 1fr); }
  .cyc-ride-form .cyc-detail-tile .field > label:first-child,
  .cyc-ride-form .cyc-detail-tile .field > :not(:first-child) { grid-column: 1; }
  .cyc-ride-form .cyc-stops-field > label:first-child { padding-top: 0; }
  .cyc-ride-form .cyc-form-help,
  .cyc-ride-form .cyc-detail-tile > .cyc-lock-note { margin-left: 0; }
  .cyc-tl-track { min-width: 420px; padding: 0 44px; }
  .cyc-tl-track.is-round::after { right: 26px; }
  .cyc-tl-events li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* 2026-10-27 race timeline: fit the diagram in the form column, help text in the value column, light stop labels */
.cyc-ride-form .cyc-detail-tile > p.cyc-form-help { margin: 0 0 10px calc(var(--cyc-label) + 12px); font-size: 13px; }
.cyc-ride-form .cyc-stop label { font-weight: 400; }
.cyc-tl-track { min-width: 300px; padding: 0 46px; }
.cyc-tl-track.is-round::after { right: 28px; }
.cyc-tl-lab { max-width: 104px; }
@media (max-width: 600px) {
  .cyc-ride-form .cyc-detail-tile > p.cyc-form-help { margin-left: 0; }
  .cyc-tl-track { min-width: 300px; padding: 0 40px; }
  .cyc-tl-track.is-round::after { right: 22px; }
}
/* Cycling page titles: icon left of the h1 at the title's text size; top spacing matches the Venues head. */
h1.cyc-title-ico { display: flex; align-items: center; gap: 0.3em; margin-top: 0; }
h1.cyc-title-ico .nav-ico { width: 1em; height: 1em; flex-shrink: 0; color: var(--green, #1f7a4d); }

/* Lap routes (2026-10-27) */

/* Lap routes (2026-10-27): hidden lap rows in the planner, lap nodes in the race diagram */
.cycle-plan .cycle-route-stats .cycle-kv[hidden], .cycle-plan-details .field[hidden] { display: none; }
.cycle-plan-details #cycle-laps { max-width: 110px; }
.cycle-plan .cycle-wp-laps { flex-basis: 100%; }
.cyc-tl-node.is-lap > i { width: 18px; height: 18px; left: -9px; top: -9px; background: var(--green); border-color: var(--green-deep); }
.cyc-tl-node.is-lap .cyc-tl-lab { left: auto; right: -12px; transform: none; text-align: right; }
.cyc-tl-item.is-lap::before { background: var(--green); border-color: var(--green-deep); }
/* Shared busy spinner (cycling "near me" lists: "Calculating distance..."). */
.gb-spinner { display: inline-block; flex-shrink: 0; width: 1.1em; height: 1.1em; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -0.2em; animation: gb-spin 0.8s linear infinite; }
@keyframes gb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gb-spinner { animation: none; border-style: dotted; border-right-color: currentColor; } }
.cyc-near p.cyc-near-busy { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green, #1f7a4d); }

/* Race status in the race title row; route and estimates on the Timeline (2026-10-27) */
#race-detail .cyc-detail-head .cyc-head-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
#race-detail .cyc-detail-head .cyc-head-status + .cyc-toolbar { margin-left: 0; }
.cyc-state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid #dcdcdc; background: #f1f1f1; color: #555; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cyc-state-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.cyc-state-pill.is-edit { background: #fffaf0; border-color: #f0d9a8; color: #8a5a00; }
.cyc-state-pill.is-join { background: #f2fbf4; border-color: #bfe3c9; color: #146c2e; }
.cyc-state-pill.is-hold, .cyc-state-pill.is-cancelled { background: #fff5f3; border-color: #f2c6bf; color: #9b2c1f; }
.cyc-state-pill.is-done { background: #e6effc; border-color: #c7d8f3; color: #1f4f96; }
.btn.cyc-head-act { padding: 6px 12px; font-size: 13px; min-height: 0; }
.btn.cyc-head-act svg { width: 16px; height: 16px; }
.cyc-detail-title .cyc-state-note { margin: 2px 0 0; font-size: 13px; }
.cyc-status-tile .cyc-status-title.is-first { margin-top: 0; }
.cyc-tl-tile .cyc-tl-facts { margin: 0 0 12px; }
.cyc-tl-sum:empty { display: none; }
@media (max-width: 700px) {
    #race-detail .cyc-detail-head { flex-wrap: wrap; }
    #race-detail .cyc-detail-head .cyc-head-status { order: 5; flex: 1 0 100%; }
}

#race-detail .cyc-head-status .btn.cyc-head-act { width: auto; flex: none; margin: 0; }

/* Edit race and Change status in the race title row (2026-10-27) */
.cyc-ride-form .cyc-detail-head .cyc-head-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.cyc-ride-form .cyc-detail-head .cyc-head-status + .cyc-toolbar { margin-left: 0; }
.cyc-ride-form .cyc-head-status .btn.cyc-head-act { width: auto; flex: none; margin: 0; }
.cyc-head-menu { position: relative; }
.cyc-head-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cyc-head-menu > summary::-webkit-details-marker { display: none; }
.cyc-head-menu > summary::after { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.cyc-head-menu[open] > summary::after { border-top: 0; border-bottom: 5px solid currentColor; }
.cyc-head-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.cyc-head-menu-list .btn.cyc-status-btn { width: 100%; margin: 0; justify-content: flex-start; text-align: left; padding: 7px 12px; font-size: 13px; min-height: 0; }
.cyc-head-menu-list .cyc-status-btn.is-current { background: var(--green-deep); color: #fff; }
.cyc-head-menu-list .muted { margin: 4px 4px 0; font-size: 12px; }
@media (max-width: 700px) {
    .cyc-ride-form .cyc-detail-head { flex-wrap: wrap; }
    .cyc-ride-form .cyc-detail-head .cyc-head-status { order: 5; flex: 1 0 100%; }
}

/* Edit race: the status actions get their own line under the title at every width (2026-10-27) */
.cyc-ride-form .cyc-detail-head { flex-wrap: wrap; }
.cyc-ride-form .cyc-detail-head .cyc-detail-title { flex: 1 1 0; min-width: 0; }
.cyc-ride-form .cyc-detail-head .cyc-head-status { order: 5; flex: 1 0 100%; }

/* Races list peloton line; Competition row in Details; Timeline info grid, vertical diagram, 60/40 split (2026-10-27) */
.cyc-list-head .cyc-race-titles { display: flex; flex-direction: column; flex: 0 1 auto; min-width: 0; line-height: 1.25; }
.cyc-list-head .cyc-race-club { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cyc-comp-dd .cyc-comp-line { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 6px; }
.cyc-comp-dd .cyc-comp-line + .cyc-comp-line { margin-top: 4px; }
.cyc-comp-dd .cyc-comp-line .muted { font-weight: 400; font-size: 12px; }
.cyc-comp-dd .cyc-act-btn { width: 24px; height: 24px; }
.cyc-comp-dd .cyc-act-btn svg { width: 14px; height: 14px; }
.cyc-comp-dd .cyc-comp-add { display: block; margin-top: 4px; }
.cyc-comp-dd > .cyc-comp-add:first-child { margin-top: 0; }
.cyc-comp-add > summary.cyc-comp-add-link { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 13px; font-weight: 600; }
.cyc-comp-add-link svg { width: 14px; height: 14px; }
.cyc-comp-add-link:hover span { text-decoration: underline; }
.cyc-tl-tile .cyc-tl-grid { display: grid; width: 100%; margin: 0 0 12px; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); grid-template-areas: "rl rv tl tv" "pl pv el ev" "ll lv . ."; }
.cyc-tl-grid dt, .cyc-tl-grid dd { margin: 0; padding: 6px 0; border-bottom: 1px solid #edf3eb; }
.cyc-tl-grid dt { color: var(--muted); }
.cyc-tl-grid dd { font-weight: 600; text-align: right; padding-left: 12px; overflow-wrap: anywhere; }
.cyc-tl-grid .is-empty { border-bottom-color: transparent; }
.cyc-tl-grid dt.is-route { grid-area: rl; } .cyc-tl-grid dd.is-route { grid-area: rv; }
.cyc-tl-grid dt.is-pace { grid-area: pl; } .cyc-tl-grid dd.is-pace { grid-area: pv; }
.cyc-tl-grid dt.is-length { grid-area: ll; } .cyc-tl-grid dd.is-length { grid-area: lv; }
.cyc-tl-grid dt.is-time { grid-area: tl; } .cyc-tl-grid dd.is-time { grid-area: tv; }
.cyc-tl-grid dt.is-return { grid-area: el; } .cyc-tl-grid dd.is-return { grid-area: ev; }
.cyc-tl-grid dt.is-time, .cyc-tl-grid dt.is-return { margin-left: 24px; }
@media (max-width: 700px) {
    .cyc-tl-tile .cyc-tl-grid { grid-template-columns: max-content minmax(0, 1fr); grid-template-areas: "rl rv" "pl pv" "ll lv" "tl tv" "el ev"; }
    .cyc-tl-grid dt.is-time, .cyc-tl-grid dt.is-return { margin-left: 0; }
}
.cyc-tl-body { container-type: inline-size; }
.cyc-tl-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 20px; align-items: start; }
@container (min-width: 480px) {
    .cyc-tl-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.cyc-tl-diagram.is-v { overflow: visible; margin: 0 0 6px; padding: 0; }
.cyc-tl-v { list-style: none; margin: 0; padding: 0; }
.cyc-tl-vp { position: relative; padding: var(--gap, 0px) 0 6px 30px; min-height: 18px; }
.cyc-tl-vp::before, .cyc-tl-vp::after { content: ""; position: absolute; left: 7px; width: 4px; background: var(--green); }
.cyc-tl-vp::before { top: 0; height: calc(var(--gap, 0px) + 9px); }
.cyc-tl-vp::after { top: calc(var(--gap, 0px) + 9px); bottom: 0; }
.cyc-tl-vp:first-child::before, .cyc-tl-vp:last-child::after { display: none; }
.cyc-tl-vp.is-back-in::before, .cyc-tl-vp.is-back-out::after { background: repeating-linear-gradient(180deg, var(--green) 0 8px, transparent 8px 13px); }
.cyc-tl-vp > i { position: absolute; z-index: 1; left: 9px; top: calc(var(--gap, 0px) + 9px); transform: translate(-50%, -50%); box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--green); background: #fff; }
.cyc-tl-vp.is-guide > i { width: 8px; height: 8px; border: 0; background: #8fa596; }
.cyc-tl-vp.is-venue > i, .cyc-tl-vp.is-turn > i, .cyc-tl-vp.is-lap > i { background: var(--green); }
.cyc-tl-vp.is-start > i, .cyc-tl-vp.is-end > i, .cyc-tl-vp.is-lap > i { width: 18px; height: 18px; border-color: var(--green-deep); }
.cyc-tl-vp.is-start > i, .cyc-tl-vp.is-end > i { background: var(--green-deep); }
.cyc-tl-vp.is-break > i { width: 14px; height: 14px; border-radius: 3px; border: 3px solid #b26a00; background: #ffd58a; }
.cyc-tl-vp.is-race > i { width: 14px; height: 14px; border-radius: 2px; border: 3px solid #1d4f9c; background: #cfe0fb; transform: translate(-50%, -50%) rotate(45deg); }
.cyc-tl-vp .cyc-tl-lab { position: static; display: block; width: auto; max-width: none; transform: none; text-align: left; }
.cyc-tl-vp .cyc-tl-lab b, .cyc-tl-vp .cyc-tl-lab small, .cyc-tl-vp .cyc-tl-lab em { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.cyc-tl-vp .cyc-tl-lab b { font-size: 13px; }

/* Race diagram stays horizontal: full-text labels, row heights from the longest label; diagram 80 / times 20 (2026-10-27) */
.cyc-tl-row.is-out { height: var(--tl-oh, 108px); }
.cyc-tl-row.is-out .cyc-tl-line, .cyc-tl-track.is-round::after { top: calc(var(--tl-oh, 108px) - 14px); }
.cyc-tl-row.is-out .cyc-tl-node { top: calc(var(--tl-oh, 108px) - 12px); }
.cyc-tl-row.is-out .is-alt .cyc-tl-lab { bottom: var(--tl-oa, 54px); }
.cyc-tl-row.is-back { height: var(--tl-bh, 104px); }
.cyc-tl-row.is-back .is-alt .cyc-tl-lab { top: var(--tl-ba, 54px); }
.cyc-tl-lab b, .cyc-tl-lab small, .cyc-tl-lab em { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.cyc-tl-cols { gap: 14px 16px; }
@container (min-width: 480px) {
    .cyc-tl-cols { grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); }
    .cyc-tl-cols .cyc-tl-track { min-width: 0; }
    .cyc-tl-col.is-list .cyc-tl-item { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 12px; font-size: 13px; overflow-wrap: anywhere; }
    .cyc-tl-col.is-list .cyc-tl-events li { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 6px; }
}
.cyc-tl-col.is-list .cyc-tl-list { margin-top: 0; }

/* Competition values wrap instead of widening the Details value column (2026-10-27) */
.cyc-facts.cyc-facts-wide dd.cyc-comp-dd { max-width: 240px; justify-self: end; }
.cyc-comp-dd .cyc-comp-line { justify-content: flex-end; text-align: right; }
.cyc-comp-dd .cyc-comp-line > a { min-width: 0; overflow-wrap: anywhere; }

/* The finish at the right end of the out row aligns right, like the turnaround, so it stays inside the diagram */
.cyc-tl-row.is-out .cyc-tl-node.is-end .cyc-tl-lab { left: auto; right: -12px; transform: none; text-align: right; }

/* Diagram width comes from its closest same-level labels (--tl-minw); narrower screens scroll it sideways */
.cyc-tl-diagram .cyc-tl-track { min-width: var(--tl-minw, 300px); }

/* Race diagram: Show guide points swaps to the diagram with every point; the race form's waypoint pop-up (2026-10-27) */
.cyc-tl-diagram.is-all { display: none; }
html.cyc-show-guides .cyc-tl-diagram.is-all { display: block; }
html.cyc-show-guides .cyc-tl-diagram.is-named { display: none; }
.cyc-tl-guides { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; flex-shrink: 0; font-size: 12px; font-weight: 400; color: var(--muted); cursor: pointer; white-space: nowrap; }
.cyc-tl-guides[hidden] { display: none; }
.cyc-tl-guides input { margin: 0; }
.cyc-tl-tile > .cyc-sec-title { flex-wrap: wrap; }
.cyc-tl-node.is-plain .cyc-tl-lab b { font-weight: 500; color: var(--muted); }
[data-cyc-ride-form] .cyc-tl-tile { position: relative; }
[data-cyc-ride-form] .cyc-tl-node[data-pt] i, [data-cyc-ride-form] .cyc-tl-node[data-pt] .cyc-tl-lab { cursor: pointer; }
[data-cyc-ride-form] .cyc-tl-node[data-pt]:hover .cyc-tl-lab b, [data-cyc-ride-form] .cyc-tl-node[data-pt]:focus-visible .cyc-tl-lab b { text-decoration: underline; }
[data-cyc-ride-form] .cyc-tl-node[data-pt]:focus-visible { outline: none; }
[data-cyc-ride-form] .cyc-tl-node[data-pt]:focus-visible i { outline: 2px solid var(--green); outline-offset: 2px; }
.cyc-tl-edit-hint { margin: 6px 0 0; font-size: 12px; }
.cyc-wp-pop { position: absolute; z-index: 40; box-sizing: border-box; display: grid; gap: 8px; padding: 10px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); text-align: left; }
.cyc-wp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cyc-wp-head strong { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.cyc-wp-field { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.cyc-wp-field input { width: 100%; box-sizing: border-box; }
.cyc-wp-check { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.cyc-wp-check input { margin: 0; }
.cyc-wp-break { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.cyc-wp-break[hidden] { display: none; }
.cyc-wp-pop p { margin: 0; font-size: 12px; }
.cyc-wp-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cyc-wp-remove { color: #b3261e; }
/* Race: newer route version notice (Accept / Decline) and stops on the way back (Same way back). */
.cyc-route-upd { display: grid; gap: 6px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f0d58a; border-radius: 10px; background: #fff8e6; }
.cyc-route-upd[hidden] { display: none; }
.cyc-route-upd p { margin: 0; font-size: 13px; }
.cyc-route-upd-title { font-size: 14px; }
.cyc-route-upd-what span { font-weight: 600; color: var(--ink, #1d2b22); }
.cyc-route-upd-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.cyc-stop label[hidden],
.cyc-stop .cyc-stop-wide[hidden] { display: none; }
.cyc-stop[data-leg="Back"] .is-out-only { display: none; }
.cyc-stop[data-leg="Back"] { border-style: dashed; }
.cyc-wp-field[hidden] { display: none; }
.cyc-wp-break.has-leg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cyc-wp-break.has-leg select { width: 100%; box-sizing: border-box; }
@media (max-width: 560px) {
  .cyc-route-upd-acts .btn { flex: 1 1 0; }
}

/* Edit race: compact form so more fits on the page; the diagram tile spans both columns at the bottom. */
.card.cyc-ride-form { padding: 14px 16px; }
.cyc-ride-form .cyc-detail-head { gap: 10px; }
.cyc-ride-form .cyc-detail-foot { gap: 8px; margin-top: 8px; }
.cyc-ride-form .cyc-col { gap: 8px; }
.cyc-ride-form .cyc-detail-tile { padding: 10px 12px; }
.card.cyc-ride-form .cyc-detail-tile .cyc-sec-title { font-size: 16px; margin: 0 0 6px; }
.cyc-ride-form .cyc-detail-tile .field { margin: 0 0 6px; row-gap: 2px; }
.cyc-ride-form .cyc-detail-tile .field > label:first-child { font-size: 13px; }
.cyc-ride-form .field input:not([type="checkbox"]):not([type="radio"]),
.cyc-ride-form .field select,
.cyc-ride-form .field textarea,
.cyc-ride-form .cyc-stop input,
.cyc-ride-form .cyc-stop select { font-size: 13px; padding: 6px 9px; }
.cyc-ride-form .field textarea { min-height: 60px; }
.cyc-ride-form label.check { margin: 0; font-size: 13px; }
.cyc-ride-form .cyc-detail-tile .field > p,
.cyc-ride-form .cyc-stops-box > p,
.cyc-ride-form .cyc-tl-edit-hint,
.cyc-ride-form .cyc-detail-tile > p.cyc-form-help { font-size: 12px; line-height: 1.35; }
.cyc-ride-form .cyc-detail-tile > p.cyc-form-help { margin-bottom: 6px; }
.cyc-ride-form .cyc-stop-list { gap: 6px; }
.cyc-ride-form .cyc-stop { gap: 4px; padding: 6px 8px; }
.cyc-ride-form .cyc-stop label { font-size: 11.5px; }
.cyc-ride-form .cyc-form-foot { margin-top: 8px; }
@media (max-width: 720px) {
  .card.cyc-ride-form { padding: 12px; }
  .cyc-ride-form .field input:not([type="checkbox"]):not([type="radio"]),
  .cyc-ride-form .field select,
  .cyc-ride-form .cyc-stop input,
  .cyc-ride-form .cyc-stop select { min-height: 40px; }
  .cyc-ride-form .cyc-form-foot .btn,
  .cyc-ride-form .cyc-stop-add { min-height: 40px; }
}
@media (max-width: 720px) {
  .cyc-ride-form .cyc-act-btn,
  .cyc-ride-form .cyc-pace-avg,
  .cyc-ride-form .club-toolbar-btn { min-width: 40px; min-height: 40px; }
  .cyc-ride-form .cyc-status-btn { min-height: 40px; }
}
@media (max-width: 720px) {
  .cyc-ride-form .cyc-head-menu-list .btn.cyc-status-btn { min-height: 40px; }
}

/* Break services (Water, Toilet, Repair, Pickup) in a stop row and the diagram's waypoint pop-up (2026-10-27) */
.cyc-stop-svc, .cyc-wp-svc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cyc-stop-svc-cap { flex: 1 0 100%; font-size: 11.5px; color: var(--muted); }
.cyc-wp-svc { grid-column: 1 / -1; }
.cyc-wp-svc .cyc-stop-svc-cap { font-size: 12px; }
.cyc-stop .cyc-svc, .cyc-wp-svc .cyc-svc { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ink); cursor: pointer; }
.cyc-ride-form .cyc-stop .cyc-svc input, .cyc-wp-svc .cyc-svc input { width: auto; min-height: 0; margin: 0; padding: 0; }
@media (max-width: 720px) {
  .cyc-stop .cyc-svc, .cyc-wp-svc .cyc-svc { min-height: 32px; }
}

/* Race form: Race and Where tiles collapse to their title, so the timeline comes into view (2026-10-27) */
.cyc-fold-btn { margin-left: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--green-deep); cursor: pointer; }
.cyc-fold-btn:hover { background: #e8f3ec; }
.cyc-fold-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.cyc-fold-btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.cyc-fold.is-folded .cyc-fold-btn svg { transform: rotate(180deg); }
.cyc-fold.is-folded > :not(.cyc-sec-title) { display: none !important; }
.card.cyc-ride-form .cyc-fold.is-folded .cyc-sec-title { margin: 0; }
@media (max-width: 720px) {
  .cyc-fold-btn { width: 40px; height: 40px; }
}

/* Race diagram: every label is centred over its point, the start, turnaround and finish too; the side padding
   fits half a label (max 104 px) at either end (2026-10-27) */
.cyc-tl-diagram .cyc-tl-track { padding: 0 56px; }
.cyc-tl-diagram .cyc-tl-track.is-round::after { right: 38px; }
.cyc-tl-row .cyc-tl-node .cyc-tl-lab,
.cyc-tl-row.is-out .cyc-tl-node.is-end .cyc-tl-lab { left: 0; right: auto; transform: translateX(-50%); text-align: center; }

/* Race list: a break shows "Break 15 min", then its ticked services, then its note, each on its own line (2026-10-28) */
.cyc-tl-events .cyc-tl-ln { display: block; overflow-wrap: anywhere; }
.cyc-tl-events .cyc-tl-svc, .cyc-tl-events .cyc-tl-note, .cyc-tl-what > .cyc-tl-svc { margin: 0; font-size: 12px; line-height: 1.3; color: #7a6a4f; }
.cyc-tl-col.is-list .cyc-tl-events li.is-break { display: flex; flex-wrap: wrap; column-gap: 6px; }
.cyc-tl-col.is-list .cyc-tl-events li.is-break > span:last-child { display: contents; }
.cyc-tl-col.is-list .cyc-tl-events li.is-break .cyc-tl-svc, .cyc-tl-col.is-list .cyc-tl-events li.is-break .cyc-tl-note { flex-basis: 100%; }

/* Peloton pages: 10px between tiles and from tiles to the page border, desktop and phone (2026-10-28) */
body.play-cycling main.content { padding: 10px; }
body.play-cycling main.m-main { padding: 10px; }
body.play-cycling .course-section-head.card { margin-bottom: 10px; }
body.play-cycling .cyc-find { gap: 10px; }
body.play-cycling .cyc-find-list, body.play-cycling .cyc-find-side { gap: 10px; }
body.play-cycling .cyc-find-list > .cyc-mine, body.play-cycling .cyc-find-list > form > .cyc-mine { margin-bottom: 0; }
body.play-cycling .cyc-mine { margin-bottom: 10px; }
body.play-cycling .cyc-search { gap: 10px; }
body.play-cycling .club-list, body.play-cycling .club-list-by-club { gap: 10px; }
body.play-cycling .card.cyc-detail, body.play-cycling .m-main .card.cyc-detail { padding: 10px; }
body.play-cycling .cyc-detail-foot { gap: 10px; margin-top: 10px; }
body.play-cycling .cyc-col { gap: 10px; }
body.play-cycling .cyc-venue-split { gap: 10px; margin-top: 10px; }
body.play-cycling .cyc-home .home-dash.cyc-home-tiles { gap: 10px; }
body.play-cycling .cyc-home-shop { gap: 10px; }
body.play-cycling .profile-racing-row .home-dash { gap: 10px; }
body.play-cycling .card.profile-schools { padding: 10px; }
body.play-cycling .shop-grid { gap: 10px; }
body.play-cycling .cyc-home, body.play-cycling .cyc-home-side { gap: 10px; }
body.play-cycling .cyc-find-list > form.cyc-search { margin-bottom: 0; }
body.play-cycling .shop-canvas { gap: 10px; }

/* Peloton tiles: one design for "My pelotons" on the Pelotons page and on My Profile (2026-10-28) */
.cyc-my-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cyc-my-tile { position: relative; margin: 0; padding: 10px 8px; min-width: 0; aspect-ratio: 1 / 1; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; }
.cyc-my-tile.is-on { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.cyc-my-tile-link { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; color: inherit; text-decoration: none; }
.cyc-my-tile-link:hover .cyc-my-tile-name { color: var(--green); }
.cyc-my-tile .cyc-seal { width: 36px; height: 36px; }
.cyc-my-tile-name { max-width: 100%; overflow: hidden; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 12px; color: var(--green-deep); }
.cyc-my-tile-tags { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px; }
.cyc-my-tile-tags .country-flag { width: 18px; height: auto; margin: 0; border-radius: 2px; }
.cyc-my-tile .cyc-tag { padding: 0 6px; font-size: 10px; }
.cyc-my-tile-facts { max-width: 100%; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 10px; font-size: 10px; }
.cyc-my-tile-facts > span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cyc-my-tile-facts > span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cyc-my-tile-facts svg { width: 14px; height: 14px; flex-shrink: 0; }
.cyc-my-tile-facts .country-flag { width: 18px; height: auto; border-radius: 2px; }
.cyc-my-tile-act { position: absolute; top: 8px; right: 8px; margin: 0; }
@media (max-width: 760px) { .cyc-my-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cyc-my-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .cyc-my-tiles { grid-template-columns: minmax(0, 1fr); } }
/* On My Profile the column is wider, so the tiles keep the Pelotons page width (4 in its 680px column) */
.profile-right .cyc-my-tiles { grid-template-columns: repeat(auto-fill, 130px); }
@media (max-width: 560px) { .profile-right .cyc-my-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .profile-right .cyc-my-tiles { grid-template-columns: minmax(0, 1fr); } }
.profile-right .cyc-my-tile { font-size: 14px; }
.profile-right .cyc-my-tile .cyc-my-tile-facts { font-size: 10px; margin: 0; }
.m-main .card.cyc-my-tile { padding: 10px 8px; }
.cyc-my-tile-top { display: flex; align-items: center; gap: 6px; }
.cyc-my-tile-top .country-flag { width: 18px; height: auto; margin: 0; border-radius: 2px; }
.cyc-my-tile { container-type: inline-size; }
@container (max-width: 125px) {
  .cyc-my-tile-link { gap: 3px; }
  .cyc-my-tile .cyc-seal { width: 28px; height: 28px; }
  .cyc-my-tile .cyc-tag { padding: 0 4px; font-size: 9px; }
}
.cyc-my-tile-top { align-self: stretch; }
.cyc-my-tile-top .country-flag { margin-left: auto; }
.cyc-my-tile > .cyc-my-tile-act { top: auto; bottom: 8px; right: 8px; }
.cyc-my-tile-top { align-items: flex-start; }
.cyc-my-tile:has(> .cyc-my-tile-act) .cyc-my-tile-tags { padding-right: 32px; }
/* Venue create / Linked / Private / Unlinked (sql 084, 28 Oct 2026) */
.cyc-title-new { display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; padding: 6px 12px; border-radius: 999px; }
.cyc-title-new svg { width: 16px; height: 16px; }
.cyc-tag.is-private { background: #eef0f3; color: #3d4450; }
.cyc-tag.is-linked { background: #e5f6ea; color: #146c2e; }
.cyc-tag.is-unlinked, .cyc-tag.is-gps { background: #fff4dc; color: #8a5a00; }
.cyc-unlinked-head { margin: 10px 0 0; }
.cyc-venue-pick-name .cyc-tag { margin-left: 6px; }
.cyc-venue-row .cyc-tag.is-linked, .cyc-venue-row .cyc-tag.is-unlinked, .cyc-venue-row .cyc-tag.is-private { flex-shrink: 0; }

/* Mahjong members Home: Peloton grid, 10px gaps, burgundy tokens (2026-11-15) */
body.play-mahjong main.content { padding: 10px; }
body.play-mahjong main.m-main { padding: 10px; }
body.play-mahjong .cyc-home,
body.play-mahjong .cyc-home-side { gap: 10px; }
body.play-mahjong .cyc-home .home-dash.cyc-home-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-top: 0;
}
body.play-mahjong .cyc-home .cyc-home-tiles > .home-dash-box:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 0;
}
body.play-mahjong .cyc-home-tiles .cyc-home-title .cyc-sec-counts {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.play-mahjong .cyc-home-tiles .cyc-home-title .cyc-sec-count,
body.play-mahjong .cyc-home-side .cyc-home-title .cyc-sec-count {
  margin-left: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  background: #f3e4ea;
  border-radius: 999px;
  min-width: 26px;
  padding: 2px 9px;
  text-align: center;
  box-sizing: border-box;
}
body.play-mahjong .cyc-home-tiles .cyc-home-title .cyc-sec-count.is-priv {
  color: #5c1228;
  background: #f0ece4;
}
body.play-mahjong .cyc-home-tiles .home-dash-list { flex: 0 0 auto; margin-bottom: 8px; }
body.play-mahjong .cyc-home-tiles .home-dash-list li { padding: 6px 0; }
body.play-mahjong .cyc-home-tiles .home-dash-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.play-mahjong .cyc-home-tiles .home-dash-list .cyc-tag { margin-left: 6px; vertical-align: middle; }
body.play-mahjong .cyc-home-tiles .home-dash-list .cyc-home-row {
  display: flex;
  align-items: center;
  min-width: 0;
}
body.play-mahjong .cyc-home-tiles .home-dash-list .cyc-home-row a { min-width: 0; }
body.play-mahjong .cyc-home .cyc-tag.is-open,
body.play-mahjong .cyc-home .cyc-tag.is-society {
  background: #f3e4ea;
  color: var(--green-deep);
}
body.play-mahjong .cyc-home .cyc-tag.is-club {
  background: #f8efe6;
  color: #8a4b22;
}
body.play-mahjong .cyc-home-shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 8px;
}
body.play-mahjong .cyc-home-shop a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: #f7eef1;
  text-decoration: none;
}
body.play-mahjong .cyc-home-shop a:hover,
body.play-mahjong .cyc-home-shop a:focus-visible { background: #f3e4ea; }
body.play-mahjong .cyc-home-shop strong {
  font-size: 24px;
  line-height: 1.1;
  color: var(--green-deep);
}
body.play-mahjong .cyc-home-shop span {
  font-size: 13px;
  color: var(--muted, #5d6b61);
}
body.play-mahjong .cyc-home-tiles .cyc-home-shop-act {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
body.play-mahjong .cyc-home-tiles .cyc-home-shop-act .btn { margin-top: 0; }
@media (max-width: 520px) {
  body.play-mahjong .cyc-home .home-dash.cyc-home-tiles { grid-template-columns: minmax(0, 1fr); }
}
