@font-face {
  font-family: "Noto Sans TC Thumbnail";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/NotoSansTC-VF.ttf") format("truetype");
}

:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-soft: #f0f0f2;
  --surface-raised: #ffffff;
  --text: #18181b;
  --muted: #6b6b73;
  --border: #e1e1e5;
  --border-strong: #c9c9cf;
  --primary: #18181b;
  --primary-hover: #000000;
  --primary-soft: #e9e9ec;
  --accent: #a1a1aa;
  --accent-text: #18181b;
  --danger: #ba3d49;
  --danger-soft: #fdebed;
  --warning: #a66b14;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 5px 16px rgba(0, 0, 0, .04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .12);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1180px;
  --font: "DM Sans", "Noto Sans TC", system-ui, -apple-system, sans-serif;
}

:root[data-palette="green"] {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --surface-soft: #eef2eb;
  --surface-raised: #ffffff;
  --text: #18201c;
  --muted: #69736d;
  --border: #dce3dc;
  --border-strong: #cbd5cc;
  --primary: #126b45;
  --primary-hover: #0c5938;
  --primary-soft: #dff1e7;
  --accent: #d7ff55;
  --accent-text: #17210d;
  --shadow-sm: 0 1px 2px rgba(20, 42, 29, .05), 0 5px 16px rgba(20, 42, 29, .04);
  --shadow-lg: 0 24px 60px rgba(19, 48, 30, .12);
}

:root[data-palette="purple"] {
  --bg: #f8f6fb;
  --surface: #ffffff;
  --surface-soft: #f0ecf5;
  --surface-raised: #ffffff;
  --text: #211a29;
  --muted: #746a7e;
  --border: #e3dcea;
  --border-strong: #cec2da;
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-soft: #ede9fe;
  --accent: #d8b4fe;
  --accent-text: #2e1065;
  --shadow-sm: 0 1px 2px rgba(46, 16, 101, .05), 0 5px 16px rgba(46, 16, 101, .05);
  --shadow-lg: 0 24px 60px rgba(46, 16, 101, .13);
}

:root[data-palette="yellow"] {
  --bg: #faf8f0;
  --surface: #ffffff;
  --surface-soft: #f5f0dd;
  --surface-raised: #ffffff;
  --text: #262113;
  --muted: #776f5b;
  --border: #e7dfc8;
  --border-strong: #d1c49e;
  --primary: #946200;
  --primary-hover: #754d00;
  --primary-soft: #fff1b8;
  --accent: #facc15;
  --accent-text: #2a2100;
  --shadow-sm: 0 1px 2px rgba(80, 60, 0, .05), 0 5px 16px rgba(80, 60, 0, .05);
  --shadow-lg: 0 24px 60px rgba(80, 60, 0, .13);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --surface: #121214;
  --surface-soft: #1d1d20;
  --surface-raised: #171719;
  --text: #fafafa;
  --muted: #a1a1aa;
  --border: #29292d;
  --border-strong: #414147;
  --primary: #f4f4f5;
  --primary-hover: #ffffff;
  --primary-soft: #29292d;
  --accent: #71717a;
  --accent-text: #fafafa;
  --danger: #f07c85;
  --danger-soft: #3b2023;
  --warning: #e7b65e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 5px 16px rgba(0, 0, 0, .14);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

:root[data-theme="dark"][data-palette="green"] {
  --bg: #101411;
  --surface: #171d19;
  --surface-soft: #202721;
  --surface-raised: #1b221d;
  --text: #eef4ef;
  --muted: #9ea9a1;
  --border: #2b352e;
  --border-strong: #3a473e;
  --primary: #6fdaa2;
  --primary-hover: #8ce8b6;
  --primary-soft: #183b29;
  --accent: #c9f34e;
  --accent-text: #11190b;
}

:root[data-theme="dark"][data-palette="purple"] {
  --bg: #100d14;
  --surface: #18131e;
  --surface-soft: #251d2f;
  --surface-raised: #1d1725;
  --text: #faf7ff;
  --muted: #b1a5bc;
  --border: #33283f;
  --border-strong: #4b3a5d;
  --primary: #c4b5fd;
  --primary-hover: #ddd6fe;
  --primary-soft: #302344;
  --accent: #8b5cf6;
  --accent-text: #f5f3ff;
}

:root[data-theme="dark"][data-palette="yellow"] {
  --bg: #121109;
  --surface: #1b190d;
  --surface-soft: #292510;
  --surface-raised: #201d0f;
  --text: #fffbea;
  --muted: #b8af8f;
  --border: #393318;
  --border-strong: #544b23;
  --primary: #facc15;
  --primary-hover: #fde047;
  --primary-soft: #3a3108;
  --accent: #f59e0b;
  --accent-text: #1f1800;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #09090b;
    --surface: #121214;
    --surface-soft: #1d1d20;
    --surface-raised: #171719;
    --text: #fafafa;
    --muted: #a1a1aa;
    --border: #29292d;
    --border-strong: #414147;
    --primary: #f4f4f5;
    --primary-hover: #ffffff;
    --primary-soft: #29292d;
    --accent: #71717a;
    --accent-text: #fafafa;
    --danger: #f07c85;
    --danger-soft: #3b2023;
    --warning: #e7b65e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 5px 16px rgba(0, 0, 0, .14);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .34);
    color-scheme: dark;
  }

  :root[data-theme="system"][data-palette="green"] {
    --bg: #101411;
    --surface: #171d19;
    --surface-soft: #202721;
    --surface-raised: #1b221d;
    --text: #eef4ef;
    --muted: #9ea9a1;
    --border: #2b352e;
    --border-strong: #3a473e;
    --primary: #6fdaa2;
    --primary-hover: #8ce8b6;
    --primary-soft: #183b29;
    --accent: #c9f34e;
    --accent-text: #11190b;
  }

  :root[data-theme="system"][data-palette="purple"] {
    --bg: #100d14;
    --surface: #18131e;
    --surface-soft: #251d2f;
    --surface-raised: #1d1725;
    --text: #faf7ff;
    --muted: #b1a5bc;
    --border: #33283f;
    --border-strong: #4b3a5d;
    --primary: #c4b5fd;
    --primary-hover: #ddd6fe;
    --primary-soft: #302344;
    --accent: #8b5cf6;
    --accent-text: #f5f3ff;
  }

  :root[data-theme="system"][data-palette="yellow"] {
    --bg: #121109;
    --surface: #1b190d;
    --surface-soft: #292510;
    --surface-raised: #201d0f;
    --text: #fffbea;
    --muted: #b8af8f;
    --border: #393318;
    --border-strong: #544b23;
    --primary: #facc15;
    --primary-hover: #fde047;
    --primary-soft: #3a3108;
    --accent: #f59e0b;
    --accent-text: #1f1800;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary);
}

.brand-mark-shuttle {
  width: 76%;
  height: 84%;
  overflow: visible;
  color: var(--accent);
  transform: rotate(-20deg);
}

.brand-feather-skirt {
  fill: color-mix(in srgb, var(--primary) 40%, var(--surface));
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand-feather-ribs {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.35;
}

.brand-shuttle-band {
  fill: currentColor;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.brand-shuttle-cork {
  fill: var(--surface);
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-form {
  display: inline-flex;
  margin: 0;
}

.nav-button {
  border: 0;
  background: transparent;
}

.nav-cta {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: .82rem;
}

.account-menu {
  position: relative;
}

.account-menu-trigger {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 650;
  list-style: none;
  user-select: none;
}

.account-menu-trigger::-webkit-details-marker {
  display: none;
}

.account-menu-trigger > svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform .16s ease;
}

.account-menu[open] .account-menu-trigger > svg {
  transform: rotate(180deg);
}

.account-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--surface);
  font-size: .7rem;
  font-weight: 750;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-list {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.account-menu-list a,
.account-menu-list button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
}

.account-menu-list a:hover,
.account-menu-list button:hover {
  background: var(--surface-soft);
}

.account-menu-list svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.account-menu-list form {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.nav-link {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-soft);
  color: var(--text);
}

.preferences-menu {
  position: relative;
  margin-left: 3px;
}

.preferences-trigger {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 650;
  list-style: none;
  user-select: none;
}

.preferences-trigger::-webkit-details-marker {
  display: none;
}

.preferences-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.preferences-trigger .preferences-icon {
  color: var(--muted);
}

.preferences-trigger .menu-chevron {
  width: 14px;
  color: var(--muted);
  transition: transform .16s ease;
}

.preferences-menu[open] .menu-chevron {
  transform: rotate(180deg);
}

.preferences-list {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: min(290px, calc(100vw - 28px));
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.preferences-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.preferences-field:last-child {
  margin-bottom: 0;
}

.preferences-field > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.preferences-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
}

.preferences-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.first-visit-tooltip {
  position: fixed;
  z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: min(440px, calc(100vw - 40px));
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.first-visit-tooltip[hidden] {
  display: none;
}

.first-visit-tooltip::after {
  position: absolute;
  right: 28px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface-raised);
  content: "";
  transform: rotate(45deg);
}

.first-visit-tooltip-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.first-visit-tooltip-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.first-visit-tooltip-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: .95rem;
}

.first-visit-tooltip-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.first-visit-tooltip-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.first-visit-tooltip-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: .76rem;
}

.hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--primary-soft) 42%, var(--bg)), var(--bg) 64%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 46%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 46%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, #000, transparent 90%);
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: 570px;
  align-items: center;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
}

.hero-copy {
  padding: 72px 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-body {
  max-width: 570px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.15rem;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 650;
  line-height: 1;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
.nav-link:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.button-primary {
  background: var(--primary);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 20%, transparent);
  color: #fff;
}

:root[data-theme="dark"] .button-primary {
  color: #111113;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .button-primary {
    color: #111113;
  }
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button-ghost:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.button-danger-outline {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: transparent;
  color: var(--danger);
}

.button-block {
  width: 100%;
}

.button svg {
  width: 18px;
  height: 18px;
}

.hero-art {
  position: relative;
  height: 410px;
}

.court-lines {
  position: absolute;
  inset: 20px 0 0 20px;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--primary) 68%, transparent);
  border-radius: 45% 45% 12% 12% / 18% 18% 8% 8%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary-soft) 85%, transparent), transparent);
  box-shadow: inset 0 0 80px color-mix(in srgb, var(--primary) 7%, transparent);
  transform: perspective(700px) rotateY(-12deg) rotateX(4deg);
}

.court-lines::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  content: "";
  background: color-mix(in srgb, var(--primary) 50%, transparent);
}

.court-lines::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: color-mix(in srgb, var(--primary) 50%, transparent);
  box-shadow: 0 -110px 0 color-mix(in srgb, var(--primary) 30%, transparent), 0 110px 0 color-mix(in srgb, var(--primary) 30%, transparent);
}

.court-net {
  position: absolute;
  z-index: 2;
  top: 45%;
  right: -10px;
  left: -10px;
  height: 64px;
  border-top: 4px solid var(--text);
  opacity: .8;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 34%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 34%, transparent) 1px, transparent 1px);
  background-size: 12px 12px;
  transform: skewY(-5deg);
}

.shuttle {
  position: absolute;
  z-index: 5;
  top: 36px;
  right: 54px;
  width: 104px;
  height: 140px;
  overflow: visible;
  color: var(--accent);
  filter: drop-shadow(0 18px 14px rgba(0, 0, 0, .16));
  transform: rotate(28deg);
}

.shuttle-skirt {
  fill: color-mix(in srgb, var(--surface) 58%, transparent);
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 5;
}

.shuttle-ribs {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
  opacity: .88;
}

.shuttle-band {
  fill: currentColor;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 3;
}

.shuttle-cork {
  fill: color-mix(in srgb, var(--surface) 82%, var(--accent));
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 5;
}

.shuttle-cork-detail {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
  opacity: .55;
}

.section {
  padding-block: 88px;
}

.section-tight {
  padding-top: 46px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h2,
.panel-heading h2 {
  margin-bottom: 8px;
}

.section-heading p:not(.eyebrow),
.page-header p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.court-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.court-card,
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.court-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.court-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.court-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.court-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.court-card:hover .court-card-cover img {
  transform: scale(1.025);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.date-chip {
  display: grid;
  width: 50px;
  height: 56px;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: center;
}

.date-chip span {
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .08em;
}

.date-chip strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-open {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-open i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-full {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-banned {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-read-only {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.status-archived {
  background: var(--surface-soft);
  color: var(--muted);
}

.status-expired {
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  color: var(--warning);
}

.court-card-body {
  flex: 1;
  padding: 18px 20px 20px;
}

.card-time {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: .79rem;
  font-weight: 700;
}

.court-card h3 {
  overflow: hidden;
  margin-bottom: 9px;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-location {
  display: -webkit-box;
  min-height: 42px;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: .86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-location svg {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  vertical-align: -2px;
}

.card-event-context {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: .75rem;
}

.card-event-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-event-context span + span::before {
  margin-right: 7px;
  color: var(--border-strong);
  content: "·";
}

.card-creator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: .75rem;
}

.card-creator svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.card-creator strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .75rem;
}

.card-meta span {
  display: flex;
  flex-direction: column;
}

.card-meta strong {
  color: var(--text);
  font-size: .96rem;
}

.levels-inline {
  display: flex;
  gap: 10px;
  padding-top: 14px;
}

.levels-inline span {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.levels-inline b {
  color: var(--primary);
}

.levels-inline span:last-child b {
  color: var(--muted);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  color: var(--primary);
  font-size: .86rem;
  font-weight: 700;
}

.card-link:hover svg {
  transform: translateX(3px);
}

.card-link svg {
  width: 17px;
  transition: transform .16s ease;
}

.empty-state {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
}

.empty-icon-shuttle {
  width: 29px;
  height: 39px;
  overflow: visible;
  color: var(--primary);
  transform: rotate(-22deg);
}

.empty-shuttle-skirt {
  fill: color-mix(in srgb, var(--surface) 70%, transparent);
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 7;
}

.empty-shuttle-ribs {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 5;
  opacity: .78;
}

.empty-shuttle-band {
  fill: currentColor;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 5;
}

.empty-shuttle-cork {
  fill: var(--surface);
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 7;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 420px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
  font-size: .86rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: .72rem;
}

.footer-links a:hover {
  color: var(--text);
}

.intro-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 72%, transparent), transparent 58%),
    var(--surface-soft);
}

.intro-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 610px;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(42px, 8vw, 110px);
  padding-block: 86px;
}

.intro-hero-copy {
  max-width: 700px;
}

.intro-hero-copy h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -.06em;
  line-height: .98;
}

.intro-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.intro-overview {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 24px;
  transform: rotate(2deg);
}

.intro-overview-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
}

.intro-overview-mark .brand-mark {
  width: 34px;
  height: 34px;
}

.intro-overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.intro-overview-row span {
  color: var(--muted);
  font-size: .78rem;
}

.intro-overview-row strong {
  font-size: .86rem;
}

.intro-overview-court {
  position: relative;
  height: 130px;
  margin-top: 18px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--primary) 65%, transparent);
  border-radius: 14px;
  background: var(--primary-soft);
}

