/* Phone-first GolfBuddy shell. Desktop site.css stays intact.
   Guidelines: member-only /m (except Login/Forgot). Stretch to fit.
   Finger-sized buttons (min 44px). Lowest acceptable icon resolution.
   Member top bar is 3 columns: photo+flag | full name + Member since | primary school logo.
   Home general area line 2 = upcoming games (joined icon -> setup, Join button).
   Bottom bar: Home, Golf Clubs, Game Type, Profile, Logout. */
html, body {
  background: var(--paper);
}
html:has(body.buddy-front) {
  background: #1a2a20;
}
.m-body {
  margin: 0;
  min-height: 100%;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.m-body.m-anon {
  padding-bottom: 24px;
}
.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;
  border-bottom: 4px solid var(--green);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
.m-header-member {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.m-header-canvas {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.m-head-canvas-me {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-head-app {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  display: block;
}
.m-head-canvas-name {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.2;
  align-self: center;
}
.m-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}
.m-header .brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.m-header .brand img.buddy-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}
.m-header .brand img.buddy-lockup {
  width: auto;
  height: 32px;
  max-width: min(220px, 58vw);
  border-radius: 0;
  background: transparent;
}
.m-header .wordmark { font-size: 16px; }
.m-header .wm-txt { font-size: 16px; }
.m-head-photo {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
a.m-head-photo { display: block; }
.m-head-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f3faf4;
  border: 1px solid var(--line);
}
.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);
}
.m-head-name {
  min-width: 0;
}
.m-head-name strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-head-name span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.m-head-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-head-hcp {
  line-height: 1;
  white-space: nowrap;
}
.m-head-game {
  line-height: 0;
}
.m-head-school-link {
  display: block;
  line-height: 0;
}
.m-head-school {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3faf4;
  border: 1px solid var(--line);
  display: block;
}
.m-facts {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 12px 0 16px;
}
.m-facts dt { margin: 0; font-size: 11px; color: var(--muted); }
.m-facts dd { margin: 0; font-weight: 700; }
.m-switch {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
  padding: 8px 6px;
}
.m-head-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.m-head-tools .m-switch {
  margin-left: 0;
}
.m-header .top-app-dl,
.m-head-tools .top-app-dl,
.m-head-canvas-me .top-app-dl {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.m-header > .top-app-dl {
  margin-left: auto;
}
.pwa-install-manual #pwa-install-go {
  display: none !important;
}
.m-main {
  padding: 16px 14px 24px;
  max-width: 560px;
  margin: 0 auto;
}
.m-main h1 {
  margin: 0 0 8px;
  font-size: 22px;
}
.m-main .card { padding: 16px; }
.m-main .btn {
  min-height: 44px;
  width: 100%;
}
.m-main .login-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.m-main .login-actions a:not(.btn) {
  text-align: center;
  padding: 12px 8px;
  min-height: 44px;
}
.m-main input, .m-main select, .m-main textarea {
  min-height: 44px;
  font-size: 14px;
}
.m-main .reg-legal input[type="checkbox"] {
  min-height: 16px;
  width: 16px;
  height: 16px;
}
.m-main label.check {
  min-height: 44px;
  font-size: 14px;
}
.m-hero-logo {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}
.m-hero-logo img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow);
}
.m-stat {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  color: var(--green-deep);
}
.m-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-list li { border-bottom: 1px solid var(--line); }
.m-list li:last-child { border-bottom: 0; }
.m-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  color: inherit;
  min-height: 56px;
}
.m-row .school-icon {
  align-self: flex-start;
}
.m-row:hover, .m-row.selected { background: #e5f6ea; color: inherit; }
.m-list .school-pick-item .m-row {
  padding-right: 36px;
}
.m-list .school-pick-item .m-row:hover,
.m-list .school-pick-item .m-row.selected {
  background: transparent;
}
.m-row strong { display: block; }
.m-row .muted { display: block; font-size: 11px; }
.m-row .btn { width: auto; min-width: 88px; flex-shrink: 0; }
.m-list form { margin: 0 4px 10px; }
.m-list form.school-pick-action { margin: 0; }
.m-list form .btn { width: auto; min-width: 96px; }
.m-stack { display: flex; flex-direction: column; gap: 14px; }
.m-stack .club-block-schools { padding: 0 12px 10px 36px; }
.m-stack .school-pick-request { margin: 0; }
.m-stack .school-pick-request button {
  margin: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.m-stack .club-block { padding: 0; overflow: hidden; }
.m-stack .club-block-head { border-bottom: 1px solid var(--line); }
.m-stack .club-block .m-row { padding-left: 12px; padding-right: 12px; }
.m-stack .m-add-course { padding: 0 12px; }
.m-course-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 10px;
  background: #eef5ef;
  display: block;
}
.m-stack .club-detail-map {
  overflow: hidden;
  border-radius: 10px;
  margin: 8px 0 12px;
}
.m-scorecard { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-scorecard table { min-width: 100%; }
.m-scorecard th, .m-scorecard td { text-align: center; font-size: 11px; }
.m-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);
}
.m-nav a {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  color: #dff3e4;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  padding: 4px 1px;
  border-radius: 8px;
}
.m-nav a.active, .m-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.m-nav svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.m-nav img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.m-nav span { display: block; }
.m-profile-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}
.m-profile-hero .profile-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.m-profile-hero .profile-hero-boxes {
  flex: 1 1 100%;
  grid-template-columns: 1fr;
  width: 100%;
}
.profile-hcp-game {
  grid-template-columns: 32px minmax(0, 1fr) 36px 40px;
}
.profile-hcp-flag { grid-column: 2; }
.profile-hcp-count { grid-column: 4; justify-self: end; }
.m-profile-hero .avatar, .m-profile-hero .avatar-wrap {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}
.m-profile-hero .avatar { width: 84px; height: 84px; }
.m-profile-hero .profile-hero-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.m-profile-hero .profile-hero-title-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.m-profile-hero .profile-heading {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-profile-hero .profile-role,
.m-profile-hero .profile-club {
  margin: 0;
  line-height: 1.25;
  font-size: 13px;
}
.m-profile-hero .profile-club {
  color: var(--muted, #5a6b5e);
}
.m-profile-hero .profile-hero-actions {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.m-profile-hero .profile-pw {
  margin: 0;
  flex: 0 0 auto;
  position: relative;
  align-self: auto;
}
.m-profile-hero .profile-icon-btn {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #c9d4c8);
  border-radius: 10px;
  background: #fff;
  color: var(--green-deep, #124526);
  cursor: pointer;
  flex: 0 0 auto;
  text-decoration: none;
  list-style: none;
  appearance: none;
  -webkit-appearance: none;
}
.m-profile-hero .profile-icon-btn.is-save {
  width: auto;
  padding: 0 14px;
  gap: 6px;
  background: var(--green-deep, #124526);
  border-color: var(--green-deep, #124526);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.m-profile-hero .profile-icon-btn::-webkit-details-marker { display: none; }
.m-profile-hero .profile-icon-btn::marker { content: ""; }
.m-profile-hero .profile-icon-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.m-profile-hero .profile-pw-panel {
  right: 0;
  left: auto;
  width: min(320px, calc(100vw - 28px));
}
.m-profile-hero .profile-pw-panel .btn { width: 100%; }
.m-search {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.m-search .field { flex: 1; margin-bottom: 0; }
.m-search .btn { width: auto; min-width: 88px; }
.m-search.m-club-search {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.m-search .club-search-row { width: 100%; }
.m-search .club-search-flag { min-height: 44px; width: 48px; flex: 0 0 48px; }
.m-clubs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.m-clubs-head .clubs-page-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.m-clubs-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.m-clubs-search-btn,
a.m-clubs-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.m-clubs-search-btn svg,
a.m-clubs-search-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.m-clubs-search-btn:hover,
.m-clubs-search-btn:focus-visible,
.m-clubs-search-btn.is-on,
.m-clubs-search-btn[aria-expanded="true"],
a.m-clubs-search-btn:hover,
a.m-clubs-search-btn:focus-visible,
a.m-clubs-search-btn.is-on {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}
.m-club-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
}
.m-club-head .club-logo-ball {
  align-self: flex-start;
  flex-shrink: 0;
}
.m-club-head .club-side-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.m-club-head .club-side-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.m-club-head .m-club-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.15;
  color: var(--green-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-club-head .fav-star-form {
  flex-shrink: 0;
  margin: 0;
  align-self: center;
}
.m-club-head .club-side-country {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
}
.m-club-tee-off-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  margin: 0 0 14px;
}
.m-club-tee-off-row .club-proshop {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-club-primary-contact {
  margin-top: 0;
}
.m-main .m-club-tools {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0 16px;
}
.m-main .m-club-tools .m-golf-tool {
  flex: 1 1 0;
  min-width: 0;
  min-height: 88px;
  padding: 10px 4px;
  font-size: 11px;
}
.m-main .m-club-tools .m-golf-tool img {
  width: 40px;
  height: 40px;
}
.m-main .m-club-tools .m-golf-tool span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.m-main .club-below-tees .m-club-course-block {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.m-main .club-below-tees .m-club-course-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.m-main .club-below-tees .m-club-tee-table {
  table-layout: fixed;
  width: 100%;
}
.m-main .club-below-tees .m-club-tee-table col.m-tee-col-name { width: 46%; }
.m-main .club-below-tees .m-club-tee-table col.m-tee-col-par { width: 18%; }
.m-main .club-below-tees .m-club-tee-table col.m-tee-col-len { width: 36%; }
.m-main .club-below-tees .m-club-tee-table th,
.m-main .club-below-tees .m-club-tee-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-main .club-below-tees .m-club-tee-table th:nth-child(1),
.m-main .club-below-tees .m-club-tee-table td:nth-child(1) {
  text-align: left;
}
.m-main .club-below-tees .m-club-tee-table th:nth-child(n+2),
.m-main .club-below-tees .m-club-tee-table td:nth-child(n+2) {
  text-align: right;
}
.m-main .course-pane-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}
.m-country {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
  font-size: 14px;
  color: var(--green-deep);
}
.m-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.m-pane-head h2 { margin: 0; }
.m-pane-head .btn { width: auto; }
.m-main .row { flex-direction: column; }
.m-main .row > * { min-width: 0; }
.m-main .profile-info .row.profile-name-row {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-end;
}
.m-main .profile-info .row.profile-name-row > .field {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}
.m-main .profile-info .row.profile-contact-row {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-end;
}
.m-main .profile-info .row.profile-contact-row > .field {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}
.m-main .profile-info .row.profile-contact-row .tel-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}
.m-main .profile-info .row.profile-contact-row .tel-prefix {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 52px;
  max-width: none;
  padding: 0 6px;
  gap: 4px;
}
.m-main .profile-info .row.profile-contact-row .tel-prefix [data-tel-dial] {
  display: inline;
  font-size: 11px;
  line-height: 1;
}
.m-main .profile-info .row.profile-contact-row [data-tel-input] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-main .profile-info .profile-email-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.m-main .profile-info .profile-email-mail {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line, #c9d4c8);
  background: #fff;
  color: var(--green-deep, #124526);
  text-decoration: none;
}
.m-main .profile-info .profile-email-mail svg {
  width: 18px;
  height: 18px;
  display: block;
}
.m-main .profile-info .profile-email-line input {
  flex: 1 1 auto;
  min-width: 0;
}
.m-main .profile-info .profile-pick-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.m-main .profile-info .profile-pick-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line, #c9d4c8);
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.m-main .profile-info .profile-pick-icon .club-logo,
.m-main .profile-info .profile-pick-icon .school-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.m-main .profile-info .profile-pick-row select {
  flex: 1 1 auto;
  min-width: 0;
}
.m-main .profile-info .profile-school-hint {
  margin: 6px 0 0;
  font-size: 11px;
}
.m-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-hint { font-size: 11px; }
.m-upcoming-wrap { margin: 0 0 16px; }
.m-upcoming { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.m-golf-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.m-golf-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.m-golf-tool img {
  width: 48px;
  height: 48px;
}
.m-cal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
}
.m-cal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.m-cal-title-row .schools-page-actions .btn {
  width: auto;
}
.m-cal-title-row .btn {
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  flex-shrink: 1;
  text-align: center;
}
.m-cal-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #e5f6ea;
  border: 1px solid var(--green);
  border-radius: 10px;
}
.m-cal-filter-main {
  min-width: 0;
  flex: 1;
}
.m-school-motto {
  margin: 4px 0 0;
  font-size: 12px;
}
.m-gpt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.m-gpt-head h2 { margin: 0; }
.m-cal-filter p {
  margin: 0;
  font-size: 13px;
}
.m-cal-filter .btn {
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  flex-shrink: 0;
}
.m-cal-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.m-school-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  position: relative;
  padding-right: 0;
  box-sizing: border-box;
}
.m-school-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.m-school-head-text { min-width: 0; flex: 1; }
.m-school-head-text strong { display: block; font-size: 15px; }
.m-pop-wide .m-pop-card {
  width: min(420px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
}
.m-pop-card h2 { margin: 0 0 12px; }
.m-pop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.m-pop-logo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f3faf4;
}
.m-school-title-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
}
.m-school-title {
  margin: 0;
}
.m-school-title .school-title-input {
  max-width: none;
  font-size: 18px;
}
.m-school-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.m-up-school {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
}
.m-cal-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin: 0 0 10px;
}
.m-cal-group:last-child { margin-bottom: 0; }
.m-cal-day {
  margin: 0;
  padding: 10px 12px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
}
.m-cal-group .m-upcoming {
  border: 0;
  border-radius: 0;
}
.m-rename-form {
  margin: 10px 0 0;
}
.m-rename-form .field {
  margin-bottom: 8px;
}
.m-school-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-school-tile-wrap {
  position: relative;
  min-width: 0;
}
.m-school-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 124px;
  padding: 12px 10px 10px;
  background: #f3faf4;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  box-sizing: border-box;
}
.m-school-tile.selected,
.m-school-tile:hover {
  border-color: var(--green);
  color: inherit;
}
.m-school-tile .school-icon {
  width: 48px;
  height: 48px;
  align-self: center;
}
.m-school-tile strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.m-school-tile .muted {
  font-size: 11px;
  font-weight: 700;
}
.m-school-tile-edit {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.m-school-tile-edit img {
  width: 16px;
  height: 16px;
  display: block;
}
.m-up-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}
.m-up-item.has-school,
.m-up-item.has-source,
.m-up-item:has(> .m-up-school-logo),
.m-up-item:has(> .m-up-source),
.m-up-item:has(> .m-up-source-wrap) {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}
.m-up-school-logo,
.m-up-source {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  margin-top: 2px;
}
.m-up-source-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 36px;
}
.m-up-source-wrap .m-up-source { margin-top: 0; }
.m-up-source-label {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-deep);
  text-align: center;
}
.m-up-nine {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
}
.m-up-item:last-child { border-bottom: 0; }
.m-up-main { min-width: 0; }
.m-up-main strong { display: block; font-size: 14px; }
.m-up-course {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}
.m-up-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}
.m-tourney {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep);
  text-align: right;
}
.m-tourney img { width: 14px; height: 14px; }
.m-joined {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.m-joined img { width: 24px; height: 24px; }
.m-add-tour {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.m-add-tour img { width: 24px; height: 24px; display: block; }
.m-join-form { margin: 0; }
.m-main .m-join-btn {
  width: auto;
  min-width: 88px;
  min-height: 44px;
  padding: 0 14px;
}
.m-joined-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green-deep);
}
.m-joined-note img { width: 22px; height: 22px; }
.m-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 69, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.m-pop-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
}
.m-pop-card p { margin: 0 0 14px; }
.m-main .tel-prefix { min-height: 44px; }
.m-main .tel-prefix-pop { width: min(320px, calc(100vw - 24px)) !important; }
.m-main .oc-account .mj-cc-label-btn,
.m-main .oc-account .club-search-flag { min-height: 44px; }
.m-main .oc-account-hero { gap: 14px; }
.m-main .oc-account .avatar-wrap,
.m-main .oc-account .avatar { width: 96px; height: 96px; }
.m-main .oc-account-actions .btn {
  width: auto;
  flex: 1 1 0;
  max-width: 220px;
}
.m-public { padding-bottom: 24px; }
.m-public-cta {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.m-public-cta .btn {
  flex: 1;
  min-height: 44px;
  width: auto;
}
.m-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.m-subnav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.m-subnav a.active {
  background: var(--green);
  color: #fff;
}
.m-body .home-layout {
  display: block;
}
.m-body .home-schools {
  position: static;
  max-height: none;
  margin-top: 16px;
}
.m-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;
}
.m-body.buddy-front .legal-footer {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  background: rgba(10, 36, 20, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin: 12px auto 8px;
  padding: 10px 18px;
}
.m-body.buddy-front .buddy-home .hero {
  padding: 14px 12px;
}
.m-body.buddy-front .legal-footer a {
  color: #fff;
}
.m-body.buddy-front .legal-footer .play-discover-dot {
  color: rgba(255, 255, 255, 0.75);
}
.m-body.buddy-front .m-main {
  padding: 10px 10px 24px;
}
.m-body .m-main:has(> .buddy-home),
.m-body .m-main:has(> .app-canvas) {
  padding-left: 10px;
  padding-right: 10px;
}
.m-body .buddy-home .home-apps {
  gap: 10px;
}
.m-body.buddy-front .m-switch {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  box-sizing: border-box;
}
.m-body.buddy-front .buddy-home .hero {
  background: rgba(10, 36, 20, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.m-body.buddy-front .buddy-home .hero-top {
  order: 0;
  margin-bottom: 10px;
}
.m-body.buddy-front .buddy-home .hero-lockup {
  margin: 0;
}
.m-body.buddy-front .buddy-home .hero-lockup img {
  height: 72px;
}
.m-body.buddy-front .buddy-home .hero-actions {
  order: 1;
  margin: 0 0 14px;
}
.m-body.buddy-front .buddy-home .hero-copy {
  order: 2;
}
.m-body.buddy-front .buddy-home .hero-copy p:not(.tagline) {
  font-size: 15px;
  line-height: 1.5;
}
.m-body.buddy-front .buddy-home .hero-copy p,
.m-body.buddy-front .buddy-home .hero-copy h2 {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.m-body.buddy-front .legal-footer {
  position: static;
  margin: 10px 0 0;
  padding: 4px 12px;
}
.m-body.buddy-front .legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 6px;
}
.m-body .hero {
  padding: 22px 16px;
  border-radius: 14px;
}
.m-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;
}
.m-body .hero h1 {
  font-size: 22px;
}
.m-body .hero .tagline {
  font-size: 16px;
}
.m-body .hero-logo {
  width: 52px;
  height: 52px;
}
.m-body .hero-brand {
  gap: 10px;
}
.m-body .hero-top {
  gap: 10px;
}
.m-body .hero-top .hero-actions {
  flex-direction: column;
  align-items: stretch;
}
.m-body .hero-top .hero-btn,
.m-body .hero-top .hero-actions .btn {
  width: auto;
  min-width: 132px;
  min-height: 40px;
  height: auto;
}
.m-body .grid-3 {
  grid-template-columns: 1fr;
}
.m-body .buddy-opt {
  display: none;
}
.m-public-cta {
  display: none;
}
.m-body .wrap {
  padding: 0;
}
.m-header .buddy-mark {
  font-size: 15px;
}
.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; }
.pwa-install .btn {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
}
@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;
}
@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;
}
.app-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
  width: 100%;
}
.app-sport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 108px;
  padding: 10px 6px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
  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: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}
.app-sport img[src*="/img/circles/"] {
  object-fit: cover;
  border-radius: 12px;
}
.canvas-pick .canvas-pick-join { top: 24px; font-size: 11px; padding: 3px 8px; }
.canvas-pick .canvas-pick-desc { font-size: 11px; }
.app-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--flag);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}
.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.app-list strong {
  color: var(--green-deep);
}
.app-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
@media (min-width: 768px) {
  .app-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .app-sport {
    min-height: 160px;
    font-size: 15px;
    padding: 14px 10px;
  }
  .app-sport img {
    width: 88px;
    height: 88px;
  }
  .app-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
