:root {
  --ink: #17364a;
  --muted: #56697a;
  --paper: #f4f8fa;
  --card: #ffffff;
  --cool-blue: #9dd7f1;
  --cool-blue-dark: #176486;
  --transformative-teal: #4f9994;
  --transformative-teal-dark: #185c5b;
  --wasabi: #e8f34a;
  --wasabi-dark: #727b00;
  --wasabi-ink: #666f00;
  --line: #d8e3e9;
  --persimmon: #f26b4a;
  --persimmon-dark: #c94a28;
  --persimmon-deep: #b03f20;
  --surface-nav: #faf9f5f2;
  --surface-sunken: #eef1ec;
  --surface-chip: #edf0eb;
  --on-cool-blue: #365b70;
  --scrim: #17251d99;
  --shadow-modal: 0 30px 90px #0004;
  --on-accent: #ffffff;
  --nav-accent: var(--transformative-teal-dark);
  --nav-accent-soft: #4f99942b;
  --nav-create: var(--wasabi);
  --nav-create-ink: var(--ink);
  --gutter: 2px;
  --t-2xs: 10px;
  --t-xs: 11px;
  --t-sm: 12px;
  --t-md: 14px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 27px;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--line); }
*::-webkit-scrollbar-thumb:hover { background: var(--muted); }
*::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:where(button, a, input, select):focus-visible { outline: 2px solid var(--transformative-teal-dark); outline-offset: 2px; }

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(157, 215, 241, 0.70), transparent 20%),
    radial-gradient(circle at 80% 80%, rgba(79, 153, 148, 0.18), transparent 24%),
    radial-gradient(circle at 70% 22%, rgba(232, 243, 74, 0.20), transparent 18%),
    linear-gradient(135deg, #f3f9fb 0%, #edf3f4 35%, #f9f7f2 100%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.9;
}

.orb-1 {
  width: 360px;
  height: 360px;
  left: 10%;
  top: 6%;
  background: rgba(157, 215, 241, 0.62);
}

.orb-2 {
  width: 420px;
  height: 420px;
  right: 10%;
  bottom: 10%;
  background: rgba(232, 243, 74, 0.28);
}

.orb-3 {
  width: 320px;
  height: 320px;
  left: 45%;
  bottom: 6%;
  background: rgba(242, 107, 74, 0.12);
}