.intro-overview-court::before,
.intro-overview-court::after,
.intro-overview-court span {
  position: absolute;
  content: "";
  background: color-mix(in srgb, var(--primary) 55%, transparent);
}

.intro-overview-court::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
}

.intro-overview-court::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
}

.intro-overview-court span:nth-child(1),
.intro-overview-court span:nth-child(2) {
  top: 25%;
  right: 0;
  left: 0;
  height: 1px;
}

.intro-overview-court span:nth-child(2) {
  top: 75%;
}

.intro-overview-court span:nth-child(3) {
  top: 0;
  bottom: 0;
  left: calc(50% - 18px);
  width: 36px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, color-mix(in srgb, var(--primary) 35%, transparent) 5px 7px);
}

.intro-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
  border-radius: 50%;
}

.intro-orbit-one {
  width: 480px;
  height: 480px;
  top: -210px;
  right: -90px;
}

.intro-orbit-two {
  width: 720px;
  height: 720px;
  right: 120px;
  bottom: -610px;
}

.intro-section-heading {
  max-width: 760px;
}

.intro-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.035em;
}

.intro-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intro-feature-card {
  padding: 25px;
}

.intro-feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.intro-feature-icon svg {
  width: 21px;
  height: 21px;
}

.intro-feature-card h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
}

.intro-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
}

.intro-how-section {
  border-block: 1px solid var(--border);
  background: var(--surface-soft);
}

.intro-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.intro-step {
  min-width: 0;
  padding: 32px;
}

.intro-step + .intro-step {
  border-left: 1px solid var(--border);
}

.intro-step > span {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
}

.intro-step h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.intro-step p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
}

.intro-trust-section {
  padding-top: 52px;
}

.intro-trust-card {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  padding: 34px;
}

.intro-trust-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
}

.intro-trust-icon svg {
  width: 34px;
  height: 34px;
}

.intro-trust-card h2 {
  margin-bottom: 9px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.intro-trust-card p:last-child {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.intro-cta {
  padding: 58px 0;
  background: var(--text);
  color: var(--bg);
}

.intro-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.intro-cta h2 {
  margin-bottom: 7px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.intro-cta p {
  margin: 0;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.intro-cta .button-secondary {
  border-color: color-mix(in srgb, var(--bg) 32%, transparent);
  background: transparent;
  color: var(--bg);
}

.license-shell {
  max-width: 900px;
}

.updates-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, var(--primary-soft), transparent 28%),
    var(--surface-soft);
}

.updates-header .page-header-inner > div {
  max-width: 760px;
}

.updates-shell {
  max-width: 980px;
}

.updates-timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.updates-timeline::before {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 19px;
  width: 2px;
  background: var(--border-strong);
  content: "";
}

.update-entry {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 24px;
}

.update-rail {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.update-rail span {
  width: 18px;
  height: 18px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.update-entry:first-child .update-rail span {
  box-shadow:
    0 0 0 1px var(--primary),
    0 0 0 7px var(--primary-soft);
}

.update-card {
  padding: 30px 34px 32px;
  border-radius: 20px;
}

.update-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.update-card time {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.update-latest {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.update-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.update-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.update-details {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.update-details h3 {
  margin-bottom: 12px;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.update-details ul {
  display: grid;
  margin: 0;
  padding-left: 1.25rem;
  gap: 9px;
  color: var(--muted);
}

.update-details li {
  padding-left: 4px;
  line-height: 1.65;
}

.update-details li::marker {
  color: var(--primary);
}

.contact-header {
  background:
    radial-gradient(circle at 82% 24%, var(--primary-soft), transparent 32%),
    linear-gradient(135deg, transparent 52%, var(--surface-soft)),
    var(--surface);
}

.contact-header .shell,
.contact-shell {
  max-width: 1080px;
}

.contact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 26px;
  padding: clamp(28px, 5vw, 46px);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background:
    linear-gradient(135deg, var(--primary-soft), transparent 52%),
    var(--surface);
}

.contact-card-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 20px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--border);
}

.contact-card-icon svg,
.contact-note-icon svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-card-copy > .eyebrow {
  margin-bottom: 8px;
}

.contact-card-copy > h2 {
  margin-bottom: 22px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.contact-card dl {
  display: grid;
  max-width: 720px;
  margin: 0;
  gap: 12px;
}

.contact-card dl > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.contact-card dt {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.contact-card dd {
  min-width: 0;
  margin: 0;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-method-groups {
  display: grid;
  gap: 14px;
}

.contact-method-group h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-method-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.contact-method-link {
  display: grid;
  grid-template-columns: 30px 80px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.contact-method-link:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background: var(--surface-soft);
}

.contact-method-badge {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
}

.contact-method-name {
  font-size: .76rem;
  font-weight: 750;
}

.contact-method-value {
  min-width: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-method-link > svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.contact-help {
  padding: 32px;
}

.contact-help > .eyebrow {
  margin-bottom: 24px;
}

.contact-help-list {
  display: grid;
  gap: 24px;
}

.contact-help-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.contact-help-item > span {
  padding-top: 3px;
  color: var(--primary);
  font-size: .68rem;
  font-weight: 800;
}

.contact-help-item h2,
.contact-note h2 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.contact-help-item p,
.contact-note p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.72;
}

.contact-notes {
  display: grid;
  gap: 12px;
}

.contact-note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 24px;
}

.contact-note-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--primary);
}

.contact-note-icon svg {
  width: 20px;
}

.contact-note-security {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  background:
    linear-gradient(135deg, var(--primary-soft), transparent 72%),
    var(--surface);
}

.contact-message-panel {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(28px, 6vw, 68px);
  margin-top: 18px;
  padding: clamp(28px, 5vw, 44px);
  scroll-margin-top: 96px;
}

.contact-message-intro {
  position: sticky;
  top: 96px;
}

.contact-message-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.contact-message-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.72;
}

.contact-message-form .field > span small {
  margin-left: 4px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
}

.contact-message-form textarea {
  min-height: 190px;
}

.contact-message-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-message-actions p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.55;
}

.contact-message-actions p a {
  color: var(--primary);
  font-weight: 700;
}

.contact-message-actions .button {
  flex: 0 0 auto;
}

.admin-message-shell {
  max-width: 1120px;
}

.contact-notification-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: 32px;
  padding: 28px 30px;
}

.contact-notification-settings h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.contact-notification-settings p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}

.notification-channel-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.notification-channel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.notification-channel-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.notification-channel-status.ready {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
  color: var(--primary);
}

.notification-channel-status.ready i {
  background: var(--primary);
}

.contact-notification-settings form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.contact-notification-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.contact-notification-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-notification-toggle input:checked + .push-toggle-track {
  border-color: var(--primary);
  background: var(--primary);
}

.contact-notification-toggle input:checked + .push-toggle-track i {
  background: #fff;
  transform: translateX(18px);
}

.contact-notification-toggle input:focus-visible + .push-toggle-track {
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: 2px;
}

.contact-notification-toggle:has(input:disabled) {
  cursor: not-allowed;
  opacity: .58;
}

.contact-notification-toggle strong {
  font-size: .78rem;
}

.admin-message-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 16px;
}

.admin-message-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-message-toolbar h2 {
  margin: 0;
  font-size: 1.3rem;
}

.message-filter-tabs {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.message-filter-tabs a {
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.message-filter-tabs a:hover,
.message-filter-tabs a.active {
  background: var(--surface-soft);
  color: var(--text);
}

.admin-message-list {
  display: grid;
  gap: 14px;
}

.admin-message-card {
  padding: 28px 30px;
}

.admin-message-card.is-unread {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  box-shadow: inset 4px 0 0 var(--primary);
}

.admin-message-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-message-card > header h2 {
  margin: 10px 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.admin-message-card > header form {
  margin: 0;
}

.admin-message-card > header .button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: .7rem;
}

.admin-message-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.message-language {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-message-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
  padding: 16px 0;
  border-block: 1px solid var(--border);
  gap: 18px;
}

.admin-message-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-message-meta dd {
  margin: 0;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-message-body {
  color: var(--text);
  font-size: .88rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.message-pagination span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.privacy-header {
  background:
    radial-gradient(circle at 86% 18%, var(--primary-soft), transparent 30%),
    var(--surface-soft);
}

.privacy-header .shell {
  max-width: 1120px;
}

.privacy-updated {
  margin-top: 18px !important;
  color: var(--text) !important;
  font-size: .78rem !important;
  font-weight: 700;
}

.privacy-shell {
  max-width: 1120px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.privacy-toc {
  position: sticky;
  top: 94px;
  padding: 24px;
}

.privacy-toc .eyebrow {
  margin-bottom: 14px;
}

.privacy-toc nav {
  display: grid;
  gap: 3px;
}

.privacy-toc a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.35;
}

.privacy-toc a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.privacy-toc a span {
  color: var(--primary);
  font-size: .65rem;
  font-weight: 800;
}

.privacy-document {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.privacy-operator-notice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 30px;
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background:
    linear-gradient(135deg, var(--primary-soft), transparent 48%),
    var(--surface);
}

.privacy-notice-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--border);
}

.privacy-notice-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.privacy-operator-notice h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.privacy-operator-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.privacy-deployment-details {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.privacy-deployment-details h3 {
  margin-bottom: 12px;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.privacy-deployment-details dl {
  display: grid;
  margin: 0;
  gap: 10px;
}

.privacy-deployment-details dl > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
}

.privacy-deployment-details dt {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.privacy-deployment-details dd {
  min-width: 0;
  margin: 0;
  font-size: .8rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.privacy-deployment-details a {
  color: var(--primary);
}

.privacy-section {
  padding: 32px 34px;
  scroll-margin-top: 96px;
}

.privacy-section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.privacy-section-heading > span {
  color: var(--primary);
  font-size: .68rem;
  font-weight: 800;
}

.privacy-section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.58rem);
}

.privacy-section > p,
.privacy-section li {
  color: var(--muted);
  line-height: 1.78;
}

.privacy-section > p:last-of-type {
  margin-bottom: 0;
}

.privacy-section ul {
  display: grid;
  margin: 0;
  padding-left: 1.25rem;
  gap: 10px;
}

.privacy-section li {
  padding-left: 5px;
}

.privacy-section li::marker {
  color: var(--primary);
}

.privacy-contact {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.privacy-contact strong {
  font-size: .78rem;
}

.privacy-contact a {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.privacy-contact p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .contact-message-panel,
  .contact-notification-settings {
    grid-template-columns: 1fr;
  }

  .contact-message-intro {
    position: static;
  }

  .contact-notification-settings form {
    justify-content: flex-start;
  }

  .contact-content-grid {
    grid-template-columns: 1fr;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: static;
  }

  .privacy-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.license-list {
  display: grid;
  gap: 18px;
}

.license-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
}

@media (max-width: 640px) {
  .updates-timeline::before {
    left: 11px;
  }

  .update-entry {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
  }

  .update-rail {
    padding-top: 28px;
  }

  .update-rail span {
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .update-card {
    padding: 24px 22px 26px;
    border-radius: 16px;
  }

  .update-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .privacy-toc nav {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-method-link {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
  }

  .contact-method-value {
    grid-column: 2 / -1;
  }

  .contact-message-panel {
    padding: 26px 22px;
  }

  .contact-message-actions,
  .admin-message-toolbar,
  .admin-message-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-message-actions .button {
    width: 100%;
  }

  .contact-notification-settings {
    padding: 24px 22px;
  }

  .admin-message-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .message-filter-tabs {
    align-self: flex-start;
  }

  .admin-message-card {
    padding: 24px 22px;
  }

  .contact-help {
    padding: 26px 22px;
  }

  .contact-note {
    padding: 22px;
  }

  .privacy-operator-notice {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }

  .privacy-deployment-details dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .privacy-section {
    padding: 26px 22px;
  }
}

.license-preview {
  display: grid;
  min-height: 220px;
  padding: 28px;
  place-items: center;
  background: var(--surface-soft);
}

.license-preview img {
  width: 100%;
  height: auto;
}

.license-preview-codex {
  background:
    radial-gradient(circle at 35% 28%, var(--primary-soft), transparent 58%),
    var(--surface-soft);
}

.license-preview-font {
  background:
    radial-gradient(circle at 35% 28%, var(--primary-soft), transparent 58%),
    var(--surface-soft);
}

.license-preview-font span {
  color: var(--text);
  font-family: "Noto Sans TC Thumbnail", "Noto Sans TC", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-variation-settings: "wght" 700;
  letter-spacing: -.06em;
}

.codex-credit-mark {
  width: 104px;
  height: 104px;
  color: var(--text);
}

.codex-credit-mark rect {
  fill: var(--surface);
  stroke: var(--border-strong);
}

.codex-credit-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.license-copy {
  padding: 32px;
}

.license-copy h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.license-copy p:not(.eyebrow) {
  margin-bottom: 9px;
  color: var(--muted);
}

.license-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 20px;
}

.license-links a {
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
}

.brand-small {
  color: var(--text);
  font-size: .9rem;
}

.brand-small .brand-mark {
  width: 25px;
  height: 25px;
}

.flash-stack {
  position: fixed;
  z-index: 100;
  top: 86px;
  right: 0;
  left: 0;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.flash {
  display: flex;
  width: min(400px, 100%);
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  font-size: .86rem;
  font-weight: 600;
  pointer-events: auto;
}

.flash-success {
  border-left: 4px solid var(--primary);
}

.flash-error {
  border-left: 4px solid var(--danger);
}

.flash-close {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
}

.detail-hero {
  padding: 42px 0 50px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 25%),
    var(--surface-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.back-link:hover {
  color: var(--primary);
}

.back-link svg {
  width: 17px;
}

.detail-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.title-status {
  margin-bottom: 10px;
}

.detail-title-row h1 {
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
}

.detail-title-row p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: var(--muted);
}

.detail-title-row p svg {
  width: 18px;
}

.detail-title-row .detail-creator {
  margin-top: 9px;
  font-size: .82rem;
}

.detail-title-row .detail-hall,
.detail-title-row .detail-badminton-name,
.detail-title-row .detail-location {
  margin-top: 7px;
}

.detail-creator strong {
  color: var(--text);
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-actions form {
  margin: 0;
}

.court-action-menu {
  position: relative;
}

.court-action-trigger {
  cursor: pointer;
  list-style: none;
}

.court-action-trigger::-webkit-details-marker {
  display: none;
}

.court-action-trigger .menu-chevron {
  width: 14px;
  transition: transform .16s ease;
}

.court-action-menu[open] .menu-chevron {
  transform: rotate(180deg);
}

.court-action-list {
  width: 260px;
}

.account-menu-list button.menu-danger {
  color: var(--danger);
}

.account-menu-list button.menu-danger svg {
  color: currentColor;
}

.detail-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding-top: 52px;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
}

.info-icon svg {
  width: 17px;
  height: 17px;
}

.info-card > span {
  overflow: hidden;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-card strong {
  font-size: .93rem;
  white-space: nowrap;
}

.info-weekday {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.panel {
  border-radius: var(--radius);
}

.detail-main > .panel {
  padding: 25px;
}

.detail-main > .push-notification-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
}

.push-notification-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.push-notification-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.push-notification-content h2 {
  margin: 1px 0 5px;
  font-size: 1.05rem;
}

.push-notification-content > p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.push-notification-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  cursor: pointer;
}

.push-notification-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.push-toggle-track {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: var(--surface-soft);
  transition: background .16s ease, border-color .16s ease;
}

.push-toggle-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, background .16s ease;
}

.push-notification-toggle input:checked + .push-toggle-track {
  border-color: var(--primary);
  background: var(--primary);
}

.push-notification-toggle input:checked + .push-toggle-track i {
  background: #fff;
  transform: translateX(18px);
}

.push-notification-toggle input:focus-visible + .push-toggle-track {
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: 2px;
}

.push-notification-toggle:has(input:disabled) {
  cursor: not-allowed;
  opacity: .58;
}

.push-notification-toggle strong {
  font-size: .8rem;
}

.push-notification-content .push-notification-status {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: .72rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading .eyebrow {
  margin-bottom: 4px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.spots-number {
  color: var(--primary);
  font-size: .84rem;
  font-weight: 700;
}

.capacity-track {
  height: 9px;
  margin: 24px 0 13px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-soft);
}

.capacity-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--accent)));
}

.capacity-legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: .75rem;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot-reserved {
  background: var(--primary);
}

.dot-online {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 20%, transparent);
}

.dot-waiting {
  background: var(--muted);
}

.event-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.event-gallery {
  display: grid;
  gap: 12px;
}

.detail-main > .event-gallery-panel {
  overflow: hidden;
  padding: 0;
}

.event-gallery-summary {
  display: block;
  padding: 25px;
  cursor: pointer;
  list-style: none;
}

.event-gallery-summary::-webkit-details-marker {
  display: none;
}

.event-gallery-summary .panel-heading {
  width: 100%;
}

.event-gallery-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .16s ease;
}