.app-shell { position: relative; z-index: 1; width: min(100%, 430px); margin: auto; padding: 0 12px 96px; }
.topbar { height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.topbar-lead { display: flex; align-items: center; justify-self: start; }
.topbar-lead .icon-action { border: 0; background: transparent; }
.brand-menu-wrap { position: relative; display: flex; justify-content: center; }
/* Out of flow so the wordmark itself sits centred, not the wordmark plus the chevron.
   The nudge drops it from the line-box centre onto the x-height centre of the lettering. */
.brand-chevron { position: absolute; top: calc(50% + .12em); left: 100%; width: 15px; height: 15px; margin-left: 2px; color: var(--muted); transform: translateY(-50%); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.brand-menu-wrap .avatar-role-menu { right: auto; left: 50%; transform: translateX(-50%); }
.brand:disabled { cursor: default; opacity: 1; }
.brand:disabled .brand-chevron { display: none; }
.topbar-actions { display: flex; align-items: center; justify-self: end; gap: 10px; }
.topbar-actions .icon-action { border: 0; background: transparent; }
.topbar-actions .icon-action svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.topbar-create { display: none; }
.brand { position: relative; display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; font-size: var(--t-xl); font-weight: 800; letter-spacing: -.04em; text-decoration: none; cursor: pointer; }
.brand span { animation: brand-color-flow 8s ease-in-out infinite; }
.brand span:nth-child(2) { animation-delay: -2s; }
.brand span:nth-child(3) { animation-delay: -4s; }
.brand span:nth-child(4) { animation-delay: -6s; }
@keyframes brand-color-flow {
  0%, 100% { color: var(--cool-blue-dark); }
  25% { color: var(--transformative-teal-dark); }
  50% { color: var(--wasabi-dark); }
  75% { color: var(--persimmon-dark); }
}
.context-bar { position: relative; display: flex; flex: 0 0 auto; gap: 0; padding: 4px 0 0 6px; }
.category-toolbar.has-more .category-list { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); }
.context-chip + .context-chip::before { position: absolute; top: 5px; left: 0; height: 24px; width: 1px; background: #9fc6c280; content: ""; }
.context-chip { position: relative; display: grid; gap: 4px; justify-items: center; width: 46px; padding: 0; border: 0; background: transparent; color: var(--transformative-teal-dark); font-size: 9px; font-weight: 700; cursor: pointer; }
.context-chip .category-icon { background: var(--surface-chip); color: var(--transformative-teal-dark); box-shadow: none; }
.context-badge { position: absolute; top: -3px; right: -3px; display: grid; min-width: 16px; height: 16px; place-items: center; padding: 0 4px; border: 2px solid var(--paper); border-radius: 999px; background: var(--persimmon-dark); color: var(--on-accent); font-size: 9px; font-weight: 800; }
.sheet-note { margin: -4px 0 0; color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
.sheet-summary { margin: -4px 0 0; color: var(--transformative-teal-dark); font-size: var(--t-xs); font-weight: 700; }
.search-field.location-search { height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-sunken); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#location-search::-webkit-search-cancel-button, #location-search::-webkit-search-decoration { -webkit-appearance: none; }
#location-search-form .search-submit { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 0; border-radius: 999px; background: var(--transformative-teal-dark); color: var(--on-accent); cursor: pointer; }
#location-search-form .search-submit svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#location-search-form .search-submit:disabled { opacity: .5; cursor: default; }
.location-options { display: grid; gap: 6px; }
#location-search-form { display: flex; gap: 8px; margin-bottom: 12px; }
#location-search-form .search-field { flex: 1; min-width: 0; }
#location-search-form input { min-width: 0; }
.location-options .filter-group-title, .location-options .filter-group-title:not(:first-child) { margin: 4px 0 2px; }
.location-option { position: relative; display: flex; align-items: center; min-height: 48px; padding: 8px 34px 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.location-option:hover, .location-option.active { background: var(--surface-sunken); }
.location-option span { display: grid; gap: 2px; min-width: 0; }
.location-option strong { font-size: var(--t-sm); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-option small { color: var(--muted); font-size: var(--t-2xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-option.active::after { position: absolute; right: 13px; color: var(--transformative-teal-dark); font-weight: 800; content: "\2713"; }
.radius-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.radius-chip { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.radius-chip.active { border-color: var(--transformative-teal-dark); background: #4f999421; color: var(--transformative-teal-dark); }
#location-view { width: min(calc(100% - 24px), 400px); }
#location-view .filter-sheet { gap: 10px; padding: 22px; }
#location-view h2 { margin: 0; font-size: var(--t-lg); }
#location-view .location-options { gap: 2px; }
#location-view .location-option { min-height: 42px; padding-top: 5px; padding-bottom: 5px; }
#location-view .filter-group-title, #location-view .filter-group-title:not(:first-child) { margin: 6px 0 2px; }
#location-view .radius-list { gap: 6px; }
#location-view .radius-chip { min-height: 40px; border-radius: 11px; }
#location-view .sheet-summary { margin: 0; }
#location-view .primary-button { margin-top: 2px; padding: 12px; }
#location-view { width: 100%; gap: 12px; padding: 8px 8px 24px; }
#location-view h2 { margin-bottom: 4px; }
#location-view #location-search-form { align-items: center; gap: 0; margin: 0; padding: 4px; border: 1px solid #ffffffa6; border-radius: 16px; background: #ffffff80; }
#location-view .location-search { height: 40px; background: transparent; padding-inline: 10px; }
#location-view .search-submit { flex-basis: 36px; height: 36px; border-radius: 12px; }
#location-view #location-gps { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; color: var(--transformative-teal-dark); }
#location-gps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
#location-view #location-gps strong { font-size: 12px; font-weight: 600; }
#location-status { margin: -6px 8px 0; font-size: 11px; line-height: 1.5; }
#location-status:empty, #location-options:empty { display: none; }
#location-view .filter-group-title { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
#location-view .radius-list { gap: 4px; padding: 4px; border-radius: 14px; background: #ffffff66; }
#location-view .radius-chip { min-height: 40px; border: 0; border-radius: 10px; background: transparent; }
#location-view .radius-chip.active { background: var(--transformative-teal-dark); color: #fff; box-shadow: 0 2px 5px #17364a12; }
#location-view .sheet-summary { color: var(--muted); font-size: 11px; font-weight: 400; }
#location-view .primary-button { min-height: 46px; margin-top: 4px; border-radius: 14px; }
.location-credit { justify-self: center; color: var(--muted); font-size: 10px; text-decoration: none; }
/* Location and filter are pages now, so they carry the sheet's own stacking. */
.filter-page { display: grid; gap: 14px; align-content: start; padding-bottom: 24px; }
.filter-page h2 { margin: 0; font-size: var(--t-lg); }
.filter-sheet { display: grid; gap: 14px; }
.filter-sheet h2 { margin: 0; padding-right: 42px; }
.filter-scope { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-scope-chip { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.filter-scope-chip.active { border-color: var(--ink); background: var(--ink); color: var(--on-accent); }
.filter-scope-count { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.filter-group-title { margin: 0 0 8px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-group-title:not(:first-child) { margin-top: 16px; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.type-tile { display: grid; width: 100%; min-height: 68px; gap: 5px; place-items: center; padding: 8px 4px; border: 1px solid transparent; border-radius: 14px; background: var(--surface-sunken); color: var(--ink); cursor: pointer; }
.type-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.type-tile span { display: -webkit-box; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; font-size: 9px; font-weight: 700; line-height: 1.15; text-align: center; text-overflow: ellipsis; overflow-wrap: anywhere; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.type-tile.picked { border-color: var(--transformative-teal-dark); background: #4f999421; color: var(--transformative-teal-dark); }
.filter-more { margin: -2px 0 12px; padding: 0; border: 0; background: transparent; color: var(--transformative-teal-dark); font-size: var(--t-xs); font-weight: 800; cursor: pointer; }
.avatar-role-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; width: 116px; padding: 5px; border: 1px solid #ffffff94; border-radius: 16px; background: #ffffff3d; box-shadow: 0 12px 28px #17364a20, inset 0 1px 0 #fffffff2, inset 0 -1px 0 #ffffff38; -webkit-backdrop-filter: blur(9px) saturate(135%); backdrop-filter: blur(9px) saturate(135%); }
.avatar-role-menu[hidden] { display: none; }
.avatar-role-menu .role-option { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; min-height: 34px; padding: 5px 7px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.avatar-role-menu .role-option > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--visual, var(--cool-blue)); font-size: 10px; font-weight: 800; }
.avatar-role-menu .role-option strong { font-size: var(--t-xs); line-height: 1.1; }
.avatar-role-menu .role-option small { display: none; }
.avatar-role-menu .role-option.active { background: #ffffff8c; color: var(--transformative-teal-dark); }
.avatar-role-menu .role-option:hover { background: #ffffff5c; }
.avatar::after { position: absolute; inset: -6px; content: ""; }
.hero { padding: 4px 0 6px; }
.page-view { padding-top: 12px; }
.eyebrow { margin: 0 0 6px; color: var(--transformative-teal-dark); font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2 { letter-spacing: 0; }
h1 { margin: 0; font-size: var(--t-2xl); line-height: 1.12; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.section-heading.compact { margin-top: 0; }
.section-heading h2 { min-width: 0; margin: 0; overflow: hidden; font-size: var(--t-lg); text-overflow: ellipsis; white-space: nowrap; }
.section-heading > button, .section-heading > span { flex: 0 0 auto; }
#user-home .section-heading { margin: 8px 0 2px; }
.text-button { border: 0; background: none; color: var(--transformative-teal-dark); font-size: var(--t-sm); font-weight: 700; }
.category-toolbar { display: flex; align-items: start; min-width: 0; }
.category-list { display: flex; flex: 1 1 auto; gap: 7px; min-width: 0; padding: 4px 6px 4px 0; overflow-x: auto; scrollbar-width: none; }
.category-list::-webkit-scrollbar, .club-list::-webkit-scrollbar, .role-switcher::-webkit-scrollbar,
.quick-filters::-webkit-scrollbar, .interest-list::-webkit-scrollbar, .workspace-tabs::-webkit-scrollbar { display: none; }
.category { position: relative; display: grid; flex: 0 0 auto; gap: 4px; justify-items: center; width: 46px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 9px; font-weight: 700; transition: transform .18s ease; cursor: pointer; }
.category, .context-chip { grid-template-rows: 34px 12px; align-content: start; }
.category-icon { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--tone, var(--cool-blue-dark)); color: var(--on-accent); transition: box-shadow .18s ease, transform .18s ease; }
.category-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.category-name { overflow: hidden; max-width: 100%; color: var(--muted); line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
.category[data-tone="move"] { --tone: var(--cool-blue-dark); }
.category[data-tone="social"] { --tone: var(--persimmon-dark); }
.category[data-tone="grow"] { --tone: var(--transformative-teal-dark); }
.category[data-tone="escape"] { --tone: var(--wasabi-dark); }
.category[data-tone="give"] { --tone: var(--ink); }
.category[data-tone="all"] { --tone: var(--surface-chip); }
.category[data-tone="all"] .category-icon { border: 1px solid var(--line); color: var(--ink); }
.category[data-tone="all"].active .category-icon { border-color: transparent; }
.category.active .category-name { color: var(--ink); font-weight: 800; }
.category.active .category-icon { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--transformative-teal-dark); }
.category:active { transform: scale(.96); }
.activity-list { display: grid; gap: 10px; }
.recommendation-grid { display: flex; gap: 10px; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.recommendation-grid.is-empty { display: block; }
.recommendation-grid::-webkit-scrollbar { display: none; }
.recommendation-grid > .empty { width: 100%; }
.recommendation-grid .activity-card { position: relative; display: grid; flex: 0 0 min(48%, 260px); grid-template-columns: 1fr; gap: 0; min-width: 0; min-height: 148px; max-width: 260px; padding: 0 0 30px; overflow: hidden; border: 0; border-radius: 0 20px 0 20px; background: var(--card); box-shadow: 0 10px 22px -8px #17364a2e, 0 2px 8px #17364a12; box-shadow: 0 14px 26px -10px color-mix(in srgb, var(--visual, var(--cool-blue)) 70%, transparent), 0 2px 8px #17364a12; transform: none; scroll-snap-align: start; }
.recommendation-grid .activity-card:active { transform: scale(.985); }
.card-share { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; width: 28px; height: 28px; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
.card-share:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.card-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; filter: drop-shadow(0 1px 3px #17364a80); }
.recommendation-grid .activity-visual { position: absolute; z-index: 0; top: 0; right: 0; left: 0; width: 100%; height: 100px; border-radius: 0; background-image: linear-gradient(180deg, #17364a1c 0%, #17364a52 48%, var(--card) 100%), var(--photo-image); background-position: center, center; background-size: cover; font-size: var(--t-xl); box-shadow: none; }
.recommendation-grid .activity-visual::after { display: none; }
.recommendation-grid .activity-content { z-index: 1; display: flex; flex-direction: column; gap: 0; padding-top: 52px; min-width: 0; }
.recommendation-grid .activity-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 10px 0; }
.recommendation-grid .distance { position: absolute; left: 10px; bottom: 0; display: flex; align-items: center; height: 30px; margin-left: 0; }
.recommendation-grid .card-title { position: relative; z-index: 1; display: -webkit-box; min-height: 1.25em; margin: 2px 10px 2px; overflow: hidden; font-size: var(--t-sm); font-weight: 800; line-height: 1.25; text-overflow: ellipsis; text-shadow: 0 1px 0 #ffffff80; white-space: normal; line-clamp: 2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recommendation-grid .meta { margin: 0 10px; overflow: hidden; font-size: var(--t-2xs); line-height: 1.3; color: var(--muted); text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.recommendation-grid .availability { position: static; margin: 5px 10px 0; font-size: var(--t-2xs); font-weight: 700; }
.recommendation-grid .people { display: none; }
.recommendation-grid .activity-footer { display: block; margin: 0; }
.recommendation-grid .card-price { position: absolute; z-index: 1; right: 0; bottom: 0; display: grid; min-width: 58px; height: 30px; place-items: center; padding: 4px 10px 3px 12px; border: 0; border-radius: 16px 0 18px; background: #fbfce8; color: var(--wasabi-ink); font-size: var(--t-xs); font-weight: 800; box-shadow: inset 1px 1px 0 #ffffffe0, -2px -2px 8px #727b000d; text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.recommendation-indicator { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 12px; padding-top: 10px; }
.recommendation-indicator span { width: 5px; height: 5px; border-radius: 999px; background: #9fb0ba; opacity: .75; transition: width .22s ease, background .22s ease, opacity .22s ease; }
.recommendation-indicator span.active { width: 18px; background: var(--transformative-teal-dark); opacity: 1; }
.feed-list { display: grid; gap: 12px; }
.comment-inline { display: grid; gap: 8px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.comment-inline-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-inline-head strong { font-size: var(--t-sm); }
.comment-inline-close { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; }
.comment-inline-close svg { width: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.comment-inline .comment-list { max-height: 260px; padding: 2px 0; overflow-y: auto; }
.comment-inline .chat-composer { margin-top: 0; }
.comment-inline .empty { margin: 4px 0; padding: 12px 0; }
.comment-inline .chat-message { position: relative; padding-right: 28px; }
.comment-inline .chat-bubble { position: static; max-width: 100%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.comment-inline .comment-like { right: 0; bottom: 8px; }
.feed-card { padding: 14px; border-radius: 18px; background: #ffffffb8; box-shadow: 0 2px 10px #17364a0a; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.feed-create { flex: 0 0 34px; width: 34px; height: 34px; }
.feed-create svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.feed-head { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; }
.feed-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--visual); font-size: var(--t-2xs); font-weight: 800; }
.feed-head > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.feed-head strong { overflow: hidden; font-size: var(--t-sm); text-overflow: ellipsis; white-space: nowrap; }
.feed-head small { color: var(--muted); font-size: var(--t-2xs); }
.feed-more { position: relative; display: grid; align-self: start; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.feed-more::after { position: absolute; inset: -8px; content: ""; }
.feed-more svg { width: 16px; height: 16px; fill: currentColor; }
.feed-card h3 { margin: 10px 0 4px; font-size: var(--t-md); }
.feed-card > p { margin: 0 0 11px; color: var(--muted); font-size: var(--t-xs); line-height: 1.55; }
.feed-media { display: block; width: calc(100% + 28px); aspect-ratio: 4 / 5; height: auto; max-height: none; margin-inline: -14px; border-radius: 0; background: var(--surface-sunken); object-fit: cover; }
.feed-actions { display: flex; gap: 18px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.feed-action { display: inline-flex; gap: 6px; align-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.feed-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.feed-action.liked { color: var(--persimmon-dark); }
.feed-action.liked svg { fill: currentColor; stroke: currentColor; }
.activity-card { display: grid; width: 100%; grid-template-columns: 54px 1fr; gap: 11px; padding: 11px; border: 0; border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px #17364a14, 0 4px 12px #17364a0a; text-align: left; transition: transform .18s ease; cursor: pointer; }
.activity-card:active { transform: scale(.985); }
.activity-visual { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px 9px 15px 9px; color: var(--ink); background-color: var(--visual, var(--cool-blue)); background-image: linear-gradient(180deg, #17364a0d, #17364a45), var(--photo-image); background-position: center; background-size: cover; font-size: var(--t-lg); font-weight: 800; }
.activity-content { min-width: 0; }
.activity-topline { display: flex; justify-content: space-between; align-items: center; }
.pill { color: var(--transformative-teal-dark); font-size: var(--t-2xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.distance { flex: 0 0 auto; margin-left: 8px; color: var(--muted); font-size: var(--t-2xs); }
.card-title { display: block; margin: 6px 0 4px; overflow: hidden; font-size: var(--t-md); font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.meta { margin: 0; color: var(--muted); font-size: var(--t-xs); line-height: 1.45; }
.availability { display: inline-flex; align-items: center; gap: 5px; margin-top: 1px; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; }
.availability::before { width: 6px; height: 6px; border-radius: 50%; background: var(--persimmon); content: ""; }
.availability.direct::before { background: var(--transformative-teal); }
.availability.confirmed::before { background: var(--cool-blue-dark); }
.play-info { display: block; margin-top: 3px; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; line-height: 1.2; }
.activity-footer { display: flex; align-items: end; justify-content: space-between; margin-top: 8px; }
.people { display: grid; gap: 2px; color: var(--muted); font-size: var(--t-2xs); font-weight: 600; }
.people strong { color: var(--ink); font-size: var(--t-sm); }
.price-stack { display: grid; justify-items: end; gap: 2px; }
.slot-count { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; line-height: 1; }
.slot-count svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.card-price { color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
.empty { padding: 30px; border: 1px dashed var(--line); border-radius: 22px; text-align: center; color: var(--muted); }
.host-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding: 17px 18px; border-radius: 22px 12px 22px 12px; color: var(--ink); background: var(--cool-blue); }
.host-banner > div { min-width: 0; }
.host-banner h2 { margin: 0; overflow: hidden; font-size: var(--t-lg); text-overflow: ellipsis; white-space: nowrap; }
.host-banner .host-button { flex: 0 0 auto; }
.host-button { min-height: 34px; padding: 6px 11px; border: 0; border-radius: 8px; color: var(--on-accent); background: var(--persimmon-dark); font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.venue-list { display: flex; gap: 14px; margin-right: -16px; padding-right: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.venue-list::-webkit-scrollbar { display: none; }
.category-list, .recommendation-grid, .venue-list, .club-list, .quick-filters, .role-switcher, .workspace-tabs { cursor: grab; }
.category-list:active, .recommendation-grid:active, .venue-list:active, .club-list:active, .quick-filters:active, .role-switcher:active, .workspace-tabs:active { cursor: grabbing; }
.venue-card { position: relative; display: grid; flex: 0 0 268px; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: stretch; min-height: 0; padding: 6px 10px; overflow: hidden; border: 1px solid #ffffffc7; border-radius: 16px; background: var(--card); box-shadow: 0 10px 22px #17364a18, inset 0 1px #fff; text-align: left; cursor: pointer; }
.venue-logo { display: grid; width: 52px; min-height: 52px; align-self: stretch; place-items: center; border-radius: 12px; background-color: var(--visual, var(--cool-blue)); background-position: center; background-size: cover; color: #fff; font-size: 0; font-weight: 800; box-shadow: inset 0 1px 0 #ffffff80; }
.venue-body { display: grid; gap: 1px; min-width: 0; padding: 0 42px 0 0; }
.venue-type { color: var(--transformative-teal-dark); font-size: 8px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.venue-body strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.venue-body small { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.venue-location { display: flex; align-items: center; gap: 6px; }
.venue-location svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.venue-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 600; }
.venue-meta i { width: 1px; height: 18px; background: var(--line); }
.venue-slots { color: var(--transformative-teal-dark) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: -.01em; }
.venue-favorite { position: absolute; top: 10px; right: 10px; display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.venue-favorite svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.venue-favorite.active { color: var(--transformative-teal-dark); }
.venue-favorite.active svg { fill: currentColor; }
.venue-open { position: absolute; right: 10px; bottom: 10px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--transformative-teal-dark); background: #e8f2f1; }
.venue-open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.venue-card:hover .venue-open { background: var(--transformative-teal-dark); color: #fff; }
@media (max-width: 520px) {
  .venue-card { flex-basis: 268px; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; min-height: 0; padding: 6px 10px; border-radius: 16px; }
  .venue-logo { width: 52px; min-height: 52px; border-radius: 12px; }
  .venue-body { gap: 1px; padding: 0 42px 0 0; }
  .venue-type { font-size: 9px; letter-spacing: .08em; }
  .venue-body strong { font-size: 12px; }
  .venue-body small, .venue-meta { font-size: 10px; }
  .venue-slots { font-size: 12px !important; }
  .venue-favorite { top: 10px; right: 10px; width: 20px; height: 20px; padding: 0; }
  .venue-favorite svg { width: 12px; height: 12px; }
  .venue-open { right: 10px; bottom: 10px; width: 28px; height: 28px; }
  .venue-open svg { width: 14px; height: 14px; }
}
.club-list { display: flex; gap: 4px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
.club-card { display: grid; flex: 0 0 142px; gap: 7px; padding: 13px; border: 0; border-radius: 16px; background: var(--card); text-align: left; box-shadow: 0 2px 10px #17364a0d; }
.club-card strong { overflow: hidden; font-size: var(--t-sm); text-overflow: ellipsis; white-space: nowrap; }
.club-card small { color: var(--muted); font-size: var(--t-2xs); }
.club-managed-badge { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 999px; background: #4f999421; color: var(--transformative-teal-dark); font-size: 9px; font-weight: 800; line-height: 1; }
.club-create { align-content: start; border: 1.5px dashed var(--line); background: transparent; box-shadow: none; color: var(--transformative-teal-dark); order: -1; }
.club-create > span { background: none; border: 1.5px dashed currentColor; }
.club-create svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.club-create strong { color: var(--transformative-teal-dark); }
.collection-topbar { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 16px; }
.collection-tools { display: flex; align-items: center; gap: 8px; }
.collection-filter { width: 34px; height: 34px; }
.collection-filter svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.collection-topbar h1 { overflow: hidden; font-size: var(--t-lg); text-overflow: ellipsis; white-space: nowrap; }
.collection-list { display: grid; gap: 10px; margin: 0; padding: 0; overflow: visible; cursor: auto; }
.collection-list .venue-card, .collection-list .club-card { width: 100%; }
.collection-list .club-card { grid-template-columns: 44px 1fr; align-items: center; }
.collection-list .club-card > span { grid-row: 1 / 3; }
.partner-home { padding-top: 16px; }
.partner-heading { display: flex; gap: 12px; align-items: center; }
.partner-heading span { color: var(--muted); font-size: var(--t-2xs); font-weight: 700; }
.partner-heading h1 { margin-top: 3px; }
.partner-avatar { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 14px; background-color: var(--cool-blue); background-position: center; background-size: cover; color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
.queue-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 14px; background: var(--card); }
.queue-row div { display: grid; gap: 2px; }
.queue-row strong { font-size: var(--t-sm); }
.queue-row small { color: var(--muted); font-size: var(--t-2xs); }
.queue-row button { min-height: 32px; padding: 0 9px; border: 0; border-radius: 8px; background: var(--ink); color: var(--on-accent); font-size: var(--t-2xs); font-weight: 700; }
.venue-team-list { display: grid; gap: 8px; }
.venue-team-list .queue-row > div { display: flex; align-items: center; gap: 10px; }
.venue-team-list .queue-row div div { display: grid; gap: 2px; }
.venue-team-avatar, .venue-team-list .profile-photo-thumb { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--cool-blue); color: var(--ink); font-size: var(--t-xs); font-weight: 800; object-fit: cover; }
.venue-team-list .initials { text-transform: uppercase; }
.search-field { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border: 1px solid #ffffffb8; border-radius: 11px; background: #ffffff66; box-shadow: inset 0 1px 0 #ffffffb8, 0 4px 12px #17364a0a; -webkit-backdrop-filter: blur(10px) saturate(125%); backdrop-filter: blur(10px) saturate(125%); }
.search-field svg { flex: 0 0 18px; width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.explore-tabs { display: flex; gap: 4px; margin: 8px -2px 0; overflow-x: auto; scrollbar-width: none; }
.explore-tabs::-webkit-scrollbar { display: none; }
.explore-tabs button { position: relative; display: grid; flex: 1 1 0; min-width: 38px; height: 36px; place-items: center; border: 1px solid #ffffffb8; border-radius: 9px; background: #ffffff66; box-shadow: inset 0 1px 0 #ffffffb8, 0 5px 14px #17364a0d; color: var(--muted); -webkit-backdrop-filter: blur(10px) saturate(125%); backdrop-filter: blur(10px) saturate(125%); cursor: pointer; }
.explore-tabs button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.explore-tabs button.active { border-color: #ffffff80; color: var(--on-accent); background: #185c5be6; box-shadow: inset 0 1px 0 #ffffff70, 0 6px 16px #185c5b26; }
.explore-tabs button.active::after { display: none; }
.explore-days { display: flex; gap: 4px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.explore-days::-webkit-scrollbar { display: none; }
.explore-days button { display: grid; flex: 1 1 0; min-width: 0; gap: 1px; min-height: 38px; padding: 3px 2px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; }
.explore-calendar-control { position: relative; display: grid; width: 42px; min-width: 42px; min-height: 38px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--transformative-teal-dark); color: var(--on-accent); cursor: pointer; }
.explore-calendar-control svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; pointer-events: none; }
.explore-days button span { font-size: 9px; font-weight: 800; }
.explore-days button strong { color: var(--ink); font-size: 10px; line-height: 1; }
.explore-days button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.explore-days button.active { border-color: var(--transformative-teal-dark); background: var(--transformative-teal-dark); color: var(--on-accent); }
.explore-days button.active strong { color: var(--on-accent); }
.explore-list .section-heading h2, #explore-view > .section-heading h2 { font-size: var(--t-md); }
.explore-list { gap: 8px; }
.explore-list .activity-card { grid-template-columns: 48px 1fr; gap: 10px; min-height: 0; padding: 10px; }
.explore-list .activity-visual { width: 48px; height: 48px; border-radius: 13px 8px 13px 8px; font-size: var(--t-md); }
.explore-list .activity-content { display: grid; gap: 4px; align-content: start; }
.explore-list .card-title { margin: 0; font-size: var(--t-sm); line-height: 1.25; }
.explore-list .meta { font-size: var(--t-2xs); line-height: 1.3; }
.explore-list .play-info { margin: 0; line-height: 1.2; }
.explore-list .availability { margin-top: 0; font-size: var(--t-2xs); line-height: 1.2; }
.explore-list .activity-footer { align-items: end; margin-top: 2px; }
.explore-list .people { gap: 3px; line-height: 1.2; }
.explore-list .card-price { font-size: var(--t-xs); }
.quick-filters, .interest-list { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.filter-chip, .interest-list span { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.filter-chip.active { border-color: var(--transformative-teal-dark); color: var(--on-accent); background: var(--transformative-teal-dark); }
.result-count { color: var(--muted); font-size: var(--t-sm); }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: var(--surface-sunken); }
.segmented-control button { padding: 9px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.segmented-control.two { grid-template-columns: 1fr 1fr; margin-block: 4px 14px; }
.tab-count { display: inline-grid; min-width: 15px; height: 15px; padding: 0 4px; place-items: center; border: 1.5px solid var(--paper); border-radius: 999px; background: var(--transformative-teal-dark); color: var(--on-accent); font-size: var(--t-2xs); font-weight: 800; }
.tab-count:empty { display: none; }
.segmented-control button.active { color: var(--ink); background: var(--card); box-shadow: 0 2px 8px #17364a12; }
.profile-avatar { display: grid; flex: 0 0 64px; width: 64px; height: 64px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--cool-blue); background-size: cover; background-position: center; font-size: var(--t-lg); font-weight: 800; }
.avatar-edit { position: relative; flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }
.avatar-edit img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.avatar-pencil { position: absolute; right: -2px; bottom: -2px; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: var(--transformative-teal-dark); color: var(--on-accent); }
.avatar-pencil svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.avatar-edit:active { transform: scale(.96); }
.avatar-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.avatar-edit.lg .profile-avatar, .avatar-edit.lg img { width: 84px; height: 84px; }
.avatar-edit.lg .avatar-pencil { width: 28px; height: 28px; }
.avatar-edit.lg .avatar-pencil svg { width: 14px; height: 14px; }
#profile-view, .public-profile-view { padding-top: 8px; }
#profile-view .identity, .public-profile-view .identity { gap: 14px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #ffffffb8, #d9edf680); box-shadow: inset 0 1px 0 #ffffffd9, 0 8px 20px #17364a0d; }
#profile-view .profile-avatar, .public-profile-view .profile-avatar { box-shadow: 0 5px 12px #17364a1c, inset 0 1px 0 #ffffff80; }
#profile-view .identity > div:nth-child(2), .public-profile-view .identity > div:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
#profile-view .identity .stat-strip, .public-profile-view .identity .stat-strip { display: grid; flex: 0 0 auto; grid-template-columns: 1fr; gap: 8px; width: 58px; margin-left: auto; border: 0; text-align: right; }
#profile-view .identity .stat-strip > div, .public-profile-view .identity .stat-strip > div { display: grid; gap: 2px; padding: 0; }
#profile-view .identity .stat-strip > div + div, .public-profile-view .identity .stat-strip > div + div { border-left: 0; }
#profile-view .identity .stat-strip strong, .public-profile-view .identity .stat-strip strong { font-size: var(--t-md); line-height: 1; }
#profile-view .identity .stat-strip span, .public-profile-view .identity .stat-strip span { font-size: 10px; white-space: nowrap; }
.profile-bio { max-width: 34em; margin: 8px 2px 12px; color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
.role-switcher { display: flex; gap: 7px; margin: -8px 0 8px; overflow-x: auto; scrollbar-width: none; }
.role-switcher button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; }
.role-switcher button.active { border-color: var(--ink); background: var(--ink); color: var(--on-accent); }
.profile-tools { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; }
.profile-tools .text-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff66; }
.profile-tools button:empty { display: none; }
.profile-tools a.text-button { display: inline-flex; align-items: center; color: var(--ink); font-size: var(--t-sm); font-weight: 700; text-decoration: none; }
.role-note { margin: -6px 0 0; color: var(--muted); font-size: var(--t-2xs); line-height: 1.45; }
#intent-dialog { width: min(calc(100% - 40px), 320px); border-radius: 20px; }
.intent-dialog { padding: 18px; }
.intent-dialog h2 { margin-bottom: 12px; font-size: var(--t-lg); }
.intent-list { display: grid; gap: 6px; }
.intent-list button { display: grid; gap: 2px; min-height: 52px; padding: 10px 12px; border: 1px solid #ffffff8a; border-radius: 14px; background: #ffffff5c; text-align: left; cursor: pointer; }
.intent-list button:hover { background: #ffffff8f; }
.intent-list strong { font-size: var(--t-sm); }
.intent-list span { color: var(--muted); font-size: var(--t-2xs); line-height: 1.4; }
.profile-section { padding-top: 18px; }
/* Sub-pages open straight into their content, matching the chat inbox. */
.settings-view .profile-section { padding-top: 0; }
.profile-section + .profile-section { margin-top: 16px; border-top: 1px solid var(--line); }
.profile-section .section-heading { margin: 0 0 8px; }
.profile-activity { display: grid; gap: 14px; padding: 16px; border: 1px solid #ffffffb8; border-radius: 18px; background: #ffffff75; box-shadow: inset 0 1px 0 #ffffffc7, 0 5px 14px #17364a0d; }
.profile-activity .section-heading { margin: 0; }
.profile-group { min-width: 0; }
.profile-group + .profile-group { padding-top: 13px; border-top: 1px solid var(--line); }
.profile-group h3 { margin: 0; color: var(--muted); font-size: var(--t-xs); font-weight: 800; }
.profile-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-group-heading .text-button { padding: 0; font-size: var(--t-xs); }
#profile-clubs .profile-group-heading h3 { color: var(--ink); font-size: var(--t-sm); letter-spacing: -.01em; }
#profile-club-count { padding: 4px 8px; border-radius: 999px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-2xs); font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1; }
#profile-clubs .club-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; overflow: visible; }
#profile-clubs .club-card { width: 100%; min-width: 0; }
.profile-activity .interest-list { margin-top: 8px; }
.interest-item { display: grid; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); transition: background .18s ease, color .18s ease, border-color .18s ease; cursor: pointer; }
.interest-list .interest-item { flex-basis: 48px; width: 48px; height: 48px; border-radius: 50%; }
.interest-item svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.interest-item.active { border-color: var(--transformative-teal-dark); background: #4f999421; color: var(--transformative-teal-dark); }
.interest-item:active { transform: scale(.94); }
.interest-picker { display: grid; gap: 16px; }
.interest-picker h2 { margin-bottom: 0; }
.interest-picker-tabs { display: flex; gap: 7px; }
.interest-picker-tabs button { padding: 8px 11px; border: 0; border-radius: 999px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.interest-picker-tabs button.active { background: var(--transformative-teal-dark); color: var(--on-accent); }
.interest-picker-tabs span { margin-left: 3px; }
.interest-picker-groups { display: grid; gap: 18px; }
.interest-picker-groups section { display: grid; gap: 8px; }
.interest-picker-groups h3 { margin: 0; color: var(--muted); font-size: var(--t-xs); }
.interest-option-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.interest-option { display: grid; gap: 6px; min-height: 72px; padding: 9px 4px; place-items: center; border: 1px solid transparent; border-radius: 13px; background: var(--surface-sunken); cursor: pointer; }
.interest-option svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.interest-option strong { overflow: hidden; max-width: 100%; font-size: var(--t-2xs); text-overflow: ellipsis; white-space: nowrap; }
.interest-option.selected { border-color: var(--transformative-teal-dark); background: #4f999421; color: var(--transformative-teal-dark); }
.skill-section #skill-list:not(:empty) { margin-top: 9px; }
.skill-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #ffffff80; }
.skill-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 6px 7px 6px 6px; }
.skill-open { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; padding: 4px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.skill-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--cool-blue); color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
#public-skill-section { margin-top: 16px; }
#public-skill-list { display: grid; gap: 8px; }
#public-skill-list .skill-open { cursor: default; }
.skill-summary { display: grid; gap: 1px; }
.skill-summary strong { font-size: var(--t-sm); }
.skill-summary small { color: var(--muted); font-size: var(--t-2xs); }
.skill-edit { padding: 6px 9px; border: 0; border-radius: 8px; background: var(--surface-sunken); color: var(--transformative-teal-dark); font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.kudos-block { padding: 0 11px 11px; }
.kudos-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kudos-list span { padding: 7px 9px; border-radius: 999px; background: var(--wasabi); color: var(--ink); font-size: var(--t-2xs); font-weight: 700; }
.kudos-list strong { margin-left: 3px; }
.skill-detail { display: grid; gap: 18px; }
.skill-detail-hero { display: grid; justify-items: center; gap: 5px; padding-top: 4px; text-align: center; }
.skill-detail-icon { display: grid; width: 58px; height: 58px; margin-bottom: 3px; place-items: center; border-radius: 50%; background: var(--cool-blue); font-size: var(--t-xl); font-weight: 800; }
.skill-detail-hero h2 { margin: 0; }
.skill-detail-hero > span:last-child { color: var(--muted); font-size: var(--t-xs); }
.skill-detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 0; border-block: 1px solid var(--line); text-align: center; }
.skill-detail-stats div, .skill-detail-stats button { display: grid; gap: 3px; padding: 0; border: 0; background: transparent; text-align: center; cursor: default; }
.skill-detail-stats button { color: var(--transformative-teal-dark); cursor: pointer; }
.skill-detail-stats > * + * { border-left: 1px solid var(--line); }
.skill-detail-stats strong { font-size: var(--t-lg); }
.skill-detail-stats span { color: var(--muted); font-size: var(--t-2xs); }
.skill-detail-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 11px; background: var(--surface-sunken); }
.skill-detail-tabs button { padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.skill-detail-tabs button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px #17364a12; }
.skill-summary-panel { display: grid; gap: 12px; }
.skill-match-history { display: grid; gap: 8px; }
.skill-match-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skill-match-heading h3 { margin: 0; font-size: var(--t-sm); }
.skill-match-heading span { color: var(--muted); font-size: var(--t-2xs); }
#skill-match-list { display: grid; }
#skill-match-list article { position: relative; display: grid; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.match-title { display: flex; justify-content: space-between; gap: 10px; }
.match-title strong { font-size: var(--t-xs); }
.match-title span { color: var(--muted); font-size: var(--t-2xs); }
.match-players { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; padding-right: 48px; }
.match-players > b { color: var(--ink); font-size: var(--t-sm); }
.match-side { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.match-side.opponent { justify-items: end; text-align: right; }
.match-side small { overflow: hidden; max-width: 100%; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.match-avatars { display: flex; padding-left: 5px; }
.match-avatars i, .match-avatars img { display: grid; width: 26px; height: 26px; margin-left: -5px; place-items: center; border: 2px solid var(--card); border-radius: 50%; background: hsl(calc(185 + var(--avatar-index) * 58) 55% 78%); color: var(--ink); font-size: 8px; font-style: normal; font-weight: 800; object-fit: cover; }
.match-result { position: absolute; right: 0; bottom: 25px; font-size: var(--t-2xs); font-weight: 800; }
.match-result.win { color: var(--transformative-teal-dark); }
.match-result.loss { color: var(--persimmon-deep); }
.skill-coaching-panel { display: grid; gap: 8px; }
.coaching-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 13px; }
.coach-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--cool-blue); font-size: var(--t-xs); font-weight: 800; }
.coach-avatar.alt { background: var(--wasabi); }
.coaching-card > div { display: grid; gap: 2px; min-width: 0; }
.coaching-card strong { font-size: var(--t-xs); }
.coaching-card span, .coaching-card small { overflow: hidden; color: var(--muted); font-size: var(--t-2xs); text-overflow: ellipsis; white-space: nowrap; }
.coaching-card button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--transformative-teal-dark); font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.skill-detail-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--surface-sunken); }
.skill-detail-section label { color: var(--muted); font-size: var(--t-xs); }
.skill-detail-section select { max-width: 170px; padding: 6px 28px 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-size: var(--t-xs); font-weight: 700; }
.skill-detail-kudos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.skill-detail-kudos div { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; }
.skill-detail-kudos div:first-child { grid-column: span 2; border-color: #dce82d; background: #f4fa8d66; }
.skill-detail-kudos strong { font-size: var(--t-xs); }
.skill-detail-kudos span { color: var(--muted); font-size: var(--t-2xs); }
.reputation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.reputation-grid div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
.reputation-grid strong { font-size: var(--t-md); }
.reputation-grid span { color: var(--muted); font-size: var(--t-2xs); }
.profile-settings { display: grid; gap: 6px; }
.profile-setting-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 52px; padding: 7px 4px; border: 0; border-radius: 12px; background: #ffffff66; color: var(--ink); text-align: left; cursor: pointer; }
.setting-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--surface-sunken); color: var(--transformative-teal-dark); }
.setting-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.profile-setting-row > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.profile-setting-row strong { font-size: var(--t-sm); }
.profile-setting-row small { color: var(--muted); font-size: var(--t-2xs); }
.profile-setting-row > b { display: grid; width: 22px; height: 22px; place-items: center; color: var(--muted); }
.profile-setting-row > b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.danger-row { color: var(--persimmon-deep); }
.danger-row small { color: var(--muted); }
.settings-group { display: grid; gap: 5px; }
.settings-group + .settings-group { margin-top: 14px; }
.settings-group-title { padding: 4px 4px 2px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.setting-toggle-row { cursor: pointer; }
.setting-switch { position: relative; display: block; width: 34px; height: 20px; margin-right: 7px; border-radius: 999px; background: var(--line); transition: background .18s ease; }
.setting-switch::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px #17364a26; content: ""; transition: transform .18s ease; }
.setting-switch.active { background: var(--transformative-teal-dark); }
.setting-switch.active::after { transform: translateX(14px); }
.detail-view { position: relative; padding-top: 0; }
.detail-event-header { position: absolute; z-index: 2; top: 14px; right: 14px; left: 14px; display: flex; align-items: center; gap: 10px; }
.detail-event-header .back-button { flex-shrink: 0; margin: 0; }
.detail-event-group { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0; border: 0; background: transparent; color: #fff; text-shadow: 0 1px 5px #17364a; text-align: left; cursor: pointer; }
.detail-event-group strong { overflow: hidden; font-size: var(--t-sm); text-overflow: ellipsis; white-space: nowrap; }
.detail-host-menu-wrap { position: relative; margin-left: auto; }
.detail-host-menu-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #ffffffb8; border-radius: 50%; background: #ffffffd9; color: var(--ink); box-shadow: 0 4px 12px #17364a20; cursor: pointer; }
.detail-host-menu-button svg { width: 18px; fill: currentColor; }
.detail-host-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 4; display: grid; min-width: 190px; overflow: hidden; border: 1px solid #d6e3e6; border-radius: 14px; background: var(--card); box-shadow: 0 12px 28px #17364a26; }
.detail-host-menu button { min-height: 42px; padding: 0 14px; border: 0; border-bottom: 1px solid #edf3f4; background: transparent; color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 750; text-align: left; cursor: pointer; }
.detail-host-menu button:last-child { border-bottom: 0; }
.detail-host-menu button:hover { background: var(--surface-chip); }
.detail-host-menu button.danger { color: #b3261e; }
.detail-cover { background-color: var(--visual, var(--cool-blue)); background-image: linear-gradient(180deg, #17364a12, #17364a52), var(--photo-image); background-position: center; background-size: cover; }
.back-button { position: relative; display: grid; width: 32px; height: 32px; margin-bottom: 6px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #ffffff9e; }
.detail-view > .back-button { position: absolute; z-index: 2; top: 14px; left: 14px; margin: 0; border-color: #ffffffb8; background: #ffffffd9; box-shadow: 0 4px 12px #17364a20; }
.back-button::after, .dialog-close::after { position: absolute; inset: -6px; content: ""; }
.back-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.detail-cover { position: relative; display: grid; height: 188px; place-items: center; border-radius: 0 0 24px 24px; background-color: var(--visual, var(--cool-blue)); background-image: linear-gradient(180deg, #17364a18, #17364a4d), var(--photo-image); background-position: center; background-size: cover; font-size: 48px; font-weight: 800; }
.detail-cover-copy { position: absolute; right: 18px; bottom: 18px; left: 18px; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 3px 12px; color: #fff; text-shadow: 0 2px 10px #17364a; }
.detail-cover-category { grid-column: 1 / -1; font-size: var(--t-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-cover-copy strong { grid-column: 1 / -1; max-width: 100%; overflow: hidden; font-size: clamp(20px, 6vw, 28px); line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.detail-cover-copy small { overflow: hidden; font-size: var(--t-xs); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.detail-cover-time { justify-self: end; color: #ffffffdf; font-size: var(--t-2xs) !important; }
.detail-title { padding: 18px 4px 14px; }
.detail-title { display: none; }
.detail-title h1 { margin-top: 6px; font-size: clamp(22px, 6vw, 28px); line-height: 1.12; }
.detail-title p { margin: 7px 0 0; color: var(--muted); font-size: var(--t-sm); }
.detail-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.detail-tabs button { min-height: 42px; padding: 0 4px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.detail-tabs button.active { border-bottom-color: var(--transformative-teal-dark); color: var(--transformative-teal-dark); }
.detail-tab-panel { padding: 10px 4px 18px; }
.participant-preview { display: grid; gap: 10px; min-height: 110px; padding: 12px 12px 10px; border-radius: 18px; background: #ffffff80; }
.participant-add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.participant-add-form input { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: var(--t-sm); }
.participant-add-form button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--transformative-teal-dark); color: #fff; font: inherit; font-size: var(--t-sm); font-weight: 800; cursor: pointer; }
.participant-summary { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.participant-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.participant-card { display: grid; gap: 6px; width: 100%; min-width: 0; padding: 8px 5px 10px; border: 1px solid #ffffffb8; border-radius: 12px; background: #ffffff99; color: inherit; text-align: center; cursor: pointer; align-content: start; }
.participant-guest { cursor: default; }
.participant-remove { min-height: 24px; padding: 0 8px; border: 0; border-radius: 999px; background: #fee2e2; color: #991b1b; font: inherit; font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.participant-card > span { display: grid; width: 32px; height: 32px; margin: 0 auto; place-items: center; border-radius: 50%; background: var(--cool-blue); color: var(--ink); font-size: var(--t-2xs); font-weight: 800; }
.participant-card strong { width: 100%; overflow: hidden; font-size: var(--t-2xs); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.participant-more > span { background: var(--surface-chip); color: var(--transformative-teal-dark); }
.participant-preview p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.detail-tab-action { margin-top: 10px; }
.detail-empty { padding: 32px 12px; text-align: center; }
.match-list { display: grid; }
.match-row { padding: 11px 0; border-bottom: 1px solid var(--line); }
.match-row:last-child { border-bottom: 0; }
.match-row .match-players { padding-right: 0; }
.match-row .match-players > b { font-size: var(--t-xs); }
.match-score { display: flex; align-items: center; justify-content: center; gap: 5px; }
.match-score > b { color: var(--muted); font-size: var(--t-xs); }
.match-score input { width: 34px; min-height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-size: var(--t-sm); font-weight: 800; text-align: center; outline: 0; }
.match-score input:focus { border-color: var(--transformative-teal-dark); }
.match-score input::-webkit-outer-spin-button, .match-score input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.match-score input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.match-score.readonly strong { display: grid; min-width: 34px; min-height: 34px; place-items: center; border-radius: 9px; background: var(--surface-sunken); color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
.match-score-note { margin: 10px 0 0; color: var(--muted); font-size: var(--t-2xs); text-align: center; }
.match-round-list { display: grid; gap: 12px; }
.match-round { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 1px 3px #17364a12; }
.match-round-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; }
.match-round-head strong { color: var(--ink); font-size: var(--t-xs); letter-spacing: .04em; }
.match-round-check { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--surface-sunken); color: transparent; }
.match-round-check.played { background: var(--wasabi); color: var(--ink); }
.match-round-check svg { width: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.match-round-body { display: grid; padding: 6px 12px 10px; }
.match-team-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; }
.match-team-line:first-child { border-bottom: 1px dashed var(--line); }
.match-team-names { overflow: hidden; color: var(--muted); font-size: var(--t-xs); text-overflow: ellipsis; white-space: nowrap; }
.match-team-line.winner .match-team-names { color: var(--ink); font-weight: 700; }
.match-team-score { display: grid; min-width: 30px; min-height: 26px; place-items: center; padding: 0 6px; border-radius: 7px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-xs); font-weight: 800; }
.match-team-line.winner .match-team-score { background: var(--ink); color: var(--paper); }
.match-team-line.loser { opacity: .45; }
.match-round-edit { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px 10px; border-top: 1px dashed var(--line); }
.match-round-edit b { color: var(--muted); font-size: var(--t-xs); }
.match-round-edit input { width: 40px; min-height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: var(--t-sm); font-weight: 800; text-align: center; outline: 0; }
.match-round-edit input:focus { border-color: var(--transformative-teal-dark); }
.match-round-edit input::-webkit-outer-spin-button, .match-round-edit input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.match-round-edit input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.match-round-done { min-height: 32px; margin-left: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.match-round-done:disabled { cursor: default; opacity: .4; }
.match-round-done.is-done { border-color: transparent; background: var(--wasabi); }
.match-subtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: -10px -4px 10px; padding: 0 4px 8px; border-bottom: 1px solid var(--line); }
.match-subtabs button { min-height: 34px; padding: 0 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; cursor: pointer; }
.match-subtabs button.active { border-bottom-color: var(--transformative-teal-dark); color: var(--transformative-teal-dark); box-shadow: none; }
.match-standings { display: grid; gap: 2px; }
.standings-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 40px 44px 40px; gap: 6px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: var(--t-xs); }
.standings-row:last-child { border-bottom: 0; }
.standings-head { color: var(--muted); font-size: var(--t-2xs); font-weight: 700; text-transform: uppercase; }
.standings-row span:nth-child(n+3) { text-align: center; }
.standings-rank { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--surface-sunken); color: var(--muted); font-size: 9px; font-weight: 800; }
.standings-row:first-of-type:not(.standings-head) .standings-rank, .standings-head + .standings-row .standings-rank { background: var(--wasabi); color: var(--ink); }
.standings-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.event-chat { display: grid; gap: 4px; }
.event-chat-log { max-height: 340px; overflow: auto; padding-right: 2px; }
#host-dm-view { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 58px); min-height: 240px; }
.host-dm-header { display: flex; align-items: center; gap: 10px; padding: 12px 2px 14px; border-bottom: 1px solid var(--line); }
.host-dm-header .back-button { flex-shrink: 0; margin: 0; }
.host-dm-header h1 { margin: 0; font-size: var(--t-md); line-height: 1.4; }
.host-dm-header small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--t-xs); }
#host-follow { margin-left: auto; flex-shrink: 0; }
.follow-club-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.follow-club-row > span:last-child { display: grid; gap: 4px; }
.follow-club-row small { color: var(--muted); }
.following-empty { padding: 24px 4px; color: var(--muted); font-size: var(--t-sm); }
.chat-inbox-view { padding-top: 12px; }
.chat-inbox-view .section-heading { margin-top: 0; margin-bottom: 10px; }
.chat-inbox-view h1 { font-size: var(--t-xl); }
.chat-inbox-view .result-count { align-self: end; }
.chat-inbox-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-inbox-head .chat-filter-tabs { flex: 1; min-width: 0; margin: 0; border-bottom: 0; }
.chat-inbox-head #new-chat-button { flex: 0 0 auto; }
/* Compact glass box, matching the bottom nav rather than the wide default sheet. */
#new-chat-dialog { width: min(calc(100% - 40px), 300px); border-radius: 18px; }
#new-chat-dialog .dialog-card { padding: 16px; }
#new-chat-dialog .dialog-close { top: 10px; right: 10px; width: 26px; height: 26px; }
#new-chat-dialog .dialog-close svg { width: 12px; height: 12px; }
#new-chat-dialog .action-list { max-height: 244px; overflow-y: auto; }
#new-chat-dialog .action-list button { min-height: 42px; padding: 0 8px; border-radius: 10px; }
#new-chat-dialog .new-chat-search { background: #ffffff8f; }
#new-chat-dialog .action-list button:hover { background: #ffffff70; }
.new-chat-search { width: 100%; min-height: 40px; margin: 4px 0 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: var(--t-sm); outline: 0; }
.new-chat-search:focus { border-color: var(--transformative-teal-dark); }
.chat-filter-tabs { display: flex; gap: 18px; margin: 0 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chat-filter-tabs::-webkit-scrollbar { display: none; }
.chat-filter-tabs button { flex: 0 0 auto; min-height: 38px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.chat-filter-tabs button.active { border-bottom-color: var(--transformative-teal-dark); color: var(--transformative-teal-dark); }
.chat-room-list { display: grid; gap: 0; }
.chat-room-row { --swipe-x: 0px; position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 4px; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; touch-action: pan-y; transition: transform .18s ease, opacity .18s ease, background .18s ease; transform: translateX(var(--swipe-x)); }
.chat-room-row > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.chat-room-row strong, .chat-room-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-row strong { font-size: var(--t-sm); }
.chat-room-row small, .chat-room-row time { color: var(--muted); font-size: var(--t-2xs); }
.chat-room-avatar { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: var(--visual, var(--cool-blue)); color: var(--ink); font-size: var(--t-xs); font-weight: 800; overflow: hidden; }
button.chat-room-avatar { cursor: pointer; }
.chat-mute { margin-left: auto; display: grid; width: 34px; height: 34px; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.chat-mute svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.chat-mute .chat-mute-off, .chat-mute[aria-pressed="true"] .chat-mute-on { display: none; }
.chat-mute[aria-pressed="true"] .chat-mute-off { display: block; }
.chat-mute[aria-pressed="true"] { color: var(--persimmon-deep); }
.chat-room-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-swipe-label { position: absolute; top: 0; bottom: 0; display: grid; min-width: 72px; place-items: center; color: #fff; font-size: var(--t-xs); font-weight: 900; opacity: 0; transition: opacity .16s ease; pointer-events: none; }
.chat-swipe-delete { right: 0; background: var(--persimmon-dark); }
.chat-swipe-hide { left: 0; background: var(--transformative-teal-dark); }
.chat-room-row.swipe-left .chat-swipe-delete, .chat-room-row.swipe-right .chat-swipe-hide { opacity: 1; }

.chat-unread-badge { position: absolute; right: 2px; bottom: 10px; display: grid; min-width: 17px; height: 17px; padding: 0 5px; place-items: center; border-radius: 999px; background: var(--persimmon-dark); color: var(--on-accent); font-size: 10px; line-height: 1; }
.chat-room-view { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 58px); min-height: 240px; }
.chat-room-view #chat-room-log { min-height: 0; overflow-y: auto; padding: 20px 2px; }
.chat-system { justify-self: center; margin: 4px 0; padding: 5px 9px; border-radius: 999px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-2xs); }
.explore-filters { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin: 9px 0 5px; padding-bottom: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.explore-filters::-webkit-scrollbar { display: none; }
.explore-filters label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--muted); font-size: var(--t-xs); white-space: nowrap; }
.explore-filters label > span { display: none; }
.explore-filters select { max-width: 116px; min-height: 30px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); font: inherit; }
.explore-filters input[type="checkbox"] { margin: 0; accent-color: var(--transformative-teal-dark); }
.explore-filters [hidden] { display: none !important; }
.explore-filter-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 24px; padding: 0; line-height: 1.2; white-space: nowrap; }
.explore-filter-button svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.explore-filter-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#explore-types { max-width: 100%; }
#explore-filter-form { display: grid; gap: 16px; }
#explore-filter-form h2 { margin: 0 28px 4px 0; }
#explore-filter-form > label:not(.check-row) { display: grid; gap: 6px; color: var(--muted); font-size: var(--t-sm); }
#explore-filter-form select { width: 100%; min-width: 0; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); }
.explore-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.explore-filter-actions .primary-button { flex: 1; }
.pending-event > .role-note { margin: 4px 0 8px; }
.host-dm-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
#host-dm-log .chat-bubble { padding: 10px 12px; }
#host-dm-log .chat-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.host-dm-time { justify-self: end; color: var(--muted); font-size: var(--t-2xs); }
#host-dm-log { min-height: 0; overflow-y: auto; padding: 20px 2px; }
#host-dm-log > .role-note { align-self: center; margin: 20px 0; text-align: center; font-size: var(--t-xs); }
#host-dm-form { gap: 8px; margin: 0; padding: 10px 0; background: transparent; }
#host-dm-form input { height: 44px; background: #ffffffb3; }
#host-dm-form .chat-send { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; }
.event-chat-form { margin-top: 4px; }
.compact-detail-row { padding-block: 12px; }
.club-view { padding-top: 0; }
.club-cover { position: relative; height: 168px; margin: 0 -16px; overflow: hidden; background: linear-gradient(135deg, var(--visual, var(--cool-blue)), #ffffffb8); }
.club-cover.has-photo { background-position: center; background-size: cover; }
.club-cover.has-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, #17364a4d 0%, #17364a0d 45%, #17364a00 100%); content: ""; pointer-events: none; }
.back-button.over { position: absolute; z-index: 3; top: 12px; left: 16px; margin: 0; border-color: #ffffffb0; background: #ffffffd6; }
.club-cover .venue-share-button { z-index: 3; top: 12px; right: 16px; }
.club-head { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px var(--gutter) 16px; }
.club-avatar-wrap { position: relative; width: 56px; height: 56px; margin-top: -34px; align-self: start; }
.club-head .club-avatar { width: 56px; height: 56px; border: 3px solid var(--paper); border-radius: 18px; background-position: center; background-size: cover; font-size: var(--t-lg); }
.club-avatar-edit { position: absolute; right: -5px; bottom: -5px; display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: var(--transformative-teal-dark); color: var(--on-accent); box-shadow: 0 3px 8px #17364a2e; cursor: pointer; }
.club-avatar-edit::after { position: absolute; inset: -6px; content: ""; }
.club-avatar-edit svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.club-head-text { min-width: 0; }
.club-head-text h1 { overflow: hidden; font-size: var(--t-lg); text-overflow: ellipsis; white-space: nowrap; }
.club-head-text p { margin: 3px 0 0; min-width: 0; overflow: hidden; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.privacy-chip { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; background: var(--surface-chip); color: var(--muted); font-size: var(--t-2xs); font-weight: 800; text-transform: uppercase; }
.club-head-actions { display: flex; align-items: center; gap: 8px; }
#club-view > .stat-strip { margin-top: -4px; }
#club-view > .stat-strip > div { padding: 8px 6px; }
#club-view > .stat-strip strong { font-size: var(--t-sm); line-height: 1.1; }
#club-view > .stat-strip span { font-size: 9px; line-height: 1.1; }
#club-activity-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.club-activity-tabs { display: flex; gap: 6px; }
.club-activity-tabs button, .club-activity-filter { min-height: 32px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff70; color: var(--muted); font-size: var(--t-xs); font-weight: 800; cursor: pointer; }
.club-activity-tabs button { padding: 0 13px; }
.club-activity-tabs button.active { border-color: transparent; background: var(--transformative-teal-dark); color: var(--on-accent); }
.club-activity-filter { position: relative; display: grid; width: 34px; padding: 0; place-items: center; }
.club-activity-filter svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.club-activity-filter span { position: absolute; top: -3px; right: -3px; display: grid; min-width: 15px; height: 15px; padding: 0 3px; place-items: center; border-radius: 999px; background: var(--persimmon-dark); color: var(--on-accent); font-size: 9px; line-height: 1; }
#club-activities .price-stack { min-width: 44px; justify-items: center; }
.icon-action, .chat-icon { position: relative; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--transformative-teal-dark); cursor: pointer; }
.icon-action { width: 36px; height: 36px; }
.icon-action::after { position: absolute; inset: -4px; content: ""; }
.icon-action svg, .chat-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.icon-action.done { border-color: transparent; background: #4f999421; cursor: default; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.member-section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; color: var(--ink); }
.member-section-head strong { font-size: var(--t-sm); }
.member-section-head span { padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: var(--t-2xs); font-weight: 800; }
.member-tile { display: grid; gap: 5px; justify-items: center; min-width: 0; }
.member-avatar { display: grid; width: 100%; max-width: 64px; place-items: center; aspect-ratio: 1; border-radius: 16px; background: var(--cool-blue); color: var(--ink); font-size: var(--t-md); font-weight: 800; }
.member-tile strong { max-width: 100%; overflow: hidden; font-size: var(--t-xs); text-overflow: ellipsis; white-space: nowrap; }
.member-tile small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: var(--t-2xs); text-overflow: ellipsis; white-space: nowrap; }
.member-divider { height: 2px; margin: 16px 0; border-radius: 999px; background: var(--line); }
.member-section-head + .member-grid small { color: var(--transformative-teal-dark); font-weight: 800; }
.member-more { margin: 14px 0 0; color: var(--muted); font-size: var(--t-xs); text-align: center; }
.join-request-list { display: grid; gap: 8px; }
.join-request { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--card); }
.join-request .member-avatar { width: 42px; border-radius: 12px; }
.join-request > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.join-request strong { overflow: hidden; font-size: var(--t-xs); text-overflow: ellipsis; white-space: nowrap; }
.join-request small { color: var(--muted); font-size: var(--t-2xs); }
.join-request-actions { display: flex; gap: 5px; }
.join-request-actions button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--transformative-teal-dark); font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.join-request-actions button:last-child { color: var(--persimmon-deep); }
.club-leave { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #f26b4a55; border-radius: 12px; background: transparent; color: var(--persimmon-deep); font-weight: 800; cursor: pointer; }
.detail-block .detail-row:last-child { border-bottom: 0; }
.detail-row strong.wrap { overflow: visible; font-size: var(--t-sm); line-height: 1.5; white-space: normal; }
.event-gallery { margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff66; }
.event-gallery summary { color: var(--muted); font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.event-gallery[open] summary { margin-bottom: 8px; }
.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.library-grid figure { display: grid; gap: 4px; margin: 0; }
.library-grid img { width: 100%; aspect-ratio: 1; border-radius: 4px; object-fit: cover; }
.library-grid figcaption { overflow: hidden; color: var(--muted); font-size: var(--t-2xs); text-overflow: ellipsis; white-space: nowrap; }
.detail-row { display: flex; align-items: center; gap: 11px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.detail-row span { color: var(--muted); font-size: var(--t-2xs); }
.detail-row strong { overflow: hidden; font-size: var(--t-sm); text-overflow: ellipsis; white-space: nowrap; }
.detail-row > div:last-child { display: grid; gap: 2px; min-width: 0; }
.detail-row small { color: var(--muted); font-size: var(--t-2xs); }
.host-avatar { display: grid; flex: 0 0 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--cool-blue); font-size: var(--t-xs); font-weight: 800; }
.policy-row { align-items: start; }
.event-info .detail-row > div { width: 100%; }
.event-info a { color: var(--transformative-teal-dark); font-size: var(--t-sm); line-height: 1.5; text-underline-offset: 3px; }
.event-info p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--t-sm); line-height: 1.5; }
.event-account { display: flex; align-items: center; gap: 12px; }
.event-account input { width: 0; flex: 1; min-width: 0; padding: 6px 0; border: 0; background: transparent; color: var(--ink); font-size: var(--t-sm); }
.club-link, .host-profile-button { width: 100%; border: 0; border-radius: 16px; background: #ffffff66; text-align: left; cursor: pointer; }
.club-link > b, .host-profile-button > b { margin-left: auto; color: var(--muted); font-size: var(--t-xl); font-weight: 400; }
.detail-main-panel .club-link, .detail-main-panel .host-profile-button { border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.detail-main-panel .club-link > div:nth-child(2), .detail-main-panel .host-profile-button > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.detail-waitlist { padding: 20px 4px 0; }
.detail-waitlist .member-section-head { justify-content: flex-start; gap: 8px; margin-bottom: 4px; }
.detail-waitlist .member-section-head span { padding: 0; background: transparent; }
.detail-waitlist .join-request-list { gap: 0; }
.detail-waitlist .join-request { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.detail-waitlist .join-request .member-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: var(--t-2xs); }
.detail-membership { margin-top: 18px; padding-bottom: 18px; }
.detail-membership-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-membership-actions > button { flex: 1 1 140px; }
.detail-join { width: 100%; }
.detail-waitlist .join-request-actions { flex-wrap: wrap; }
.detail-waitlist .join-request-actions button:disabled { opacity: .45; cursor: not-allowed; }
.trust-summary { padding: 18px var(--gutter) 10px; }
.trust-summary > div:first-child { display: flex; justify-content: space-between; font-size: var(--t-sm); }
.trust-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.trust-track i { display: block; width: 96%; height: 100%; background: var(--transformative-teal); }
.safety-actions { margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-xs); }
.safety-actions summary { padding: 14px var(--gutter); cursor: pointer; }
.safety-actions div { display: flex; gap: 8px; padding-bottom: 12px; }
.safety-actions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--persimmon-deep); font-size: var(--t-xs); }
.small-action { min-width: 52px; background: var(--card); }
.activity-group-title { margin: 16px 0 8px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.activity-group-title:first-child { margin-top: 4px; }
.pending-event > .text-button { margin: 4px 0 0 auto; display: block; }
.availability.cancelled { color: var(--persimmon-deep); }
.availability.cancelled::before { background: var(--persimmon-deep); }
.availability.done::before { background: var(--muted); }
.bottom-nav { position: fixed; z-index: 5; isolation: isolate; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; max-width: 328px; height: 60px; margin: auto; padding: 6px; overflow: hidden; border: 1px solid #ffffff94; border-radius: 999px; background: #ffffff0a; box-shadow: 0 12px 28px #17364a20, inset 0 1px 0 #fffffff2, inset 0 -1px 0 #ffffff38; -webkit-backdrop-filter: blur(2px) saturate(125%); backdrop-filter: blur(2px) saturate(125%); }
.bottom-nav::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(125deg, #ffffff26 0%, transparent 42%, #9dd7f10a 72%, #ffffff14 100%); content: ""; pointer-events: none; }
.bottom-nav::after { position: absolute; z-index: -1; top: -42px; left: 8%; width: 58%; height: 58px; border-radius: 50%; background: #ffffff70; filter: blur(18px); content: ""; pointer-events: none; }
.nav-indicator { position: absolute; z-index: 0; top: 6px; left: 6px; width: 44px; height: 46px; border: 1px solid #ffffff80; border-radius: 999px; background: color-mix(in srgb, var(--nav-accent-soft) 54%, #ffffffb8); box-shadow: inset 0 1px 0 #ffffffc7, 0 4px 12px color-mix(in srgb, var(--nav-accent) 16%, transparent); pointer-events: none; transition: left .22s ease, width .22s ease, height .22s ease, top .22s ease, background .24s ease, opacity .18s ease; }
.nav-indicator.is-idle { opacity: 0; }
.nav-item { position: relative; z-index: 1; display: grid; min-width: 44px; min-height: 46px; place-items: center; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); transition: color .18s ease, border-color .18s ease, transform .18s ease; cursor: pointer; }
.nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-item:first-child svg { fill: currentColor; stroke: none; }
.nav-item.active { border-color: transparent; color: var(--nav-accent); text-shadow: 0 1px 8px #ffffff; font-weight: 800; }
.nav-item.active::after { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--nav-accent); box-shadow: 0 0 0 2px #ffffff73; content: ""; }
.nav-item:active { transform: scale(.9); }
.nav-badge { position: absolute; top: 3px; right: 4px; display: grid; min-width: 15px; height: 15px; place-items: center; padding: 0 4px; border-radius: 999px; background: var(--persimmon-dark); color: var(--on-accent); font-size: 9px; font-weight: 800; line-height: 1; }
.create-button { display: grid; place-items: center; justify-self: center; width: 48px; height: 48px; border: 1px solid #ffffff9c; border-radius: 50%; color: var(--nav-create-ink); background: color-mix(in srgb, var(--nav-create) 72%, #ffffff); box-shadow: inset 0 1px 1px #fffffff0, inset 0 -1px 0 #727b0024, 0 8px 20px color-mix(in srgb, var(--nav-create) 32%, transparent); -webkit-backdrop-filter: blur(8px) saturate(190%); backdrop-filter: blur(8px) saturate(190%); transition: transform .18s ease, background .24s ease, color .24s ease; cursor: pointer; }
.create-button:active { background: #e8f34ac7; transform: scale(.88); }
.create-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.side-nav { display: none; }
dialog { width: min(calc(100% - 24px), 520px); max-height: 90dvh; padding: 0; overflow-y: auto; border: 0; border-radius: 26px; color: var(--ink); background: var(--card); box-shadow: var(--shadow-modal); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
#venue-detail-dialog { width: min(calc(100% - 24px), 360px); overflow: visible; background: transparent; box-shadow: none; }
.dialog-card { position: relative; padding: 28px; }
.dialog-card h2 { margin: 0 0 20px; font-size: var(--t-xl); }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #ffffffa3; border-radius: 50%; color: var(--ink); background: #ffffff52; box-shadow: inset 0 1px 0 #fff, 0 4px 12px #17364a12; -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%); transition: transform .18s ease, background .18s ease; cursor: pointer; }
.dialog-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.dialog-close:active { background: #ffffff8a; transform: scale(.9); }
.join-summary { margin-bottom: 20px; padding: 13px; border-radius: 15px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-sm); line-height: 1.65; }
.primary-button, .secondary-button { width: 100%; padding: 14px; border-radius: 14px; font-weight: 700; cursor: pointer; }
.primary-button { border: 0; color: var(--on-accent); background: var(--transformative-teal-dark); }
.primary-button:disabled { opacity: .55; cursor: default; }
.secondary-button { margin-top: 8px; border: 1px solid var(--line); background: transparent; }
.create-form { display: grid; gap: 16px; min-height: 360px; align-content: start; }
.create-form h2 { margin-bottom: 0; padding-right: 42px; }
.create-progress { display: flex; align-items: center; gap: 10px; padding-right: 48px; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; }
.create-progress i { flex: 1; height: 3px; overflow: hidden; border-radius: 99px; background: var(--line); }
.create-progress b { display: block; width: 33.33%; height: 100%; border-radius: inherit; background: var(--transformative-teal-dark); transition: width .2s ease; }
.form-step { display: grid; gap: 14px; }
.create-preview { padding: 12px; border-radius: 12px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-xs); line-height: 1.6; }
.create-preview strong { color: var(--ink); font-size: var(--t-sm); }
.create-form label { display: grid; gap: 5px; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.language-option { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink) !important; background: var(--surface-sunken); font-size: var(--t-sm) !important; cursor: pointer; }
.language-option input, .create-form .language-option input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--transformative-teal-dark); }
#language-dialog .create-form { min-height: 0; gap: 12px; }
#language-dialog .dialog-card { padding: 24px; }
#language-dialog { width: min(calc(100% - 32px), 380px); border-radius: 24px; }
#language-dialog .dialog-card h2 { margin-bottom: 4px; padding-right: 36px; font-size: 24px; }
#language-dialog .language-option { position: relative; min-height: 52px; padding: 0 14px; border-color: rgba(23,54,74,0.1); background: #f3f6f3; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
#language-dialog .language-option:hover { transform: translateY(-1px); }
#language-dialog .language-option:has(input:checked) { border-color: var(--transformative-teal-dark); background: #e5f1ef; color: var(--transformative-teal-dark) !important; }
#language-dialog .language-option input { appearance: none; position: relative; width: 20px; min-width: 20px; height: 20px; min-height: 20px; border: 1.5px solid #8b9999; border-radius: 50%; background: #fff; }
#language-dialog .language-option input:checked { border-color: var(--transformative-teal-dark); background: var(--transformative-teal-dark); box-shadow: inset 0 0 0 4px #fff; }
#language-dialog .primary-button { min-height: 48px; margin-top: 4px; border-radius: 14px; font-size: var(--t-sm); }
.create-form input, .create-form select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: var(--t-sm); }
.create-form input[type="file"] { min-height: 42px; padding: 5px; color: var(--muted); background: #ffffff66; }
.create-form input[type="file"]::file-selector-button { margin-right: 8px; padding: 7px 11px; border: 0; border-radius: 8px; color: var(--on-accent); background: var(--transformative-teal-dark); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.create-form textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: var(--t-sm); line-height: 1.45; }
.post-photo-preview { margin-top: -6px; }
.post-photo-preview img { width: 92px; height: 92px; object-fit: cover; }
.create-form input:focus, .create-form select:focus, .create-form textarea:focus { border-color: var(--transformative-teal-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.form-actions .secondary-button { margin-top: 0; }
.form-actions button { flex: 1; }
.toast { position: fixed; z-index: 10; top: 16px; left: 50%; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 11px 12px 11px 16px; border-radius: 12px; color: var(--on-accent); background: #17364ae6; box-shadow: 0 12px 28px #17364a26, inset 0 1px 0 #ffffff26; -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); opacity: 0; transform: translate(-50%, -16px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#toast-action { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #ffffff40; border-radius: 8px; background: #ffffff26; color: var(--on-accent); font-size: var(--t-xs); font-weight: 800; box-shadow: inset 0 1px 0 #ffffff33; -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%); transition: background .18s ease; cursor: pointer; }
#toast-action:hover { background: #ffffff3d; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat-strip > div { display: grid; gap: 2px; min-width: 0; padding: 13px 8px; }
.stat-strip > div + div { border-left: 1px solid var(--line); }
.stat-strip strong { font-size: var(--t-md); }
.stat-strip span { color: var(--muted); font-size: var(--t-2xs); }
.stat-strip.center { text-align: center; }
.stat-strip.cols-2 { grid-template-columns: 1fr 1fr; }
.stat-strip.facts { grid-template-columns: 1.4fr .9fr .8fr; overflow: hidden; border: 1px solid #ffffffb8; border-radius: 16px; background: #ffffff66; box-shadow: 0 4px 14px #17364a0a; }
.stat-strip.facts strong { overflow: hidden; font-size: var(--t-sm); text-overflow: ellipsis; white-space: nowrap; }
.stat-strip.facts small { overflow: hidden; color: var(--muted); font-size: var(--t-2xs); text-overflow: ellipsis; white-space: nowrap; }
.detail-main-panel .stat-strip.facts { grid-template-columns: 42px minmax(0, 1.4fr) minmax(80px, 1fr) minmax(0, .7fr); gap: 8px; align-items: start; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.detail-host-photo { display: grid; justify-items: center; gap: 4px; width: 42px; margin-top: 16px; padding: 0; border: 0; background: transparent; text-align: center; cursor: pointer; }
.detail-host-photo img { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.detail-host-photo > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--transformative-teal-dark); color: var(--on-accent); font-style: normal; font-weight: 800; }
.detail-host-photo span { font-size: 10px; line-height: 1.25; color: var(--ink); }
#detail-participant-avatars { align-items: center; width: fit-content; min-height: 32px; margin-top: 0; padding: 4px 0 4px 6px; border: 0; background: transparent; cursor: pointer; }
#detail-participant-avatars i, #detail-participant-avatars img { flex-shrink: 0; width: 23px; height: 23px; margin-left: -6px; }
.detail-main-panel .stat-strip.facts > div { padding: 13px 4px; }
.detail-main-panel .stat-strip.facts > div + div { border-left: 0; }
#partner-stats { margin-top: 16px; }
.identity { display: flex; align-items: center; gap: 12px; padding: 10px 0 18px; }
.identity h1, .identity p { margin: 0; }
.identity h1 { font-size: var(--t-xl); }
.identity p, .identity small { color: var(--muted); font-size: var(--t-xs); }
.club-avatar { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 11px; background: var(--visual, var(--cool-blue)); font-size: var(--t-md); font-weight: 800; }
.club-card > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--visual, var(--cool-blue)); font-size: var(--t-sm); font-weight: 800; }
/* Specificity harus melampaui .club-card > span, yang shorthand background-nya menimpa size/position foto. */
.club-card > .club-avatar-photo { background-size: cover; background-position: center; color: transparent; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); }
.verify-banner[data-status="verified"] { background: #4f999421; }
.verify-banner div { display: grid; gap: 3px; min-width: 0; }
.verify-banner strong { font-size: var(--t-sm); }
.verify-banner small { color: var(--muted); font-size: var(--t-2xs); }
.workspace-tabs { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.club-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin: 16px 0 18px; }
.club-nav-item { position: relative; display: grid; gap: 6px; justify-items: center; padding: 9px 2px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); cursor: pointer; }
.club-nav-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.club-nav-item span { font-size: var(--t-2xs); font-weight: 700; }
.club-nav-item.active { color: var(--ink); background: var(--surface-sunken); }
.club-nav-item .tab-count { position: absolute; top: 5px; left: 50%; margin: 0 0 0 6px; }
.partner-panel { display: grid; gap: 8px; }
.partner-panel-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 8px; }
.partner-panel-intro > div { display: grid; gap: 2px; }
.partner-panel-intro strong { font-size: var(--t-sm); }
.partner-panel-intro small { color: var(--muted); font-size: var(--t-2xs); }
.table-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.table-management-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff80; }
.table-card-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.table-card-top strong { font-size: var(--t-sm); }
.table-management-card > small { color: var(--muted); font-size: var(--t-2xs); }
.table-management-card .small-action { justify-self: start; }
@media (max-width: 560px) {
  .table-management-grid { grid-template-columns: 1fr; }
}
.slot-state { display: flex; align-items: center; gap: 8px; }
.booking-row { display: grid; gap: 8px; padding: 13px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px #17364a14; }
.booking-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.booking-head div { display: grid; gap: 2px; min-width: 0; }
.booking-head strong { font-size: var(--t-sm); }
.booking-head small { color: var(--muted); font-size: var(--t-2xs); }
.booking-note { margin: 0; color: var(--muted); font-size: var(--t-xs); }
.booking-note:empty { display: none; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.booking-actions button, .slot-state button, .small-action { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--transformative-teal-dark); font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.booking-audit { color: var(--muted); font-size: var(--t-2xs); }
.booking-audit summary { cursor: pointer; }
.booking-audit ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 3px; }
.status-chip { flex: 0 0 auto; align-self: start; padding: 4px 9px; border-radius: 999px; background: var(--surface-sunken); color: var(--muted); font-size: var(--t-2xs); font-weight: 700; }
.status-chip.confirmed, .status-chip.booked { background: #4f999421; color: var(--transformative-teal-dark); }
.status-chip.pending, .status-chip.held { background: #f26b4a24; color: var(--persimmon-deep); }
.status-chip.rejected, .status-chip.cancelled, .status-chip.blackout { background: var(--surface-chip); color: var(--muted); }
.fee-table { display: grid; gap: 7px; padding: 13px; border-radius: 14px; background: var(--surface-sunken); font-size: var(--t-xs); }
.fee-table div { display: flex; justify-content: space-between; gap: 10px; }
.fee-table span { color: var(--muted); }
.fee-total { padding-top: 7px; border-top: 1px solid var(--line); }
.fee-total strong { font-size: var(--t-sm); }
.hold-timer { margin: 0 0 12px; color: var(--persimmon-deep); font-size: var(--t-xs); font-weight: 700; }
.checkout-policy { margin: 0 0 14px; color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
#checkout-form .fee-table { margin-bottom: 14px; }
#checkout-form label { display: grid; gap: 5px; margin-bottom: 14px; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
#checkout-form .checkout-pay-label { display: block; padding: 0; border: 0; }
#checkout-form .checkout-pay-label legend { margin-bottom: 7px; color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
#checkout-form select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: var(--t-sm); }
.checkout-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding-right: 30px; background: transparent; }
.checkout-heading .eyebrow { margin-bottom: 5px; }
.checkout-heading h2 { margin: 0; font-size: var(--t-lg); line-height: 1.15; }
.checkout-venue-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: var(--transformative-teal-dark); }
.checkout-venue-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
#checkout-dialog { width: min(calc(100% - 24px), 390px); max-height: 94dvh; border: 1px solid rgba(23,54,74,0.06); border-radius: 28px; background: rgba(248, 250, 252, 0.96); box-shadow: 0 18px 42px rgba(23, 54, 74, 0.12); }
#checkout-form { display: grid; gap: 12px; padding: 18px 18px 16px; }
#mini-soccer-score-dialog { width: min(calc(100% - 24px), 720px); max-height: min(94dvh, 900px); padding: 0; border-radius: 22px; background: var(--paper); }
#mini-soccer-score-dialog::backdrop { background: #102b3c99; backdrop-filter: blur(4px); }
.mini-score-sheet { display: grid; gap: 16px; padding: 18px; }
.mini-score-header { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mini-score-header > div { min-width: 0; text-align: center; }
.mini-score-header small { color: var(--muted); font-size: var(--t-sm); }
.mini-score-header h2 { display: -webkit-box; overflow: hidden; margin: 2px 0 0; font-size: var(--t-xl); line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.mini-score-icon { display: grid; width: 48px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
.mini-score-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.mini-score-live { padding: 8px 12px; border-radius: 999px; background: #fde6e1; color: #b42318; font-size: var(--t-sm); font-weight: 800; }
.mini-score-period-label { display: grid; grid-template-columns: auto minmax(140px, 1fr); gap: 12px; align-items: center; color: var(--muted); font-size: var(--t-sm); font-weight: 700; }
.mini-score-period-label select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; }
.mini-score-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 8px; align-items: stretch; padding: 18px 12px; border: 1px solid #edf1f3; border-radius: 20px; background: #fff; }
.mini-score-board::before { position: absolute; inset: 18px 50%; width: 1px; background: var(--line); content: ""; }
.mini-score-team { z-index: 1; display: grid; grid-template-rows: auto minmax(90px, 1fr) auto; gap: 10px; min-width: 0; text-align: center; }
.mini-score-team strong { display: -webkit-box; overflow: hidden; height: 2.4em; font-size: var(--t-md); line-height: 1.2; text-align: center; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-box-align: center; -webkit-line-clamp: 2; }
.mini-score-team output { align-self: center; color: var(--ink); font-size: clamp(64px, 18vw, 104px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.mini-score-team > span { display: grid; grid-template-columns: repeat(2, minmax(0, 60px)); justify-content: center; gap: 12px; }
.mini-score-team button { width: 100%; min-height: 0; aspect-ratio: 1; border: 0; border-radius: 50%; background: #eef2f4; color: var(--muted); font: inherit; font-size: 30px; font-weight: 700; }
.mini-score-team button:last-child { background: #199a64; color: #fff; }
.mini-score-team button:disabled { opacity: .4; }
.mini-score-vs { z-index: 1; align-self: center; justify-self: center; width: 40px; padding: 10px 0; border-radius: 50%; background: #f2f6f7; color: var(--ink); font-size: var(--t-xs); font-weight: 800; text-align: center; }
.mini-score-period-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 16px; background: #fff; }
.mini-score-period { display: grid; gap: 4px; min-width: 0; padding: 10px 6px; border-right: 1px solid var(--line); color: var(--muted); text-align: center; }
.mini-score-period:last-child { border-right: 0; }
.mini-score-period.active { border-radius: 12px; background: #eaf6ef; color: #138451; }
.mini-score-period span { overflow: hidden; font-size: var(--t-xs); text-overflow: ellipsis; white-space: nowrap; }
.mini-score-period strong { font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.mini-score-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-score-actions button { display: grid; min-height: 72px; place-content: center; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafb; color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 700; }
.mini-score-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.mini-score-actions button:disabled { opacity: .45; }
.mini-score-message { min-height: 18px; margin: 0; color: #b42318; font-size: var(--t-xs); }
.mini-score-save { min-height: 58px; margin-top: -6px; border-radius: 16px; font-size: var(--t-lg); }
@media (max-width: 560px) {
  #mini-soccer-score-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .mini-score-sheet { min-height: 100%; align-content: start; gap: 14px; padding: max(16px, env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); }
  .mini-score-board { min-height: 300px; padding: 20px 10px; }
  .mini-score-team { grid-template-rows: auto minmax(118px, 1fr) auto; }
  .mini-score-team output { font-size: clamp(68px, 19vw, 92px); }
  .mini-score-team button { min-height: 0; }
}
#checkout-form .hold-timer { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(242, 107, 74, 0.07); color: var(--persimmon-deep); font-size: var(--t-xs); font-weight: 800; }
#checkout-form .fee-table { display: grid; gap: 8px; margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#checkout-form .fee-table > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#checkout-form .fee-table span { color: var(--muted); font-size: var(--t-xs); }
#checkout-form .fee-table strong { font-size: var(--t-sm); }
#checkout-form .checkout-total { margin: 0; padding: 0; border: 0; }
#checkout-form .checkout-total span { font-weight: 700; }
#checkout-form .checkout-total strong { font-size: var(--t-md); }
#checkout-paymode { margin-top: 6px; }
#checkout-form .checkout-pay-label { margin: 0; padding: 0; border: 0; color: var(--ink); font-size: var(--t-sm); }
#checkout-form .checkout-pay-label legend { margin-bottom: 8px; color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
#checkout-form select { border-color: rgba(23,54,74,0.1); border-radius: 12px; background: rgba(255,255,255,0.85); }
.payment-options { display: grid; gap: 7px; }
.payment-option { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid rgba(23,54,74,0.08); border-radius: 14px; background: rgba(255,255,255,0.8); color: var(--ink); text-align: left; box-shadow: 0 1px 0 rgba(255,255,255,0.8); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.payment-option:hover { transform: translateY(-1px); }
.payment-option.active { border-color: rgba(25, 116, 120, 0.35); background: rgba(79, 153, 148, 0.08); }
.payment-option-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 10px; color: var(--transformative-teal-dark); background: rgba(79, 153, 148, 0.12); font-size: 13px; font-weight: 800; }
.payment-option > span:nth-child(2) { flex: 1; font-size: var(--t-xs); font-weight: 800; }
.payment-option b { color: var(--muted); font-size: 20px; font-weight: 400; }
#checkout-form .checkout-policy { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.6); color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
#checkout-form .checkout-policy[hidden] { display: none; }
#checkout-form .checkout-submit { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 7px 14px 7px 20px; overflow: hidden; border-radius: 999px; font-size: var(--t-sm); font-weight: 800; background: linear-gradient(180deg, var(--transformative-teal-dark), #1e6c6d); box-shadow: 0 10px 20px rgba(25, 116, 120, 0.18); touch-action: pan-y; }
#checkout-form .swipe-submit-label { font-size: var(--t-sm); line-height: 1; }
#checkout-form .swipe-submit-arrow { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.2); font-size: 20px; line-height: 1; animation: checkout-swipe-hint 1.8s ease-in-out infinite; transition: transform .18s ease; }
#checkout-form .checkout-submit:hover .swipe-submit-arrow { transform: translateX(3px); }
#checkout-form .checkout-submit.is-swiping .swipe-submit-arrow { animation: none; transform: translateX(7px); }
#checkout-form .checkout-cancel { min-height: 34px; margin-top: 0; border: 0; background: transparent; color: var(--muted); font-size: var(--t-xs); }
.checkout-heading { display: flex; align-items: center; gap: 14px; margin: -2px -2px 4px; padding: 2px 36px 12px 2px; border-bottom: 1px solid rgba(23,54,74,0.05); background: #fff; }
.checkout-heading .eyebrow { margin: 0 0 5px; color: var(--transformative-teal-dark); font-size: var(--t-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.checkout-heading h2 { max-width: 260px; margin: 0; color: var(--ink); font-size: clamp(1.15rem, 5vw, 1.45rem); line-height: 1.15; }
.checkout-venue-icon { display: grid; width: 60px; height: 60px; flex: 0 0 60px; place-items: center; border-radius: 18px; color: var(--transformative-teal-dark); background: #e4f0f0; }
.checkout-venue-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.checkout-amount-panel { display: grid; gap: 2px; padding: 4px 4px 0; text-align: center; }
.checkout-amount-label { color: var(--muted); font-size: var(--t-2xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.checkout-amount { font-size: clamp(2rem, 5vw, 2.5rem); line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.checkout-balance { display: flex; justify-content: space-between; gap: 10px; padding: 0 2px; color: var(--muted); font-size: var(--t-xs); }
.checkout-balance strong { color: var(--ink); }
.date-book-actions { display: flex; min-width: 0; gap: 6px; margin-bottom: 8px; }
.date-book-action { display: block; width: 100%; min-width: 0; margin: 0; padding: 9px 10px; border: 1px solid #176b6d2b; border-radius: 12px; background: linear-gradient(180deg, rgba(23,107,109,0.08), rgba(255,255,255,0.66)); color: var(--transformative-teal-dark); font-size: var(--t-2xs); font-weight: 800; text-align: center; cursor: pointer; }
.date-book-action.ready { border-color: var(--transformative-teal-dark); background: linear-gradient(180deg, rgba(23,107,109,0.92), rgba(23,107,109,0.82)); color: var(--on-accent); box-shadow: 0 12px 20px rgba(23,107,109,0.18); }
.date-reset-action { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.7); color: var(--muted); font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.composer-needs { display: grid; gap: 8px; }
.check-row { display: flex !important; align-items: center; gap: 8px; color: var(--ink) !important; font-size: var(--t-sm) !important; }
.check-row input { width: 18px; min-height: 18px !important; height: 18px; margin: 0; padding: 0 !important; accent-color: var(--transformative-teal-dark); }

.chat-log { display: grid; align-content: start; gap: 10px; padding: 10px 2px; }
.chat-message { display: flex; align-items: end; gap: 8px; }
.chat-message.own { flex-direction: row-reverse; }
.chat-avatar { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--cool-blue); font-size: var(--t-2xs); font-weight: 800; }
.chat-bubble { position: relative; display: grid; gap: 4px; min-width: 0; max-width: 76%; padding: 9px 36px 9px 11px; border-radius: 14px 14px 14px 4px; background: var(--card); box-shadow: 0 1px 2px #17364a14; }
.chat-message.own .chat-bubble { border-radius: 14px 14px 4px 14px; background: #4f999421; }
.chat-author { color: var(--muted); font-size: var(--t-2xs); font-weight: 700; }
.chat-bubble p { margin: 0; overflow-wrap: anywhere; font-size: var(--t-sm); line-height: 1.45; }
.comment-like { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; width: fit-content; min-width: 24px; min-height: 22px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: var(--t-2xs); cursor: pointer; }
.comment-like svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.comment-like.active { color: var(--persimmon-dark); }
.comment-like.active svg { fill: currentColor; }
.comment-pinned .chat-bubble { border: 1px solid #e8f34a; box-shadow: 0 2px 8px #727b0018; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.comment-action { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; cursor: pointer; }
.comment-action:hover, .comment-action.active { color: var(--transformative-teal-dark); }
.comment-icon-action { display: inline-flex; align-items: center; gap: 3px; min-width: 26px; min-height: 26px; justify-content: center; }
.comment-icon-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.comment-icon-action.active svg { fill: currentColor; }
.chat-bubble .chat-photo { width: 100%; max-width: 200px; border-radius: 4px; }
.chat-preview { position: relative; width: 92px; margin: 8px 0; }
.chat-preview img { display: block; width: 92px; height: 92px; border-radius: 12px; object-fit: cover; }
.chat-preview button { position: absolute; top: -7px; right: -7px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.chat-preview button::after { position: absolute; inset: -4px; content: ""; }
.chat-preview svg { width: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.chat-composer { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
#chat-input, .chat-composer input[name="text"] { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; outline: 0; background: var(--card); color: var(--ink); font-size: var(--t-sm); }
.chat-icon { flex: 0 0 44px; width: 44px; height: 44px; }
.chat-send { border-color: transparent; background: var(--transformative-teal-dark); color: var(--on-accent); }

.bottom-nav { transition: height .22s ease, max-width .22s ease, padding .22s ease; }
.nav-item, .create-button { transition: width .22s ease, height .22s ease, min-height .22s ease, box-shadow .22s ease, transform .18s ease; }
body.nav-compact .bottom-nav { height: 52px; max-width: 268px; padding: 5px; }
body.nav-compact .nav-indicator { top: 5px; height: 40px; }
body.nav-compact .nav-item { min-width: 40px; min-height: 40px; }
body.nav-compact .create-button { width: 40px; height: 40px; box-shadow: inset 0 1px 1px #fffffff0, inset 0 -1px 0 #727b0024, 0 5px 14px color-mix(in srgb, var(--nav-create) 32%, transparent); }
body.nav-compact .create-button svg { width: 19px; }
body.nav-compact .nav-item.active::after { bottom: 1px; }

body.chat-mode .bottom-nav { display: none; }
body.chat-mode .app-shell { padding-bottom: 8px; }
body.chat-mode #club-chat-panel, body.chat-mode [data-detail-panel="chat"] { padding-bottom: 78px; }
body.chat-mode .chat-dock { position: fixed; z-index: 6; bottom: 0; left: 50%; width: min(100%, 430px); padding: 8px 16px max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--paper); }
body.chat-mode .detail-view .event-chat-form { position: fixed; z-index: 6; bottom: 0; left: 50%; box-sizing: border-box; width: min(100%, 430px); margin-top: 0; padding: 8px 16px max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--paper); }

.action-sheet { display: grid; gap: 12px; }
.sheet-title { margin: 0; overflow: hidden; color: var(--muted); font-size: var(--t-xs); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.action-list { display: grid; gap: 4px; }
.action-list button { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: var(--t-sm); font-weight: 700; text-align: left; cursor: pointer; }
.action-list button:hover { background: var(--surface-sunken); }
.action-list svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.action-list .danger { color: var(--persimmon-deep); }
.profile-photo-thumb { width: 76px; height: 56px; margin-top: 6px; border-radius: 10px; object-fit: cover; }
.venue-banner { width: 100%; height: 116px; margin-bottom: 12px; border-radius: 16px; object-fit: cover; }
.venue-sheet { position: relative; overflow: hidden; padding: 0 12px 12px; border: 1px solid #ffffffb8; border-radius: 0 34px 0 34px; background: #f7fbf8e8; box-shadow: 0 24px 52px #173b3d38, inset 0 1px #ffffffd9; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.venue-sheet::before { position: absolute; z-index: 3; top: 18px; left: 18px; color: #ffffffeb; content: "Circle."; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-shadow: 0 1px 4px #0008; }
.venue-sheet .dialog-close { z-index: 4; top: 12px; right: 12px; width: 36px; height: 36px; border-color: #ffffff66; background: #0d1b124d; color: #fff; }
.venue-hero { position: relative; height: 190px; margin: 0 -12px; overflow: hidden; border-radius: 0 0 0 34px; background-color: var(--visual, var(--cool-blue)); }
.venue-hero img { width: 100%; height: 100%; object-fit: cover; }
.venue-hero-overlay { position: absolute; inset: auto 0 0 0; padding: 62px 150px 16px 18px; background: linear-gradient(180deg, transparent, #081610e8 88%); }
.venue-hero-overlay h2 { margin: 0; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: 0; line-height: 1.05; }
.venue-detail-meta { margin: 6px 0 0; color: #ffffffdf; font-size: var(--t-xs); font-weight: 700; line-height: 1.35; }
.venue-hero-book { position: absolute; right: 16px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 7px 6px 18px; border: 2px solid #ffffffd9; border-radius: 24px 24px 8px 24px; color: #fff; background: #0d0d0df2; box-shadow: 0 10px 20px #00000052, inset 0 1px #ffffff38; font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.venue-hero-book span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #0d0d0d; background: #fff; font-size: 16px; line-height: 1; }
.venue-hero-book:hover { background: #000; transform: translateY(-1px); }
.venue-detail-hours { margin: 10px 0 8px; color: var(--muted); font-size: var(--t-sm); font-weight: 700; }
.venue-detail-address { margin: 0 0 8px; color: var(--muted); font-size: var(--t-sm); line-height: 1.35; }
.venue-detail-address a { display: inline-block; color: var(--transformative-teal-dark); font-weight: 800; text-decoration: none; }
.venue-detail-address a:hover { text-decoration: underline; }
.facility-scroll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; overflow: hidden; }
.facility-scroll::-webkit-scrollbar { display: none; }
.facility-chip { display: grid; min-height: 30px; padding: 5px 8px; place-items: center; border: 1px solid #ffffffbf; border-radius: 999px; background: #ffffff9c; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; line-height: 1.15; text-align: center; box-shadow: inset 0 1px #ffffffd9; }
.facility-more { color: var(--transformative-teal-dark); background: #176b6d14; }
.slot-grid-day { margin: 0 0 10px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.date-filter { position: relative; z-index: 20; display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0 0 10px; overflow: visible; padding: 0 0 3px; box-sizing: border-box; scrollbar-width: none; }
.date-filter.no-calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.date-filter::-webkit-scrollbar { display: none; }
.date-filter button { width: 100%; min-width: 0; border: 0; cursor: pointer; }
.slot-calendar-control { position: relative; display: grid; width: 100%; height: 46px; min-width: 0; place-items: center; overflow: hidden; border: 1px solid #ffffff80; border-radius: 10px; background: #176b6dcc; color: var(--on-accent); box-shadow: 0 8px 18px #176b6d22, inset 0 1px #ffffff66; cursor: pointer; }
.slot-calendar-control svg { position: absolute; z-index: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; pointer-events: none; }
.calendar-booking-badge { position: absolute; z-index: 1; top: 8px; right: 9px; width: 6px; height: 6px; border: 1px solid var(--transformative-teal-dark); border-radius: 50%; background: var(--wasabi); pointer-events: none; }
.glass-calendar-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 25; display: none; width: min(100%, 270px); min-height: 350px; margin: 0; padding: 12px; border: 1px solid #ffffffa8; border-radius: 10px; background: linear-gradient(145deg, #ffffffd9, #ffffff80); box-shadow: 0 16px 36px #17364a26, inset 0 1px #ffffffd9; -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); }
.glass-calendar-popover.open { display: grid; }
.glass-calendar-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 8px; margin-bottom: 10px; }
.glass-calendar-head strong { text-align: center; font-size: var(--t-sm); text-transform: capitalize; }
.glass-calendar-head button { width: 32px; height: 28px; border: 0; border-radius: 8px; background: #ffffff70; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.glass-calendar-weekdays, .glass-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.glass-calendar-weekdays { margin-bottom: 4px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; text-align: center; }
.glass-calendar-date { position: relative; display: grid; min-height: 32px; place-items: center; border: 1px solid transparent; border-radius: 8px; background: #ffffff55; color: var(--ink); cursor: pointer; }
.glass-calendar-date.outside { color: #8b999980; cursor: default; }
.glass-calendar-date.active { border-color: var(--transformative-teal-dark); background: var(--transformative-teal-dark); color: var(--on-accent); }
.glass-calendar-date i { position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--persimmon); }
@media (max-width: 520px) {
  .glass-calendar-popover { min-height: 350px; padding: 12px; }
}
.slot-calendar-control select, .slot-calendar-control input[type="date"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; opacity: 0 !important; cursor: pointer; }
.date-filter-calendar { position: relative; display: grid; width: 100%; height: 46px; min-width: 0; place-items: center; border: 1px solid #ffffff80; border-radius: 10px; background: #176b6dcc; color: var(--on-accent); box-shadow: 0 8px 18px #176b6d22, inset 0 1px #ffffff66; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.date-filter-calendar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.calendar-control { position: relative; display: block; flex: 0 0 auto; }
.calendar-popover { position: fixed; inset: 0; width: min(290px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; overflow-y: auto; padding: 12px; border: 1px solid #ffffffb8; border-radius: 14px; background: #f7fcfa; box-shadow: 0 16px 32px #173b3d2b; }
.calendar-popover::backdrop { background: #17364a26; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--ink); font-size: var(--t-xs); }
.calendar-head > div { display: flex; gap: 4px; }
.calendar-nav { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 7px; background: #ffffffa8; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.calendar-weekdays, .calendar-grid { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 3px; row-gap: 0; text-align: center; }
.calendar-weekdays { margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; }
.calendar-day { display: grid; width: 100%; min-width: 0; height: 25px; margin: auto; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: var(--t-2xs); cursor: pointer; }
.calendar-day:hover, .calendar-day:focus-visible { background: #ffffffbf; outline: none; }
.calendar-day.active { background: var(--transformative-teal-dark); color: var(--on-accent); font-weight: 800; }
.calendar-day.past { color: #aab7b7; }
.calendar-day.empty { pointer-events: none; }
.calendar-today { width: 100%; margin-top: 7px; padding: 5px; border: 0; border-radius: 8px; background: #176b6d14; color: var(--transformative-teal-dark); font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.date-chip { display: grid; width: 100%; min-width: 0; height: 46px; padding: 4px 2px; place-items: center; border: 1px solid #ffffffa8; border-radius: 10px; background: #ffffff9c; color: var(--muted); box-shadow: 0 6px 16px #617a7d18, inset 0 1px #ffffffd9; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.date-chip span { font-size: var(--t-2xs); font-weight: 800; line-height: 1; }
.date-chip strong { color: var(--ink); font-size: var(--t-sm); line-height: 1; }
.date-chip.active { border-color: #ffffff80; background: #176b6dcc; color: var(--on-accent); box-shadow: 0 8px 18px #176b6d22, inset 0 1px #ffffff66; }
.date-chip.active strong { color: var(--on-accent); }
.date-chip:focus-visible, .date-filter-calendar:focus-visible { outline: 2px solid var(--persimmon-dark); outline-offset: 2px; }
@media (max-width: 380px) {
  .date-filter { gap: 2px; margin-inline: 0; overflow-x: auto; padding-bottom: 2px; }
  .date-filter-calendar { width: 34px; min-width: 34px; height: 42px; border-radius: 8px; }
  .date-filter-calendar svg { width: 17px; height: 17px; }
  .date-chip { width: 40px; min-width: 40px; height: 42px; padding-inline: 1px; border-radius: 8px; }
  .date-chip span { font-size: 9px; }
  .date-chip strong { font-size: var(--t-xs); }
}
@media (max-width: 340px) {
  .date-filter { gap: 1px; }
  .date-filter-calendar { width: 28px; height: 38px; }
  .date-filter-calendar svg { width: 15px; height: 15px; }
  .date-chip { width: 30px; height: 38px; padding: 3px 1px; }
  .date-chip span { font-size: 8px; }
  .date-chip strong { font-size: 9px; }
  .venue-booking-view #venue-booking-slots { margin-inline: 4px; padding: 6px; }
  .schedule-time-heading, .schedule-court-heading { min-height: 40px; padding-inline: 1px; font-size: 8px; }
  .schedule-time { min-height: 52px; padding-inline: 1px; }
  .schedule-time strong { font-size: 9px; }
  .schedule-slot { min-height: 48px; margin-inline: 2px; padding-inline: 0; }
  .schedule-slot strong { font-size: 8px; }
  .schedule-slot span, .schedule-slot em { font-size: 7px; }
}
@media (max-width: 300px) {
  .date-filter { gap: 0; }
  .date-filter-calendar { width: 24px; height: 36px; }
  .date-filter-calendar svg { width: 13px; height: 13px; }
  .date-chip { width: 28px; height: 36px; }
  .date-chip span { font-size: 7px; }
  .date-chip strong { font-size: 8px; }
  .venue-booking-view #venue-booking-slots { margin-inline: 2px; padding: 3px; }
  .schedule-scroll { overflow-x: auto; }
}
@media (max-width: 380px) {
  .venue-hero-overlay { padding: 54px 126px 14px 16px; }
  .venue-hero-overlay h2 { max-width: 150px; font-size: 24px; line-height: 1; }
  .venue-detail-meta { font-size: 10px; }
  .venue-hero-book { right: 12px; bottom: 9px; gap: 7px; min-height: 38px; padding: 4px 5px 4px 12px; font-size: 10px; }
  .venue-hero-book span { width: 26px; height: 26px; font-size: 14px; }
  .venue-booking-view #venue-booking-slots { padding: 6px; }
  .schedule-time-heading, .schedule-court-heading { min-height: 40px !important; padding-block: 3px !important; }
  .schedule-time { min-height: 46px !important; padding-block: 3px !important; }
  .schedule-slot { min-height: 44px !important; margin-block: 2px !important; padding-block: 3px !important; border-radius: 7px; }
  .schedule-slot strong { font-size: 7.5px !important; }
  .schedule-slot span, .schedule-slot em { font-size: 7px !important; }
}
.court-rows { display: grid; gap: 5px; }
.court-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 64px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.court-row-title { overflow: hidden; color: var(--ink); font-size: var(--t-xs); line-height: 1.2; text-overflow: ellipsis; }
.court-row-slots { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.court-row-slots::-webkit-scrollbar { display: none; }
.schedule-scroll { max-width: 100%; max-height: 70dvh; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 14px; background: #ffffff66; box-shadow: 0 10px 26px #617a7d18; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.schedule-grid { display: grid; width: max-content; min-width: 100%; background: transparent; }
.schedule-cell { min-width: 0; border-right: 1px solid #17364a12; border-bottom: 1px solid #17364a12; }
.schedule-time-heading, .schedule-court-heading { position: sticky; top: 0; z-index: 3; display: flex; min-width: 0; min-height: 44px; align-items: center; justify-content: center; padding: 6px 3px; overflow-wrap: anywhere; word-break: break-word; background: #eef3f3; color: var(--ink); font-size: calc(9px * var(--schedule-scale, 1)); font-weight: 800; letter-spacing: .02em; line-height: 1.15; text-align: center; border-bottom: 1px solid var(--line); }
.schedule-time-heading { left: 0; z-index: 4; }
.schedule-court-heading { position: relative; gap: 4px; }
.schedule-court-heading span { overflow: hidden; text-overflow: ellipsis; }
.court-more-button { display: grid; width: 18px; height: 22px; flex: 0 0 18px; place-items: center; padding: 0 0 3px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.court-more-button:hover { background: var(--surface-sunken); color: var(--ink); }
.schedule-court-heading { justify-content: center; text-align: center; }
.schedule-time { position: sticky; left: 0; z-index: 2; display: grid; min-height: 56px; place-items: center; padding: 4px 2px; background: #f6f9f9; color: var(--ink); border-right: 1px solid var(--line); }
.schedule-time strong { font-size: calc(10.5px * var(--schedule-scale, 1)); font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1; white-space: nowrap; }
.schedule-slot { display: grid; min-height: 52px; align-content: center; gap: 2px; margin: 4px 3px; padding: 4px 2px; border: 1px solid #17364a14; border-radius: 9px; background: #17364a0a; color: #84929b; text-align: center; font: inherit; }
.schedule-slot.filtered { background: transparent; border-color: transparent; box-shadow: none; color: #84929b; }
.slot-filter-card { display: grid; grid-template-columns: minmax(0, 1fr) 132px 132px 32px; align-items: end; gap: 8px; margin-bottom: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff80; }
.slot-filter-card > div { display: grid; gap: 2px; min-width: 0; }
.slot-filter-card strong { font-size: var(--t-xs); }
.slot-filter-card small { color: var(--muted); font-size: var(--t-2xs); }
.slot-filter-card label { display: grid; gap: 4px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; }
.slot-filter-card select { min-height: 32px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); font-size: var(--t-2xs); }
.slot-reset-button { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid #f26b4a55; border-radius: 7px; background: transparent; color: var(--persimmon-deep); cursor: pointer; }
.slot-reset-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.glass-dialog { width: min(calc(100% - 32px), 360px); padding: 0; border: 1px solid #ffffff99; border-radius: 24px; background: #ffffff38; box-shadow: 0 24px 70px #17364a38, inset 0 1px #ffffffcc; -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.glass-dialog::backdrop { background: #17364a42; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.glass-dialog-card { position: relative; display: grid; gap: 10px; padding: 22px; border-radius: inherit; background: linear-gradient(145deg, #ffffffd9, #ffffff8c); color: var(--ink); }
.glass-dialog-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #ffffffb8; border-radius: 14px; background: #f26b4a24; color: var(--persimmon-deep); }
.glass-dialog-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.glass-dialog-card h2 { margin: 0; font-size: var(--t-lg); }
.glass-dialog-card p { margin: 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.glass-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.glass-dialog-actions .secondary-button, .glass-dialog-actions .primary-button { min-height: 42px; margin: 0; padding: 10px; }
.court-price-form { gap: 8px; }
.court-price-form h2 { margin: 0; padding-right: 30px; font-size: var(--t-lg); }
.court-price-form p { margin: 0; }
.court-hour-price-list { display: grid; gap: 6px; max-height: 48dvh; overflow-y: auto; }
.court-hour-price-list label { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; color: var(--muted); font-size: var(--t-xs); font-weight: 800; }
.court-hour-price-list input { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: var(--t-xs); }
@media (max-width: 560px) {
  .slot-filter-card { grid-template-columns: 1fr 1fr 32px; }
  .slot-filter-card > div { grid-column: 1 / -1; }
}
.schedule-slot strong { color: inherit; font-size: calc(9px * var(--schedule-scale, 1)); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.schedule-slot span, .schedule-slot em { font-size: calc(8px * var(--schedule-scale, 1)); line-height: 1.15; overflow-wrap: anywhere; }
.schedule-slot em { font-style: normal; }
button.schedule-slot.available { border-color: #4f999440; background: #4f99941f; color: var(--transformative-teal-dark); cursor: pointer; transition: background .15s, transform .15s; }
button.schedule-slot.available strong, button.schedule-slot.available span { color: var(--transformative-teal-dark); }
button.schedule-slot.available.selected { border-color: var(--transformative-teal-dark); background: #176b6dcc; box-shadow: 0 6px 14px #176b6d38, inset 0 1px #ffffff55; transform: translateY(-1px); }
button.schedule-slot.available.selected strong, button.schedule-slot.available.selected span { color: var(--on-accent); }
button.schedule-slot.available.selected em { display: inline-block; color: #e8f34a; font-size: 7px; font-style: normal; font-weight: 800; }
button.schedule-slot.available:hover { background: var(--transformative-teal-dark); }
button.schedule-slot.available:hover strong, button.schedule-slot.available:hover span { color: var(--on-accent); }
.venue-sheet .empty { margin-top: 14px; }
.venue-detail-availability { margin: 0 0 8px; color: var(--transformative-teal-dark); font-size: var(--t-sm); font-weight: 800; }
.venue-detail-activity { display: block; margin: 8px auto 0; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.venue-detail-activity:hover { color: var(--transformative-teal-dark); }
.venue-sheet > .secondary-button { width: 100%; min-height: 46px; margin-top: 8px; border-radius: 24px 24px 12px 24px; background: #ffffff8c; font-size: var(--t-sm); font-weight: 800; }
.venue-booking-cover { position: relative; height: 224px; margin: 0 -16px; overflow: hidden; background: var(--surface-sunken); }
.venue-booking-banner { width: 100%; height: 100%; object-fit: cover; }
.venue-share-button { position: absolute; top: 12px; right: 16px; z-index: 3; display: grid; width: 32px; height: 32px; place-items: center; border: 0; color: #fff; background: transparent; cursor: pointer; }
.venue-share-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.venue-share-button svg { filter: drop-shadow(0 1px 3px #17364a80); }
.venue-booking-overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 54px 24px 18px; background: linear-gradient(180deg, transparent, #081610e8 88%); }
.venue-booking-overlay h1 { margin: 0; color: #fff; font-size: clamp(25px, 5vw, 42px); font-weight: 800; line-height: 1.05; }
.venue-booking-overlay p { margin: 4px 0 0; color: #ffffffdf; font-size: var(--t-xs); font-weight: 700; line-height: 1.25; }
.venue-booking-overlay p::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 7px; border-radius: 999px; background: var(--transformative-teal); }
.venue-booking-overlay-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.venue-booking-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.venue-booking-contacts a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 2px 0; color: var(--transformative-teal-dark); text-decoration: none; }
.venue-booking-contacts a:hover { text-decoration: underline; }
.venue-booking-contacts svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.venue-booking-contacts a span { overflow-wrap: anywhere; white-space: normal; font-size: var(--t-xs); font-weight: 600; }
.venue-booking-contacts:not(:has(a:not([hidden]))) { display: none; }
.venue-booking-overlay-links > * { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.venue-booking-overlay-links a[hidden] { display: none; }
.venue-booking-overlay-links .venue-booking-address { display: none; }
.venue-booking-overlay-links svg,
.venue-booking-hours-inline svg,
.venue-booking-address svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.venue-booking-overlay-links .venue-booking-phone { padding-right: 18px; border-right: 1px solid #ffffff80; }
.venue-booking-hours-inline span { display: grid; gap: 1px; }
.venue-booking-banner-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 14px; }
.venue-booking-banner-place { min-width: 0; }
.venue-booking-banner-footer .venue-booking-address { min-width: 0; margin: 7px 0 0; }
.venue-booking-banner-footer .venue-booking-address { align-items: flex-start; text-decoration: underline; text-underline-offset: 3px; }
.venue-booking-address span { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.venue-booking-hours-inline { display: flex; flex-shrink: 0; align-items: center; gap: 7px; color: #fff; }
.venue-booking-hours-inline small { color: #ffffffc7; font-size: 10px; font-weight: 600; line-height: 1.2; }
.venue-booking-hours-inline strong { font-size: 14px; font-weight: 800; line-height: 1.2; }
.venue-booking-phone span, .venue-booking-instagram span { font-size: 13px; font-weight: 800; white-space: nowrap; }
.venue-booking-address { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #ffffffdf; font-size: 13px; font-weight: 500; line-height: 1.3; text-decoration: none; }
@media (max-width: 600px) {
  .venue-booking-overlay { padding: 28px 20px 14px; }
  .venue-booking-overlay h1 { font-size: 18px; }
  .venue-booking-overlay p { font-size: 10px; }
  .venue-booking-overlay-links { gap: 8px 14px; margin-top: 10px; }
  .venue-booking-overlay-links svg,
  .venue-booking-hours-inline svg,
  .venue-booking-address svg { width: 18px; height: 18px; flex-basis: 18px; }
  .venue-booking-overlay-links .venue-booking-phone { padding-right: 14px; }
  .venue-booking-hours-inline small { font-size: 9px; }
  .venue-booking-hours-inline strong { font-size: 12px; }
  .venue-booking-phone span, .venue-booking-instagram span { font-size: 11px; }
  .venue-booking-address { gap: 6px; margin-top: 8px; font-size: 11px; }
}
.venue-booking-info { display: grid; gap: 5px; margin: 10px 4px 8px; color: var(--muted); font-size: var(--t-2xs); line-height: 1.35; }
.venue-booking-info p { margin: 0; }
.venue-booking-info-block { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid #ffffffa8; border-radius: 10px; background: #ffffff70; }
.venue-booking-info-block[hidden] { display: none; }
.venue-booking-info-block strong { color: var(--ink); font-size: var(--t-xs); }
.venue-booking-info-block p { white-space: pre-line; }
.venue-booking-info-block:not(.is-expanded) > p, .venue-booking-info-block:not(.is-expanded) .booking-policy-content { max-height: 88px; overflow: hidden; }
.info-expand { justify-self: start; margin-top: 3px; padding: 0; border: 0; color: var(--transformative-teal-dark); background: transparent; font-size: var(--t-2xs); font-weight: 800; cursor: pointer; }
.venue-booking-info-block.is-expanded .info-expand { color: var(--muted); }
.venue-booking-info a { color: var(--transformative-teal-dark); font-weight: 800; text-decoration: none; }
.venue-booking-info a:hover { text-decoration: underline; }
.booking-policy-content { display: grid; gap: 12px; color: var(--muted); font-size: var(--t-2xs); line-height: 1.45; }
.booking-policy-content section { display: grid; gap: 4px; }
.booking-policy-content b { color: var(--transformative-teal-dark); font-size: var(--t-2xs); }
.booking-policy-content small { color: var(--muted); font-size: inherit; font-weight: 700; }
.booking-policy-content ul { display: grid; gap: 3px; margin: 0; padding-left: 16px; }
.venue-booking-links { display: flex; gap: 12px; }
.venue-booking-view { padding-bottom: 18px; }
.venue-booking-view #venue-booking-slots.no-slots { padding: 16px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#venue-booking-slots.no-slots .empty { margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; text-align: left; font-size: var(--t-sm); }
.venue-booking-view #venue-booking-slots { width: calc(100% - 8px); max-width: calc(100% - 8px); min-width: 0; margin: 0 4px; padding: 6px; box-sizing: border-box; border: 1px solid #ffffffa8; border-radius: 14px; background: #ffffff42; box-shadow: 0 10px 24px #617a7d14, inset 0 1px #ffffffb8; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.venue-booking-view #venue-booking-rules { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #ffffffa8; border-radius: 11px; background: #ffffff70; box-shadow: 0 8px 20px #617a7d14, inset 0 1px #ffffffbf; color: var(--muted); font-size: var(--t-2xs); line-height: 1.5; overflow-wrap: anywhere; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 380px) {
  .venue-booking-view #venue-booking-slots { margin-inline: 0; padding: 5px; }
}
@media (max-width: 300px) {
  .venue-booking-view #venue-booking-slots { padding: 2px; }
}
@media (max-width: 380px) {
  .date-filter { display: flex; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .calendar-control { flex: 0 0 auto; }
  .date-filter .date-filter-calendar { width: 34px; min-width: 34px; height: 42px; flex: 0 0 auto; }
  .date-filter .date-chip { width: 38px; min-width: 38px; height: 42px; flex: 0 0 auto; }
}
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-panel-actions { justify-content: flex-end; margin: 0 0 8px; }
.structure-block { margin-top: 18px; }
.structure-block h3 { margin: 0 0 8px; font-size: var(--t-sm); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list:empty::after { color: var(--muted); font-size: var(--t-xs); content: "Belum ada."; }
.chip-item { display: flex; gap: 6px; align-items: center; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: var(--t-xs); font-weight: 700; }
.chip-item button { display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--surface-sunken); color: var(--muted); cursor: pointer; }
.chip-item svg { width: 11px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.2; }
.inline-add { display: flex; gap: 8px; margin-top: 10px; }
.inline-add input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: var(--t-sm); }
.inline-add + .role-note { margin-top: 8px; }
.venue-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.venue-gallery:empty::after { grid-column: 1 / -1; padding: 18px 0; color: var(--muted); font-size: var(--t-sm); text-align: center; content: "Belum ada foto."; }
.venue-gallery figure { position: relative; margin: 0; }
.venue-gallery img { width: 100%; height: 74px; border-radius: 12px; object-fit: cover; }
.venue-gallery button { position: absolute; top: 4px; right: 4px; display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #17251dc4; color: #fff; cursor: pointer; }
.venue-gallery svg { width: 11px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.4; }
.notif-sheet { max-width: 380px; gap: 0; }
.notif-tabs { display: flex; gap: 20px; margin: 14px 0 0; border-bottom: 1px solid var(--line); }
.notif-tabs button { position: relative; display: flex; gap: 6px; align-items: center; padding: 0 0 10px; border: 0; background: none; color: var(--muted); font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.notif-tabs button::after { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; border-radius: 2px; background: transparent; content: ""; transition: background .18s ease; }
.notif-tabs button.active { color: var(--ink); }
.notif-tabs button.active::after { background: var(--transformative-teal-dark); }
.notif-tabs span { display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 5px; border-radius: 999px; background: #4f999421; color: var(--transformative-teal-dark); font-size: 10px; font-weight: 800; }
.notif-tabs button.active span { background: var(--transformative-teal-dark); color: var(--on-accent); }
.comment-sheet { max-width: 380px; }
.comment-list { max-height: 50vh; overflow-y: auto; }
.notif-list { display: grid; max-height: 58vh; overflow-y: auto; }
/* On its own page the list flows with the document instead of scrolling inside a sheet. */
#notif-view .notif-list { max-height: none; overflow-y: visible; }
#notif-view .notif-tabs { margin-top: 0; }
.notif-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover strong { color: var(--transformative-teal-dark); }
.notif-item .notif-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--visual, var(--cool-blue)); font-size: var(--t-xs); font-weight: 800; }
.notif-item .notif-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.notif-item .notif-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.notif-item strong { display: block; font-size: var(--t-sm); font-weight: 600; line-height: 1.35; transition: color .18s ease; }
.notif-item:not(.read) strong { font-weight: 800; }
.notif-item small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--t-2xs); }
.notif-item .notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--transformative-teal-dark); }
.notif-empty { padding: 34px 8px; color: var(--muted); font-size: var(--t-sm); text-align: center; }

@media (min-width: 600px) and (max-width: 920px) {
  .app-shell { width: min(calc(100% - 32px), 760px); padding-right: 16px; padding-left: 16px; }
  .venue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; padding-right: 0; overflow: visible; }
  .venue-card { flex-basis: auto; }
  .recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; overflow: visible; }
  .recommendation-grid .activity-card { flex-basis: auto; max-width: none; }
  .club-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; padding-right: 0; overflow: visible; }
  .club-card { width: 100%; }
}

@media (min-width: 921px) {
  .app-shell { width: min(calc(100% - 48px), 820px); padding-right: 24px; padding-left: 24px; }
  .venue-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-right: 0; padding-right: 0; overflow: visible; }
  .venue-card { flex-basis: auto; }
  .recommendation-grid { display: flex; margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 24px; overflow-x: auto; }
  .recommendation-grid .activity-card { flex: 0 0 min(31%, 240px); max-width: 240px; }
  .club-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-right: 0; padding-right: 0; overflow: visible; }
  .club-card { width: 100%; }
}

/* A tablet in landscape has desktop-like working width without desktop-only chrome. */
@media (min-width: 600px) and (orientation: landscape) {
  .app-shell { width: min(calc(100% - 32px), 1180px); padding-right: 16px; padding-left: 16px; }
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .brand-menu-wrap { display: none; }
  .side-nav { position: fixed; z-index: 7; top: 16px; bottom: 16px; left: 16px; display: flex; flex-direction: column; width: 176px; padding: 16px 10px; border: 1px solid #ffffffa8; border-radius: 18px; background: #ffffff80; box-shadow: 0 12px 30px #17364a12, inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); transition: transform .22s ease, opacity .18s ease; }
  .side-nav-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 22px 10px; }
  .side-nav-brand { font-size: var(--t-xl); pointer-events: none; }
  .side-nav-toggle, .side-nav-reveal { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid #ffffffb8; border-radius: 9px; background: #ffffff75; color: var(--muted); cursor: pointer; }
  .side-nav-toggle svg, .side-nav-reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
  .side-nav-links { display: grid; gap: 4px; }
  .side-nav-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #ffffffa8; }
  .side-nav-login { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; border: 0; border-radius: 12px; background: var(--transformative-teal-dark); color: #fff; font: inherit; font-size: var(--t-sm); font-weight: 800; cursor: pointer; box-shadow: 0 5px 12px #185c5b2b; }
  .side-nav-login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
  .side-nav-item, .side-nav-create { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: var(--t-sm); font-weight: 700; text-align: left; cursor: pointer; }
  .side-nav-item svg, .side-nav-create svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .side-nav-item:first-child svg { fill: currentColor; stroke: none; }
  .side-nav-item.active { background: color-mix(in srgb, var(--nav-accent-soft) 66%, #fff); color: var(--nav-accent); box-shadow: inset 0 1px #ffffffb8; }
  .side-nav-item .context-badge { top: 5px; right: auto; left: 27px; }
  .side-nav-create { margin: 8px 0; background: color-mix(in srgb, var(--wasabi) 72%, #fff); color: var(--ink); box-shadow: inset 0 1px #fffffff0, 0 5px 14px #727b001c; }
  .side-nav-create:hover, .side-nav-item:hover { background-color: #ffffff8f; }
  .side-nav-create:hover { background-color: color-mix(in srgb, var(--wasabi) 88%, #fff); }
  .app-shell { width: auto; max-width: 1180px; margin: 0 16px 0 208px; padding-bottom: 32px; }
  .side-nav-reveal { position: fixed; z-index: 7; top: 16px; left: 16px; background: #ffffffc7; box-shadow: 0 6px 16px #17364a16; }
  body.sidebar-collapsed .side-nav { opacity: 0; pointer-events: none; transform: translateX(calc(-100% - 16px)); }
  body.sidebar-collapsed .app-shell { margin-left: 64px; }
  .topbar { position: relative; }
  .topbar-lead { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
  .topbar-actions { grid-column: 3; grid-row: 1; margin-right: 44px; }
  .topbar:has(#notif-open[hidden]) .topbar-actions { margin-right: 0; }
  .topbar-actions .topbar-create { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wasabi); color: var(--ink); box-shadow: inset 0 1px #fffffff0, 0 4px 10px #727b0030; }
  .topbar-actions .icon-action:not(.topbar-create), #notif-open { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #ffffff70; box-shadow: inset 0 1px #fff, 0 4px 10px #17364a0d; }
  #notif-open { color: var(--transformative-teal-dark); }
  #topbar-chat { display: none; }
  .side-nav-create { display: none; }
}
body.tv-mode .side-nav { display: none; }

@media (min-width: 900px) and (orientation: landscape) {
  .tournament-home .tournament-card { flex-basis: min(calc((100% - 24px) / 3), 360px); }
  .collection-list.tournament-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .venue-list { grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); justify-content: start; }
  .venue-card { max-width: 300px; }
  .recommendation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: start; margin: 0; padding: 0; overflow: visible; }
  .recommendation-grid .activity-card { width: 100%; max-width: 260px; }
  .club-list { grid-template-columns: repeat(auto-fit, minmax(160px, 220px)); justify-content: start; }
  .club-card { max-width: 220px; }
  .feed-list { max-width: 720px; }
}

/* Tournament tables need a wider working canvas on landscape tablets. */
@media (min-width: 900px) and (orientation: landscape) {
  body:has(#tournament-view:not([hidden])) .app-shell { width: min(calc(100% - 32px), 1180px); padding-right: 16px; padding-left: 16px; }
}

@keyframes checkout-swipe-hint {
  0%, 55%, 100% { transform: translateX(0); }
  70% { transform: translateX(5px); }
  82% { transform: translateX(1px); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .nav-indicator { transition: none; }
  .brand span { animation: none; }
  .brand span:nth-child(1) { color: var(--cool-blue-dark); }
  .brand span:nth-child(2) { color: var(--transformative-teal-dark); }
  .brand span:nth-child(3) { color: var(--wasabi-dark); }
  .brand span:nth-child(4) { color: var(--persimmon-dark); }
  #checkout-form .swipe-submit-arrow { animation: none; }
}

.profile-user-id { width: fit-content; margin: 2px 0 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; cursor: pointer; }
.club-feed-post > p { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.settings-info { display: grid; gap: 14px; max-width: 440px; }
.settings-info h2 { padding-right: 30px; }
.settings-info h3, .settings-info p { margin: 0; }
.settings-info h3 { font-size: 14px; margin-top: 6px; }
.settings-info p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.settings-info details { border-bottom: 1px solid #1b55551a; padding: 12px 0; }
.settings-info summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.settings-info details p { margin-top: 10px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-nav { background: #ffffffd9; }
}

/* Skeleton Loading */
@keyframes skeleton-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-sunken);
  border-radius: 8px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line { display: block; height: 11px; border-radius: 5px; }
.skeleton-activity { overflow: hidden; min-height: 148px; }
/* Recommendation skeleton: the photo band shimmers on its own and the text lines sit below it. */
.recommendation-grid .skeleton-activity .activity-visual { background: var(--surface-sunken); }
.recommendation-grid .skeleton-activity .activity-topline { display: none; }
.recommendation-grid .skeleton-activity .activity-content { padding-top: 106px; }
.skeleton-venue { overflow: hidden; }
.skeleton-feed { display: block; }
.skeleton-club { color: transparent; }

.kudos-give-list { display: grid; gap: 8px; }
.kudos-give-row { display: grid; grid-template-columns: 36px 1fr; gap: 8px 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--card); box-shadow: 0 2px 10px #17364a0d; }
.kudos-person { display: grid; gap: 2px; min-width: 0; }
.kudos-give-row .kudos-person strong { overflow: hidden; font-size: var(--t-sm); text-overflow: ellipsis; white-space: nowrap; }
.kudos-person small { color: var(--muted); font-size: var(--t-2xs); }
.kudos-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.kudos-tag { border: 0; padding: 7px 10px; border-radius: 999px; background: var(--surface-chip); color: var(--ink); font: inherit; font-size: var(--t-2xs); font-weight: 700; cursor: pointer; }
.kudos-tag.active { background: var(--wasabi); }
.kudos-tag:disabled { opacity: .55; cursor: default; }

/* ---------- Turnamen ---------- */
/* Each cabor has one tone; icons, chips and the card edge all use it. */
.sport-tennis { --tone: #6f7a00; --tone-soft: #f1f5c4; }
.sport-table_tennis { --tone: #176486; --tone-soft: #dcf0f9; }
.sport-padel { --tone: #185c5b; --tone-soft: #d9eeec; }
.sport-badminton { --tone: #c94a28; --tone-soft: #fde5dc; }
.sport-mini_soccer { --tone: #2f7d45; --tone-soft: #dcf0e1; }
.sport-futsal { --tone: #1f6f8b; --tone-soft: #dbeff5; }
.sport-football { --tone: #3c7a2b; --tone-soft: #e2f0d9; }
.sport-volleyball { --tone: #9a5b00; --tone-soft: #fbeccf; }
.sport-basketball { --tone: #b4531f; --tone-soft: #fbe3d4; }
.sport-chess { --tone: #3d4a5c; --tone-soft: #e3e7ee; }
.sport-billiards { --tone: #6d4fb0; --tone-soft: #ebe4f7; }

.tournament-home { display: flex; align-items: stretch; gap: 12px; margin: -4px -4px 0; padding: 4px 4px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: none; overscroll-behavior-inline: contain; }
.tournament-home::-webkit-scrollbar, .tournament-sport-chips::-webkit-scrollbar { display: none; }
.tournament-card { display: grid; flex: 0 0 100%; grid-template-rows: auto auto 1fr auto; min-width: 0; overflow: hidden; border: 1px solid #ffffffc7; border-radius: 16px; background: var(--card); box-shadow: 0 8px 20px #17364a14; color: var(--ink); cursor: pointer; scroll-snap-align: start; }
.tournament-card-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; gap: 12px; align-items: center; padding: 12px 14px 8px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.tournament-card-head > svg { width: 14px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.tournament-trophy { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #e3f1e8; color: #2f7d45; }
.tournament-trophy svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tournament-card-text { display: grid; gap: 1px; min-width: 0; }
.tournament-card-text strong { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tournament-card-text small { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: var(--t-xs); }
.tournament-card-text small span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tournament-card-text small svg { width: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tournament-card-state { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 8px; }
.tournament-card-state small { color: var(--muted); font-size: var(--t-xs); white-space: nowrap; }
.tournament-status { color: var(--muted); font-size: var(--t-xs); font-weight: 700; white-space: nowrap; }
.tournament-card-state .tournament-status { padding: 3px 10px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink); font-size: var(--t-xs); }
.tournament-card.upcoming .tournament-card-state .tournament-status { background: #e2f1f9; color: var(--cool-blue-dark); }
.tournament-status.live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: #fdebe5; color: var(--persimmon-deep); }
.tournament-card-state .tournament-status.live { padding: 3px 10px; background: #fde4dd; color: #c0331c; }
.tournament-status.live::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.tournament-card-state .tournament-status.live::before { width: 7px; height: 7px; background: #e0301e; }
.tournament-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px 10px; }
.tournament-mini { display: grid; gap: 5px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: #f3f5f4; }
.tournament-mini header { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tournament-mini header svg { width: 14px; flex: 0 0 auto; fill: none; stroke: var(--tone); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.tournament-mini header strong { flex: 1; min-width: 0; overflow: hidden; font-size: var(--t-xs); text-overflow: ellipsis; white-space: nowrap; }
.tournament-mini header em { color: #c0331c; font-size: var(--t-2xs); font-style: normal; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.tournament-mini header em.finished { color: var(--muted); }
.tournament-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tournament-mini .tournament-unit-badge { width: auto; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: var(--t-2xs); }
.tournament-mini-scores { display: flex; gap: 3px; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.tournament-mini-scores span { display: grid; min-width: 20px; height: 20px; place-items: center; color: var(--muted); font-weight: 600; }
.tournament-mini-scores span.won { color: var(--ink); font-weight: 800; }
.tournament-mini-scores span.current { border-radius: 6px; background: var(--card); box-shadow: 0 1px 2px #17364a14; color: var(--ink); font-weight: 800; }
.tournament-mini-row.winner .tournament-mini-scores span.current { color: var(--transformative-teal-dark); }
.tournament-mini-empty { grid-column: 1 / -1; margin: 0; padding: 10px; border-radius: 12px; background: #f3f5f4; color: var(--muted); font-size: var(--t-xs); text-align: center; }
.tournament-card-more { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: #2f7d45; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.tournament-card-more svg { width: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.tournament-dots { display: flex; justify-content: center; gap: 6px; padding: 2px 0 4px; }
.tournament-dots[hidden] { display: none; }
.tournament-dots i { width: 7px; height: 7px; border-radius: 999px; background: #17364a33; cursor: pointer; transition: width .2s ease, background .2s ease; }
.tournament-dots i.active { width: 22px; background: var(--ink); }
/* "Lihat semua" lists the same cards in a plain column. */
.collection-list.tournament-home { display: grid; gap: 12px; margin: 0; padding: 0; overflow: visible; }
.collection-list.tournament-home .tournament-card { flex-basis: auto; }
.collection-view:has(.collection-list.tournament-home) .collection-filter { display: none; }
.skeleton-tournament { cursor: default; }
.skeleton-tournament .tournament-mini { min-height: 84px; }
.skeleton-tournament .tournament-trophy { background: var(--surface-sunken); }
.tournament-empty { display: grid; justify-items: start; gap: 2px; margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); font-size: var(--t-xs); }
.tournament-empty strong { color: var(--ink); font-size: var(--t-md); }
.tournament-empty .text-button { margin-top: 6px; padding: 0; }

.tournament-sport-badge { display: inline-grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--tone-soft); color: var(--tone); }
.tournament-sport-badge svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.tournament-unit-badge { display: inline-grid; width: 42px; height: 28px; padding: 0 3px; white-space: nowrap; letter-spacing: -.01em; flex: 0 0 auto; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--unit, var(--ink)) 14%, #fff); color: var(--unit, var(--ink)); font-size: var(--t-2xs); font-weight: 800; }

/* Page hero: the venue photo when there is one, a colour field otherwise. */
.tournament-hero { position: relative; display: grid; gap: 10px; margin-bottom: 12px; padding: 12px 14px 14px; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, var(--transformative-teal-dark), var(--cool-blue-dark)); color: #fff; }
.tournament-hero.photo { min-height: 150px; background: linear-gradient(180deg, #0b1f2b40 0%, #0b1f2be6 100%), var(--cover) center / cover; }
.tournament-hero .back-button { margin: 0; border-color: #ffffff66; background: #ffffff2e; color: #fff; backdrop-filter: blur(6px); }
.tournament-hero-text { display: grid; align-content: end; gap: 8px; min-width: 0; }
.tournament-hero h1 { margin: 0; font-size: var(--t-xl); line-height: 1.2; overflow-wrap: anywhere; }
.tournament-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--t-xs); font-weight: 600; }
.tournament-meta span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; color: #ffffffe6; }
.tournament-meta svg { width: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* Tabs lead the page and stay reachable while a long list scrolls. */
.tournament-tabs { position: sticky; z-index: 5; top: env(safe-area-inset-top, 0px); grid-template-columns: repeat(8, minmax(58px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; box-shadow: 0 6px 16px #17364a14; }
.tournament-tabs button { display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 0; }
.tournament-tabs button small { color: var(--muted); font-size: var(--t-2xs); font-variant-numeric: tabular-nums; }
.tournament-tabs [data-tournament-tab="live"] small { color: var(--persimmon-deep); font-weight: 800; }

.tournament-sport-chips { display: flex; gap: 6px; margin: 0 -12px 8px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
.tournament-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.tournament-chip svg { width: 15px; fill: none; stroke: var(--tone); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.tournament-chip[aria-pressed="true"] { border-color: var(--tone, var(--ink)); background: var(--tone, var(--ink)); color: #fff; }
.tournament-chip[aria-pressed="true"] svg { stroke: currentColor; }
.tournament-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; margin-bottom: 14px; }
.tournament-filter { min-width: 0; }
.tournament-filter select, .tournament-filter input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.tournament-filter select { appearance: none; padding-right: 28px; overflow: hidden; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356697a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; text-overflow: ellipsis; white-space: nowrap; }
.tournament-filter input::placeholder { color: var(--muted); }
.tournament-filter.search { position: relative; }
.tournament-filter.search svg { position: absolute; top: 50%; left: 12px; width: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 2; pointer-events: none; }
.tournament-filter.search input { padding-left: 34px; }
.tournament-filters #tournament-filter-reset { grid-column: 1 / -1; justify-self: end; padding: 0; }

.tournament-body { display: grid; gap: 10px; }
.tournament-day { display: grid; gap: 10px; }
.tournament-day h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 8px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
.tournament-day h3 small { color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.schedule-day { gap: 12px; }
.schedule-sport-group { display: grid; gap: 8px; }
/* The divider already names the cabor, so the card leads with its category and round. */
.schedule-day .tournament-sport strong { display: none; }
.schedule-day .tournament-sport small { color: var(--ink); font-weight: 700; }
.schedule-sport-heading { margin: 0; }
.schedule-sport-divider { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; margin: 0; padding: 4px 0; border: 0; background: none; color: var(--tone); font: inherit; font-size: var(--t-sm); font-weight: 800; text-align: left; cursor: pointer; }
.schedule-sport-divider:not(button) { cursor: default; }
.schedule-sport-divider:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; border-radius: 10px; }
.schedule-sport-divider svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.schedule-sport-divider small { order: 2; padding: 1px 8px; border-radius: 999px; background: var(--tone-soft); font-size: var(--t-xs); font-weight: 800; }
.schedule-sport-divider::after { order: 3; flex: 1 1 auto; height: 1px; background: color-mix(in srgb, var(--tone) 28%, transparent); content: ""; }
.schedule-sport-divider .schedule-sport-chevron { order: 4; display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--tone-soft); transition: transform .2s ease; }
.schedule-sport-divider .schedule-sport-chevron svg { width: 14px; height: 14px; stroke-width: 2.4; }
.schedule-sport-group.open .schedule-sport-chevron { transform: rotate(180deg); }
/* Folded: only the first two cards (one row) of a cabor stay; keep the 3 in step with schedulePreviewCards + 1. */
.schedule-sport-group:not(.open) .tournament-day-grid > :nth-child(n+3) { display: none; }
.tournament-match { position: relative; display: grid; gap: 10px; padding: 12px 14px 12px 17px; overflow: hidden; border: 1px solid #ffffffc7; border-radius: 16px; background: var(--card); box-shadow: 0 8px 18px #17364a12; }
.tournament-match::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tone); content: ""; }
.tournament-match header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tournament-sport { display: grid; min-width: 0; }
.tournament-sport strong { color: var(--tone); font-size: var(--t-sm); }
.tournament-sport small, .tournament-match-meta span { overflow: hidden; color: var(--muted); font-size: var(--t-xs); text-overflow: ellipsis; white-space: nowrap; }
.tournament-match-meta { display: flex; align-items: center; gap: 4px; min-width: 0; margin: -6px 0 0 40px; }
.tournament-match-meta svg { width: 12px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.tournament-match.scheduled .tournament-status { padding: 3px 9px; border-radius: 999px; background: var(--tone-soft); color: var(--tone); font-variant-numeric: tabular-nums; }
/* Tournament requests live on Aktivitas > Diselenggarakan: a call to action,
   then the requests and tournaments you run as cards. */
.tournament-host { display: grid; gap: 10px; margin-bottom: 16px; }
.tournament-host[hidden] { display: none; }
.tournament-host-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tournament-host-head h3 { margin: 0; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tournament-host-head .text-button { padding: 0; font-size: var(--t-xs); }
.tournament-host-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tournament-host-list:has(.tournament-host-note) { border: 0; background: none; }
.tournament-host-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tournament-host-card:last-child { border-bottom: 0; }
.tournament-host-card > div { display: grid; flex: 1; gap: 2px; min-width: 0; }
.tournament-host-card strong { overflow-wrap: anywhere; font-size: var(--t-sm); }
.tournament-host-card small { color: var(--muted); font-size: var(--t-xs); }
.tournament-host-chevron { flex: none; width: 16px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.tournament-request-status { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; font-size: var(--t-2xs); font-weight: 800; white-space: nowrap; }
.tournament-request-status.pending { background: #fff3d6; color: #8a6100; }
.tournament-request-status.approved { background: #dcf0e1; color: #2f7d45; }
.tournament-request-status.rejected { background: #fde4dd; color: #c0331c; }
.tournament-host-note { margin: 0; color: var(--muted); font-size: var(--t-xs); line-height: 1.5; overflow-wrap: anywhere; }
.tournament-host-note code { font-size: var(--t-2xs); }

.tournament-request-form { display: grid; gap: 14px; min-height: 0; padding-bottom: 96px; }
.tournament-request-form > .tournament-trophy { width: 44px; height: 44px; }
.tournament-request-form h2 { margin: 0; }
.tournament-request-field { display: grid; gap: 5px; }
.tournament-request-label { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
/* Cabor as a dropdown checklist: one closed row until opened. */
.tournament-sport-picker summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: var(--t-sm); list-style: none; cursor: pointer; }
.tournament-sport-picker summary::-webkit-details-marker { display: none; }
.tournament-sport-picker summary::after { width: 7px; height: 7px; margin-left: 12px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; content: ""; }
.tournament-sport-picker[open] summary::after { transform: translateY(2px) rotate(225deg); }
.tournament-sport-picker summary.placeholder { color: var(--muted); }
.tournament-sport-picker summary:focus-visible { outline: 2px solid var(--transformative-teal-dark); outline-offset: 2px; }
.tournament-sport-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tournament-request-form .tournament-sport-options label { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 10px; color: var(--ink); font-size: var(--t-sm); font-weight: 500; cursor: pointer; }
.tournament-request-form .tournament-sport-options label:hover { background: var(--paper); }
.tournament-request-form .tournament-sport-options input { flex: 0 0 auto; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--transformative-teal-dark); }
@media (prefers-reduced-motion: reduce) { .tournament-sport-picker summary::after { transition: none; } }
.tournament-request-message { min-height: 1em; margin: 0; color: var(--persimmon-deep); font-size: var(--t-xs); }
.tournament-request-message:empty { display: none; }
.tournament-request-submit { min-height: 46px; border-radius: 14px; font-weight: 700; }
.tournament-request-submit:disabled { opacity: .45; }
/* Tournament manager: a sheet that rises from the bottom to 90% of the screen. */
dialog.tournament-sheet { inset: auto 0 0; width: min(100%, 640px); max-width: none; height: 90dvh; max-height: 90dvh; margin: 0 auto; padding: 0; border-radius: 26px 26px 0 0; background: var(--paper); box-shadow: 0 -18px 50px #17364a2e; overflow-y: auto; overscroll-behavior: contain; }
dialog.tournament-sheet[open] { animation: sheet-rise .32s cubic-bezier(.2, .9, .3, 1); }
dialog.tournament-sheet::backdrop { background: var(--scrim); }
@keyframes sheet-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { dialog.tournament-sheet[open] { animation: none; } }
.sheet-handle { width: 40px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: #17364a2b; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: start; padding: 12px 18px 12px 20px; background: var(--paper); }
.sheet-head h2 { margin: 0; font-size: var(--t-lg); line-height: 1.25; overflow-wrap: anywhere; }
.sheet-head p { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.sheet-icon { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.sheet-icon svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.sheet-message { margin: 0 20px; color: var(--transformative-teal-dark); font-size: var(--t-xs); font-weight: 700; }
.sheet-message:empty { display: none; }
.sheet-body { display: grid; gap: 12px; padding: 8px 16px 32px; }
.sheet-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #ffffffc7; border-radius: 18px; background: var(--card); box-shadow: 0 6px 16px #17364a0f; }
.sheet-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sheet-card h3 { margin: 0; font-size: var(--t-md); }
.sheet-card > header span { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sheet-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-sunken); font-size: var(--t-xs); font-weight: 600; }
.sheet-chips b { color: var(--transformative-teal-dark); font-size: var(--t-2xs); }
.sheet-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sheet-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.sheet-list li:first-child { border-top: 0; }
.sheet-list small, .sheet-empty { color: var(--muted); font-size: var(--t-xs); }
.sheet-empty { margin: 0; }
.sheet-pill { padding: 2px 8px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink); font-size: var(--t-2xs); font-weight: 800; }
.sheet-pill.published, .sheet-pill.verified { background: #dcf0e1; color: #2f7d45; }
.sheet-pill.live { background: #fde4dd; color: #c0331c; }
.sheet-pill.draft, .sheet-pill.scheduled { background: #fff3d6; color: #8a6100; }
.sheet-match { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--paper); }
.sheet-match > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: var(--t-sm); }
.sheet-match > div span { color: var(--muted); font-size: var(--t-xs); }
.sheet-match p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: var(--t-xs); }
.sheet-score { color: var(--ink); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
/* Each action folds away until it is needed. */
.sheet-action { border-top: 1px solid var(--line); }
.sheet-action summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 2px; color: var(--transformative-teal-dark); font-size: var(--t-sm); font-weight: 700; list-style: none; cursor: pointer; }
.sheet-action summary::-webkit-details-marker { display: none; }
.sheet-action summary::after { content: "+"; font-size: 18px; font-weight: 500; }
.sheet-action[open] summary::after { content: "–"; }
.sheet-action form { display: grid; gap: 10px; padding: 10px 0 4px; }
.sheet-action label { display: grid; gap: 5px; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.sheet-action input, .sheet-action select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: var(--t-sm); }
.sheet-action .form-grid { gap: 10px; }
.sheet-grid-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.player-list { display: grid; gap: 10px; }
.player-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #ffffffc7; border-radius: 18px; background: var(--card); box-shadow: 0 6px 16px #17364a0f; }
.player-card header { display: flex; align-items: center; gap: 10px; }
.player-card header strong { font-size: var(--t-md); overflow-wrap: anywhere; }
.player-group { display: grid; gap: 4px; }
.player-group small { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.player-group ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: var(--t-sm); }
.player-group li { overflow-wrap: anywhere; }
.encounter-list { display: grid; gap: 10px; }
.encounter-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #ffffffc7; border-radius: 18px; background: var(--card); box-shadow: 0 6px 16px #17364a0f; }
.encounter-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.encounter-card header small { color: var(--muted); font-size: var(--t-xs); }
.encounter-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; text-align: center; }
.encounter-teams strong { font-size: var(--t-md); overflow-wrap: anywhere; }
.encounter-teams span { color: var(--muted); font-size: var(--t-xs); }
.encounter-rows { display: grid; }
.encounter-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 34px; gap: 6px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.encounter-row span { color: var(--muted); }
.encounter-row b { display: grid; height: 30px; place-items: center; border-radius: 8px; background: var(--surface-sunken); color: var(--muted); font-variant-numeric: tabular-nums; }
.encounter-row b.won { background: var(--transformative-teal-dark); color: #fff; }
.encounter-row.live span { color: #c0331c; font-weight: 700; }
.encounter-card footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); font-size: var(--t-sm); }
.encounter-card footer b { font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.team-standings .tournament-recap-row { grid-template-columns: 22px minmax(0, 1fr) 40px 48px; }
.standing-flag { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #e2f1f9; color: var(--cool-blue-dark); font-size: var(--t-2xs); font-style: normal; font-weight: 800; }
.standing-flag.manual { background: #fde4dd; color: #c0331c; }
.standing-manual { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #fde4dd; color: #c0331c; font-size: var(--t-xs); font-weight: 700; }
.sheet-meta { margin: -4px 0 0; color: var(--muted); font-size: var(--t-xs); }
.sheet-action summary small { margin-left: 6px; color: var(--muted); font-size: var(--t-2xs); font-weight: 600; }
.sheet-slots { display: grid; gap: 8px; }
.sheet-action .primary-button { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: var(--t-sm); }
.tournament-request-dialog { width: min(520px, calc(100% - 24px)); max-height: 90dvh; padding: 20px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); overflow-y: auto; }
.tournament-request-dialog::backdrop { background: #102b3c99; }
.tournament-request-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tournament-request-dialog form, .tournament-request-dialog form > label { display: grid; gap: 8px; }
.tournament-request-dialog form { gap: 14px; }
.tournament-request-dialog input:not([type=checkbox]), .tournament-request-dialog textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.tournament-request-dialog fieldset { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; }
.tournament-request-dialog fieldset label { display: flex; align-items: center; gap: 8px; }
.tournament-request-dialog button { padding: 10px 14px; border-radius: 10px; }
.tournament-request-dialog article { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tournament-request-dialog details { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.tournament-request-dialog summary { cursor: pointer; font-weight: 700; }
.tournament-request-dialog details form { margin-top: 14px; }
.tournament-request-dialog select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.tournament-side { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tournament-side-name { display: grid; min-width: 0; }
.tournament-side-name strong { overflow-wrap: anywhere; font-size: var(--t-sm); font-weight: 600; }
.tournament-side.winner .tournament-side-name strong { font-weight: 800; }
.tournament-match.finished .tournament-side:not(.winner) .tournament-side-name strong { color: var(--muted); }
.tournament-match.finished .tournament-side:not(.winner) .tournament-score.goals { color: var(--muted); font-weight: 600; }
.tournament-side-name small { overflow-wrap: anywhere; color: var(--muted); font-size: var(--t-xs); }
.tournament-side.many-sets { grid-template-columns: 28px minmax(0, 1fr); }
.tournament-side.many-sets .tournament-scores { grid-column: 2; justify-self: end; }
.tournament-scores { display: flex; gap: 2px; }
.tournament-score { min-width: 22px; color: var(--muted); font-size: var(--t-md); font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.tournament-score.won, .tournament-score.current { color: var(--ink); font-weight: 800; }
.tournament-score.point { min-width: 32px; margin-left: 6px; padding: 1px 4px; border-radius: 8px; background: var(--tone-soft); color: var(--tone); font-weight: 800; }
.tournament-score.goals { min-width: 28px; color: var(--ink); font-size: var(--t-lg); font-weight: 800; }

.tournament-recap { display: grid; overflow: hidden; border: 1px solid #ffffffc7; border-radius: 16px; background: var(--card); box-shadow: 0 8px 18px #17364a12; }
.tournament-recap-row { display: grid; grid-template-columns: 22px minmax(92px, 1fr) repeat(var(--standing-cols, 1), minmax(21px, .45fr)) 32px 14px; gap: 4px; align-items: center; min-height: 44px; padding: 8px 8px 8px 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font-size: var(--t-md); font-variant-numeric: tabular-nums; text-align: center; cursor: pointer; }
.tournament-recap-row > span:nth-child(2) { display: flex; gap: 8px; align-items: center; min-width: 0; text-align: left; }
.tournament-rank { color: var(--muted); font-size: var(--t-sm); font-weight: 800; }
.tournament-recap-row.leader .tournament-rank { color: #a07400; }
/* Points table: a cabor icon heads each column, the unit's points sit under it, then the total. */
.tournament-standing-sport { display: grid; place-items: center; color: var(--tone); }
.tournament-standing-sport svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.tournament-standing-cell { font-size: var(--t-sm); font-weight: 700; }
.tournament-standing-cell.zero { color: #c3cdd3; font-weight: 500; }
.tournament-standing-total { font-weight: 800; }
.tournament-recap-row.head .tournament-standing-total { font-size: var(--t-2xs); }
.tv-standings .tournament-standing-cell { font-size: .95em; }
.tv-standings .tournament-standing-cell.zero { color: #4b6070; }
.tv-standings-row.head .tournament-standing-total { font-size: .8em; }
.tv-standings .tournament-standing-sport { color: var(--tone-soft); }
.tv-standings .tournament-standing-sport svg { width: 1.05em; }
.tournament-standings-note { margin: 0 0 8px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.tournament-notes { margin: 0; padding: 16px; white-space: pre-wrap; font-size: var(--t-sm); line-height: 1.55; background: var(--paper); border-radius: 12px; }
.tournament-recap-row strong { overflow: hidden; font-size: var(--t-sm); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tournament-recap.totals-only .tournament-recap-row { grid-template-columns: 22px minmax(92px, 1fr) 40px 14px; }
.tv-standings.totals-only .tv-standings-row { grid-template-columns: 1.4em minmax(0, 1fr) 3em; }
.tournament-recap .tournament-unit-badge { width: 36px; height: 24px; padding: 0 2px; border-radius: 8px; font-size: 9px; }
.tournament-recap-row.head { border-top: 0; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; cursor: default; }
.tournament-recap-row:not(.head):hover { background: var(--paper); }
.tournament-recap-row svg { width: 14px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.tournament-recap-row:focus-visible, .tournament-card:focus-visible, .tournament-chip:focus-visible { outline: 2px solid var(--transformative-teal-dark); outline-offset: 2px; }

.tournament-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tournament-hero-actions { display: inline-flex; align-items: center; gap: 2px; }
.tournament-hero-action[hidden] { display: none; }
.tournament-hero-action { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px #0009); }
.tournament-hero-action svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }

/* ---------- Turnamen: TV mode ---------- */
/* Sized off the viewport so it reads from across a hall on any screen. */
body.tv-mode { overflow: hidden; }
body.tv-mode .bottom-nav { display: none; }
.tv-view { position: fixed; z-index: 8; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 1.6vmin; padding: 2.4vmin 3vmin; overflow: hidden; background: radial-gradient(circle at 15% 0%, #1d4a5f 0%, #0d1f2a 55%, #0a1821 100%); color: #f2f7f9; font-size: clamp(13px, 1.9vmin, 30px); }
.tv-view[hidden] { display: none; }
.tv-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2em; align-items: center; }
.tv-bar .tournament-trophy { width: 3.2em; height: 3.2em; border-radius: .8em; background: #ffffff14; color: #9be0b3; }
.tv-bar .tournament-trophy svg { width: 1.7em; }
.tv-bar > .tournament-sport-badge { width: 3.2em; height: 3.2em; border-radius: .8em; }
.tv-bar > .tournament-sport-badge svg { width: 1.7em; }
.tv-title { display: grid; gap: .15em; min-width: 0; }
.tv-title h1 { margin: 0; overflow: hidden; font-size: 2em; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.tv-title small { overflow: hidden; color: #b9c9d2; font-size: .95em; text-overflow: ellipsis; white-space: nowrap; }
.tv-bar-side { display: flex; align-items: center; gap: 1em; }
.tv-view .tournament-status.live { gap: .45em; padding: .35em .9em; background: #e0301e; color: #fff; font-size: 1em; }
.tv-view .tournament-status.live::before { width: .55em; height: .55em; }
.tv-bar time { font-size: 2.2em; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-sports { display: flex; flex-wrap: wrap; gap: .5em; }
.tv-sports .tournament-chip { min-height: 2.2em; padding: 0 1em; border-color: #ffffff26; background: #ffffff0d; color: #d7e2e8; font-size: .85em; }
.tv-sports .tournament-chip svg { width: 1.1em; stroke: var(--tone-soft); }
.tv-sports .tournament-chip[aria-pressed="true"] { border-color: var(--tone-soft, #f2f7f9); background: var(--tone-soft, #f2f7f9); color: var(--tone, #0d1f2a); }
.tv-sports .tournament-chip[aria-pressed="true"] svg { stroke: currentColor; }
.tv-main { display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 1.2em; min-height: 0; }
/* Rows share the column's height, so the table fills its card. */
.tv-standings { display: flex; flex-direction: column; gap: .2em; min-height: 0; padding: 1em 1.2em; overflow: hidden; border: 1px solid #ffffff14; border-radius: 1em; background: #ffffff0a; }
.tv-standings h2 { margin: 0; font-size: 1.2em; }
.tv-standings > small { margin-bottom: .5em; color: #8ea3af; font-size: .8em; }
.tv-standings-row { display: grid; grid-template-columns: 1.4em minmax(0, 1fr) repeat(var(--standing-cols, 1), 1.45em) 2.1em; gap: .4em; align-items: center; padding: .45em 0; border-top: 1px solid #ffffff0f; font-variant-numeric: tabular-nums; text-align: center; }
.tv-standings.team-tv.regional .tv-standings-row { grid-template-columns: 1.4em minmax(0, 1fr) repeat(3, 2em) 2.1em; }
/* The header keeps the rows' font size, so its em-sized columns line up with them. */
.tv-standings-row.head { flex: 0 0 auto; border-top: 0; color: #8ea3af; font-weight: 700; }
.tv-standings-row:not(.head) { flex: 1 1 0; min-height: 2.25em; max-height: 5em; }
/* Bigger type on the cells, not the row, so its em-sized columns match the header. */
.tv-standings-row:not(.head) > span:not(:nth-child(2)) { font-size: 1.1em; }
.tv-standings-row.head > span { font-size: .8em; }
.tv-standings-row > span:first-child { color: #8ea3af; font-weight: 800; }
.tv-standings-row.leader > span:first-child { color: #f6d365; }
.tv-standings-row > span:nth-child(2) { display: flex; align-items: center; gap: .5em; min-width: 0; text-align: left; }
.tv-standings-row strong { overflow: hidden; font-size: 1.05em; text-overflow: ellipsis; white-space: nowrap; }
.tv-standings-more { flex: 0 0 auto; padding-top: .35em; border-top: 1px solid #ffffff0f; color: #8ea3af; font-size: .76em; text-align: right; }

.tv-standings-live-wrap { overflow-y: auto; }
.tv-standings-live-block + .tv-standings-live-block { margin-top: .7em; padding-top: .5em; border-top: 1px solid #ffffff14; }
.tv-standings-live-block h3 { margin: 0 0 .2em; color: #b9c9d2; font-size: .78em; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.tv-standings-row.live { grid-template-columns: 1.4em minmax(0, 1fr) 2.2em 2.6em; padding: .3em 0; }
.tv-standings-row.live.head { color: #8ea3af; }
.tv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 1.2em; min-height: 0; }
.tv-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tv-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* One match (a cabor-only screen) fills the width with bigger type. */
.tv-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.tv-grid.cols-1 .tv-match { padding: 1.4em 2em; font-size: 1.7em; }
/* Two courts: stacked, each a wide scoreboard; the two sides split the card and the type grows with its height. */
.tv-grid.pair { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); }
.tv-grid.pair .tv-match { grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); align-content: stretch; gap: .25em; padding: .75em 1em; container-type: size; }
.tv-grid.pair .tv-match header { grid-template-columns: auto minmax(0, 1fr) auto; gap: .55em; padding-bottom: .35em; }
.tv-grid.pair .tv-match header .tournament-sport-badge { width: 1.75em; height: 1.75em; }
.tv-grid.pair .tv-match header strong { font-size: .88em; }
.tv-grid.pair .tv-match header small { font-size: .7em; }
.tv-grid.pair .tv-match header small { display: flex; align-items: center; gap: .38em; }
.tv-grid.pair .tv-match header .tv-round, .tv-grid.pair .tv-match header .tv-where { color: #b9c9d2; font-style: normal; white-space: nowrap; }
.tv-grid.pair .tv-match header .tv-round::after { width: .28em; height: .28em; margin-left: .38em; border-radius: 50%; background: #8ea3af; content: ""; }
.tv-grid.pair .tv-match header em { font-size: .72em; }
.tv-grid.pair .tv-match .tv-row { box-sizing: border-box; width: 100%; overflow: hidden; grid-template-columns: minmax(0, 1fr) auto; gap: .45em; min-height: 0; padding: .2em 0; border-top: 1px solid #ffffff14; font-size: clamp(.9em, min(10.8cqh, 2.95cqi), 2.2em); container-type: size; }
/* Each side row is its own size container: avatar, names and score are measured from the row itself,
   so on any TV viewport they fill it without spilling into the next row or the point strip. */
/* Read from across a room on a 55" screen: players sit a clear step below the club, large enough to read, full contrast. */
.tv-grid.pair .tv-match .tv-name { align-self: center; gap: .2em; font-size: min(44cqh, 3.75cqi); }
.tv-grid.pair .tv-match .tv-name strong { font-size: 1.16em; line-height: 1.05; }
.tv-grid.pair .tv-match .tv-name small { display: block; color: #d6e3ea; font-size: .74em; font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
.tv-grid.pair .tv-match .tv-scores { justify-content: flex-end; gap: .2em; font-size: min(62cqh, 5.45cqi); }
.tv-grid.pair .tv-match .tv-scores span.point { margin-left: -.2em; }
.tv-grid.pair .tv-match .tv-scores span { min-width: 1.35em; height: 1.35em; }
/* Team tennis carries the game-point strip below: keep it compact so rows never collide. */
.tv-grid.pair .tv-match:has(.tv-point-strip) { grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) auto; }
.tv-grid.pair .tv-match:has(.tv-point-strip) .tv-row { font-size: clamp(.96em, min(10.4cqh, 2.95cqi), 2.05em); }
.tv-grid.pair .tv-match .tv-point-strip { grid-auto-flow: column; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55em; margin: 0; padding-top: .3em; border-top: 1px solid #ffffff14; font-size: clamp(.9em, 6.4cqh, 1.18em); }
.tv-grid.pair .tv-match .tv-point-strip > span { font-size: .62em; }
.tv-grid.pair .tv-match .tv-point-strip ol { display: flex; flex-wrap: nowrap; gap: .3em; overflow: hidden; }
.tv-grid.pair .tv-match .tv-point-strip li { flex: 0 0 auto; min-width: 4.6em; padding: .25em .38em; }
/* A short card (a small TV viewport): the header folds onto one line and the padding tightens, leaving the height to the two sides. */
@container (max-height: 260px) {
  .tv-grid.pair .tv-match header > span { display: flex; align-items: baseline; gap: .5em; }
  .tv-grid.pair .tv-match header .tournament-sport-badge { width: 1.4em; height: 1.4em; }
  .tv-grid.pair .tv-match .tv-point-strip { padding-top: .2em; }
}
.tv-empty { display: grid; grid-column: 1 / -1; place-items: center; margin: 0; color: #b9c9d2; font-size: 1.6em; }
.tv-match { position: relative; display: grid; grid-template-rows: auto auto auto; align-content: center; gap: .9em; min-height: 0; padding: 1em 1.2em; overflow: hidden; border: 1px solid #ffffff14; border-radius: 1em; background: #ffffff0d; }
.tv-match::before { position: absolute; inset: 0 auto 0 0; width: .35em; background: var(--tone-soft); content: ""; }
.tv-match header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7em; align-items: center; }
.tv-match header .tournament-sport-badge { width: 2.2em; height: 2.2em; }
.tv-match header .tournament-sport-badge svg { width: 1.2em; }
.tv-match header span { display: grid; min-width: 0; }
.tv-match header strong { color: var(--tone-soft); font-size: 1.05em; }
.tv-match header small { overflow: hidden; color: #b9c9d2; font-size: .8em; text-overflow: ellipsis; white-space: nowrap; }
.tv-match header em { color: #ff8a73; font-size: .85em; font-style: normal; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.tv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7em; align-items: center; }
.tv-row strong { overflow: hidden; font-size: 1.35em; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tv-scores { display: flex; gap: .3em; font-size: 1.6em; font-variant-numeric: tabular-nums; }
.tv-scores span { display: grid; min-width: 1.4em; height: 1.4em; place-items: center; color: #8ea3af; font-weight: 700; }
.tv-scores span.won { color: #f2f7f9; }
.tv-scores span.current { border-radius: .25em; background: #f2f7f9; color: #0d1f2a; font-weight: 800; }
/* Scorebug: the game in play (Circle wasabi) with the small point (white) joined on its right, 1 | 30. */
.tv-match .tv-scores span.current { background: var(--wasabi); color: var(--ink); }
.tv-match .tv-scores span.current:has(+ span.point) { border-radius: .25em 0 0 .25em; }
.tv-scores span.point { margin-left: -.3em; padding: 0 .3em; border-radius: 0 .25em .25em 0; background: #fff; color: var(--ink); font-weight: 800; }
/* On shorter landscape TVs, four simultaneous courts fit beside 30% standings. */
@media (min-width: 800px) and (orientation: landscape) and (max-height: 900px) {
  .tv-view { font-size: clamp(10px, 1.4vmin, 18px); }
  .tv-match { grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); align-content: stretch; gap: .25em; padding: .55em .7em; }
  .tv-match header { gap: .5em; }
  .tv-match header .tournament-sport-badge { width: 1.55em; height: 1.55em; }
  .tv-match header strong { font-size: .82em; }
  .tv-match header small, .tv-match header em { font-size: .62em; }
  .tv-row { min-height: 0; gap: .4em; padding: .1em 0; border-top: 1px solid #ffffff14; }
  .tv-name { min-width: 0; }
  .tv-name small { display: none; }
  .tv-row strong { font-size: .96em; line-height: 1.1; }
  .tv-scores { gap: .14em; font-size: 1.08em; }
  .tv-scores span { min-width: 1.25em; height: 1.25em; }
}
@media (min-width: 1200px) and (min-aspect-ratio: 16/10) {
  .tv-grid.cols-3 { gap: .8em; }
  .tv-grid.cols-3 .tv-match { grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); align-content: stretch; gap: .25em; padding: .55em .7em; }
  .tv-grid.cols-3 .tv-match header { gap: .45em; }
  .tv-grid.cols-3 .tv-match header .tournament-sport-badge { width: 1.5em; height: 1.5em; }
  .tv-grid.cols-3 .tv-match header strong { font-size: .84em; }
  .tv-grid.cols-3 .tv-match header small, .tv-grid.cols-3 .tv-match header em { font-size: .62em; }
  .tv-grid.cols-3 .tv-row { min-height: 0; gap: .38em; padding: .1em 0; border-top: 1px solid #ffffff14; }
  .tv-grid.cols-3 .tv-name { min-width: 0; }
  .tv-grid.cols-3 .tv-name small { display: none; }
  .tv-grid.cols-3 .tv-row strong { font-size: .98em; line-height: 1.1; }
  .tv-grid.cols-3 .tv-scores { gap: .14em; font-size: 1.08em; }
  .tv-grid.cols-3 .tv-scores span { min-width: 1.22em; height: 1.22em; }
}
.tv-strips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2em; }
.tv-strips section { min-width: 0; padding: .9em 1.1em; border-radius: 1em; background: #ffffff0a; }
.tv-strips h2 { margin: 0 0 .5em; color: #b9c9d2; font-size: .85em; letter-spacing: .04em; text-transform: uppercase; }
.tv-strips ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45em 1.4em; margin: 0; padding: 0; list-style: none; }
.tv-strips li { display: flex; align-items: center; gap: .5em; min-width: 0; font-size: 1em; white-space: nowrap; }
.tv-strips li svg { width: 1.1em; flex: 0 0 auto; fill: none; stroke: var(--tone-soft); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.tv-strips li time { color: #9be0b3; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-strips li b { color: #d7e2e8; }
.tv-strips li b.won { color: #fff; font-weight: 800; }
.tv-strips li .tv-next-line { display: grid; min-width: 0; row-gap: .12em; }
.tv-strips li .tv-next-line > span { display: flex; align-items: center; gap: .5em; min-width: 0; }
.tv-strips li .tv-next-line em { min-width: 0; overflow: hidden; color: #aebfc8; font-size: .78em; font-style: normal; text-overflow: ellipsis; }
.tv-strips li i { color: #8ea3af; font-style: normal; font-size: .85em; }
.tv-strips li small { min-width: 0; overflow: hidden; color: #8ea3af; font-size: .85em; text-overflow: ellipsis; }
.tv-result-item { display: inline-flex; align-items: baseline; gap: .45em; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; }
.tv-result-item.team-result { display: grid; row-gap: .12em; }
.tv-result-item.team-result > span { display: flex; align-items: baseline; gap: .45em; min-width: 0; }
.tv-result-item.team-result em { min-width: 0; overflow: hidden; color: #aebfc8; font-size: .78em; font-style: normal; text-overflow: ellipsis; }
.tv-result-item svg { width: 1.1em; flex: 0 0 auto; align-self: center; fill: none; stroke: var(--tone-soft); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.tv-result-item b { color: #8ea3af; font-weight: 700; }
.tv-result-item b.won { color: #9be0b3; font-weight: 800; }
.tv-result-tally { color: #f2f7f9; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-result-item small { min-width: 0; overflow: hidden; color: #8ea3af; font-size: .8em; text-overflow: ellipsis; }
.tv-foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; color: #8ea3af; font-size: .85em; }
/* The app's wordmark, in light tones for the dark screen, so viewers know where the scores come from. */
.tv-brand { display: flex; align-items: baseline; gap: .8em; }
.tv-brand .brand { font-size: 2.1em; cursor: default; }
.tv-brand .brand span { animation-name: tv-brand-color-flow; }
.tv-brand small { color: #8ea3af; font-size: 1em; }
@keyframes tv-brand-color-flow {
  0%, 100% { color: #9dd7f1; }
  25% { color: #7fd1c9; }
  50% { color: #e8f34a; }
  75% { color: #f5896c; }
}
.tv-pages { display: flex; gap: .4em; }
.tv-pages i { width: .6em; height: .6em; border-radius: 999px; background: #ffffff33; }
.tv-pages i.active { width: 1.6em; background: #f2f7f9; }
.tv-controls { display: flex; gap: .5em; }
.tv-controls button { display: grid; width: 2.6em; height: 2.6em; place-items: center; padding: 0; border: 1px solid #ffffff26; border-radius: 50%; background: #ffffff0f; color: #f2f7f9; cursor: pointer; }
.tv-controls svg { width: 1.2em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
/* Cabor screen: chips and status on top, two court panels, pills below. */
.tv-view.cabor { grid-template-rows: auto auto 1fr auto; }
.tv-live-courts { color: #ff8a73; font-size: .95em; white-space: nowrap; }
.tv-courts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; align-content: stretch; gap: 1.2em; min-height: 0; }
.tv-courts.single { grid-template-columns: minmax(0, 1fr); }
/* Beside the standings column the court panels are narrower: a slimmer column
   and smaller score cells keep unit names whole. */
.tv-view.cabor .tv-main { grid-template-columns: minmax(0, 1fr) 20em; }
.tv-view.cabor .tv-court .tv-row strong { font-size: 1.35em; }
.tv-view.cabor .tv-court .tv-scores { font-size: 2.1em; }
.tv-courts.single .tv-court { font-size: 1.4em; }
.tv-court { display: grid; grid-template-rows: auto auto auto auto auto; align-content: center; gap: .45em; min-height: 0; padding: 1em 1.3em; border: 1px solid #ffffff14; border-radius: 1em; background: #ffffff0a; font-size: 1.15em; }
.tv-court header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; padding-bottom: .6em; border-bottom: 1px solid #ffffff14; }
.tv-court header span { display: grid; min-width: 0; }
.tv-court header strong { font-size: 1.15em; }
.tv-court header small { color: #b9c9d2; font-size: .7em; }
.tv-court header em { display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em; border-radius: 999px; background: #ffffff14; color: #d7e2e8; font-size: .65em; font-style: normal; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.tv-court header em.live { background: #e0301e33; color: #ff8a73; }
.tv-court header em.live::before { width: .55em; height: .55em; border-radius: 50%; background: currentColor; content: ""; }
.tv-columns { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
/* Header cells share the score cells' size, so each label sits over its column. */
.tv-columns .tv-scores { line-height: .7; }
.tv-columns .tv-scores span { height: auto; background: none; }
.tv-columns small { color: #8ea3af; font-size: clamp(12px, .4em, 18px); line-height: 1.2; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tv-court .tv-scores span { width: 1.35em; }
.tv-court .tv-row { align-content: center; padding: .4em 0; border-top: 1px solid #ffffff0f; }
.tv-court .tv-row strong { font-size: 1.6em; }
.tv-court .tv-row.behind strong { color: #8ea3af; }
.tv-court .tv-scores { gap: .35em; font-size: 2.6em; }
.tv-court .tv-scores span { height: 1.35em; }
.tv-court .tv-scores span.current { background: #f2f7f9; color: #0d1f2a; }
.tv-court .tv-row.behind .tv-scores span.current { background: #d3dde2; }
.tv-court .tv-scores span.point { margin-left: 0; padding: 0; background: var(--tone-soft); color: var(--tone); }
.tv-court .tv-scores span.tv-cell-empty { border-radius: .25em; background: #ffffff0f; }
.tv-court .tv-scores span.tv-cell-empty::before { width: .4em; height: .07em; border-radius: 1em; background: #8ea3af; content: ""; }
.tv-court.idle { grid-template-rows: auto 1fr; align-content: stretch; }
.tv-pills { display: flex; flex: 1 1 auto; justify-content: space-between; gap: .6em; min-width: 0; }
.tv-pill { display: inline-flex; align-items: center; gap: .5em; min-width: 0; padding: .6em 1em; border-radius: .8em; background: #ffffff0d; white-space: nowrap; }
.tv-pill > small { color: #8ea3af; font-size: .8em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tv-pill > small:last-child { font-weight: 600; letter-spacing: 0; text-transform: none; }
.tv-pill time { color: #9be0b3; font-weight: 800; }
.tv-pill b { color: #d7e2e8; }
.tv-pill b.won { color: #fff; }
.tv-pill i { color: #8ea3af; font-size: .85em; font-style: normal; }
/* A portrait screen (phone or tablet held upright) stacks the scoreboards. */
@media (orientation: portrait) {
  .tv-view { display: flex; flex-direction: column; overflow-y: auto; }
  .tv-view > * { flex-shrink: 0; }
  .tv-bar { grid-template-columns: auto minmax(0, 1fr); }
  .tv-bar-side { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; }
  .tv-title h1, .tv-title small { white-space: normal; overflow-wrap: anywhere; }
  .tv-grid, .tv-grid.cols-2 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tv-grid.cols-1 .tv-match { font-size: 1.2em; }
  .tv-strips, .tv-strips ol, .tv-courts, .tv-main, .tv-view.cabor .tv-main { grid-template-columns: minmax(0, 1fr); }
  .tv-view.cabor { grid-template-rows: auto auto auto auto; }
  .tv-foot, .tv-pills { flex-wrap: wrap; }
}

/* Tablet and desktop: the column is wide enough for two cards side by side,
   so the Home carousel shows two at a time and match lists become a two-column grid. */
@media (min-width: 600px) {
  /* Still one sideways row: two cards in view, the rest a swipe away. */
  .tournament-card { flex-basis: calc((100% - 12px) / 2); }
  .collection-list.tournament-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-hero { gap: 14px; padding: 16px 20px 20px; border-radius: 24px; }
  .tournament-hero.photo { min-height: 220px; }
  .tournament-hero h1 { font-size: var(--t-2xl); }
  .tournament-meta { font-size: var(--t-sm); }
  .tournament-sport-chips { flex-wrap: wrap; margin-right: 0; margin-left: 0; padding: 0; overflow: visible; }
  .tournament-filters { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .tournament-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .tournament-day h3 { grid-column: 1 / -1; }
}

/* ---------- Pull-to-refresh (installed app only, see pwa.js) ---------- */
/* The custom gesture replaces the rubber-band, so the page never bounces on its own. */
html.pwa-standalone, html.pwa-standalone body { overscroll-behavior-y: none; }
/* The page shell follows the finger. The transform only exists during a pull:
   left in place, it would make the shell the containing block for fixed children. */
html.ptr-active :is(.app-shell, .login-shell, .venue-shell) { transform: translateY(var(--ptr-shift, 0px)); transition: transform .34s cubic-bezier(.2, .9, .3, 1.15); }
html.ptr-dragging :is(.app-shell, .login-shell, .venue-shell), html.ptr-dragging .pull-refresh { transition: none; }

.pull-refresh { position: fixed; z-index: 20; top: env(safe-area-inset-top, 0px); left: 50%; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid #ffffffc7; border-radius: 999px; background: var(--card); box-shadow: 0 10px 24px #17364a24; color: var(--ink); visibility: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, calc((var(--pull, 0px) - 44px) / 2)); transition: transform .34s cubic-bezier(.2, .9, .3, 1.15), opacity .2s ease, background .18s ease, border-color .18s ease, color .18s ease, visibility 0s .34s; }
.pull-refresh.is-visible { visibility: visible; opacity: min(1, calc(var(--progress, 0) * 2.5)); transition: transform .34s cubic-bezier(.2, .9, .3, 1.15), opacity .2s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.pull-refresh.is-refreshing { opacity: 1; }
.pull-refresh-dial { position: relative; display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; }
.pull-refresh-ring { position: absolute; inset: 0; width: 30px; height: 30px; transform: rotate(-90deg); }
.pull-refresh-track, .pull-refresh-arc { fill: none; stroke-width: 3.2; }
.pull-refresh-track { stroke: var(--line); transition: stroke .18s ease; }
.pull-refresh-arc { stroke: var(--transformative-teal-dark); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke .18s ease; }
.pull-refresh-arrow { width: 15px; fill: none; stroke: var(--transformative-teal-dark); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; transform: rotate(calc(var(--progress, 0) * 180deg)); transition: stroke .18s ease, opacity .18s ease; }
.pull-refresh-label { font-size: var(--t-sm); font-weight: 700; white-space: nowrap; }

/* Armed: the pill fills and pops once, so "release now" reads at a glance. */
.pull-refresh.is-armed { border-color: var(--transformative-teal-dark); background: var(--transformative-teal-dark); color: var(--on-accent); animation: pull-refresh-pop .28s ease-out; }
.pull-refresh.is-armed .pull-refresh-track { stroke: #ffffff40; }
.pull-refresh.is-armed .pull-refresh-arc, .pull-refresh.is-armed .pull-refresh-arrow { stroke: var(--on-accent); }

/* Refreshing: the arrow gives way to a spinning arc until the page reloads. */
.pull-refresh.is-refreshing .pull-refresh-arrow { opacity: 0; }
.pull-refresh.is-refreshing .pull-refresh-ring { animation: pull-refresh-spin .75s linear infinite; }

@keyframes pull-refresh-pop { 0%, 100% { scale: 1; } 45% { scale: 1.08; } }
@keyframes pull-refresh-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }

@media (prefers-reduced-motion: reduce) {
  html.ptr-active :is(.app-shell, .login-shell, .venue-shell), .pull-refresh, .pull-refresh.is-visible { transition: opacity .2s ease; }
  .pull-refresh.is-armed { animation: none; }
  /* The arc still shows work in progress, just without spinning. */
  .pull-refresh.is-refreshing .pull-refresh-ring { animation: none; }
}

/* Create chooser: event, tournament or club */
.create-choice { display: grid; gap: 10px; }
.create-choice h2 { margin: 0 0 6px; }
.create-choice-option { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line, #dfe6ea); border-radius: 16px; background: var(--surface, #fff); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.create-choice-option:hover, .create-choice-option:focus-visible { border-color: var(--primary, #1b5e5b); background: color-mix(in srgb, var(--primary, #1b5e5b) 6%, transparent); }
.create-choice-option svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--primary, #1b5e5b) 12%, transparent); stroke: var(--primary, #1b5e5b); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.create-choice-option span { display: grid; gap: 2px; min-width: 0; }
.create-choice-option small { color: var(--muted, #6b7a86); font-size: .82rem; }
.create-choice-option i { font-style: normal; font-size: 1.4rem; color: var(--muted, #6b7a86); }

/* Tournament manager: a menu of jobs, each opening its own page */
.sheet-menu { display: grid; margin: 0 -16px; border-top: 1px solid var(--line, #e3e8eb); }
.sheet-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line, #e3e8eb); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sheet-row:hover, .sheet-row:focus-visible { background: color-mix(in srgb, var(--primary, #1b5e5b) 5%, transparent); }
.sheet-row svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sheet-row span { display: grid; gap: 2px; min-width: 0; }
.sheet-row strong { font-size: var(--t-md, 1rem); font-weight: 600; }
.sheet-row small { color: var(--muted); font-size: var(--t-xs, .8rem); }
.sheet-row i { font-style: normal; font-size: 1.4rem; color: var(--muted); }
.sheet-row.danger { color: #d9480f; }
.sheet-subhead { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.sheet-subhead h3 { margin: 0; font-size: var(--t-md, 1.05rem); }
.sheet-back { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink, #1c2b36) 6%, transparent); color: inherit; cursor: pointer; }
.sheet-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Quick score: like the club event, two boxes and save */
.sheet-quickscore { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line, #e3e8eb); }
.sheet-quickscore-label { font-size: var(--t-sm, .9rem); font-weight: 600; min-width: 0; }
.sheet-done { padding: 2px 6px; border-radius: 6px; background: #e3f4ea; color: #1f7a4a; font-size: var(--t-2xs, .7rem); }
.sheet-quickscore-boxes { display: flex; align-items: center; gap: 6px; }
.sheet-quickscore-boxes select { width: 52px; height: 40px; padding: 0 6px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; text-align: center; }
.sheet-quickscore-boxes .primary-button { min-height: 40px; padding: 0 14px; }
.sheet-quickscore-more { grid-column: 1 / -1; }
.sheet-quickscore-more summary { color: var(--muted); font-size: var(--t-xs, .8rem); cursor: pointer; }
.sheet-quickscore-more[open] {
  display: grid; gap: 10px; margin-top: 4px; padding: 12px; border: 1px solid var(--line, #e3e8eb); border-radius: 14px; background: var(--surface-chip, #f5f8f9);
}
.sheet-quickscore-more[open] .form-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sheet-quickscore-more label { display: grid; gap: 5px; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.sheet-quickscore-more input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 500; box-sizing: border-box; }
.quickscore-player-field { display: grid; gap: 6px; }
.quickscore-roster-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.roster-chip { padding: 5px 10px; border: 1px solid var(--line, #d7dee3); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: var(--t-2xs, .75rem); font-weight: 600; cursor: pointer; }
.roster-chip:hover { background: var(--surface-chip, #eef3f5); }
.team-court-roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.roster-chip.active, .roster-chip.picked { border-color: var(--transformative-teal-dark); color: var(--transformative-teal-dark); background: #e3f4ea; }
.game-point-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 4px; }
.game-point-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px auto 48px; align-items: center; gap: 6px; color: var(--muted); font-size: var(--t-xs, .8rem); }
.game-point-row select { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; text-align: center; box-sizing: border-box; }
@media (max-width: 460px) { .sheet-quickscore { grid-template-columns: 1fr; } }
@media (min-width: 461px) {
  .sheet-quickscore-more[open] .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .game-point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Banner, points and registrations in the manager */
.sheet-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; }
.sheet-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-requests li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.sheet-requests form { margin: 0; }
.sheet-requests button { min-height: 36px; padding: 0 12px; }

/* Self registration panel on the Peserta tab */
.registration-panel { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid #ffffffc7; box-shadow: 0 6px 16px #17364a0f; }
.registration-panel div { display: grid; gap: 2px; min-width: 0; }
.registration-panel small { color: var(--muted); font-size: var(--t-xs); }
.registration-panel.accepted { border-color: #bfe5cf; }
.registration-panel.open-form { display: block; }
.registration-panel.open-form summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.registration-panel.open-form summary::-webkit-details-marker { display: none; }
.registration-panel.open-form[open] summary .primary-button { display: none; }
.registration-panel form { display: grid; gap: 10px; margin-top: 12px; }
.registration-message { margin: 0; color: #c2410c; font-size: var(--t-xs); }
.sheet-done { display: block; width: fit-content; margin: 4px 0 0; }
.sheet-quickscore-boxes .primary-button { width: auto; min-height: 36px; padding: 0 12px; font-size: var(--t-sm, .875rem); }
.sheet-quickscore-boxes select { height: 36px; }
.registration-panel > .secondary-button { flex: 0 0 auto; width: auto; min-height: 36px; padding: 0 14px; font-size: var(--t-sm, .875rem); }

/* Category tables under the overall standings */
.tournament-table-title { margin: 18px 2px 8px; font-size: var(--t-sm, .9rem); color: var(--muted); font-weight: 700; }
.group-standings { margin-bottom: 10px; }
.group-standings .tournament-recap-row { grid-template-columns: 22px minmax(0, 1fr) 28px 52px 48px; cursor: default; }
.group-standings .tournament-recap-row.qualified .tournament-rank { color: #1f7a4a; font-weight: 800; }
.group-standings .tournament-recap-row span:nth-child(2) strong { font-size: var(--t-sm, .9rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-inline { display: flex; gap: 6px; margin-top: 6px; }
.sheet-inline select { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; padding: 0 8px; font: inherit; }
.sheet-inline .secondary-button { width: auto; min-height: 36px; padding: 0 12px; }

/* ---------- Match cards: one frame for every sport, team tennis included ---------- */
.tournament-day-grid { display: grid; gap: 10px; }
.tournament-side { grid-template-columns: 42px minmax(0, 1fr) auto; }
.tournament-side.many-sets { grid-template-columns: 42px minmax(0, 1fr); }
.tournament-match.encounter .tournament-side-name small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.encounter-heads { display: flex; justify-content: flex-end; gap: 2px; margin: -4px 0 -6px; }
.encounter-heads span { width: 22px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .02em; text-align: center; }
.encounter-heads span:last-child { width: 34px; margin-left: 4px; }
.tournament-score.total { min-width: 34px; margin-left: 4px; border-radius: 8px; background: color-mix(in srgb, var(--ink, #1c2b36) 8%, transparent); font-weight: 800; }
.tournament-side.winner .tournament-score.total { background: var(--primary, #1b5e5b); color: #fff; }
.encounter-points { margin: 4px 0 0 50px; color: var(--muted); font-size: var(--t-xs, .78rem); }
.encounter-points b { color: var(--ink, #1c2b36); }
@media (max-width: 599px) {
  /* Jadwal on a phone: always two columns, card size and type scale with the screen width. */
  .schedule-day .tournament-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(6px, 2vw, 10px); }
  .schedule-day .tournament-match { --sc-name: clamp(10.5px, 3vw, 13px); --sc-small: clamp(9px, 2.5vw, 11px); --sc-badge: clamp(24px, 6.8vw, 30px); --sc-pad: clamp(7px, 2.3vw, 12px); min-width: 0; align-content: start; gap: clamp(5px, 1.6vw, 8px); padding: var(--sc-pad) var(--sc-pad) var(--sc-pad) calc(var(--sc-pad) + 3px); border-radius: clamp(10px, 3vw, 14px); box-shadow: 0 4px 10px #17364a0d; }
  .schedule-day .tournament-match::before { width: 3px; }
  .schedule-day .tournament-match header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px; min-width: 0; }
  .schedule-day .tournament-match .tournament-sport-badge, .schedule-day .tournament-scores { display: none; }
  /* Isi skor stays on the phone: full card width, a thumb-sized target, pinned to the card bottom. */
  .schedule-day .tournament-match .match-score-button { justify-self: stretch; width: 100%; min-height: clamp(32px, 9vw, 38px); padding: 4px 8px; font-size: clamp(10.5px, 3vw, 12.5px); font-weight: 800; line-height: 1.1; white-space: nowrap; }
  .schedule-day .tournament-match .tournament-sport { display: grid; min-width: 0; }
  .schedule-day .tournament-sport small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: clamp(10px, 2.8vw, 12px); line-height: 1.2; white-space: normal; }
  .schedule-day .tournament-match .tournament-status { padding: clamp(2px, .8vw, 3px) clamp(6px, 2vw, 9px); font-size: clamp(10px, 2.8vw, 12px); font-weight: 800; }
  .schedule-day .tournament-match .tournament-match-meta { margin: -2px 0 0; }
  .schedule-day .tournament-match .tournament-match-meta span { font-size: var(--sc-small); }
  .schedule-day .tournament-match .tournament-match-meta svg { width: clamp(10px, 2.8vw, 12px); }
  .schedule-day .tournament-side, .schedule-day .tournament-side.many-sets { grid-template-columns: var(--sc-badge) minmax(0, 1fr); place-items: center start; gap: clamp(5px, 1.8vw, 8px); }
  .schedule-day .tournament-side .tournament-unit-badge { width: var(--sc-badge); height: var(--sc-badge); font-size: clamp(8px, 2.2vw, 10px); }
  .schedule-day .tournament-side-name { display: block; min-width: 0; }
  .schedule-day .tournament-side-name strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: break-word; font-size: var(--sc-name); line-height: 1.2; }
  .schedule-day .tournament-side-name small { display: block; overflow: hidden; font-size: var(--sc-small); text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 379px) {
  .tournament-match { padding: 12px 10px 12px 14px; }
  .tournament-side { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; }
  .tournament-side .tournament-unit-badge { width: 34px; height: 24px; font-size: 9px; }
  .tournament-score { min-width: 18px; font-size: var(--t-sm); }
  .tournament-score.total { min-width: 28px; }
  .encounter-heads span { width: 18px; font-size: 8px; }
  .encounter-heads span:last-child { width: 28px; }
}
.sheet-hint { display: block; margin-top: 4px; color: var(--muted); font-size: var(--t-xs, .78rem); font-weight: 400; line-height: 1.4; }
.player-team-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.player-team-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary, #1b5e5b) 8%, #fff); font-size: var(--t-xs, .8rem); font-weight: 600; }
.player-team-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--tone, currentColor); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }

/* ---------- Tournament typography pass ---------- */
.player-card { gap: 12px; }
.player-card header strong { font-size: var(--t-md); font-weight: 700; line-height: 1.3; }
.player-group { gap: 6px; padding-top: 10px; border-top: 1px solid var(--line, #e6ebee); }
.player-group small { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.player-group ul { gap: 6px; font-size: var(--t-sm); font-weight: 500; line-height: 1.35; color: var(--ink); }
.player-group li { position: relative; padding-left: 12px; }
.player-group li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--ink, #1c2b36) 25%, transparent); }
.player-card > .sheet-empty { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.registration-panel strong { font-size: var(--t-md); font-weight: 700; line-height: 1.3; }
.registration-panel small { line-height: 1.35; }
.registration-panel.open-form summary .primary-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: auto; height: 40px; min-height: 0; margin: 0; padding: 0 20px; font-size: var(--t-sm); line-height: 1; }
.registration-panel.open-form summary div { flex: 1 1 auto; }
.sheet-entries details summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.sheet-entries details summary::-webkit-details-marker { display: none; }
.sheet-entries details summary span { flex: 1; min-width: 0; }
.sheet-edit { color: var(--primary, #1b5e5b); font-size: var(--t-xs, .8rem); font-weight: 700; }
.sheet-entries details[open] .sheet-edit { visibility: hidden; }
.sheet-entries form { display: grid; gap: 8px; margin-top: 8px; }

/* ---------- Peserta tab: inline editing for the host ---------- */
.player-group li { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.player-group li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.player-group li.editing { display: block; padding-left: 0; }
.player-group li.editing::before, .player-group li:has(.player-add)::before { display: none; }
.player-group li:has(.player-add) { padding-left: 0; }
.player-group-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.player-edit { flex: 0 0 auto; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-xs, .8rem); font-weight: 700; cursor: pointer; }
.player-edit:hover, .player-edit:focus-visible { background: color-mix(in srgb, var(--primary, #1b5e5b) 8%, transparent); }
.player-add { padding: 6px 0; border: 0; background: none; color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.player-add small { margin-left: 4px; color: var(--muted); font-weight: 500; }
.player-inline { display: grid; gap: 8px; }
.player-inline input, .player-club-fields input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-size: var(--t-sm); }
.player-inline-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.player-inline-actions .primary-button, .player-inline-actions .secondary-button { width: auto; min-height: 36px; margin: 0; padding: 0 14px; font-size: var(--t-sm); }
.player-inline-actions .danger { margin-right: auto; color: #c2410c; font-weight: 700; }
.player-inline-actions select { height: 36px; max-width: 170px; padding: 0 8px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; font: inherit; font-size: var(--t-xs); }
.player-team-chip.add { border: 1px dashed color-mix(in srgb, var(--primary, #1b5e5b) 45%, transparent); background: none; color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-xs, .8rem); font-weight: 700; cursor: pointer; }
.player-add-club { width: 100%; margin-top: 10px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--primary, #1b5e5b) 40%, transparent); border-radius: 18px; background: color-mix(in srgb, #fff 60%, transparent); color: var(--primary, #1b5e5b); font: inherit; font-weight: 700; cursor: pointer; }
.player-club-form { margin-top: 10px; }
.player-club-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.player-requests { display: grid; gap: 8px; margin-bottom: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid #f5d9a8; box-shadow: 0 6px 16px #17364a0f; }
.player-requests h3 { margin: 0; font-size: var(--t-md); }
.player-requests h3 small { margin-left: 6px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.player-request { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line, #e6ebee); }
.player-request > span:first-child { display: grid; min-width: 0; }
.player-request small { color: var(--muted); font-size: var(--t-xs); }
@media (max-width: 379px) { .player-request { flex-wrap: wrap; } .player-club-fields { grid-template-columns: 1fr; } }

/* Chip row with the host's tools on the right */
.tournament-chip-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tournament-chip-row .tournament-sport-chips { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.player-tools { display: inline-flex; flex: 0 0 auto; gap: 6px; }
.player-tools[hidden] { display: none; }
.player-tool { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line, #d7dee3); border-radius: 50%; background: var(--card, #fff); color: var(--ink); cursor: pointer; box-shadow: 0 4px 10px #17364a0f; }
.player-tool[hidden] { display: none; }
.player-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.player-tool[aria-pressed="true"] { border-color: #c2410c; background: #fff1eb; color: #c2410c; }
.player-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.player-pair input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-size: var(--t-sm); }
.player-remove { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff1eb; color: #c2410c; cursor: pointer; }
.player-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.player-delete-note { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #fff1eb; color: #9a3412; font-size: var(--t-xs); }
.player-club-form { margin: 0 0 12px; }
/* Standings: category tables stack on phones and become bento cards on wider screens. */
.category-tables { display: grid; gap: 12px; }
@media (min-width: 600px) {
  .category-tables { display: block; columns: 2; column-gap: 14px; }
  .category-tables > .category-table { break-inside: avoid; display: inline-flex; width: 100%; margin: 0 0 14px; }
}
@media (max-width: 379px) { .player-pair { grid-template-columns: 1fr; } }
.confirm-dialog .dialog-card { text-align: center; }
.confirm-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 4px auto 2px; border-radius: 50%; background: #fff1eb; color: #c2410c; }
.confirm-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button.danger { background: #c2410c; border-color: #c2410c; }
.tournament-chip-row .tournament-sport-chips { margin-right: 0; padding-right: 2px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); }
.confirm-dialog #confirm-body { font-size: var(--t-sm); line-height: 1.5; }
/* Bento without ragged gaps: player cards flow down two columns. */
.player-full { color: var(--muted); font-size: var(--t-xs); }
@media (min-width: 768px) {
  .player-list { display: block; columns: 2; column-gap: 12px; }
  .player-list > .player-card { break-inside: avoid; margin-bottom: 12px; }
}
@media (min-width: 600px) {
  .tournament-day-grid { display: block; columns: 2; column-gap: 10px; }
  .tournament-day-grid > .tournament-match { break-inside: avoid; margin-bottom: 10px; }
}
.player-category-fields { grid-template-columns: 1fr 1fr; } .player-category-fields label, .player-bulk > label { display: grid; gap: 6px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; } .player-bulk input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-size: var(--t-sm); }
/* Player rows: dot, name and action on one line; "+ Tambah" lines up with the names */
.player-group li::before { top: 50%; transform: translateY(-50%); }
.player-group li:has(.player-add) { padding-left: 12px; }
.player-group li { min-height: 32px; }
.player-group li > span { line-height: 1.35; }
.player-edit, .player-remove { align-self: center; }
.player-card header { min-height: 36px; }
.player-tool-wrap { position: relative; }
.player-tool-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: grid; min-width: 200px; padding: 6px; border: 1px solid var(--line, #e3e8eb); border-radius: 14px; background: var(--card, #fff); box-shadow: 0 12px 28px #17364a26; }
.player-tool-menu[hidden] { display: none; }
.player-tool-menu button { padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 600; text-align: left; cursor: pointer; }
.player-tool-menu button:hover, .player-tool-menu button:focus-visible { background: color-mix(in srgb, var(--primary, #1b5e5b) 8%, transparent); }
.player-tool-menu button[hidden] { display: none; }
/* One look for every field in the Peserta forms */
.player-bulk select, .player-bulk input, .player-club-fields select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line, #d7dee3); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 500; appearance: none; -webkit-appearance: none; }
.player-bulk select, .player-club-fields select { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.player-bulk select:focus, .player-bulk input:focus, .player-bulk textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary, #1b5e5b) 35%, transparent); outline-offset: 1px; border-color: var(--primary, #1b5e5b); }
.player-bulk { gap: 12px; padding: 16px; }
.player-bulk > strong { font-size: var(--t-md); }
.player-bulk label, .player-category-fields label { gap: 6px; font-size: 12px; }
/* Score from the match card; the automatic schedule notice */
.match-score-button { justify-self: end; margin-top: 2px; padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--primary, #1b5e5b) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--primary, #1b5e5b) 6%, #fff); color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.match-score-button:hover, .match-score-button:focus-visible { background: color-mix(in srgb, var(--primary, #1b5e5b) 14%, #fff); }
.schedule-waiting { display: grid; gap: 8px; margin-bottom: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid #ffffffc7; box-shadow: 0 6px 16px #17364a0f; }
.schedule-waiting h3 { margin: 0; font-size: var(--t-md); }
.schedule-waiting p { margin: 0; color: var(--muted); font-size: var(--t-xs); line-height: 1.45; }
.schedule-waiting ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.schedule-waiting li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line, #e6ebee); font-size: var(--t-sm); font-weight: 600; }
.schedule-waiting li small { color: var(--muted); font-size: var(--t-xs); font-weight: 500; text-align: right; }
.schedule-waiting li .primary-button { width: auto; min-height: 36px; padding: 0 14px; font-size: var(--t-xs); }

/* Score sheet: the one match reads as a card, like on the page */
.sheet-subhead + .sheet-match { display: grid; gap: 10px; padding: 16px; border: 1px solid #ffffffc7; border-radius: 18px; background: var(--card, #fff); box-shadow: 0 8px 18px #17364a12; }
.sheet-subhead + .sheet-match > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.sheet-subhead + .sheet-match > div:first-child strong { font-size: var(--t-sm); line-height: 1.35; }
.sheet-subhead + .sheet-match > div:first-child strong:last-child { text-align: right; }
.sheet-subhead + .sheet-match > div:first-child span { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.sheet-subhead + .sheet-match > p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: var(--t-xs); }
.sheet-subhead + .sheet-match .sheet-score { margin-left: auto; color: var(--ink); font-size: var(--t-md); letter-spacing: .02em; }
.sheet-subhead + .sheet-match .sheet-action { margin: 0 -16px -16px; padding: 4px 16px 12px; border-top: 1px solid var(--line, #e6ebee); }
.sheet-subhead + .sheet-match .sheet-action summary { padding: 10px 0; }
.sheet-subhead + .sheet-match .sheet-quickscore:first-of-type { border-top: 1px solid var(--line, #e6ebee); }

/* Standings: one card per sport; equal heights side by side */
@media (min-width: 600px) {
  .tournament-day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; columns: auto; }
  .tournament-day-grid > .tournament-match { margin: 0; }
}
.category-table { display: flex; flex-direction: column; min-width: 0; gap: 10px; padding: 14px; border: 1px solid #ffffffc7; border-radius: 20px; background: color-mix(in srgb, var(--card, #fff) 55%, transparent); }
.category-table .tournament-recap { flex: 0 0 auto; border-radius: 10px; box-shadow: none; }
.category-sport { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: var(--t-md); }
.category-sport svg { width: 18px; height: 18px; fill: none; stroke: var(--tone, currentColor); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.category-table .tournament-table-title { margin: 2px 2px 0; padding-top: 2px; color: var(--ink); font-size: var(--t-xs); }
.category-table .tournament-table-title:not(:first-of-type) { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.tournament-match { height: 100%; align-content: start; }
.tournament-match .match-score-button { margin-top: auto; }
.player-remove.small { width: 22px; height: 22px; margin-left: 6px; vertical-align: middle; }
.player-remove.small svg { width: 12px; height: 12px; }
.player-group-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-checks { display: grid; gap: 8px; }
.sheet-checks label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #e3e8eb); border-radius: 12px; background: #fff; font-size: var(--t-sm); font-weight: 600; }
.sheet-checks input { width: 18px; height: 18px; accent-color: var(--primary, #1b5e5b); }
.category-table .tournament-standings-note { display: none; }
.schedule-waiting li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; }
.schedule-waiting .waiting-title { font-size: var(--t-sm); font-weight: 600; line-height: 1.35; }
.schedule-waiting .waiting-clubs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 190px; }
.schedule-waiting .waiting-clubs .tournament-unit-badge { width: 38px; height: 24px; font-size: 9px; }
.schedule-waiting li .primary-button { min-height: 34px; padding: 0 16px; }
.schedule-waiting { gap: 12px; padding: 18px 20px; border-radius: 20px; }
.schedule-waiting-head { display: flex; align-items: center; gap: 12px; }
.schedule-waiting-head > span:last-child { display: grid; gap: 2px; }
.schedule-waiting-head h3 { font-size: var(--t-lg); }
.schedule-waiting-head p { font-size: var(--t-xs); }
.schedule-calendar, .schedule-category-icon { display: grid; place-items: center; flex: 0 0 auto; color: var(--primary, #176864); }
.schedule-calendar { width: 44px; height: 44px; border-radius: 14px; background: #eaf8e8; }
.schedule-calendar svg { width: 24px; height: 24px; }
.schedule-waiting svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.schedule-waiting ul { gap: 6px; }
.schedule-waiting li.schedule-category-row { grid-template-columns: 44px minmax(160px, 1fr) auto; gap: 10px; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line, #dce6eb); border-radius: 12px; }
.schedule-category-icon { width: 36px; height: 36px; border-radius: 10px; background: #e4f5fc; color: #1475a5; }
.schedule-category-icon.doubles { background: #ecf8e8; color: #176a31; }
.schedule-category-icon svg { width: 21px; height: 21px; }
.schedule-category-copy { display: grid; align-content: center; min-width: 0; }
.schedule-waiting .schedule-category-copy .waiting-title { font-size: var(--t-sm); }
.schedule-waiting .schedule-category-copy small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.25; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.schedule-categories-summary { margin-bottom: 12px; }
.schedule-categories-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #dce6eb); border-radius: 12px; background: var(--card, #fff); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.schedule-categories-trigger > span { display: grid; gap: 2px; }
.schedule-categories-trigger strong { font-size: var(--t-sm); }
.schedule-categories-trigger small { color: var(--muted); font-size: var(--t-xs); }
.schedule-categories-trigger svg { width: 18px; height: 18px; fill: none; stroke: var(--primary, #176864); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schedule-categories-trigger:hover, .schedule-categories-trigger:focus-visible { border-color: var(--primary, #176864); background: #f4fbfa; }
.schedule-categories-sheet .schedule-choice-content { min-height: 100%; }
.schedule-categories-list { margin-top: 12px; }
.schedule-categories-list ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.schedule-categories-list .schedule-existing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line, #e6ebee); }
.schedule-categories-list .waiting-title { font-size: var(--t-sm); font-weight: 600; }
.schedule-categories-list .schedule-existing-copy small { color: var(--muted); font-size: var(--t-xs); }
.schedule-waiting .schedule-existing-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 42px; padding: 6px 0; }
.schedule-existing-copy { display: grid; min-width: 0; gap: 1px; }
.schedule-waiting .schedule-existing-copy small { text-align: left; }
.schedule-existing-actions { display: flex; align-items: center; gap: 4px; }
.schedule-existing-button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--line, #dce6eb); border-radius: 8px; background: transparent; color: var(--primary, #176864); cursor: pointer; }
.schedule-existing-button svg { width: 16px; height: 16px; }
.schedule-existing-button:hover, .schedule-existing-button:focus-visible { background: #eaf8f6; border-color: var(--primary, #176864); }
.schedule-existing-button.danger { color: #b45309; }
.schedule-existing-button.danger:hover, .schedule-existing-button.danger:focus-visible { background: #fff7ed; border-color: #b45309; }
.schedule-reset-choice { border-color: #fed7aa !important; }
.schedule-reset-choice .schedule-choice-icon { background: #fff7ed; color: #b45309; }
.schedule-reset-choice strong { color: #9a3412; }
.schedule-actions { display: grid; grid-template-columns: repeat(2, minmax(124px, 1fr)); gap: 8px; }
.schedule-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--primary, #176864); border-radius: 10px; font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.schedule-action svg { width: 18px; height: 18px; }
.schedule-action.auto { background: var(--primary, #176864); color: #fff; }
.schedule-action.manual { background: #fff; color: var(--primary, #176864); }
.schedule-action:hover, .schedule-action:focus-visible { filter: brightness(.96); }
.schedule-action:disabled { cursor: wait; opacity: .6; }
.schedule-mobile-trigger { display: none; }
@media (max-width: 760px) {
  .schedule-waiting { gap: 12px; padding: 14px; border-radius: 18px; }
  .schedule-waiting-head { gap: 10px; }
  .schedule-waiting-head h3 { font-size: 18px; }
  .schedule-waiting-head p { font-size: 11px; line-height: 1.35; }
  .schedule-calendar { width: 40px; height: 40px; border-radius: 12px; }
  .schedule-calendar svg { width: 22px; height: 22px; }
  .schedule-waiting li.schedule-category-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; min-height: 64px; padding: 9px 10px; border-radius: 14px; }
  .schedule-category-icon { width: 36px; height: 36px; border-radius: 10px; }
  .schedule-category-icon svg { width: 21px; height: 21px; }
  .schedule-waiting .schedule-category-copy .waiting-title { font-size: 13px; }
  .schedule-waiting .schedule-category-copy small { font-size: 10px; }
  .schedule-actions { display: block; }
  .schedule-actions > .schedule-action { display: none; }
  .schedule-mobile-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 11px; border: 0; border-radius: 11px; background: var(--primary, #176864); color: #fff; font: inherit; font-size: 11px; font-weight: 750; white-space: nowrap; }
  .schedule-mobile-trigger svg { width: 17px; height: 17px; }
  .team-schedule-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 90dvh; margin: 0; border-radius: 24px 24px 0 0; }
  .team-schedule-dialog[open] { animation: choice-sheet-rise .28s cubic-bezier(.2, .8, .2, 1); }
  .schedule-builder { max-height: 90dvh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .schedule-waiting li.schedule-category-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
  .schedule-category-icon { width: 32px; height: 32px; }
  .schedule-mobile-trigger { padding: 0 9px; }
}

.schedule-choice-sheet { height: 90dvh; }
.schedule-builder-sheet .schedule-builder { min-height: 100%; max-height: 90dvh; align-content: start; }
.schedule-builder-sheet menu { display: grid; gap: 8px; margin: 0; padding: 0; }
.schedule-builder-sheet .schedule-builder-confirm { width: 100%; }
.schedule-choice-content { display: grid; align-content: start; gap: 8px; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
.schedule-choice-content h2, .schedule-choice-content p { margin: 0; }
.schedule-choice-content p { color: var(--muted); font-size: var(--t-sm); }
.schedule-choice-options { display: grid; gap: 12px; margin-top: 16px; }
.schedule-choice-options > button { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 14px; border: 1px solid var(--line, #dce6eb); border-radius: 18px; background: #fff; color: var(--ink); font: inherit; text-align: left; }
.schedule-choice-options > button span:last-child { display: grid; gap: 3px; }
.schedule-choice-options strong { font-size: var(--t-md); }
.schedule-choice-options small { color: var(--muted); font-size: var(--t-xs); line-height: 1.4; }
.schedule-choice-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.schedule-choice-icon.manual { background: #e8f5fb; color: #1475a5; }
.schedule-choice-icon.auto { background: #eaf8e8; color: var(--primary, #176864); }
.schedule-choice-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body:has(#tournament-view:not([hidden])) .bottom-nav { display: none; }

/* "Mau buat apa?": a sheet rising from the bottom, like the manager */
dialog.choice-sheet { position: fixed; inset: auto 0 0; width: min(100%, 560px); max-width: 100%; max-height: 90dvh; margin: 0 auto; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--paper, #f4f7f8); box-shadow: 0 -18px 50px #0f2a3a33; overflow: auto; }
dialog.choice-sheet[open] { animation: choice-sheet-rise .28s cubic-bezier(.2, .8, .2, 1); }
dialog.choice-sheet::backdrop { background: #0f2a3a66; backdrop-filter: blur(3px); }
@keyframes choice-sheet-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { dialog.choice-sheet[open] { animation: none; } }
.choice-sheet .dialog-card { width: 100%; max-width: none; margin: 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 0; background: none; box-shadow: none; }
.choice-sheet .sheet-handle { margin: 0 auto 14px; }
.choice-sheet .dialog-close { top: 18px; right: 16px; }
.choice-sheet #create-form { max-height: 90dvh; padding: 10px 22px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.choice-sheet #create-form .sheet-handle { margin-bottom: 4px; }
.choice-sheet #create-form .form-step { min-width: 0; }
.choice-sheet #create-form label, .choice-sheet #create-form select, .choice-sheet #create-form input { min-width: 0; }
@media (max-width: 480px) {
  .choice-sheet #create-form .form-step[data-step="1"] .form-grid { grid-template-columns: 1fr; }
}
.choice-sheet h2 { margin: 0 0 2px; font-size: var(--t-xl, 1.5rem); }
.create-choice-lead { margin: 0 0 12px; color: var(--muted); font-size: var(--t-sm); }
.create-choice { gap: 10px; }
.create-choice-option { grid-template-columns: 48px 1fr auto; padding: 14px; border: 1px solid #ffffffd9; border-radius: 20px; background: var(--card, #fff); box-shadow: 0 6px 18px #17364a0f; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.create-choice-option:hover, .create-choice-option:focus-visible { transform: translateY(-1px); border-color: color-mix(in srgb, var(--tone) 35%, transparent); background: var(--card, #fff); box-shadow: 0 10px 24px #17364a1a; }
.create-choice-option:active { transform: scale(.99); }
.create-choice-option svg { width: 48px; height: 48px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--tone) 14%, #fff); stroke: var(--tone); }
.create-choice-option strong { font-size: var(--t-md); }
.create-choice-option i { color: color-mix(in srgb, var(--tone) 60%, var(--muted)); }

/* Taller banner; the join button sits at its bottom right */
.tournament-hero { min-height: 190px; grid-template-rows: auto 1fr; padding-bottom: 18px; }
.tournament-hero.photo { min-height: 240px; }
.tournament-hero-text { padding-right: 116px; }
.tournament-join { position: absolute; right: 14px; bottom: 16px; min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--transformative-teal-dark, #1b5e5b); font: inherit; font-size: var(--t-sm); font-weight: 800; box-shadow: 0 8px 20px #0b1f2b40; cursor: pointer; transition: transform .15s ease; }
.tournament-join:hover, .tournament-join:focus-visible { transform: translateY(-1px); }
.tournament-join[hidden] { display: none; }
.tournament-join.joined { background: #ffffff2e; color: #fff; border: 1px solid #ffffff66; backdrop-filter: blur(6px); box-shadow: none; font-weight: 700; }
.tournament-hero:has(.tournament-join[hidden]) .tournament-hero-text { padding-right: 0; }
@media (min-width: 600px) { .tournament-hero { min-height: 220px; } .tournament-hero.photo { min-height: 300px; } }
.tournament-filter[hidden] { display: none; } .tournament-filters:has(.tournament-filter[hidden]) { grid-template-columns: 1fr; }
/* Scores set by set */
.set-head, .set-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 8px; align-items: center; }
.set-head small { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.set-rows { display: grid; gap: 8px; }
.set-row span { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.set-row b { color: var(--muted); text-align: center; }
.set-row input { width: 100%; height: 44px; border: 1px solid var(--line, #d7dee3); border-radius: 12px; background: #fff; font: inherit; font-size: var(--t-lg, 1.2rem); font-weight: 800; text-align: center; }
.set-add { justify-self: start; padding: 6px 0; font-weight: 700; }
.set-note { margin: 0; }

/* ---------- Lapangan: one card per court ---------- */
.court-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .court-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.court-card { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid #ffffffc7; border-radius: 20px; background: var(--card); box-shadow: 0 8px 18px #17364a12; }
.court-card.live { border-color: color-mix(in srgb, #dc2626 35%, transparent); }
.court-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.court-card h3 { margin: 0; font-size: var(--t-lg, 1.15rem); }
.court-card header small { color: var(--muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.court-now { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--primary, #1b5e5b) 5%, #fff); }
.court-now.live { background: #fff5f5; }
.court-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: var(--t-xs); }
.court-state { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--primary, #1b5e5b) 14%, #fff); color: var(--primary, #1b5e5b); font-weight: 800; }
.court-interval { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-sunken); color: var(--ink); font-size: var(--t-sm); font-weight: 800; text-align: center; }
.court-now.live .court-state { background: #dc2626; color: #fff; }
.court-side { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.court-side > span:nth-child(2) { display: grid; min-width: 0; }
.court-side strong { font-size: var(--t-sm); }
.court-side small { color: var(--muted); font-size: var(--t-xs); }
.court-score { display: flex; gap: 8px; font-size: var(--t-lg, 1.2rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.court-sets { display: grid; gap: 14px; }
.court-score .point { min-width: 1.6em; padding: 0 .3em; border-radius: 8px; background: var(--tone-soft, #e8f1ef); color: var(--tone, var(--primary, #1b5e5b)); text-align: center; }

/* Courtside scoring: point first (small), game/set second (big) -- every tap
   target is at least 48px, meant for one thumb while holding the phone. */
.cs-section-label { margin: 0 0 6px; color: var(--muted); font-size: var(--t-2xs, .72rem); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cs-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cs-chips button {
  min-height: 44px; padding: 0; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; font-size: var(--t-xs); font-weight: 800; text-align: center; cursor: pointer;
}
.cs-chips button.active { border-color: var(--primary, #1b5e5b); background: var(--primary, #1b5e5b); color: #fff; }
.cs-sets { display: grid; gap: 8px; }
.cs-set-row { display: grid; grid-template-columns: minmax(3.4em, auto) minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.cs-set-label { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.cs-vs { color: var(--muted); font-weight: 700; text-align: center; }
.cs-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; }
.cs-stepper button {
  min-height: 44px; border: 1px solid var(--line, #d7dee3); border-radius: 12px; background: #fff;
  color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-lg, 1.2rem); font-weight: 800; line-height: 1; cursor: pointer;
}
.cs-stepper button:active { background: var(--tone-soft, #e8f1ef); }
.cs-set-value { font-size: var(--t-xl, 1.6rem); font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }

/* v2: point-first tennis/padel scoring. Two point columns side by side, one
   per side; the game/set score is a plain read-only list below -- only
   "Urungkan poin" (undo the single last point) can correct it. Reaching a
   win-eligible point (40/AD) never ends the game by itself: a distinct
   "Game selesai" button lights up so the wasit confirms it with one tap,
   rather than having to tap the same point chip twice. */
.cs-set-active-label { margin: 0; color: var(--ink); font-size: var(--t-sm); font-weight: 800; }
.cs-set-active-label small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--t-2xs, .72rem); font-weight: 700; text-transform: none; }
.cs-point-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-point-col { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--primary, #1b5e5b) 6%, #fff); }
.cs-point-name { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--ink); font-size: var(--t-xs); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cs-point-big { padding: 10px 0; border-radius: 12px; background: #fff; color: var(--primary, #1b5e5b); font-size: var(--t-2xl, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.cs-point-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cs-point-steppers button {
  min-height: 44px; border: none; border-radius: 10px; background: var(--primary, #1b5e5b);
  color: #fff; font: inherit; font-size: var(--t-lg, 1.2rem); font-weight: 800; line-height: 1; cursor: pointer;
}
.cs-point-steppers button:disabled { opacity: .35; cursor: default; }
.cs-game-won { width: 100%; min-height: 48px; margin-top: 10px; }
.cs-game-won[hidden] { display: none; }
.cs-set-summary { margin-top: 4px; }
.cs-section-label .text-button { float: right; font-size: var(--t-2xs, .72rem); font-weight: 700; }
.cs-set-list { display: grid; gap: 2px; }
.cs-set-line { display: flex; align-items: center; gap: 8px; padding: 6px 2px; }
.cs-set-line-label { min-width: 3.4em; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.cs-set-line-score { flex: 1; color: var(--ink); font-size: var(--t-md, 1rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.cs-set-line-tb { margin-left: 4px; color: var(--muted); font-weight: 700; }
.cs-set-line-tag { padding: 2px 8px; border-radius: 999px; font-size: var(--t-2xs, .72rem); font-weight: 700; }
.cs-set-line-tag.active { background: var(--tone-soft, #e8f1ef); color: var(--tone, var(--primary, #1b5e5b)); }
.cs-set-line-tag.done { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.cs-set-line-tag.pending { background: transparent; color: var(--muted); }
.cs-set-line.pending .cs-set-line-label, .cs-set-line.pending .cs-set-line-score { color: var(--muted); }
.court-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.court-actions .primary-button { width: auto; min-height: 40px; padding: 0 20px; }
.court-now > .primary-button { justify-self: stretch; min-height: 42px; }
.court-idle { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.court-next { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.court-next li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line, #e6ebee); font-size: var(--t-sm); font-weight: 600; }
.court-next small { color: var(--muted); font-size: var(--t-xs); font-weight: 500; text-align: right; }
.court-next-tag { color: var(--muted); font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.court-next li:first-child .court-next-tag { color: var(--primary, #1b5e5b); }

/* Registration form on the Peserta tab */
.registration-panel form { gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #e6ebee); }
.registration-panel form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.registration-panel form input, .registration-panel form select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line, #d7dee3); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 500; appearance: none; -webkit-appearance: none; }
.registration-panel form select { padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.registration-panel form input:focus, .registration-panel form select:focus { outline: 2px solid color-mix(in srgb, var(--primary, #1b5e5b) 35%, transparent); outline-offset: 1px; border-color: var(--primary, #1b5e5b); }
.registration-panel form > .primary-button { width: 100%; min-height: 46px; margin: 2px 0 0; }
.registration-panel .registration-message:empty { display: none; }
@media (min-width: 600px) { .registration-panel form { grid-template-columns: 1fr 1fr; } .registration-panel form > label:last-of-type:nth-of-type(odd), .registration-panel form > .primary-button, .registration-panel form > .registration-message { grid-column: 1 / -1; } }
.sheet-sport { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line, #e6ebee); }
.sheet-sport:first-of-type { border-top: 0; padding-top: 0; }
.sheet-sport header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-sport .text-button.danger { color: #c2410c; font-size: var(--t-xs); font-weight: 700; }
.sheet-sport .sheet-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-sport .sheet-list li > span { display: grid; min-width: 0; }
.sheet-sport .sheet-list small { color: var(--muted); font-size: var(--t-xs); }
/* Tournament tabs: each tab as wide as its word with the same padding; the row scrolls on a phone, fills the width on larger screens */
.tournament-tabs { display: flex; gap: 2px; padding: 4px; scroll-padding-inline: 4px; }
.tournament-tabs button { flex: 0 0 auto; align-items: center; min-height: 38px; padding: 0 14px; white-space: nowrap; }
.tournament-tabs button[aria-pressed="true"] { box-shadow: 0 2px 8px #17364a1f; }
@media (min-width: 600px) { .tournament-tabs button { flex: 1 1 0; padding: 0 10px; } }
.sport-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--primary, #1b5e5b) 40%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--primary, #1b5e5b) 5%, var(--card, #fff)); }
.sport-suggest > div { display: grid; gap: 2px; }
.sport-suggest small { color: var(--muted); font-size: var(--t-xs); }
.sport-suggest > span { display: flex; flex-wrap: wrap; gap: 6px; }
.court-next li { grid-template-columns: 70px minmax(0, 1fr) auto auto; }
.court-moves { display: inline-flex; gap: 4px; }
.court-move { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line, #d7dee3); border-radius: 9px; background: var(--card, #fff); color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.court-move:hover, .court-move:focus-visible { border-color: var(--primary, #1b5e5b); color: var(--primary, #1b5e5b); }
.court-swap-next { justify-self: center; font-size: var(--t-xs); font-weight: 700; }

/* ---------- Host tab ---------- */
.host-list { display: grid; gap: 16px; }
.host-group { display: grid; gap: 8px; }
.host-group h3 { margin: 0 2px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.host-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #ffffffc7; border-radius: 16px; background: var(--card); box-shadow: 0 6px 16px #17364a0f; }
.host-card > span:last-child { display: grid; gap: 2px; min-width: 0; }
.host-card strong { font-size: var(--t-sm); }
.host-card small { color: var(--muted); font-size: var(--t-xs); font-weight: 500; }
.host-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--primary, #1b5e5b) 14%, #fff); color: var(--primary, #1b5e5b); font-size: 13px; font-weight: 800; }
@media (min-width: 700px) { .host-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } .host-group h3 { grid-column: 1 / -1; } }

/* ---------- Obrolan ---------- */
.chat-panel { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; height: min(62dvh, 560px); padding: 12px; border: 1px solid #ffffffc7; border-radius: 20px; background: var(--card); box-shadow: 0 8px 18px #17364a12; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.chat-message { align-self: flex-start; display: grid; gap: 4px; max-width: min(85%, 460px); padding: 10px 12px; border-radius: 16px 16px 16px 6px; background: color-mix(in srgb, var(--ink, #1c2b36) 5%, #fff); }
.chat-message.mine { align-self: flex-end; border-radius: 16px 16px 6px 16px; background: color-mix(in srgb, var(--primary, #1b5e5b) 12%, #fff); }
.chat-meta { display: flex; align-items: baseline; gap: 8px; font-size: 11px; }
.chat-meta strong { font-size: 12px; }
.chat-meta time { color: var(--muted); }
.chat-delete { margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.chat-message p { margin: 0; font-size: var(--t-sm); line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-empty { margin: auto; color: var(--muted); font-size: var(--t-sm); text-align: center; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.chat-form textarea { width: 100%; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid var(--line, #d7dee3); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: var(--t-sm); resize: vertical; }
.chat-form .primary-button { width: auto; min-height: 44px; margin: 0; padding: 0 18px; }

/* Opening animation */
.app-splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #f2f4f7; transition: opacity .4s ease, visibility .4s ease; }
.app-splash.done { opacity: 0; visibility: hidden; }
.app-splash-logo { width: min(56vw, 260px); aspect-ratio: 1; }
@media (prefers-color-scheme: dark) { .app-splash { background: #f2f4f7; } }

/* Banner: Ikuti and Daftar side by side at the bottom right */
.tournament-join-row { position: absolute; right: 14px; bottom: 16px; display: flex; gap: 8px; }
.tournament-join-row[data-empty] { display: none; }
.tournament-join-row .tournament-join { position: static; }
.tournament-follow { min-height: 40px; padding: 0 16px; border: 1px solid #ffffff80; border-radius: 999px; background: #ffffff26; color: #fff; font: inherit; font-size: var(--t-sm); font-weight: 700; backdrop-filter: blur(6px); cursor: pointer; }
.tournament-follow.on { background: #ffffff; color: var(--transformative-teal-dark, #1b5e5b); border-color: #fff; }
.tournament-follow[hidden] { display: none; }
.tournament-hero-text { padding-right: 0; padding-bottom: 50px; }
/* Members on the Host tab */
.host-group.members { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line, #e6ebee); }
.host-group h3 small { margin-left: 4px; font-weight: 600; }
.host-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: var(--t-xs); }
.referee-request-card { display: grid; grid-column: 1 / -1; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.referee-request-card small, .referee-approval small { color: var(--muted); font-size: var(--t-xs); }
.referee-request-card button { justify-self: start; width: auto; margin-top: 5px; }
.referee-approval { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.referee-approval:first-child { border-top: 0; }
.referee-approval form { display: grid; gap: 8px; }
.host-card .member-action { flex: 0 0 auto; width: auto; min-height: 34px; margin: 0 0 0 auto; padding: 0 12px; font-size: var(--t-xs); }

/* TV: team tennis courts carry five score columns; names keep room of their own */
.tv-court.team .tv-row { grid-template-columns: minmax(5.5em, 1fr) auto; }
.tv-court.team .tv-scores, .tv-view.cabor .tv-court.team .tv-scores { font-size: clamp(1.45em, 3.2vw, 2.15em); }
.tv-court.team .tv-scores span { min-width: 1.5em; }
.tv-court.team .tv-columns .tv-scores span { min-width: 1.5em; }
.tv-point-strip { display: grid; gap: .4em; align-self: end; margin: .45em 0 0; font-size: clamp(.85em, 1.5vw, 1.15em); }
.tv-point-strip > span { color: #ffffff8c; font-size: .7em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tv-point-strip ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6em, 1fr)); gap: .4em; margin: 0; padding: 0; list-style: none; }
.tv-point-strip li { display: flex; align-items: baseline; justify-content: center; gap: .3em; padding: .35em .5em; border: 1px solid #ffffff1f; border-radius: .55em; background: #ffffff0f; font-variant-numeric: tabular-nums; }
.tv-point-strip li small { margin-right: .15em; color: #ffffff73; font-size: .7em; font-weight: 800; }
.tv-point-strip li b { color: #ffffffa6; font-weight: 800; }
.tv-point-strip li b.lead { color: #fff; }
.tv-point-strip li i { color: #ffffff59; font-style: normal; }
.tv-point-strip li.now { border-color: var(--wasabi); background: color-mix(in srgb, var(--wasabi) 16%, transparent); }
.tv-point-strip li.now small { color: var(--wasabi); }
@media (max-width: 1100px) {
  .tv-view.cabor .tv-court .tv-scores { font-size: 1.6em; }
  .tv-court.team .tv-scores, .tv-view.cabor .tv-court.team .tv-scores { font-size: 1.2em; }
  .tv-court.team .tv-row strong { font-size: 1.05em; }
}
/* iPad and phones show their own close button top left in fullscreen: keep the header clear of it */
@media (pointer: coarse) {
  .tv-view:fullscreen, .tv-view:-webkit-full-screen { padding-top: max(64px, env(safe-area-inset-top, 0px)); }
}
@media (max-width: 1280px) {
  .tv-view.cabor .tv-courts { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); }
  .tv-view.cabor .tv-court { padding: .9em 1.3em; }
  .tv-court header strong { white-space: nowrap; }
}

/* Kelola → Ubah detail: rows showing each setting's value, folding open to change it */
.setting-card { gap: 0; padding: 6px 16px; }
.setting-cover { width: calc(100% + 32px); max-width: none; height: 120px; margin: -6px -16px 6px; border-radius: 18px 18px 0 0; object-fit: cover; }
.setting-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 4px; }
.setting-head h3 { margin: 0; font-size: var(--t-md); }
.setting-head span { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.setting-row { border-top: 1px solid var(--line, #e6ebee); }
.setting-card > .setting-row:first-of-type, .setting-cover + .setting-row { border-top: 0; }
.setting-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; min-height: 50px; list-style: none; cursor: pointer; }
.setting-row > summary::-webkit-details-marker { display: none; }
.setting-row > summary::after { content: "›"; color: var(--muted); font-size: 18px; transition: transform .15s ease; justify-self: end; }
.setting-row[open] > summary::after { transform: rotate(90deg); }
.setting-row > summary span { font-size: var(--t-sm); font-weight: 600; }
.setting-row > summary b { max-width: 190px; overflow: hidden; color: var(--muted); font-size: var(--t-xs); font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.setting-row.add > summary span { color: var(--primary, #1b5e5b); font-weight: 700; }
.setting-body { display: grid; gap: 12px; padding: 2px 0 16px; }
.setting-body form { display: grid; gap: 10px; }
.setting-body form + form { padding-top: 12px; border-top: 1px dashed var(--line, #e6ebee); }
.setting-body .primary-button { justify-self: start; width: auto; min-height: 40px; padding: 0 18px; }
.setting-secondary .primary-button { background: transparent; color: var(--primary, #1b5e5b); border: 1px solid color-mix(in srgb, var(--primary, #1b5e5b) 35%, transparent); }
.setting-delete { justify-self: start; color: #c2410c; font-size: var(--t-xs); font-weight: 700; }
.setting-sport { padding-top: 8px; }
.setting-sport > header { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 2px; }
.setting-sport > header strong { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.setting-sport .text-button.danger { color: #c2410c; font-size: var(--t-xs); font-weight: 700; }
.setting-body label { display: grid; gap: 5px; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.setting-body input:not([type=checkbox]), .setting-body select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 500; }
.setting-body select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.setting-body .sheet-hint { font-weight: 500; }
/* Banner text sits at the bottom; room for Ikuti/Daftar only when they show */
.tournament-hero-text { align-self: end; }
.tournament-hero:has(.tournament-join-row[data-empty]) .tournament-hero-text,
.tournament-hero:has(.tournament-follow[hidden]):has(.tournament-join[hidden]) .tournament-hero-text { padding-bottom: 0; }
/* Club name and short code, edited in place of the card header */
.player-card > header .player-edit { margin-left: auto; }
.player-club-rename { margin: 0 0 10px; }
.player-club-rename { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e6ebee); }
.player-club-rename label { display: grid; gap: 4px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.player-card-empty { display: grid; justify-items: start; gap: 8px; }
.player-card-empty .sheet-empty { margin: 0; }
/* Delete mode: remove a whole club, or a club from a team sport */
.player-remove.club { width: auto; height: 30px; margin-left: auto; padding: 0 12px; border-radius: 999px; font: inherit; font-size: var(--t-xs); font-weight: 700; }
.player-team-chip.remove { border: 0; background: #fff1eb; color: #c2410c; font: inherit; font-size: var(--t-xs, .8rem); font-weight: 700; cursor: pointer; }
.player-team-chip.remove svg:last-child { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; }
/* Peserta tab: summary bar, status filter, compact club cards in a grid */
.player-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line, #e3e9ec); border-radius: 18px; background: color-mix(in srgb, #fff 82%, transparent); }
.player-summary-count { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--t-sm); }
.player-summary-count strong { font-size: var(--t-md); }
.player-summary-count .ok, .player-status.ok { color: #15803d; }
.player-summary-count .warn, .player-status.warn { color: #b45309; }
.player-summary-count .ok::before, .player-summary-count .warn::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.player-status-filter { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--primary, #1b5e5b) 7%, #fff); }
.player-status-filter button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink, #17313a); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.player-status-filter button[aria-pressed="true"] { background: var(--primary, #1b5e5b); color: #fff; }
.player-summary-hint { flex-basis: 100%; margin: 0; padding: 8px 10px; border: 1px dashed color-mix(in srgb, var(--primary, #1b5e5b) 35%, transparent); border-radius: 12px; color: var(--muted); font-size: var(--t-xs); }
.player-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.player-card.compact { display: grid; gap: 12px; }
.player-card.compact > header { display: flex; align-items: center; gap: 12px; }
.player-card-title { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; }
.player-card-title strong { overflow-wrap: anywhere; }
.player-card-title small { color: var(--muted); font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.player-status { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, currentColor 11%, #fff); font-size: var(--t-xs); font-weight: 700; white-space: nowrap; }
.player-card-menu { position: relative; flex: 0 0 auto; }
.player-card-menu summary { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; list-style: none; cursor: pointer; }
.player-card-menu summary::-webkit-details-marker { display: none; }
.player-card-menu summary:hover { background: color-mix(in srgb, var(--primary, #1b5e5b) 8%, #fff); }
.player-card-menu summary svg { width: 20px; height: 20px; fill: currentColor; }
.player-card-menu-list { position: absolute; top: 36px; right: 0; z-index: 5; display: grid; min-width: 150px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(15, 40, 50, .16); }
.player-card-menu-list button { padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink, #17313a); font: inherit; font-size: var(--t-sm); text-align: left; cursor: pointer; }
.player-card-menu-list button:hover { background: color-mix(in srgb, var(--primary, #1b5e5b) 7%, #fff); }
.player-card-menu-list .danger { color: #c2410c; }
.player-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.player-cat-chips:empty { display: none; }
.player-cat-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; background: color-mix(in srgb, var(--primary, #1b5e5b) 10%, #fff); color: var(--primary, #1b5e5b); font-size: var(--t-xs); font-weight: 700; }
.player-cat-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.player-cat-chip.add { border: 1px dashed color-mix(in srgb, var(--primary, #1b5e5b) 45%, transparent); background: none; font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.player-card-body { display: grid; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line, #e6ebee); }
.player-manage { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--primary, #1b5e5b) 30%, transparent); border-radius: 14px; background: none; color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.player-manage svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.player-manage span { flex: 1; text-align: left; }
.player-manage .chevron { width: 16px; height: 16px; transition: transform .2s ease; }
.player-manage .chevron.up { transform: rotate(-90deg); }
.player-add-unit { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border: 1.5px dashed color-mix(in srgb, var(--primary, #1b5e5b) 35%, transparent); background: color-mix(in srgb, #fff 60%, transparent); text-align: center; box-shadow: none; }
.player-add-unit-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary, #1b5e5b); color: #fff; font-size: 22px; line-height: 1; }
.player-add-unit small { color: var(--muted); font-size: var(--t-xs); }
.player-add-unit .primary-button { width: auto; min-height: 38px; margin-top: 6px; padding: 0 22px; }
@media (prefers-reduced-motion: reduce) { .player-manage .chevron { transition: none; } }
.player-add-unit .primary-button { font-size: var(--t-sm); }
/* Category heading inside a club card: Ubah / Hapus, and the rename form */
.player-group-head { display: flex; align-items: center; gap: 8px; }
.player-group-tools { display: inline-flex; gap: 10px; margin-left: auto; text-transform: none; letter-spacing: 0; }
.player-group-tools .text-button { padding: 0; border: 0; background: none; color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.player-group-tools .danger { color: #c2410c; }
.player-category-rename { display: grid; gap: 8px; margin: 4px 0 8px; }
.player-category-rename label { display: grid; gap: 4px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.player-category-rename select { height: 40px; padding: 0 10px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-size: var(--t-sm); }
/* "+ Tambah kategori" on a club card: pick which category it joins */
.player-cat-picker { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--primary, #1b5e5b) 5%, #fff); }
.player-cat-picker > small { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.player-cat-picker .text-button { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.player-cat-chip.pick { border: 1px solid color-mix(in srgb, var(--primary, #1b5e5b) 30%, transparent); background: #fff; font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.player-cat-chip.pick:hover { background: color-mix(in srgb, var(--primary, #1b5e5b) 10%, #fff); }
/* New category from a club card: type chips and an optional custom name */
.player-quick-category { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--primary, #1b5e5b) 25%, transparent); }
.player-quick-category > small { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.player-quick-category label { display: grid; gap: 4px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.player-quick-category label em { font-style: normal; font-weight: 500; }
.player-quick-category input[type=text], .player-quick-category input:not([type]), .player-quick-category input[name=label], .player-quick-category select { height: 40px; padding: 0 10px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-size: var(--t-sm); color: var(--ink, #17313a); }
.player-type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.player-type-chips label { display: block; }
.player-type-chips input { position: absolute; opacity: 0; pointer-events: none; }
.player-type-chips span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--primary, #1b5e5b) 25%, transparent); border-radius: 999px; background: #fff; color: var(--ink, #17313a); font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.player-type-chips input:checked + span { border-color: var(--primary, #1b5e5b); background: var(--primary, #1b5e5b); color: #fff; }
.player-type-chips input:focus-visible + span { outline: 2px solid var(--primary, #1b5e5b); outline-offset: 2px; }
.player-quick-category .primary-button { justify-self: start; width: auto; min-height: 38px; margin: 0; padding: 0 18px; font-size: var(--t-sm); }
/* Team tennis partai above the club cards */
.player-partai { display: grid; gap: 10px; margin: 0 0 12px; padding: 14px; border: 1px solid var(--line, #e3e9ec); border-radius: 18px; background: #fff; }
.player-partai > header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.player-partai > header small { color: var(--muted); font-size: var(--t-xs); }
.player-partai-add { display: grid; gap: 6px; }
.player-partai-add > small { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.player-chip-remove { display: grid; place-items: center; width: 20px; height: 20px; margin: 0 -4px 0 2px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, #fff); color: inherit; cursor: pointer; }
.player-chip-remove svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.player-card-menu-list { min-width: 210px; max-height: 60vh; overflow-y: auto; }
.player-card-menu-list small { padding: 8px 10px 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.player-card-menu-list .separated { margin-top: 4px; border-top: 1px solid var(--line, #e6ebee); border-radius: 0 0 9px 9px; }
.player-card .player-partai { margin: 0; border-style: dashed; }
.player-partai-done { justify-self: start; padding: 0; border: 0; background: none; color: var(--primary, #1b5e5b); font: inherit; font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.player-partai-custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 4px; }
.player-partai-custom label { display: grid; gap: 4px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.player-partai-custom select, .player-partai-custom input { height: 38px; min-width: 0; padding: 0 10px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; color: var(--ink, #17313a); font: inherit; font-size: var(--t-sm); }
.player-partai-custom .secondary-button { width: auto; min-height: 38px; margin: 0; padding: 0 12px; font-size: var(--t-sm); white-space: nowrap; }
@media (max-width: 420px) { .player-partai-custom { grid-template-columns: 1fr 1fr; } .player-partai-custom .secondary-button { grid-column: 1 / -1; justify-self: start; } }
.player-card.compact .player-card-body { border-top: 0; padding-top: 0; }
/* Club card: one section per cabor, folding under its arrow */
.player-sport { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line, #e6ebee); }
.player-sport:first-child { border-top: 0; padding-top: 0; }
.player-sport-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ink, #17313a); font: inherit; font-size: var(--t-sm); font-weight: 700; text-align: left; cursor: pointer; }
.player-sport-toggle em { padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary, #1b5e5b) 10%, #fff); color: var(--primary, #1b5e5b); font-style: normal; font-size: 11px; }
.player-sport-toggle svg { width: 18px; height: 18px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.player-sport.folded .player-sport-toggle svg { transform: rotate(-90deg); }
.player-sport .player-group { border-top: 0; padding-top: 2px; }
@media (prefers-reduced-motion: reduce) { .player-sport-toggle svg { transition: none; } }
/* Category picker on a club card (design from the user's mock-up) */
.player-cat-picker { gap: 14px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--primary, #1b5e5b) 4%, #f6f8f9); }
.player-picker-title { margin: 0; color: var(--muted); font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.player-pick-sport { display: grid; gap: 8px; }
.player-pick-sport h4 { margin: 0; color: var(--ink, #17313a); font-size: var(--t-md); font-weight: 700; }
.player-pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.player-pick-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line, #dde5e9); border-radius: 14px; background: #fff; color: var(--ink, #17313a); font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.player-pick-chip:hover { border-color: color-mix(in srgb, var(--primary, #1b5e5b) 45%, transparent); background: color-mix(in srgb, var(--primary, #1b5e5b) 5%, #fff); }
.player-pick-icon { display: grid; place-items: center; color: var(--primary, #1b5e5b); }
.player-pick-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.player-cat-picker .player-quick-category { gap: 12px; padding-top: 14px; border-top: 1px solid var(--line, #e2e8eb); }
.player-field { display: grid; gap: 6px; color: var(--muted); font-size: var(--t-sm); font-weight: 500; }
.player-select, .player-input { position: relative; display: flex; align-items: center; }
.player-select-icon, .player-input > svg { position: absolute; left: 14px; display: grid; place-items: center; color: var(--primary, #1b5e5b); pointer-events: none; }
.player-select-icon svg, .player-input > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.player-input > svg { color: var(--muted); }
.player-select select, .player-input input { width: 100%; height: 50px; padding: 0 44px 0 50px; border: 1px solid var(--line, #dde5e9); border-radius: 14px; background: #fff; color: var(--ink, #17313a); font: inherit; font-size: var(--t-sm); appearance: none; -webkit-appearance: none; }
.player-input input { padding-right: 14px; }
.player-select select:focus, .player-input input:focus { outline: 2px solid color-mix(in srgb, var(--primary, #1b5e5b) 35%, transparent); outline-offset: 1px; border-color: var(--primary, #1b5e5b); }
.player-select-chevron { position: absolute; right: 16px; width: 18px; height: 18px; fill: none; stroke: var(--ink, #17313a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.player-cat-picker .player-type-chips { gap: 8px; }
.player-cat-picker .player-type-chips span { gap: 8px; min-height: 42px; padding: 0 18px; border-color: var(--line, #dde5e9); border-radius: 14px; font-size: var(--t-sm); font-weight: 600; }
.player-type-check { display: none; width: 20px; height: 20px; }
.player-type-check circle { fill: #fff; stroke: none; }
.player-type-check path { fill: none; stroke: var(--primary, #1b5e5b); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.player-type-chips input:checked + span .player-type-check { display: block; }
.player-cat-picker .player-type-chips input:checked + span { padding-left: 10px; }
.player-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin: 2px 0 0; border-radius: 14px; font-size: var(--t-md); }
.player-cat-picker .player-quick-category .player-submit { justify-self: stretch; width: 100%; }
.player-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.player-picker-cancel { justify-self: center; }
.player-quick-category .player-input input[name=label] { height: 50px; padding: 0 14px 0 50px; border-radius: 14px; }
.player-quick-category .player-select select { height: 50px; padding: 0 44px 0 50px; border-radius: 14px; }
/* Club card: the cabor it plays as a row of icons */
.player-card-sports { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.player-card-sport { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--primary, #1b5e5b) 9%, #fff); color: var(--primary, #1b5e5b); }
.player-card-sport svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Private tournament for a non-member: on Home with a lock, locked page */
.tournament-status.private { display: inline-flex; align-items: center; gap: 5px; }
.tournament-status.private svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tournament-card.locked .tournament-mini-empty { margin: 0 16px 16px; }
.tournament-view.locked #tournament-tabs, .tournament-view.locked .tournament-chip-row, .tournament-view.locked .tournament-filters,
.tournament-view.locked #tournament-share, .tournament-view.locked #tournament-tv-open, .tournament-view.locked .tournament-join-row { display: none !important; }
.tournament-locked { display: grid; justify-items: center; gap: 10px; max-width: 420px; margin: 8px auto 0; padding: 26px 20px; border: 1px solid var(--line, #e3e9ec); border-radius: 22px; background: #fff; text-align: center; }
.tournament-locked-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--primary, #1b5e5b) 10%, #fff); color: var(--primary, #1b5e5b); }
.tournament-locked-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tournament-locked h3 { margin: 4px 0 0; font-size: var(--t-lg, 1.2rem); }
.tournament-locked p { margin: 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; text-wrap: balance; }
.tournament-code-form { display: grid; gap: 10px; width: 100%; margin-top: 8px; text-align: left; }
.tournament-code-form label { display: grid; gap: 6px; color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.tournament-code-form input { height: 48px; padding: 0 14px; border: 1px solid var(--line, #dde5e9); border-radius: 14px; background: #fff; color: var(--ink, #17313a); font: inherit; font-size: var(--t-md); letter-spacing: .04em; }
.tournament-code-form .primary-button { width: 100%; min-height: 48px; margin: 0; border-radius: 14px; }
/* Team entry in a club card: roster summary and the optional roster form */
.player-roster { align-items: flex-start; }
.player-roster-text { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.player-roster-text strong { font-size: var(--t-sm); }
.player-roster-text small { color: var(--muted); font-size: var(--t-xs); line-height: 1.45; overflow-wrap: anywhere; }
.player-roster-text em { color: var(--muted); font-size: var(--t-sm); font-style: normal; }
.player-roster-form { display: grid; gap: 10px; }
.player-roster-form label { display: grid; gap: 4px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.player-roster-form label em { font-style: normal; font-weight: 500; }
.player-roster-form textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; color: var(--ink, #17313a); font: inherit; font-size: var(--t-sm); line-height: 1.5; resize: vertical; }
.player-group .player-roster-text small { text-transform: none; letter-spacing: 0; font-weight: 500; }
/* Club avatar on the club cards: round */
.player-card.compact > header .tournament-unit-badge { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 12px; }
/* Team roster: the names straight away, two columns, then the coach */
.player-roster-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; font-size: var(--t-sm); }
.player-roster-names span { overflow-wrap: anywhere; }
.player-roster-coach { margin-top: 6px; color: var(--muted); font-size: var(--t-xs); }
.player-roster-coach b { color: var(--ink, #17313a); font-weight: 700; }
.player-roster::before { display: none; }
/* TV: data older than 20 s is flagged, not shown as current */
.tv-freshness.stale { color: #ffb4a2; font-weight: 700; }
.tv-freshness.stale::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ff7a59; vertical-align: middle; }
/* TV once a tournament (or a cabor) is over: a compact podium per category */
.tv-champions { display: grid; align-content: start; gap: 12px; min-width: 0; }
.tv-champions > h2 { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tv-champion-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.tv-champion-grid.cols-1 { --cols: 1; } .tv-champion-grid.cols-2 { --cols: 2; } .tv-champion-grid.cols-3 { --cols: 3; } .tv-champion-grid.cols-4 { --cols: 4; }
.tv-champion { padding: 12px 14px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.tv-champion h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #fff; font-size: 14px; font-weight: 800; }
.tv-champion h3 svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv-champion ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 7px; min-height: 168px; margin: 0; padding: 0; list-style: none; }
.tv-champion li { display: grid; align-content: start; justify-items: center; gap: 5px; min-width: 0; padding: 10px 7px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px 13px 10px 10px; background: rgba(255,255,255,.07); text-align: center; }
.tv-champion li.place-1 { order: 2; min-height: 154px; background: linear-gradient(180deg, rgba(244,197,66,.24), rgba(255,255,255,.07)); }
.tv-champion li.place-2 { order: 1; min-height: 126px; }
.tv-champion li.place-3 { order: 3; min-height: 108px; }
.tv-champion li > span:last-child { display: grid; min-width: 0; width: 100%; }
.tv-champion li strong { overflow: hidden; color: #fff; font-size: 12px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.tv-champion li small { overflow: hidden; color: rgba(255, 255, 255, .62); font-size: 10.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.tv-place { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #17212a; font-size: 14px; font-weight: 900; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.tv-champion li.gold .tv-place { background: #f4c542; }
.tv-champion li.silver .tv-place { background: #cfd6dd; }
.tv-champion li.bronze .tv-place { background: #d99a62; }
#tournament-tv .tournament-status.finished { background: rgba(94, 214, 150, .16); color: #86e7b4; }
.tv-courts ~ .tv-champions, .tv-main > .tv-champions { align-self: start; }
@media (max-width: 1180px) {
  /* Narrow TV (tablet): the club's badge carries its name; players stay. */
  .tv-champion { padding: 10px 11px; }
  .tv-champion h3 { font-size: 12.5px; }
  .tv-champion li strong { display: none; }
  .tv-champion li small { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
  .tv-champion-grid.cols-4 { --cols: 3; gap: 10px; }
  /* A team has no players to show: keep its name. */
  .tv-champion li:not(:has(small)) strong { display: block; }
}
/* Team tennis standings: games and small points before the partai points */
.team-standings .tournament-recap-row { grid-template-columns: 22px minmax(0, 1fr) 36px 40px 48px 40px; }
.team-standings.regional .tournament-recap-row { grid-template-columns: 22px minmax(0, 1fr) 34px repeat(3, 34px) 40px; }
.badminton-roster-member { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.badminton-roster-member legend { padding: 0 4px; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.badminton-roster-member .form-grid { grid-column: 1 / -1; }
.badminton-roster-member .check-row { display: flex; gap: 5px; align-items: center; font-size: var(--t-xs); }
.standing-flag.final { background: color-mix(in srgb, #15803d 14%, #fff); color: #15803d; }
/* Club cell: badge, then the name with its flags on a second line */
.team-standings .tournament-recap-row:not(.head) > span:nth-child(2) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 2px; }
.team-standings .tournament-recap-row:not(.head) > span:nth-child(2) .tournament-unit-badge { grid-row: span 2; }
.team-standings .tournament-recap-row:not(.head) > span:nth-child(2) strong { grid-column: 2; }
.team-standings .tournament-recap-row:not(.head) > span:nth-child(2) .standing-flag { grid-column: 2; justify-self: start; margin: 0; white-space: nowrap; }
/* The champions board keeps to its area; extra categories go to a next page. */
.tv-main > .tv-champions { align-self: stretch; min-height: 0; overflow: hidden; align-content: start; }
.tv-champions > h2 small { margin-left: 6px; color: rgba(255, 255, 255, .5); font-size: 13px; letter-spacing: 0; }
.tv-champion-grid { align-content: start; }
.tv-main { grid-template-rows: minmax(0, 1fr); }
/* Club avatars are round everywhere: the short code sits in a circle. */
.tournament-unit-badge { width: 36px; height: 36px; min-width: 0; padding: 0; border-radius: 50%; font-size: 10px; letter-spacing: -.02em; }
.tournament-mini .tournament-unit-badge { width: 26px; height: 26px; min-width: 0; padding: 0; border-radius: 50%; font-size: 8.5px; }
.tournament-recap .tournament-unit-badge, .tournament-side .tournament-unit-badge, .schedule-waiting .waiting-clubs .tournament-unit-badge { width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 9px; }
.player-card.compact > header .tournament-unit-badge { width: 46px; height: 46px; font-size: 12px; }
/* Four main tabs fill the row; the match views sit on a lighter row below "Laga". */
.tournament-tabs button { flex: 1 1 0; padding: 0 8px; }
.tournament-tabs [data-tournament-tab="matches"] small { color: var(--persimmon-deep); font-weight: 800; }
.tournament-tabs [data-tournament-tab="matches"].has-live span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e5484d; vertical-align: middle; animation: live-dot 1.6s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tournament-tabs [data-tournament-tab="matches"].has-live span::before { animation: none; } }
.tournament-subtabs { display: flex; gap: 6px; margin: -2px 0 10px; overflow-x: auto; scrollbar-width: none; }
.tournament-subtabs[hidden] { display: none; }
.tournament-subtabs button { display: inline-flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line, #dde5e9); border-radius: 999px; background: color-mix(in srgb, #fff 75%, transparent); color: var(--ink, #17313a); font: inherit; font-size: var(--t-xs); font-weight: 700; white-space: nowrap; cursor: pointer; }
.tournament-subtabs button[aria-pressed="true"] { border-color: transparent; background: var(--ink, #17313a); color: #fff; }
.tournament-subtabs small { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .75; }
.tournament-subtabs [data-tournament-tab="live"] small:not(:empty) { color: #ff7a59; opacity: 1; font-weight: 800; }
.tournament-subtabs button[aria-pressed="true"] small { color: inherit; }
/* Organisers and members, folded at the foot of Peserta */
.panitia-section { margin-top: 14px; border: 1px solid var(--line, #e3e9ec); border-radius: 18px; background: #fff; }
.panitia-section > summary { display: grid; gap: 2px; padding: 14px 44px 14px 16px; position: relative; list-style: none; cursor: pointer; }
.panitia-section > summary::-webkit-details-marker { display: none; }
.panitia-section > summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.panitia-section[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.panitia-section > summary span { font-size: var(--t-md); font-weight: 700; }
.panitia-section > summary small { color: var(--muted); font-size: var(--t-xs); }
.panitia-section[open] > summary { border-bottom: 1px solid var(--line, #e3e9ec); }
.panitia-section > :not(summary) { padding: 12px 14px 16px; }
.host-card > span:not(.host-avatar) { display: grid; gap: 2px; min-width: 0; }

/* Tournament banner: the box takes the banner's 2:1 shape, so the photo fills it
   completely without being cut (a taller title block may trim a sliver). Only the
   lower part is shaded so the title stays readable. */
.tournament-hero.photo { aspect-ratio: 2 / 1; min-height: 0; background: linear-gradient(180deg, #0b1f2b00 40%, #0b1f2bd9 100%), var(--cover) center / cover; }
@media (min-width: 600px) { .tournament-hero.photo { min-height: 0; } }
.tournament-hero.photo .back-button { border-color: transparent; background: #0b1f2b73; }
/* Text over a banner: a deeper shade at the bottom and a soft shadow keep it readable over a busy poster. */
.tournament-hero.photo { background: linear-gradient(180deg, #0b1f2b00 0%, #0b1f2b8c 38%, #0b1f2be0 62%, #0b1f2bf5 100%), var(--cover) center / cover; }
.tournament-hero.photo h1 { font-size: var(--t-lg); line-height: 1.2; text-shadow: 0 2px 10px #000a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tournament-hero.photo .tournament-meta { gap: 2px 12px; text-shadow: 0 1px 6px #000c; }
.tournament-hero.photo .tournament-hero-text { gap: 6px; }
@media (min-width: 600px) { .tournament-hero.photo h1 { font-size: var(--t-xl); } }
.participant-card > span.participant-photo { overflow: hidden; padding: 0; background: var(--cool-blue); } .participant-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Club card header: avatar | name (status label under it) | menu. Names wrap between words only. */
.player-card.compact > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center; }
.player-card.compact > header > .tournament-unit-badge { grid-row: 1 / span 2; }
.player-card.compact > header > .player-card-title { grid-column: 2; grid-row: 1; }
.player-card.compact > header > .player-status { grid-column: 2; grid-row: 2; justify-self: start; }
.player-card.compact > header > .player-card-menu, .player-card.compact > header > .player-remove { grid-column: 3; grid-row: 1 / span 2; }
.player-card-title strong { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* Team roster: one player per row — number, name, position tag */
.player-roster { align-items: flex-start; }
.player-roster > .player-edit { margin-top: 2px; }
.player-group .player-roster-names { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 4px 0 2px; padding: 0; list-style: none; }
.player-roster-names li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0; font-size: var(--t-sm); }
.player-roster-names li::before { display: none; }
.player-roster-names b { color: var(--muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; text-align: right; }
.player-roster-names span { overflow-wrap: anywhere; }
.player-roster-names em { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--primary, #1b5e5b) 10%, #fff); color: var(--primary, #1b5e5b); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .02em; }
.player-group .player-roster-names li { min-height: 0; padding: 3px 0; border: 0; }
.player-group li.player-roster { align-items: flex-start; }
.player-group li.player-roster > .player-edit { align-self: flex-start; }
/* Phones zoom into any field under 16px when it gets focus; touch screens get 16px fields. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}
/* Club card menu: one row per category with edit and delete icons */
.player-card-menu-list .menu-category { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; font-size: var(--t-sm); }
.player-card-menu-list .menu-category > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card-menu-list .menu-icon { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 9px; color: var(--primary, #1b5e5b); }
.player-card-menu-list .menu-icon.danger { color: #c2410c; }
.player-card-menu-list .menu-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-card-menu-list { min-width: 240px; }
/* TV rows: club name with its players under it; the class (category) as a clear label */
.tv-name { display: grid; min-width: 0; gap: .1em; }
.tv-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-name small { overflow: hidden; color: #c9d7de; font-size: .95em; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tv-class { display: inline-block; margin-right: .35em; padding: .1em .55em; border-radius: 999px; background: #ffffff1f; color: #fff; font-weight: 800; }
.tv-court header small, .tv-match header small { font-size: .8em; }

/* Match board: check-in, next match, swaps, courts. */
.match-group-title { margin: 14px 0 8px; color: var(--muted); font-size: var(--t-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.match-round-live { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--wasabi); color: var(--ink); font-size: var(--t-2xs); font-weight: 800; }
.match-team-names { white-space: normal; }
.match-player { padding: 2px 6px; border: 1px dashed var(--line); border-radius: 7px; background: none; color: inherit; font: inherit; cursor: pointer; }
.match-player.is-picked { border-style: solid; border-color: var(--ink); color: var(--ink); }
.match-swap { display: grid; gap: 6px; padding: 8px 12px 10px; border-top: 1px dashed var(--line); color: var(--ink); font-size: var(--t-xs); font-weight: 700; }
.match-swap-list { display: flex; flex-wrap: wrap; gap: 6px; }
.match-swap-list small { color: var(--muted); font-weight: 500; }
.match-swap-chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.match-swap-chip.ghost { border-color: var(--line); color: var(--muted); }
.match-round-remove { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }

.match-checkin { display: grid; gap: 8px; margin-bottom: 12px; }
.match-checkin-bar { display: flex; gap: 8px; align-items: stretch; }
.match-checkin-toggle { display: flex; flex: 1; min-width: 0; min-height: 40px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: var(--t-xs); cursor: pointer; }
.match-checkin-toggle span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.match-checkin-toggle svg { width: 16px; margin-left: auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .15s ease; }
.match-checkin-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.match-checkin-bar .match-next { flex: none; width: auto; min-height: 40px; margin: 0; padding: 0 16px; border-radius: 12px; font-size: var(--t-xs); white-space: nowrap; }
.match-next:disabled { opacity: .45; cursor: not-allowed; }
.match-checkin-list { display: flex; flex-wrap: wrap; gap: 5px; }
.match-checkin-chip { min-height: 30px; padding: 0 10px; border: 1px dashed var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: var(--t-2xs); font-weight: 700; cursor: pointer; }
.match-checkin-chip.is-present { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.match-next-hint { margin: 0; color: var(--muted); font-size: var(--t-2xs); line-height: 1.4; }
.host-avatar.photo { overflow: hidden; padding: 0; }
.host-avatar.photo img { width: 100%; height: 100%; object-fit: cover; }

/* TV imagery: the tournament cover blurred behind everything, and tennis cards drawn over faint court lines. */
.tv-view.has-cover::before { position: absolute; z-index: -1; inset: -40px; background: var(--tv-cover) center / cover no-repeat; filter: blur(34px) saturate(1.1) brightness(.7); opacity: .16; content: ""; pointer-events: none; }
.tv-match.sport-tennis { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 110' fill='none' stroke='white' stroke-opacity='.07' stroke-width='1.4'%3E%3Crect x='1' y='1' width='238' height='108' rx='2'/%3E%3Cpath d='M1 14h238M1 96h238M64 14v82M176 14v82M64 55h112'/%3E%3Cpath d='M120 0v110' stroke-width='3' stroke-dasharray='3 3'/%3E%3C/svg%3E") right 22% center / auto 88% no-repeat, linear-gradient(115deg, #ffffff14, #ffffff05 60%); }
.tv-grid.pair .tv-match header { font-size: 1.12em; }
.tv-match header { position: relative; }
.tv-set-labels { position: relative; display: block; width: 4.8em; min-width: 4.8em; height: 1.2em; color: #d7e2e8; font-size: .58em; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.tv-set-labels span { position: absolute; top: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.tv-set-labels span.now { color: var(--wasabi); }

.team-schedule-dialog { width: min(520px, calc(100vw - 28px)); border: 0; border-radius: 22px; padding: 0; background: #fff; color: #143044; box-shadow: 0 24px 80px #0f2a3a40; }
.team-schedule-dialog::backdrop { background: #0f2a3a66; backdrop-filter: blur(3px); }
.team-schedule-dialog form { display: grid; gap: 12px; padding: 22px; }
.team-schedule-dialog h3, .team-schedule-dialog p { margin: 0; }
.team-schedule-dialog small { color: #607589; line-height: 1.5; }
.team-schedule-dialog textarea { width: 100%; min-height: 160px; resize: vertical; border: 1px solid #d8e3ea; border-radius: 14px; padding: 12px; font: inherit; }
.team-schedule-dialog menu { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 0; }
.team-schedule-dialog menu button:disabled { opacity: .45; cursor: not-allowed; }

.schedule-builder { display: grid; gap: 14px; padding: 22px; max-height: 85vh; overflow-y: auto; }
.schedule-builder h3 { font-size: 1.15em; }
.schedule-builder-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.schedule-builder-pick span { color: #607589; font-size: .85em; font-weight: 700; }
.schedule-builder-pick select, .schedule-builder-clubs select {
  width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px; border: 1px solid #d8e3ea; border-radius: 12px;
  background: #fff; font: inherit; font-size: .95em; font-weight: 700; text-align: center; box-sizing: border-box;
}
.schedule-builder-step { display: grid; gap: 8px; padding: 12px; border: 1px solid #e3e8eb; border-radius: 16px; background: #fff; }
.schedule-builder-step > strong { font-size: var(--t-sm); }
.schedule-builder-clubs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; }
.schedule-builder-clubs label { display: grid; gap: 5px; min-width: 0; }
.schedule-builder-clubs small { color: var(--muted); font-size: 10px; font-weight: 700; }
.schedule-builder-clubs > span { align-self: center; padding-top: 18px; color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.schedule-builder-add {
  grid-column: 1 / -1; min-height: 46px; padding: 0 16px; border: 1px dashed #b9c8d1; border-radius: 12px;
  background: #f7f9fa; color: #143044; font: inherit; font-weight: 700; cursor: pointer;
}
.schedule-builder-add:hover { background: #eef3f5; border-style: solid; }
.schedule-builder-add-all {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 8px 16px;
  border: 1px solid #b8ddd6; border-radius: 14px; background: linear-gradient(145deg, #f1fbf7, #e8f7f2); color: var(--primary, #176864);
  font: inherit; font-weight: 800; cursor: pointer;
}
.schedule-builder-add-all:hover { border-color: var(--primary, #176864); background: #e5f6ef; }
.schedule-builder-add-all b { font-size: 21px; letter-spacing: -5px; line-height: 1; }
.schedule-builder-add-all span { display: grid; gap: 2px; text-align: left; }
.schedule-builder-add-all small { color: var(--muted); font-size: 10px; font-weight: 600; }
.schedule-builder-timing > div { display: grid; grid-template-columns: 1.35fr 1fr 1fr .72fr; gap: 8px; }
.schedule-builder-timing label { display: grid; gap: 6px; min-width: 0; }
.schedule-builder-timing small { color: #42576a; font-size: var(--t-xs); font-weight: 700; }
.schedule-builder-timing input, .schedule-builder-timing select { width: 100%; min-width: 0; min-height: 44px; padding: 7px 9px; border: 1px solid #d7e3e9; border-radius: 12px; background: #f9fbfc; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; }
.schedule-existing-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.schedule-existing-actions .secondary-button { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: var(--t-xs); }
.schedule-mobile-label { display: none; }
.schedule-builder-error { margin: 0; color: #b42318; font-size: .85em; font-weight: 600; }
.schedule-builder-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 260px; overflow-y: auto; }
.schedule-builder-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e3e8eb; border-radius: 12px; background: #f7f9fa; font-size: .9em; }
.schedule-builder-index { color: #607589; font-weight: 700; min-width: 1.4em; }
.schedule-builder-empty { justify-content: center; color: #607589; border-style: dashed; background: transparent; }
.schedule-builder-row-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.schedule-builder-row-actions button { width: 28px; height: 28px; border: 1px solid #d8e3ea; border-radius: 8px; background: #fff; color: #143044; font: inherit; line-height: 1; cursor: pointer; }
.schedule-builder-row-actions button:hover { background: #eef3f5; }

.schedule-builder-dialog menu { display: grid; gap: 8px; justify-content: stretch; }
.schedule-builder-confirm {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--transformative-teal-dark, #0f3d3e);
  color: #fff; font: inherit; font-size: 1em; font-weight: 700; cursor: pointer;
}
.schedule-builder-menu-row { display: flex; gap: 8px; }
.schedule-builder-cancel {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 0; background: none; color: #607589; font: inherit; font-weight: 700; cursor: pointer;
}
.schedule-builder-auto {
  flex: 1; min-height: 44px; padding: 0 16px; border: 1px solid #d8e3ea; border-radius: 12px; background: #fff; color: #143044; font: inherit; font-weight: 700; cursor: pointer;
}
.schedule-builder-auto:hover, .schedule-builder-cancel:hover { background: #eef3f5; }

/* Manual schedule page */
.schedule-builder { position: relative; gap: 18px; padding: 22px; }
.schedule-builder > .sheet-handle { display: block; width: 48px; height: 5px; margin: -10px auto 2px; border-radius: 99px; background: #dce5ea; }
.schedule-builder-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 14px; background: #eef3f5; color: var(--ink); font: inherit; font-size: 28px; font-weight: 300; line-height: 1; cursor: pointer; }
.schedule-builder-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding-right: 48px; }
.schedule-builder-head > span:last-child { display: grid; gap: 5px; }
.schedule-builder-head h3, .schedule-builder-step h4, .schedule-builder-head p, .schedule-builder-step p { margin: 0; }
.schedule-builder-head h3 { color: var(--ink); font-size: clamp(20px, 3vw, 28px); line-height: 1.15; }
.schedule-builder-head p { color: var(--muted); font-size: var(--t-sm); line-height: 1.45; }
.schedule-builder-sport { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #e9fae9; color: var(--primary, #176864); }
.schedule-builder-sport svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.schedule-builder-step { gap: 14px; padding: 18px; border-radius: 20px; }
.schedule-builder-step > header { display: flex; align-items: center; gap: 12px; }
.schedule-builder-step > header > span:last-child { display: grid; gap: 3px; }
.schedule-builder-step h4 { font-size: var(--t-lg); }
.schedule-builder-step p { color: var(--muted); font-size: var(--t-sm); }
.schedule-step-number { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #eaf8e8; color: var(--primary, #176864); font-size: var(--t-xl); font-weight: 700; }
.schedule-step-number.player { background: #e8f5fb; color: #1475a5; }
.schedule-builder-clubs label, .schedule-builder-pick label { display: grid; gap: 6px; min-width: 0; }
.schedule-builder-clubs label > small, .schedule-builder-pick label > small { color: #42576a; font-size: var(--t-xs); font-weight: 700; }
.schedule-builder-field { position: relative; display: block; min-width: 0; color: #526b81; border-radius: 14px; transition: transform .15s ease, box-shadow .15s ease; }
.schedule-builder-field:hover { transform: translateY(-1px); }
.schedule-builder-field:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #176864) 18%, transparent), 0 8px 20px #17364a12; }
.schedule-builder-field > svg { position: absolute; z-index: 1; top: 50%; left: 8px; width: 30px; height: 30px; padding: 6px; transform: translateY(-50%); border-radius: 9px; background: #f0f6f8; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.schedule-builder-field select { min-height: 52px; padding: 8px 34px 8px 46px; border-color: #d7e3e9; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526b81' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px, linear-gradient(145deg, #fff, #f9fbfc); color: var(--ink); text-align: left; text-overflow: ellipsis; box-shadow: inset 0 1px 0 #fff, 0 4px 12px #17364a0a; cursor: pointer; }
.schedule-builder-field select:focus { outline: 0; border-color: var(--primary, #176864); }
.schedule-builder-clubs > span, .schedule-builder-pick > span { align-self: end; display: grid; place-items: center; height: 52px; padding: 0; color: #526b81; font-size: var(--t-md); font-weight: 800; }
.schedule-builder-add { gap: 8px; min-height: 52px; font-size: var(--t-md); }
.schedule-builder-add b { color: var(--primary, #176864); font-size: 28px; font-weight: 400; line-height: 1; }
.schedule-builder-list { max-height: 280px; }
.schedule-builder-list .schedule-builder-empty { display: grid; justify-items: center; gap: 10px; min-height: 120px; padding: 20px; color: var(--muted); border-style: solid; background: #fbfcfd; }
.schedule-builder-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eef3f5; }
.schedule-builder-empty svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.schedule-builder-empty small { font-size: var(--t-sm); }
.schedule-builder-confirm { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border-radius: 16px; font-size: var(--t-md); }
.schedule-builder-confirm svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) {
  .schedule-picker { min-height: 54vh; margin: 0; padding: 22px 4px; border: 0; background: transparent; box-shadow: none; }
  .schedule-picker .schedule-waiting-head { display: none; }
  .schedule-picker ul { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 28px 14px; }
  .schedule-picker li.schedule-category-row { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 9px; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .schedule-picker .schedule-category-icon { width: 82px; height: 82px; border: 0; border-radius: 26px; box-shadow: inset 0 1px 0 #fff, 0 12px 28px #17364a0c; }
  .schedule-picker li:nth-child(3n + 1) .schedule-category-icon { background: #ebf9e8; color: #198a38; }
  .schedule-picker li:nth-child(3n + 2) .schedule-category-icon { background: #fff0f1; color: #e62435; }
  .schedule-picker li:nth-child(3n) .schedule-category-icon { background: #edf5ff; color: #1476dc; }
  .schedule-picker .schedule-category-icon svg { width: 42px; height: 42px; }
  .schedule-picker .schedule-category-copy { display: none; }
  .schedule-picker .schedule-mobile-label { display: block; max-width: 104px; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.25; text-align: center; }
  .schedule-picker .schedule-actions { position: static; }
  .schedule-picker .schedule-mobile-trigger { position: absolute; top: 57px; right: max(2px, calc(50% - 46px)); display: grid; place-items: center; width: 34px; min-height: 34px; padding: 0; border: 3px solid #fff; border-radius: 50%; font-size: 0; box-shadow: 0 5px 12px #17364a20; }
  .schedule-picker li:nth-child(3n + 1) .schedule-mobile-trigger { background: #198a38; }
  .schedule-picker li:nth-child(3n + 2) .schedule-mobile-trigger { background: #e62435; }
  .schedule-picker li:nth-child(3n) .schedule-mobile-trigger { background: #1476dc; }
  .schedule-picker .schedule-mobile-trigger svg { width: 17px; height: 17px; }
  .schedule-builder { gap: 14px; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }
  .schedule-builder-close { top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 12px; }
  .schedule-builder-head { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding-right: 40px; }
  .schedule-builder-head h3 { font-size: 19px; }
  .schedule-builder-head p { font-size: 11px; }
  .schedule-builder-sport { width: 48px; height: 48px; border-radius: 14px; }
  .schedule-builder-sport svg { width: 29px; height: 29px; }
  .schedule-builder-step { gap: 10px; padding: 12px; border-radius: 16px; }
  .schedule-step-number { width: 34px; height: 34px; font-size: 17px; }
  .schedule-builder-step h4 { font-size: 15px; }
  .schedule-builder-step p { font-size: 10px; }
  .schedule-builder-field select { min-height: 46px; padding-left: 40px; font-size: 12px; }
  .schedule-builder-field > svg { left: 6px; width: 28px; height: 28px; padding: 6px; }
  .schedule-builder-clubs > span, .schedule-builder-pick > span { height: 46px; font-size: 12px; }
  .schedule-builder-add { min-height: 46px; font-size: 13px; }
  .schedule-builder-add-all { min-height: 50px; padding: 7px 12px; font-size: 12px; }
  .schedule-builder-add-all b { font-size: 18px; }
  .schedule-builder-add-all small { font-size: 9px; }
  .schedule-builder-timing > div { grid-template-columns: 1fr 1fr; }
  .schedule-builder-timing input, .schedule-builder-timing select { min-height: 42px; font-size: 11px; }
  .schedule-existing-actions { width: 100%; margin-left: 0; }
  .schedule-existing-actions .secondary-button { flex: 1; }
  .schedule-builder-list .schedule-builder-empty { min-height: 88px; padding: 12px; }
  .schedule-builder-empty > span { width: 38px; height: 38px; }
  .schedule-builder-confirm { min-height: 52px; font-size: 15px; }
}

/* Many team encounters: group the round robin into compact court sessions. */
.team-session-schedule { display: grid; gap: 22px; }
.team-session-legend { display: flex; gap: 7px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.team-session-legend::-webkit-scrollbar { display: none; }
.team-session-chip, .team-session-rest { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; color: #fff; font-size: var(--t-xs); font-weight: 750; white-space: nowrap; }
.team-session { display: grid; gap: 10px; }
.team-session > header { display: flex; align-items: center; gap: 10px; }
.team-session > header h3 { margin: 0; color: var(--ink); font-size: var(--t-md); }
.team-session-rest { padding: 5px 10px; }
.team-session-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-session-card { display: grid; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line, #dce6eb); border-radius: 18px; background: var(--card, #fff); }
.team-session-card > header { display: flex; justify-content: center; gap: 4px; padding: 9px 12px; border-bottom: 1px solid var(--line, #dce6eb); background: #f8fafb; font-size: var(--t-xs); }
.team-session-card > header strong { font-size: inherit; }
.team-session-card > header span { color: var(--muted); font-weight: 700; }
.team-session-board { display: grid; grid-template-columns: minmax(86px, .72fr) minmax(190px, 1.8fr) minmax(86px, .72fr); min-height: 112px; }
.team-session-club { display: grid; place-items: center; padding: 10px; color: #fff; font-size: var(--t-sm); line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.team-session-matches { display: grid; align-content: stretch; }
.team-session-match-row { display: grid; grid-template-columns: minmax(54px, 1fr) 34px 34px minmax(54px, 1fr); align-items: center; border-bottom: 1px solid var(--line, #dce6eb); font-size: var(--t-xs); }
.team-session-match-row:last-child { border-bottom: 0; }
.team-session-match-row span { overflow: hidden; padding: 7px 6px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.team-session-match-row span:last-child { text-align: right; }
.team-session-match-row b { display: grid; align-self: stretch; place-items: center; border-left: 1px solid var(--line, #dce6eb); color: var(--muted); font-variant-numeric: tabular-nums; }
.team-session-card > footer { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; padding: 5px 10px; border-top: 1px solid var(--line, #dce6eb); color: var(--muted); font-size: var(--t-xs); }
.team-session-card > footer .match-score-button { min-height: 28px; margin: 0; padding: 4px 10px; font-size: 10px; }
.team-color-0 { background: #8a4f05; }
.team-color-1 { background: #28660f; }
.team-color-2 { background: #08705f; }
.team-color-3 { background: #963a1a; }
.team-color-4 { background: #175a96; }
.team-color-5 { background: #6842a3; }
@media (max-width: 900px) {
  .team-session-schedule { gap: 18px; }
  .team-session-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .team-session-board { grid-template-columns: minmax(72px, .68fr) minmax(170px, 1.8fr) minmax(72px, .68fr); }
  .team-session-match-row { grid-template-columns: minmax(48px, 1fr) 28px 28px minmax(48px, 1fr); }
  .team-session-club { padding: 8px; font-size: 11px; }
}
@media (max-width: 390px) {
  .team-session-board { grid-template-columns: 70px minmax(150px, 1fr) 70px; }
  .team-session-match-row { grid-template-columns: minmax(42px, 1fr) 25px 25px minmax(42px, 1fr); font-size: 10px; }
}
[data-tournament-tab][hidden] { display: none; }

/* Regional table tennis: games of a partai in the match sheet and the wasit's court card */
.tt-game-row { grid-template-columns: minmax(0, 1fr) 56px auto 56px; }
.tt-game-row input { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--line, #d7dee3); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; text-align: center; box-sizing: border-box; }
.tt-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0; }
.tt-games span { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.tt-games span b { color: var(--ink); }
.tt-games small, .tt-hint { color: var(--muted); font-size: var(--t-xs); }
.tt-hint { min-height: 1.3em; margin: 0; text-align: center; }
.tt-games-won { margin: 0; color: var(--muted); font-size: var(--t-sm); text-align: center; }
.tt-games-won b { color: var(--ink); font-size: var(--t-lg); }
.tt-picks { margin-top: 4px; }
.tt-wo { justify-content: space-between; }

/* ---------- Tournament TV redesign: dark scoreboard, condensed numerals, one card per live court ---------- */
.tv-view { background: radial-gradient(circle at 12% 0%, #123039 0%, #0b1519 52%, #070e11 100%); }
.tv-view button { font-family: inherit; }
.tv-bar time { font-size: 3em; font-weight: 800; letter-spacing: .01em; }
.tv-title h1 { font-size: 2.3em; font-weight: 800; letter-spacing: .005em; }
.tv-sports .tournament-chip { min-height: 1.9em; padding: 0 1em; border-radius: 999px; font-size: .95em; font-weight: 700; letter-spacing: .02em; }
.tv-sports .tournament-chip svg { display: none; }
.tv-view .tournament-status.live { font-size: 1.05em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tv-set-now { display: none; }
.tv-standings { border-color: #ffffff1a; border-radius: .8em; background: #ffffff0a; }
.tv-standings h2 { font-size: 1.7em; font-weight: 800; }
.tv-standings > small { font-size: .95em; }
.tv-standings-row:not(.head) > span:not(:nth-child(2)) { font-size: 1.45em; font-weight: 800; }
.tv-standings-row strong { font-size: 1.25em; font-weight: 700; }
.tv-standings-row.head > span { font-size: .9em; letter-spacing: .08em; }

/* The live-court cards of the overview (two to six at a time): sport chip, court and LIVE on top, then the two sides with the set in play. */
.tv-grid:not(.pair):not(.cols-1) { gap: .9em; }
.tv-grid:not(.pair):not(.cols-1) .tv-match { grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); align-content: stretch; gap: 0; padding: 0; border: 1px solid #ffffff1a; border-radius: .8em; background: linear-gradient(180deg, #ffffff12, #ffffff08); container-type: size; }
.tv-grid:not(.pair):not(.cols-1) .tv-match::before { inset: 0 0 auto 0; width: auto; height: .22em; background: var(--tone-soft); }
.tv-grid:not(.pair):not(.cols-1) .tv-match header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "chip court live" "cat cat cat"; align-items: center; gap: .2em .7em; padding: .75em .95em .55em; border-bottom: 1px solid #ffffff14; }
.tv-grid:not(.pair):not(.cols-1) .tv-match header .tournament-sport-badge, .tv-grid:not(.pair):not(.cols-1) .tv-match header .tv-set-labels, .tv-grid:not(.pair):not(.cols-1) .tv-match header .tv-round { display: none; }
.tv-grid:not(.pair):not(.cols-1) .tv-match header > span, .tv-grid:not(.pair):not(.cols-1) .tv-match header > span > small { display: contents; }
.tv-grid:not(.pair):not(.cols-1) .tv-match header small, .tv-grid:not(.pair):not(.cols-1) .tv-match header em { font-size: 1em; }
.tv-grid:not(.pair):not(.cols-1) .tv-match header strong { grid-area: chip; justify-self: start; padding: .22em .75em; border-radius: .35em; background: var(--tone-soft); color: #0b1519; font-size: .72em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tv-grid:not(.pair):not(.cols-1) .tv-match header .tv-where { grid-area: court; overflow: hidden; color: #9fb3bd; font-size: .85em; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tv-grid:not(.pair):not(.cols-1) .tv-match header em { grid-area: live; color: #ff6b57; font-size: .72em; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.tv-grid:not(.pair):not(.cols-1) .tv-match header .tv-class { grid-area: cat; overflow: hidden; margin: 0; padding: 0; border-radius: 0; background: none; color: #fff; font-size: 1.3em; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tv-grid:not(.pair):not(.cols-1) .tv-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: .6em; min-height: 0; padding: .1em .95em; border-top: 1px solid #ffffff10; }
.tv-grid:not(.pair):not(.cols-1) .tv-row:first-of-type { border-top: 0; }
.tv-grid:not(.pair):not(.cols-1) .tv-name { align-self: center; min-width: 0; }
.tv-grid:not(.pair):not(.cols-1) .tv-name strong { font-size: 1.45em; font-weight: 700; line-height: 1.05; }
.tv-grid:not(.pair):not(.cols-1) .tv-name small { display: block; color: #aebfc8; font-size: .85em; font-weight: 600; }
.tv-grid:not(.pair):not(.cols-1) .tv-set-now { display: block; align-self: center; color: #8ea3af; font-size: .85em; font-weight: 600; white-space: nowrap; }
.tv-grid:not(.pair):not(.cols-1) .tv-scores { gap: .18em; font-size: min(17cqh, 12cqi); }
.tv-grid:not(.pair):not(.cols-1) .tv-scores span:not(.current):not(.point) { display: none; }
.tv-grid:not(.pair):not(.cols-1) .tv-match .tv-scores span.current { min-width: 1.05em; height: auto; background: none; color: #fff; font-weight: 800; line-height: 1; }
.tv-grid:not(.pair):not(.cols-1) .tv-match .tv-scores span.point { height: auto; margin: 0 0 .1em; padding: 0; align-self: end; background: none; color: #f6d365; font-size: .5em; line-height: 1; }
.tv-grid:not(.pair):not(.cols-1) .tv-row.trail .tv-name strong { color: #8fa4ae; font-weight: 600; }
.tv-grid:not(.pair):not(.cols-1) .tv-match .tv-row.trail .tv-scores span.current { color: #5f7885; }
.tv-grid:not(.pair):not(.cols-1) .tv-match .tv-point-strip { margin: 0; padding: .3em .95em .5em; }
.tv-grid.dense { font-size: .8em; }

/* Up next: one slim band, four fixtures across, time in green. */
.tv-strips section { display: flex; align-items: center; gap: 1.5em; padding: .8em 1.2em; border: 1px solid #ffffff14; border-radius: .8em; }
.tv-strips h2 { margin: 0; color: #8ea3af; font-size: .8em; letter-spacing: .22em; white-space: nowrap; }
.tv-strips ol { flex: 1 1 auto; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.4em; }
.tv-strips li svg { display: none; }
.tv-strips li time { color: #5fe0b0; font-size: 1.3em; font-weight: 800; }
.tv-strips li b { font-size: 1.15em; font-weight: 800; }
.tv-strips li .tv-next-line small { display: none; }
.tv-strips li .tv-next-line em { color: #8ea3af; font-size: .85em; }
.tv-foot { font-size: .95em; }

/* Portrait (phone or upright tablet): the page scrolls, so cards size to their content instead of a fixed share of the screen. */
@media (orientation: portrait) {
  .tv-grid:not(.pair):not(.cols-1) { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tv-grid:not(.pair):not(.cols-1) .tv-match { container-type: normal; grid-template-rows: auto auto auto; }
  .tv-grid:not(.pair):not(.cols-1) .tv-row { padding-block: .45em; }
  .tv-grid:not(.pair):not(.cols-1) .tv-scores { font-size: 2.6em; }
  .tv-strips section { flex-direction: column; align-items: stretch; gap: .5em; }
  .tv-strips ol { grid-template-columns: minmax(0, 1fr); gap: .6em; }
  .tv-bar time { font-size: 2.2em; }
}

/* Live (provisional) standings: the rows share the card's height instead of bunching at the top, and "Menang" has room. */
.tv-standings-live-wrap .tv-standings-row.live { grid-template-columns: 1.6em minmax(0, 1fr) 2.4em 4.2em; }
.tv-standings-live-wrap .tv-standings-row.live:not(.head) { max-height: none; padding-block: .5em; }
.tv-standings-live-wrap .tv-standings-row.live:not(.head) > span:not(:nth-child(2)) { font-size: 1.5em; }
.tv-standings-live-wrap .tv-standings-row.live.head > span:last-child { white-space: nowrap; }
@media (orientation: portrait) {
  .tv-main { grid-template-rows: auto; }
  .tv-standings { align-self: start; }
  .tv-standings-live-wrap .tv-standings-row.live:not(.head) { padding-block: .8em; }
}