.event-gallery-panel[open] .event-gallery-chevron {
  transform: rotate(180deg);
}

.event-gallery-panel-body {
  padding: 0 25px 25px;
  border-top: 1px solid var(--border);
}

.event-gallery-panel-body .event-gallery {
  margin-top: 22px;
}

.event-gallery-stage {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #101014;
}

.event-gallery-slide {
  margin: 0;
}

.event-gallery-slide[hidden] {
  display: none;
}

.event-gallery-slide > a,
.event-gallery-slide > video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101014;
}

.event-gallery-slide img,
.event-gallery-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-gallery-slide figcaption {
  overflow: hidden;
  padding: 10px 12px;
  border-top: 1px solid color-mix(in srgb, #fff 15%, transparent);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--border-strong) var(--surface-soft);
  scrollbar-width: thin;
}

.event-gallery-thumbnails::-webkit-scrollbar {
  height: 7px;
}

.event-gallery-thumbnails::-webkit-scrollbar-track {
  border-radius: 99px;
  background: var(--surface-soft);
}

.event-gallery-thumbnails::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--border-strong);
}

.event-gallery-thumbnail {
  position: relative;
  width: 94px;
  height: 68px;
  flex: 0 0 94px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #101014;
  cursor: pointer;
  opacity: .66;
  transition: border-color .16s ease, opacity .16s ease, transform .16s ease;
}

.event-gallery-thumbnail:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.event-gallery-thumbnail.is-active {
  border-color: var(--primary);
  opacity: 1;
}

.event-gallery-thumbnail:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.event-gallery-thumbnail img,
.event-gallery-thumbnail video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.event-gallery-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  transform: translate(-50%, -50%);
}

.event-gallery-play svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.event-detail-wide {
  grid-column: 1 / -1;
}

.event-detail > div:not(.event-detail-icon) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.event-detail > div > span {
  color: var(--muted);
  font-size: .72rem;
}

.event-detail strong {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.event-detail-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.shuttle-icon {
  width: 20px;
  height: 27px;
  overflow: visible;
  color: var(--text);
  transform: rotate(24deg);
}

.shuttle-icon .shuttle-skirt {
  fill: color-mix(in srgb, var(--surface) 72%, transparent);
  stroke-width: 8;
}

.shuttle-icon .shuttle-ribs {
  stroke-width: 5;
}

.shuttle-icon .shuttle-band {
  stroke-width: 5;
}

.shuttle-icon .shuttle-cork {
  stroke-width: 8;
}

.gender-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.gender-level {
  display: flex;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.gender-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
}

.male-symbol {
  background: var(--surface-soft);
  color: var(--text);
}

.female-symbol {
  background: var(--surface-soft);
  color: var(--muted);
}

.gender-level > div {
  display: flex;
  flex-direction: column;
}

.gender-level span:not(.gender-symbol) {
  color: var(--muted);
  font-size: .72rem;
}

.gender-level strong {
  font-size: 1.25rem;
}

.gender-level small {
  color: var(--muted);
  font-size: .7rem;
}

.level-guide-copy {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.7;
}

.grading-chart {
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.grading-chart > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.grading-chart > summary::-webkit-details-marker {
  display: none;
}

.grading-chart > summary span {
  display: grid;
  gap: 2px;
}

.grading-chart > summary strong {
  font-size: .82rem;
}

.grading-chart > summary small {
  color: var(--muted);
  font-size: .7rem;
}

.grading-chart > summary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .16s ease;
}

.grading-chart[open] > summary svg {
  transform: rotate(180deg);
}

.grading-chart-body {
  padding: 10px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.grading-chart-body > a:first-child {
  display: flex;
  justify-content: center;
}

.grading-chart img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 780px;
  object-fit: contain;
}

.grading-full-link {
  display: block;
  padding: 12px 4px 3px;
  color: #171719;
  font-size: .75rem;
  font-weight: 700;
  text-align: right;
}

.count-badge {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border-radius: 99px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.participant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.participant {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: .84rem;
}

.participant > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.participant-status {
  margin-left: auto;
  color: var(--muted);
  font-size: .7rem;
}

.participant-admin-menu {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-left: auto;
}

.participant-status + .participant-admin-menu {
  margin-left: 0;
}

.participant-admin-menu[open] {
  z-index: 30;
}

.participant-admin-trigger {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.participant-admin-trigger::-webkit-details-marker {
  display: none;
}

.participant-admin-trigger:hover,
.participant-admin-trigger:focus-visible {
  background: var(--surface);
  color: var(--text);
}

.participant-admin-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.participant-admin-controls {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 56px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.participant-admin-controls > strong {
  display: block;
  font-size: .82rem;
}

.participant-admin-controls form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.participant-admin-controls label {
  display: grid;
  gap: 5px;
}

.participant-admin-controls label span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.participant-admin-controls input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.participant-admin-controls input:focus {
  border-color: var(--primary);
  outline: 2px solid color-mix(in srgb, var(--primary) 18%, transparent);
  outline-offset: 1px;
}

.participant-admin-controls .button {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  font-size: .75rem;
}

.participation-history-panel {
  overflow: hidden;
  padding: 0 !important;
}

.participation-history-summary {
  padding: 25px;
  cursor: pointer;
  list-style: none;
}

.participation-history-summary::-webkit-details-marker {
  display: none;
}

.participation-history-summary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform .18s ease;
}

.participation-history-panel[open] .details-chevron {
  transform: rotate(180deg);
}

.participation-history-table {
  border-top: 1px solid var(--border);
}

.participation-history-table time {
  font-size: .78rem;
  white-space: nowrap;
}

.history-action {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
}

.history-action-join {
  background: var(--primary-soft);
  color: var(--primary);
}

.history-action-leave {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

.history-device {
  max-width: 360px;
  color: var(--muted);
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.participation-history-empty {
  margin: 0;
  padding: 0 25px 25px;
}

.waiting-avatar {
  background: var(--muted);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.muted {
  margin: 18px 0 0;
  color: var(--muted);
}

.roll-clearing-copy {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: .85rem;
}

.member-status-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.member-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(100px, .8fr) 80px 80px;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.member-status-row:last-child {
  border-bottom: 0;
}

.member-status-row > * {
  padding: 10px 14px;
}

.member-status-header {
  min-height: 40px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.member-status-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-source {
  color: var(--muted);
  font-size: .75rem;
}

.status-check {
  display: grid;
  place-items: center;
}

.status-check input {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
  cursor: pointer;
}

.roll-clearing-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.read-only-notice {
  padding: 30px 27px;
}

.read-only-notice h2 {
  margin: 18px 0 8px;
  font-size: 1.42rem;
}

.read-only-notice p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}

.join-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.mobile-join-trigger {
  display: none;
}

:root[data-theme="dark"] .mobile-join-trigger {
  color: #111113;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .mobile-join-trigger {
    color: #111113;
  }
}

.mobile-join-dialog {
  width: min(calc(100% - 28px), 430px);
  max-height: min(720px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.mobile-join-dialog::backdrop {
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(3px);
}

.mobile-join-dialog-toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px 9px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mobile-join-dialog-toolbar strong {
  overflow: hidden;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-join-dialog-toolbar button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.mobile-join-dialog-toolbar svg {
  width: 17px;
  height: 17px;
}

.mobile-join-dialog-content > .join-panel {
  position: static;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.join-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 7px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.join-tab {
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.join-tab.active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.tab-content {
  padding: 27px;
}

.tab-content h2 {
  margin-bottom: 8px;
  font-size: 1.42rem;
}

.tab-content > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .87rem;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field > span {
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.field input,
.field select {
  height: 46px;
}

.field textarea {
  min-height: 120px;
  padding-block: 12px;
  line-height: 1.55;
  resize: vertical;
}

.field input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.field input[readonly] {
  cursor: default;
  background: var(--surface-soft);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: .72rem;
}

.field-help {
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.5;
}

.field-hint-inline {
  margin-left: 5px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
}

.places-host {
  width: 100%;
}

.places-host gmp-place-autocomplete {
  width: 100%;
  color-scheme: light;
  --gmp-mat-color-surface: var(--surface);
  --gmp-mat-color-on-surface: var(--text);
  --gmp-mat-color-outline: var(--border-strong);
  --gmp-mat-font-family: var(--font);
}

:root[data-theme="dark"] .places-host gmp-place-autocomplete {
  color-scheme: dark;
}

.places-host gmp-place-autocomplete::part(input) {
  min-height: 46px;
  padding-inline: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.field-link {
  align-self: flex-start;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 650;
}

.auth-section {
  position: relative;
  display: grid;
  min-height: calc(100vh - 180px);
  padding: 80px 20px;
  place-items: center;
  overflow: hidden;
}

.auth-decoration {
  position: absolute;
  width: 700px;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-soft) 80%, transparent), transparent 64%);
}

.auth-decoration::before,
.auth-decoration::after {
  position: absolute;
  inset: 90px;
  content: "";
  border: 1px solid var(--border);
  border-radius: 50%;
}

.auth-decoration::after {
  inset: 210px;
}

.auth-card {
  position: relative;
  width: min(100%, 430px);
  padding: 42px;
  box-shadow: var(--shadow-lg);
}

.auth-mark {
  margin-bottom: 27px;
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.auth-card > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
}

.auth-switch {
  margin: 22px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .82rem;
}

.auth-switch a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.turnstile-wrap {
  width: 100%;
  margin-bottom: 18px;
}

.turnstile-wrap .cf-turnstile {
  min-height: 65px;
}

.remark-copy {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.user-actions > form {
  margin: 0;
}

.role-dialog-trigger {
  text-decoration: none;
  cursor: pointer;
}

.role-dialog-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.role-option-list {
  display: grid;
  gap: 9px;
}

.role-option {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
  font-weight: 750;
}

.role-option:hover:not(:disabled),
.role-option:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.role-option.current,
.role-option:disabled {
  color: var(--muted);
  cursor: default;
  opacity: .65;
}

.account-secondary-status {
  margin-top: 5px;
  color: var(--muted);
  font-size: .7rem;
}

.temp-password-trigger {
  min-height: 38px;
  padding: 8px 12px;
  font-size: .75rem;
}

.modal-dialog {
  width: min(calc(100% - 32px), 460px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(4px);
}

.modal-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-heading .eyebrow {
  margin-bottom: 5px;
}

.modal-heading h2 {
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.modal-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .82rem;
}

.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 1.3rem;
}

.modal-card .field {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.password-required {
  margin-top: 6px;
  color: var(--warning);
  white-space: normal;
}

.action-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 3px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 99px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .66rem;
}

.table-date {
  margin: 0;
}

.login-audit,
.ip-address {
  font-size: .75rem;
  white-space: nowrap;
}

.ip-address {
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
}

.muted-inline {
  color: var(--muted);
  font-size: .75rem;
}

.profile-shell {
  display: grid;
  max-width: 820px;
  padding-top: 46px;
  gap: 20px;
}

.profile-card {
  overflow: hidden;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.profile-avatar-large {
  display: grid;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--surface);
  border-radius: 24px;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--surface);
  font-size: 2rem;
  font-weight: 750;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity h2 {
  margin-bottom: 6px;
}

.profile-identity p,
.profile-upload p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.profile-upload {
  display: grid;
  padding: 30px 34px 34px;
  gap: 18px;
}

.profile-upload h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.profile-upload form:not(.remove-avatar-form) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-preferences-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  align-items: end;
  gap: 24px;
  padding: 30px 34px;
}

.profile-preferences-card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.profile-preferences-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.profile-preferences-card form {
  display: grid;
  gap: 12px;
}

.profile-preferences-card .field {
  margin: 0;
}

.file-picker {
  display: inline-flex;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.remove-avatar-form {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.checkbox-field {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.checkbox-field:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.checkbox-field:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: var(--primary-soft);
}

.checkbox-field > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-field .push-toggle-track {
  margin-top: 1px;
}

.checkbox-field input:checked + .push-toggle-track {
  border-color: var(--primary);
  background: var(--primary);
}

.checkbox-field input:checked + .push-toggle-track i {
  background: #fff;
  transform: translateX(18px);
}

.checkbox-field input:focus-visible + .push-toggle-track {
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: 2px;
}

.checkbox-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkbox-copy strong {
  font-size: .82rem;
  line-height: 1.4;
}

.checkbox-copy small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.5;
}

.saved-locations-card {
  display: grid;
  gap: 24px;
  padding: 30px 34px;
}

.saved-locations-card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.saved-locations-card p:not(.eyebrow),
.saved-location-item span,
.saved-locations-card .empty-note {
  color: var(--muted);
}

.saved-location-list {
  display: grid;
  gap: 12px;
}

.saved-location-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.saved-location-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.saved-location-item span {
  overflow-wrap: anywhere;
  font-size: .84rem;
}

.saved-location-item form {
  flex: 0 0 auto;
}

.danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: end;
  gap: 36px;
  padding: 30px 34px;
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}

.danger-zone .eyebrow {
  color: var(--danger);
}

.danger-zone h2 {
  margin-bottom: 9px;
  font-size: 1.35rem;
}

.danger-zone p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .82rem;
}

.danger-zone form,
.danger-zone .field {
  margin-bottom: 0;
}

.danger-zone form {
  display: grid;
  gap: 12px;
}

.page-header {
  padding: 62px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.page-header-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.page-header h1 {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 5vw, 3.7rem);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-actions form {
  margin: 0;
}

.dashboard-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
  align-items: end;
  gap: 36px;
  margin-bottom: 20px;
  padding: 25px;
}

.dashboard-settings h2 {
  margin-bottom: 7px;
  font-size: 1.25rem;
}

.dashboard-settings p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .83rem;
}

.dashboard-settings form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0;
}

.dashboard-settings .field {
  margin: 0;
}

.dashboard-settings .button {
  margin-bottom: 21px;
}

.court-filter-panel {
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0;
}

.filter-summary {
  display: block;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.filter-summary::-webkit-details-marker {
  display: none;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
}

.filter-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.filter-heading-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-chevron {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .16s ease;
}

.court-filter-panel[open] .filter-chevron {
  transform: rotate(180deg);
}

.filter-panel-body {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border);
}

.court-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  align-items: end;
  gap: 10px;
}

.filter-search {
  grid-column: span 2;
}

.filter-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.filter-field > span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .8rem;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.filter-checkbox {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
}

.filter-checkbox input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.filter-actions {
  display: flex;
  align-self: end;
  justify-content: flex-end;
  grid-column: 1 / -1;
  gap: 6px;
}

.filter-actions .button {
  min-height: 42px;
  white-space: nowrap;
}

.page-header-small {
  padding: 42px 0 54px;
}

.page-header-small .back-link {
  margin-bottom: 30px;
}

.page-header-small h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.table-panel {
  overflow: hidden;
}

.table-heading {
  justify-content: flex-start;
  padding: 23px 25px;
  border-bottom: 1px solid var(--border);
}

.table-heading h2 {
  font-size: 1.2rem;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  background: color-mix(in srgb, var(--surface-soft) 60%, var(--surface));
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

td {
  font-size: .84rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
}

td small {
  display: block;
  max-width: 320px;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: .71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-link {
  color: var(--text);
  font-weight: 700;
}

.table-link:hover {
  color: var(--primary);
}

.court-id-chip {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
  font-weight: 650;
}

.align-right {
  text-align: right;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.row-actions form {
  display: contents;
}

.icon-button {
  display: inline-grid;
  width: 35px;
  height: 35px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.icon-button.danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-button svg {
  width: 17px;
}

.empty-compact {
  min-height: 260px;
  border: 0;
  border-radius: 0;
}

.form-shell {
  max-width: 920px;
  padding-top: 46px;
}

.court-form {
  display: grid;
  gap: 18px;
}

.form-section {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 28px;
}

.form-section-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
}

.form-section-heading {
  margin-bottom: 24px;
}

.form-section-heading h2 {
  margin-bottom: 7px;
  font-size: 1.32rem;
}

.form-section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .82rem;
}

.court-info-import {
  overflow: hidden;
}

.court-info-import-summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
  transition: background .16s ease;
}

.court-info-import-summary::-webkit-details-marker {
  display: none;
}

.court-info-import-summary:hover {
  background: var(--surface-soft);
}

.court-info-import-summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: -3px;
}

.court-info-import-summary .form-section-number,
.court-info-import-summary .form-section-heading {
  margin: 0;
}

.court-info-import-summary .form-section-heading h2 {
  margin-bottom: 5px;
}

.court-info-import-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform .16s ease;
}

.court-info-import[open] .court-info-import-chevron {
  transform: rotate(180deg);
}

.court-info-import-body {
  padding: 0 28px 28px 100px;
}

.court-info-import-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.court-info-import-controls .field {
  margin-bottom: 0;
}

.event-name-fields {
  margin-bottom: 22px;
}

.leave-deadline-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  align-items: end;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.leave-deadline-editor .checkbox-field,
.leave-deadline-editor .field,
.leave-deadline-field {
  margin-bottom: 0;
}

.leave-deadline-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.leave-deadline-inputs {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(125px, .75fr);
  gap: 10px;
}

.leave-deadline-notice {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--text);
  font-size: .78rem;
}

.form-subsection-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.reserved-members-editor {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.reserved-members-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.reserved-members-heading small {
  color: var(--muted);
  font-size: .75rem;
}

.reserved-nickname-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reserved-nickname-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reserved-nickname-field {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color .16s ease, opacity .16s ease, background .16s ease;
}

.reserved-nickname-field:has(.reserved-nickname-drag-handle:hover) {
  border-color: var(--border);
  background: var(--surface-soft);
}

.reserved-nickname-field.is-dragging {
  border-color: var(--border-strong);
  background: var(--primary-soft);
  opacity: .5;
}

.reserved-nickname-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.reserved-nickname-drag-handle,
.reserved-nickname-move {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1;
  padding: 0;
}

.reserved-nickname-drag-handle {
  cursor: grab;
  user-select: none;
}

.reserved-nickname-drag-handle:active {
  cursor: grabbing;
}

.reserved-nickname-move:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}

.reserved-nickname-move:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.reserved-nickname-move:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent);
  outline-offset: 2px;
}

.reserved-nickname-delete {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
}

.reserved-nickname-delete:hover {
  text-decoration: underline;
}

.reserved-nickname-delete:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--danger) 25%, transparent);
  outline-offset: 3px;
}

.reserved-visibility-field {
  max-width: 360px;
  margin-bottom: 16px;
}

.media-section-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.media-editor-grid,
.media-upload-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.media-editor-grid {
  margin-bottom: 22px;
}

.media-editor-item,
.media-upload-preview-item {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.media-editor-item > img,
.media-editor-item > video,
.media-upload-preview-item > img,
.media-upload-preview-item > video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101014;
}

.media-editor-name,
.media-upload-preview-item span {
  overflow: hidden;
  padding: 8px 10px 3px;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-remove-control {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 10px 10px;
  color: var(--text);
  font-size: .7rem;
  line-height: 1.35;
}

.media-remove-control input {
  flex: 0 0 auto;
  margin-top: 1px;
}

.media-upload-field {
  margin: 0;
}

.media-upload-preview {
  margin-top: 14px;
}

.panel-heading-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.reserved-avatar {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .field {
  margin-bottom: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.level-form-group {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: end;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.level-form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

.level-form-label .gender-symbol {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  align-content: center;
  padding: 80px 20px;
  text-align: center;
}

.error-code {
  margin-bottom: -12px;
  color: var(--border-strong);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
}

.not-found h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.not-found p {
  max-width: 480px;
  margin-bottom: 26px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-inner {
    min-height: 510px;
    grid-template-columns: 1fr .75fr;
  }

  .intro-hero-inner {
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
  }

  .intro-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-art {
    height: 330px;
  }

  .court-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .join-panel {
    position: static;
  }

  .info-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .court-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .first-visit-tooltip {
    right: 14px;
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px));
    width: calc(100vw - 28px);
    gap: 11px;
    padding: 16px;
  }

  .first-visit-tooltip::after {
    right: 25px;
  }

  .first-visit-tooltip-icon {
    width: 36px;
    height: 36px;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .brand > span:last-child {
    display: none;
  }

  .nav-link {
    display: none;
  }

  .nav-link.account-link,
  .nav-button.account-link {
    display: inline-flex;
  }

  .account-name {
    display: none;
  }

  .preferences-trigger > span,
  .preferences-trigger .menu-chevron {
    display: none;
  }

  .preferences-trigger {
    width: 40px;
    justify-content: center;
  }

  .nav-actions {
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    display: block;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    padding: 90px 0 110px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .intro-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 70px;
  }

  .intro-hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .intro-overview {
    width: min(100%, 440px);
    transform: none;
  }

  .intro-feature-grid,
  .intro-steps {
    grid-template-columns: 1fr;
  }

  .intro-step + .intro-step {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .intro-step > span {
    margin-bottom: 24px;
  }

  .intro-trust-card {
    grid-template-columns: 1fr;
  }

  .intro-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .hero-art {
    position: absolute;
    inset: auto -170px -120px 38%;
    height: 400px;
    opacity: .32;
  }

  .section {
    padding-block: 62px;
  }

  .section-heading,
  .page-header-inner,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .court-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding-top: 30px;
  }

  .detail-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-actions .button {
    flex: 1 1 auto;
  }

  .court-action-menu {
    flex: 1 1 auto;
  }

  .court-action-trigger {
    width: 100%;
  }

  .detail-layout {
    padding-top: 34px;
  }

  .detail-layout > .join-panel {
    display: none;
  }

  .mobile-join-trigger {
    position: fixed;
    z-index: 70;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    display: grid;
    width: 58px;
    height: 58px;
    padding: 0;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 72%, var(--border));
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
    color: #fff;
    cursor: pointer;
  }

  .mobile-join-trigger svg {
    width: 25px;
    height: 25px;
  }

  .mobile-join-trigger:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }

  .gender-levels,
  .event-details-grid,
  .participant-list {
    grid-template-columns: 1fr;
  }

  .member-status-row {
    grid-template-columns: minmax(0, 1fr) 64px 64px;
  }

  .member-status-row .member-source {
    display: none;
  }

  .member-status-header span:nth-child(2) {
    display: none;
  }

  .event-detail-wide {
    grid-column: auto;
  }

  .page-header {
    padding: 46px 0;
  }

  .page-actions {
    width: 100%;
    justify-content: space-between;
  }

  .responsive-table {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody tr {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  td {
    display: grid;
    min-height: 36px;
    padding: 7px 0;
    border: 0;
    grid-template-columns: 105px 1fr;
    text-align: left;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  td.align-right {
    text-align: left;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .form-section {
    display: block;
    padding: 22px;
  }

  .form-section-number {
    margin-bottom: 18px;
  }

  .form-grid-2,
  .form-grid-3,
  .leave-deadline-editor,
  .court-info-import-controls,
  .reserved-nickname-list,
  .media-editor-grid,
  .media-upload-preview {
    grid-template-columns: 1fr;
  }

  .leave-deadline-inputs {
    grid-template-columns: minmax(0, 1fr) minmax(125px, .6fr);
  }

  .court-info-import-summary {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 22px;
  }

  .court-info-import-body {
    padding: 0 22px 22px;
  }

  .event-gallery-thumbnail {
    width: 82px;
    height: 60px;
    flex-basis: 82px;
  }

  .level-form-group {
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    flex: 1;
  }

  .dashboard-settings {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .court-filter-form {
    grid-template-columns: 1fr;
  }

  .filter-search {
    grid-column: auto;
  }

  .filter-actions {
    grid-column: auto;
  }

  .danger-zone {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
  }

  .profile-preferences-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .license-card {
    grid-template-columns: 1fr;
  }

  .license-preview img {
    width: min(180px, 55vw);
  }
}

@media (max-width: 420px) {
  .hero-copy {
    padding-top: 70px;
  }

  .intro-actions,
  .intro-actions .button {
    width: 100%;
  }

  .auth-card {
    padding: 30px 23px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
  }

  .capacity-legend {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
