/*
  Ludi design tokens - Ludipitch editorial values (paper / ink / hall
  green / amber). Shared by landing + signed-in app.
*/
:root {
  --ludi-ink: #1a1814;
  --ludi-muted: #5c574e;
  --ludi-bg: #f7f6f3;
  --ludi-card: #ffffff;
  --ludi-border: #d8d4cb;
  --ludi-accent: #2f4a3c;
  --ludi-accent-hover: #243a30;
  --ludi-accent-soft: #e6ece8;
  --ludi-accent-fg: #ffffff;
  /* Area colours: blue = pitches/outreach, green = games/matches, orange = profile/details. */
  --ludi-c-pitch: #2b68ca;
  --ludi-c-games: #2e9a5b;
  --ludi-c-details: #e07a12;
  --ludi-signal: #f07609;
  --ludi-signal-hover: #c95f07;
  --ludi-signal-fg: #ffffff;
  /* Pro chip: logo orange fill, white lock/type (brand; white on #f07609 is 2.88:1). */
  --ludi-pro: #f07609;
  --ludi-pro-hover: #c95f07;
  --ludi-pro-fg: #ffffff;
  --ludi-pro-fg-hover: #ffffff;
  --ludi-pro-surface: #f07609;
  --ludi-pro-surface-hover: #c95f07;
  --ludi-radius: 0.4rem;
  --ludi-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --ludi-font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --ludi-text-wordmark: 1.35rem;
  --ludi-text-nav: 0.875rem;
  --ludi-width-chrome: 80rem;
  --ludi-width-content: 64rem;
  --ludi-gutter: 1rem;
  --hall: #2f4a3c;

  /*
    Stacking scale (page content is auto / 0):
    sticky table headers < app header / bottom chrome < menus and popovers
    (Quick, bell, account, row menus) < dialogs < toasts.
  */
  --z-sticky: 10;
  --z-header: 30;
  --z-menu: 50;
  --z-dialog: 60;
  --z-toast: 70;

  /* Legacy aliases - keep existing rules working */
  --bg: var(--ludi-bg);
  --card: var(--ludi-card);
  --text: var(--ludi-ink);
  --muted: var(--ludi-muted);
  --accent: var(--ludi-accent);
  --accent-dark: var(--ludi-accent-hover);
  --ink: var(--ludi-ink);
  --border: var(--ludi-border);
}
@media (min-width: 640px) {
  :root { --ludi-gutter: 1.5rem; }
}
@media (min-width: 1024px) {
  :root { --ludi-gutter: 2rem; }
}

* { box-sizing: border-box; }

textarea { font: inherit; }

/* Reserve classic-scrollbar space on the root so Matches (body overflow:hidden)
   and short pages don't shift chrome ~15px vs long scrollable views. Body-level
   scrollbar-gutter is dropped under overflow:hidden; html keeps it. */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--ludi-font);
  background: var(--ludi-bg);
  color: var(--ludi-ink);
  margin: 0;
  line-height: 1.5;
}

.ludi-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ludi-shell-main { flex: 1 1 auto; }

.ludi-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--ludi-font-display);
  font-weight: 600;
  font-size: var(--ludi-text-wordmark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ludi-ink);
}
.ludi-wordmark--sm { font-size: 1.05rem; }
.ludi-wordmark--lg {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  letter-spacing: -0.04em;
}
.ludi-wordmark--marketing {
  font-family: var(--ludi-font-display);
}
.ludi-wordmark-stem { color: var(--ludi-ink); }
.ludi-wordmark-suffix { color: var(--ludi-signal); }

.ludi-card {
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.ludi-card-accent {
  background: linear-gradient(
    to bottom right,
    var(--ludi-accent-soft),
    var(--ludi-card)
  );
  border: 1px solid color-mix(in srgb, var(--ludi-accent) 28%, var(--ludi-border));
  border-radius: var(--ludi-radius);
}
.ludi-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--ludi-radius);
  background: var(--ludi-accent);
  color: var(--ludi-accent-fg);
  margin-bottom: 1rem;
}
.ludi-icon-tile--soft {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ludi-accent-soft);
  color: var(--ludi-accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.ludi-section-label {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.ludi-section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.ludi-section-head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ludi-ink);
  font-family: var(--ludi-font);
}
.ludi-section-head p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--ludi-muted);
}

.ludi-wordmark-stem { color: var(--ludi-ink); }
.ludi-wordmark-suffix { color: var(--ludi-signal); }

/* Back-compat for any leftover .wordmark markup */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--ludi-font);
  font-size: var(--ludi-text-wordmark);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ludi-ink);
  text-decoration: none;
}
.page-landing .wordmark,
.wordmark.wordmark-marketing {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.55rem;
}
.wordmark span,
.wordmark .ludi-wordmark-suffix { color: var(--ludi-signal); }

.ludi-btn-primary,
.btn-primary,
.ludi-btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--ludi-radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}
.ludi-btn-compact {
  min-height: 2.125rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}
.ludi-btn-primary,
.btn-primary {
  background: var(--ludi-signal);
  color: var(--ludi-signal-fg) !important;
  border-color: var(--ludi-signal);
  font-weight: 700;
}
.ludi-btn-primary:hover,
.btn-primary:hover {
  background: var(--ludi-signal-hover);
  border-color: var(--ludi-signal-hover);
  color: var(--ludi-signal-fg) !important;
}
.ludi-btn-primary:disabled,
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ludi-btn-secondary,
.btn-ghost {
  background: var(--ludi-card);
  color: var(--ludi-ink);
  border-color: var(--ludi-border);
}
.ludi-btn-secondary:hover,
.btn-ghost:hover {
  background: var(--ludi-accent-soft);
  border-color: var(--ludi-accent);
  color: var(--ludi-ink);
}
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Uploaded file (public profile sell sheet / rules): name, then View and Delete icons. */
.uploaded-file-row { display: flex; align-items: center; gap: 0.35rem; margin: 0.35rem 0 0.9rem; padding: 0.45rem 0.6rem; border: 1px solid var(--ludi-border); border-radius: var(--ludi-radius); background: var(--ludi-card); max-width: 32rem; }
.uploaded-file-label { margin: 0.6rem 0 0; font-weight: 600; }
.uploaded-file-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.uploaded-file-row .pitch-contact-icon-btn svg { width: 1rem; height: 1rem; }

/* Standard file buttons (enhanceFileInput in app.js): the real input stays
   focusable but invisible; the label shows a secondary button and the file name. */
.ludi-file-label { position: relative; cursor: pointer; }
.ludi-file-label > .ludi-file-input {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0;
}
.ludi-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.35rem; font-weight: 400; }
.ludi-file-name { color: var(--ludi-muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.ludi-file-label:focus-within .ludi-file-fake { outline: 2px solid var(--ludi-accent); outline-offset: 2px; }
.ludi-file-label:hover .ludi-file-fake { background: var(--ludi-accent-soft); border-color: var(--ludi-accent); }

.ludi-link {
  color: var(--ludi-accent);
  font-weight: 500;
  text-decoration: none;
}
.ludi-link:hover { text-decoration: underline; }

.ludi-nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--ludi-muted);
  font-size: var(--ludi-text-nav);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.ludi-nav-link:hover,
.ludi-nav-link-active {
  color: var(--ludi-ink);
}

.ludi-kicker {
  color: var(--ludi-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ludi-app-header,
header.app-header {
  position: relative;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--ludi-card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ludi-border);
  box-shadow: none;
  padding: 0;
}
.ludi-app-header-inner,
.app-header-row {
  max-width: var(--ludi-width-chrome);
  margin: 0 auto;
  padding: 0.5rem var(--ludi-gutter);
  min-height: 4.25rem;
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.ludi-app-header .ludi-wordmark {
  flex-shrink: 0;
}
.ludi-app-header .auth-bar {
  margin-left: auto;
  order: 2;
}
.ludi-app-header .quick-add-wrap {
  order: 2;
  position: relative;
  flex-shrink: 0;
}
.ludi-app-header .ludi-nav-toggle {
  order: 3;
}
.ludi-app-header .ludi-chrome-panel {
  order: 4;
}
@media (min-width: 800px) {
  .ludi-app-header-inner,
  .app-header-row {
    flex-wrap: nowrap;
    height: 4.25rem;
    min-height: 4.25rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  .ludi-app-header .ludi-chrome-panel {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
  }
  .ludi-app-header .quick-add-wrap {
    order: 3;
  }
  .ludi-app-header .auth-bar {
    order: 4;
    margin-left: 0;
  }
}
.quick-add-header-btn {
  white-space: nowrap;
}
.quick-add-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: var(--z-menu);
  min-width: 16.5rem;
  padding: 0.35rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card, #fff);
  box-shadow: 0 12px 28px rgba(42, 33, 24, 0.18);
  display: grid;
  gap: 0.15rem;
}
.quick-add-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: var(--ludi-radius);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.quick-add-item:hover,
.quick-add-item:focus-visible,
.quick-add-item.is-active {
  background: var(--ludi-accent-soft, #f3efe7);
  outline: none;
}
.quick-add-item-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--ludi-muted);
}
.quick-add-item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.quick-add-item-label {
  flex: 1 1 auto;
  min-width: 0;
}
.quick-add-item-hint {
  font: inherit;
  font-size: 0.75rem;
  color: var(--ludi-muted);
  border: 1px solid var(--ludi-border);
  border-radius: 0.25rem;
  padding: 0.05rem 0.35rem;
  background: transparent;
}
.quick-add-pro-slot {
  display: inline-flex;
  flex: none;
  margin-left: auto;
}
.card-capture-label.is-pro-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.card-capture-pro-slot {
  display: inline-flex;
}
.quick-add-fab {
  display: none;
}
.quick-add-sheet-backdrop {
  display: none;
}
.quick-add-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.25rem;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card, #fff);
  box-shadow: 0 10px 24px rgba(42, 33, 24, 0.16);
  font-size: 0.92rem;
}
.quick-add-toast[hidden] {
  display: none !important;
}
.app-find-dialog.app-confirm-dialog {
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(80vh, 36rem);
  overflow: auto;
}
.app-find-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
}
.app-find-input {
  width: 100%;
  min-height: 40px;
  font: inherit;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  box-sizing: border-box;
}
.app-find-results {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.app-find-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.app-find-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.app-find-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: var(--ludi-radius);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.app-find-option:hover,
.app-find-option.is-active,
.app-find-option[aria-selected="true"] {
  background: var(--ludi-accent-soft, #f3efe7);
  outline: none;
}
.app-find-option-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--ludi-muted);
}
.app-find-option-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.app-find-option-main {
  flex: 1 1 auto;
  min-width: 0;
}
.app-find-option-meta {
  width: 100%;
  margin-left: 1.55rem;
  font-size: 0.82rem;
}
.app-find-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: 100%;
  margin-left: 1.55rem;
}
.app-find-see-all {
  margin: 0.35rem 0 0;
}
.app-find-hint {
  margin: 0;
}
@media (max-width: 799px) {
  .quick-add-header-btn,
  .quick-add-wrap {
    display: none !important;
  }
  .quick-add-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    /* Centred so it never covers right-hand controls (Directory back-to-top). */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(3.75rem + 12px + env(safe-area-inset-bottom, 0px));
    z-index: var(--z-header);
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--ludi-signal);
    color: var(--ludi-signal-fg);
    /* Hide the text "+" — font metrics sit it low; draw a centred cross instead. */
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-align: center;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--ludi-signal) 35%, transparent);
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .quick-add-fab.is-scroll-away {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
  }
  .quick-add-fab::before,
  .quick-add-fab::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .quick-add-fab::before {
    width: 18px;
    height: 2.5px;
  }
  .quick-add-fab::after {
    width: 2.5px;
    height: 18px;
  }
  .quick-add-fab:hover,
  .quick-add-fab:focus-visible {
    background: var(--ludi-signal-hover);
    outline: none;
  }
  .quick-add-fab.hidden,
  body.has-open-dialog .quick-add-fab {
    display: none !important;
  }
}
@media (max-width: 799px) and (prefers-reduced-motion: reduce) {
  .quick-add-fab {
    transition: none;
  }
  .quick-add-fab.is-scroll-away {
    transform: translateX(-50%);
  }
}
@media (max-width: 799px) {
  .quick-add-sheet-backdrop:not(.hidden) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    background: rgba(42, 33, 24, 0.4);
  }
  .quick-add-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0.85rem 0.85rem 0 0;
    background: var(--ludi-card, #fff);
    box-shadow: 0 -10px 28px rgba(42, 33, 24, 0.18);
  }
  .quick-add-sheet .quick-add-item {
    min-height: 44px;
    font-size: 1rem;
  }
  .quick-add-toast {
    bottom: calc(3.75rem + 4.5rem + env(safe-area-inset-bottom, 0px));
  }
}
.ludi-app-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .ludi-app-brand { gap: 0.5rem; }
}
.ludi-product-nav,
.ludi-app-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.ludi-app-nav .ludi-nav-link,
.ludi-app-nav button.ludi-nav-link {
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ludi-muted);
  font-size: var(--ludi-text-nav);
  font-weight: 500;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  min-height: 0;
}
.ludi-app-nav .ludi-nav-link:hover,
.ludi-app-nav button.ludi-nav-link:hover {
  color: var(--ludi-ink);
}
.ludi-app-nav .ludi-nav-link.nav-active,
.ludi-app-nav button.ludi-nav-link.nav-active {
  color: var(--ludi-ink);
  background: transparent;
  border: 0;
  font-weight: 600;
}

.ludi-nav-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}
.ludi-nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 11rem;
}
.ludi-nav-dropdown-menu[hidden] {
  display: none !important;
}
@media (min-width: 800px) {
  .ludi-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: var(--z-menu);
    padding: 0.35rem;
    background: var(--ludi-card);
    border: 1px solid var(--ludi-border);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--ludi-ink) 12%, transparent);
  }
  .ludi-nav-dropdown-menu .ludi-nav-link {
    justify-content: flex-start;
    width: 100%;
    text-align: left;
  }
  .ludi-nav-dropdown-menu .ludi-nav-link.nav-active {
    background: color-mix(in srgb, var(--ludi-ink) 6%, transparent);
  }
}
@media (max-width: 799px) {
  .ludi-nav-dropdown {
    width: 100%;
  }
  .ludi-nav-dropdown-menu {
    padding: 0 0 0.35rem 0.75rem;
  }
}

.ludi-family-footer,
footer.app-foot{
  background: var(--ludi-card);
  border-top: 1px solid var(--ludi-border);
  margin-top: auto;
}
.ludi-family-footer-inner {
  max-width: var(--ludi-width-chrome);
  margin: 0 auto;
  padding: 1rem var(--ludi-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.ludi-family-footer-products {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ludi-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.ludi-family-footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ludi-muted);
}
.ludi-family-footer-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ludi-muted);
}

.page-explainer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
.page-explainer h1 {
  font-family: var(--ludi-font);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0.4rem 0 1rem;
}
.page-explainer .lede { margin-bottom: 1.25rem; }
.page-explainer .explainer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

h1 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.view-title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-family: var(--ludi-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
}

/* Legacy generic nav buttons - keep for pub-tabs / other bars; app chrome uses .ludi-nav-link */
nav:not(.ludi-app-nav):not(.ludi-product-nav):not(.pub-detail-switch):not(.ludi-strip-tabs):not(.game-page-tabs) button {
  margin-right: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ludi-border);
  background: var(--ludi-bg);
  color: var(--ludi-ink);
  cursor: pointer;
  border-radius: var(--ludi-radius);
  font-family: inherit;
}

nav:not(.ludi-app-nav):not(.ludi-product-nav):not(.pub-detail-switch):not(.ludi-strip-tabs):not(.game-page-tabs) button.nav-active {
  background: var(--ludi-accent);
  color: var(--ludi-accent-fg);
  border-color: var(--ludi-accent);
}

.auth-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
@media (max-width: 799px) {
  .auth-bar .auth-who {
    display: none;
  }
  .auth-bar .ludi-nav-link,
  .auth-bar button.ludi-nav-link {
    padding: 0.4rem 0.5rem;
  }
}
.auth-bar .ludi-nav-link,
.auth-bar button.ludi-nav-link {
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ludi-muted);
  font-size: var(--ludi-text-nav);
  font-weight: 500;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  min-height: 0;
}
.auth-bar .ludi-nav-link:hover,
.auth-bar button.ludi-nav-link:hover {
  color: var(--ludi-ink);
}
.auth-bar .auth-who {
  color: var(--ludi-muted);
}
.auth-credits {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--ludi-muted);
  white-space: nowrap;
}
.auth-credits.is-zero {
  color: var(--ludi-muted);
  opacity: 0.85;
}
.auth-credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
}
.auth-credits-icon {
  flex-shrink: 0;
}
.auth-credits-chip:hover,
.auth-credits-chip[aria-expanded="true"] {
  color: var(--ludi-ink);
  background: color-mix(in srgb, var(--ludi-ink) 6%, transparent);
}
/* Header avatar: public profile photo, else the email's first letter. */
.auth-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0.25rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ludi-accent) 16%, var(--ludi-card, #fff));
  color: var(--ludi-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
/* With a photo the outline steps back to the border colour. */
.auth-avatar:has(> .auth-avatar-img:not([hidden])) {
  border: 1px solid var(--ludi-border);
}
.auth-avatar:hover,
.auth-avatar:focus-visible {
  background: color-mix(in srgb, var(--ludi-accent) 28%, var(--ludi-card, #fff));
  border-color: var(--ludi-ink);
}
.auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-credits-tip {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: var(--z-menu);
  width: min(18rem, 72vw);
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ludi-line, #ddd);
  border-radius: 0.4rem;
  background: var(--ludi-surface, #fff);
  color: var(--ludi-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: normal;
}
.auth-credits-tip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}
.inbox-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.inbox-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ludi-muted);
  cursor: pointer;
}
.inbox-bell:hover,
.inbox-bell[aria-expanded="true"] {
  color: var(--ludi-ink);
  background: var(--ludi-accent-soft);
}
.inbox-count {
  position: absolute;
  top: 0.15rem;
  right: 0.05rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--ludi-accent);
  color: var(--ludi-accent-fg);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}
.inbox-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: var(--z-menu);
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(24rem, 70vh);
  overflow: auto;
  padding: 0.65rem 0.75rem 0.75rem;
  border: 1px solid var(--ludi-border);
  border-radius: 0.5rem;
  background: var(--ludi-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}
@media (max-width: 799px) {
  .ludi-app-header {
    position: relative;
  }
  .inbox-wrap {
    position: static;
  }
  .inbox-panel {
    left: var(--ludi-gutter, 1rem);
    right: var(--ludi-gutter, 1rem);
    top: calc(100% + 0.25rem);
    width: auto;
    max-width: none;
    max-height: min(
      24rem,
      calc(100dvh - 7.5rem - env(safe-area-inset-bottom, 0px))
    );
  }
  .inbox-item {
    padding: 0.65rem 0.55rem;
  }
  .inbox-item strong {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .inbox-item .muted {
    font-size: 0.85rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}
.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.inbox-empty {
  margin: 0.25rem 0;
}
.inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inbox-list li + li {
  margin-top: 0.25rem;
}
.inbox-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.inbox-item:hover {
  background: var(--ludi-accent-soft);
}
.inbox-item.is-unread {
  background: var(--ludi-accent-soft);
}
.inbox-item strong {
  font-size: 0.9rem;
}
.admin-suggest-edits-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}
.auth-bar .auth-role {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.auth-impersonating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.auth-impersonating-error:empty {
  display: none;
}
.auth-impersonating-error {
  max-width: min(12rem, 40vw);
  color: var(--ludi-ink);
  font-size: 0.75rem;
  line-height: 1.2;
}
.auth-exit-impersonation {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ludi-muted);
  cursor: pointer;
}
.auth-exit-impersonation:hover {
  color: var(--ludi-ink);
  background: var(--ludi-accent-soft);
}

.auth-bar input {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}

.spinner {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.45rem;
}
.pitch-contact-icon-btn[aria-busy="true"] .spinner { margin-right: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg, .loading-row td {
  color: var(--muted);
  text-align: center;
  padding: 1.25rem 0.75rem;
}
/* Reserve space so Matches / Outreach loading → content does not jump. */
#publishers-state-panel:not(.hidden) {
  min-height: 4.5rem;
}
#pitches-table-empty:not(.hidden) {
  min-height: 3rem;
}
#pitches-lanes.is-loading {
  min-height: 6rem;
}

.show-picker {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.show-picker select { max-width: 16rem; }

.match-score-filter {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.match-score-filter input {
  width: 3.25rem;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0 0 0.5rem;
}

.toolbar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}
.toolbar-actions p { margin: 0; }
.toolbar-actions .btn-ghost,
.toolbar-actions .btn-primary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}
.toolbar-actions .btn-ghost:hover,
.toolbar-actions .btn-primary:hover {
  background: #fff;
}

.admin-ops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  margin: 0.65rem 0;
}

.filter-check {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pub-search {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pub-search input {
  min-width: 14rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}

.pitches-table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}
.pitches-lanes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pitches-lane,
.pitches-lane-accordion {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.pitches-lane-title {
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ludi-ink);
}
.pitches-lane-empty {
  margin: 0 0 0.65rem;
}
.pitches-lane-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  color: var(--ludi-ink);
  user-select: none;
}
.pitches-lane-summary::-webkit-details-marker {
  display: none;
}
.pitches-lane-summary::after {
  content: "▾";
  float: right;
  color: var(--ludi-muted);
  font-weight: 500;
}
.pitches-lane-accordion:not([open]) > .pitches-lane-summary {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.pitches-lane-accordion[open] > .pitches-lane-summary::after {
  content: "▴";
}
.pitches-lane .pitches-table-wrap,
.pitches-lane-accordion .pitches-table-wrap {
  margin: 0;
  padding: 0;
}
.pitches-lane-accordion .pitches-table th:first-child,
.pitches-lane-accordion .pitches-table td:first-child {
  padding-left: 0.5rem;
}
.pitch-move {
  font-size: 0.82rem;
  font-weight: 650;
}
.pitch-move--yours {
  color: #9a3f2e;
}
.pitch-move--theirs {
  color: #4a5568;
}
.pitch-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}
.pitch-progress-icon {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  color: color-mix(in srgb, var(--ludi-muted) 55%, transparent);
}
.pitch-progress-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pitch-progress-icon.is-on {
  color: var(--ludi-signal);
}
.pitch-materials {
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  padding: 0.65rem 0.8rem 0.8rem;
  margin: 0 0 0.85rem;
}
.pitch-materials legend {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  padding: 0 0.25rem;
}
.pitch-materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.pitch-material-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  min-height: 40px;
}
.pitch-games-section {
  margin: 0.35rem 0 1rem;
  max-width: 52rem;
  min-width: 0;
}
.pitch-games-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.45rem;
}
.pitch-games-title {
  margin: 0;
  font-size: 1rem;
}
.pitch-games-picker-wrap {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-surface, var(--ludi-bg, #fff));
}
.pitch-games-cards {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.pitch-game-card {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-bg, #fff);
}
.pitch-game-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.55rem;
}
.pitch-game-card-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ludi-muted);
}
.pitch-game-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pitch-game-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.pitch-game-subhead {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.pitch-game-sent {
  border: 0;
  margin: 0;
  padding: 0;
}
.pitch-game-sent legend {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  padding: 0;
  margin: 0 0 0.35rem;
}
.pitch-game-sent .pitch-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, max-content));
  gap: 0.15rem 1.25rem;
  justify-content: start;
}
.pitch-game-copy .pitch-copy-row {
  border-top: 0;
  padding-top: 0;
}
.pitch-game-share {
  margin-top: 0.35rem;
}
.pitch-game-share .share-link-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-height: 40px;
}
@media (max-width: 799px) {
  .pitch-games-section { max-width: 100%; }
  .pitch-game-sent .pitch-materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.75rem;
  }
  .pitch-material-check,
  #btn-change-pitch-games {
    min-height: 40px;
  }
}
html[data-theme="dark"] .pitch-game-card,
html[data-theme="dark"] .pitch-games-picker-wrap {
  background: var(--ludi-surface, #1c1a18);
}
.pitches-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.pitches-table th,
.pitches-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--ludi-border);
  vertical-align: top;
}
.pitches-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.pitches-sort,
.admin-user-sort {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.pitches-sort.is-active,
.admin-user-sort.is-active {
  color: var(--ludi-ink);
}
.pitches-sort.is-active::after,
.admin-user-sort.is-active::after {
  content: " ▾";
  font-size: 0.85em;
}
.pitches-sort.is-active[aria-sort="ascending"]::after,
th[aria-sort="ascending"] .admin-user-sort.is-active::after {
  content: " ▴";
}
.pitches-row {
  cursor: pointer;
}
.pitches-row:hover td {
  background: color-mix(in srgb, var(--ludi-ink) 4%, var(--ludi-bg));
}
.pitches-row.is-your-turn td {
  background: #fce8e4;
}
.pitches-row.is-your-turn:hover td {
  background: color-mix(in srgb, #9a3f2e 10%, #fce8e4);
}
.pitches-row.pitches-row-just-saved td {
  animation: pitches-just-saved-fade 1.5s ease-out;
}
@keyframes pitches-just-saved-fade {
  from {
    background: color-mix(in srgb, var(--ludi-ink) 12%, var(--ludi-bg));
  }
  to {
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pitches-row.pitches-row-just-saved td {
    animation: none;
    background: color-mix(in srgb, var(--ludi-ink) 8%, var(--ludi-bg));
  }
  .spinner {
    animation: none;
    border-top-color: var(--accent);
    opacity: 0.9;
  }
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover td {
  background: color-mix(in srgb, var(--ludi-ink) 4%, var(--ludi-bg));
}
.clickable-row.is-selected td {
  background: color-mix(in srgb, var(--ludi-ink) 8%, var(--ludi-bg));
}
.clickable-row.is-opening {
  cursor: progress;
}
.clickable-row.is-opening td {
  background: color-mix(in srgb, var(--ludi-ink) 8%, var(--ludi-bg));
  opacity: 0.7;
}
#admin-reporting {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.report-metrics,
.report-submetrics {
  display: grid;
  gap: 0.75rem;
}
.report-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.report-metric {
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  padding: 0.8rem 0.95rem 0.7rem;
  min-width: 0;
}
.report-metric-label,
.report-funnel span,
.report-results span,
.report-metric-split span {
  display: block;
  color: var(--ludi-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.report-metric strong,
.report-funnel strong,
.report-results strong {
  display: block;
  font-family: var(--ludi-font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.report-metric > strong {
  margin-top: 0.35rem;
  font-size: 1.85rem;
}
.report-metric--pitches {
  grid-column: span 2;
}
.report-metric-split {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.35rem;
}
.report-metric-split strong {
  font-size: 1.45rem;
}
.report-panel {
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  padding: 1rem 1.1rem 1.05rem;
}
.report-panel h3 {
  margin: 0;
  font-family: var(--ludi-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.report-panel > .muted {
  margin: 0.2rem 0 0.85rem;
  font-size: 0.85rem;
}
.report-funnel {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}
.report-funnel li {
  background: var(--ludi-bg);
  border-radius: var(--ludi-radius);
  padding: 0.7rem 0.75rem 0.6rem;
}
.report-funnel strong {
  font-size: 1.65rem;
  margin-bottom: 0.15rem;
}
.report-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 1fr);
  gap: 0.85rem;
}
.report-submetrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.report-submetrics .report-metric {
  background: var(--ludi-bg);
  border-color: transparent;
  padding: 0.65rem 0.75rem 0.55rem;
}
.report-submetrics .report-metric > strong {
  font-size: 1.45rem;
}
.report-metrics--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
}
.report-result-track {
  display: flex;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ludi-bg);
  margin: 0 0 0.9rem;
}
.report-result-seg--signed { background: var(--ludi-accent); }
.report-result-seg--passed { background: color-mix(in srgb, var(--ludi-ink) 28%, var(--ludi-border)); }
.report-result-seg--quiet { background: var(--ludi-signal); }
.report-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}
.report-results strong {
  font-size: 1.35rem;
  margin-top: 0.2rem;
}
.report-results .report-swatch {
  margin-bottom: 0.15rem;
}
.report-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.65rem 1.5rem;
  margin-bottom: 0.85rem;
}
.report-panel-head .muted {
  margin: 0.2rem 0 0;
  max-width: 36rem;
  font-size: 0.85rem;
}
.report-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: 0.8rem;
  color: var(--ludi-muted);
}
.report-swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.3rem;
  border-radius: 2px;
  vertical-align: -1px;
}
.report-bar--active { background: var(--ludi-accent); }
.report-bar--opens { background: var(--ludi-ink); }
.report-bar--matches { background: var(--ludi-signal); }
.report-bar--accounts { background: var(--ludi-accent); }
.report-bar--emails { background: var(--ludi-signal); }
/* Same column as main.view so the onboarding bar lines up with view titles. */
body.page-app #billing-notice,
body.page-app #onboarding-notice {
  max-width: var(--ludi-width-chrome);
  margin-left: auto;
  margin-right: auto;
  /* Match main.view top padding so the bar sits under the header like view titles. */
  padding-top: 1.5rem;
  padding-left: var(--ludi-gutter);
  padding-right: var(--ludi-gutter);
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 799px) {
  body.page-app #onboarding-notice {
    padding-top: 1rem;
  }
}
/* While the bar shows, the view drops its top padding so the bar keeps the
   same gap before the title as in-page notices keep before content (.notices). */
body.page-app #onboarding-notice:not(.hidden) ~ main.view {
  padding-top: 0;
}
.onboarding-notice .notice-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.onboarding-step-line {
  margin: 0;
}
.onboarding-step-label {
  font-weight: 400;
}
.onboarding-notice .notice-actions {
  flex-wrap: nowrap;
}
.onboarding-pro-teaser {
  margin: 0.15rem 0 0;
}
.report-chart {
  display: flex;
  align-items: stretch;
  height: 12.5rem;
}
.report-chart-day {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 2px;
}
.report-chart-day:hover {
  background: color-mix(in srgb, var(--ludi-ink) 4%, transparent);
}
.report-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  border-bottom: 1px solid var(--ludi-border);
}
.report-bar {
  display: block;
  width: 0.42rem;
  max-width: 28%;
  border-radius: 2px 2px 0 0;
}
.report-chart-label {
  height: 1.35rem;
  font-size: 0.68rem;
  line-height: 1.35rem;
  text-align: center;
  color: var(--ludi-muted);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .report-metrics,
  .report-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-metric--pitches {
    grid-column: 1 / -1;
  }
  .report-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .report-submetrics {
    grid-template-columns: 1fr;
  }
}
.admin-activity-detail {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ludi-border);
}
.admin-activity-detail h3 {
  margin: 0 0 0.35rem;
}
.admin-activity-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1rem;
}
.admin-activity-pubs-table {
  width: auto;
  margin: 0.35rem 0 0.5rem;
}
.admin-activity-pubs-table th,
.admin-activity-pubs-table td {
  padding: 0.2rem 1.25rem 0.2rem 0;
  background: transparent;
}
.admin-submission-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.admin-submission-dialog .app-confirm-form,
.admin-submission-content { min-width: 0; }
.admin-submission-dialog textarea,
.admin-submission-dialog input,
.admin-submission-dialog select { max-width: 100%; box-sizing: border-box; }
.admin-submission-dialog .pitch-actions { flex-wrap: wrap; }
.admin-submission-close { float: right; align-self: flex-end; }
.admin-submission-dialog label:has(> textarea, > input, > select) { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-suggest-edit-body {
  white-space: pre-wrap;
  margin: 0.75rem 0 1rem;
  line-height: 1.45;
}
.pitches-table .pitch-card-due {
  display: inline;
  margin-top: 0;
}
.pitch-stage-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 999px;
  white-space: nowrap;
  background: #eef0f3;
  color: #4a5568;
}
.pitch-stage-pill--contacted {
  background: #eef0f3;
  color: #4a5568;
}
.pitch-stage-pill--follow_up {
  background: #fdf0dc;
  color: #9a5b12;
}
.pitch-stage-pill--meeting_requested {
  background: #efe8f8;
  color: #6b4a9e;
}
.pitch-stage-pill--meeting_set {
  background: #f5ebe0;
  color: #7a5530;
}
.pitch-stage-pill--send_materials {
  background: #e5f3ec;
  color: #2f6b4f;
}
.pitch-stage-pill--under_review {
  background: #e7eef8;
  color: #3d5a8a;
}
.pitch-stage-pill--contract_offered {
  background: #e8f0e4;
  color: #3d6b3a;
}
.pitch-stage-pill--waiting_on_me {
  background: #fce8e4;
  color: #9a3f2e;
}
.pitches-drag-col {
  width: 1.75rem;
  padding-left: 0.35rem !important;
  padding-right: 0.15rem !important;
}
.pitches-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ludi-muted);
  cursor: grab;
  font: inherit;
  letter-spacing: -0.12em;
  line-height: 1;
  user-select: none;
}
.pitches-drag-handle:active {
  cursor: grabbing;
}
.pitches-row.is-dragging {
  opacity: 0.45;
}
.pitches-row.is-drop-target td {
  box-shadow: inset 0 2px 0 var(--ludi-accent);
}
.pitches-board {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  align-items: flex-start;
  padding: 0.85rem;
  margin: 0 0 1rem;
  background: color-mix(in srgb, var(--ludi-ink) 3%, var(--ludi-bg));
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.pitch-column {
  flex: 0 0 15.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: 8rem;
  transition: opacity 0.12s ease;
}
.pitch-column h3 {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  font-family: var(--ludi-font);
}
.pitch-column-cards {
  min-height: 3.5rem;
}
.pitch-column-empty {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}
.pitch-column.is-drop-target {
  border-color: transparent;
  background: transparent;
}
.pitch-column.is-drop-target .pitch-column-cards {
  outline: 1px dashed var(--ludi-accent);
  outline-offset: 2px;
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-accent) 8%, var(--ludi-card));
  min-height: 4rem;
  padding: 0.25rem;
}
.pitch-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--ludi-border);
  border-radius: 0.3rem;
  padding: 0.5rem 0.55rem;
  margin: 0 0 0.4rem;
  cursor: grab;
  font: inherit;
  color: inherit;
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04);
}
.pitch-card:active { cursor: grabbing; }
.pitch-card.is-dragging {
  opacity: 0.45;
}
.pitch-card.is-dropping {
  opacity: 0.6;
}
.pitch-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.pitch-column .muted { font-size: 0.78rem; }

.pitch-stepper .phase-label { font-weight: 600; margin: 0 0 0.4rem; }
.pitch-stepper input[type="text"],
.pitch-stepper textarea { width: 100%; font: inherit; }
.auth-who { font-size: 0.9rem; }
button.auth-who {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.create-game-form {
  /* Shares .survey-madlib card chrome; fields stack like the survey. */
  display: block;
}
.create-game-form .madlib-fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}
/* Field labels in the game survey / Edit game steps read as headings (owner 2026-11-15). */
.madlib-field-label,
#survey-madlib .madlib-fields > label,
#survey-madlib .madlib-row > label,
#survey-madlib .madlib-field-heading {
  font-weight: 600;
  color: var(--ludi-ink);
}
.madlib-field-label { margin-bottom: 0.35rem; }
.madlib-field-label .muted,
#survey-madlib .madlib-field-heading .muted { font-weight: 400; }
#survey-madlib .madlib-fields > label > input,
#survey-madlib .madlib-fields > label > textarea,
#survey-madlib .madlib-row > label > input { font-weight: 400; }
.create-game-form .madlib-fields input[type="text"],
.create-game-form .madlib-fields input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.add-game-accordion {
  margin: 0 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  width: 100%;
  box-sizing: border-box;
}
.add-game-accordion > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 1rem;
}
.add-game-accordion > summary::-webkit-details-marker,
.add-game-accordion > summary::marker { display: none; content: ""; }
.add-game-accordion > summary::after {
  content: "▸";
  display: inline-block;
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
  transition: transform 0.15s ease;
}
.add-game-accordion[open] > summary::after { transform: rotate(90deg); }

.add-game-chooser {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 1rem 1rem;
  margin: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.add-game-chooser h3 { margin: 0 0 0.35rem; }
.chooser-cards {
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
}
@media (min-width: 640px) {
  .chooser-cards { grid-template-columns: 1fr 1fr; }
}
.chooser-card {
  text-align: left;
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg, #fff);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.chooser-card:hover,
.chooser-card:focus-visible {
  border-color: var(--ludi-accent, #2a6);
  outline: none;
}
.chooser-card strong { font-size: 1.05rem; }
.chooser-card.is-inactive {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  background: var(--muted-bg, #f3f3f3);
  color: var(--muted, #666);
}
.chooser-card.is-inactive:hover,
.chooser-card.is-inactive:focus-visible {
  border-color: var(--border);
}
.chooser-card-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--muted-bg, #eee);
  color: var(--muted, #666);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.survey-madlib {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0.75rem 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.madlib-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.madlib-toolbar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}
.madlib-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.madlib-heading .madlib-prompt {
  margin: 0;
}
.madlib-heading .madlib-step-label {
  flex-shrink: 0;
}
.madlib-step-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.madlib-prompt {
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  font-weight: 600;
}
.madlib-heading + .madlib-hint {
  margin-top: -0.55rem;
  margin-bottom: 1.15rem;
}
.madlib-prompt + .madlib-hint {
  margin-top: -0.55rem;
  margin-bottom: 1.15rem;
}
.madlib-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  margin: 0 0 0.45rem;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}
.madlib-check input {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
}
.madlib-format-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.admin-user-source {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}
.admin-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
}
.admin-users-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  flex: 0 0 auto;
  max-width: 100%;
}
.admin-users-search input {
  width: 18rem;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  padding: 0.35rem 0.55rem;
  box-sizing: border-box;
}
.admin-users-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.admin-users-toolbar-actions .btn-ghost {
  min-height: 2.5rem;
}
@media (max-width: 560px) {
  .admin-users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-users-search {
    flex-wrap: wrap;
  }
  .admin-users-search input {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .admin-users-toolbar-actions {
    width: 100%;
  }
  .admin-users-toolbar-actions .btn-ghost {
    flex: 1 1 auto;
    min-height: 40px;
  }
}
#admin-users-table th,
#admin-users-table td {
  vertical-align: middle;
}
#admin-users-table td.admin-user-last,
#admin-users-table td.admin-user-pitches,
#admin-users-table td.admin-user-plan {
  white-space: nowrap;
}
#admin-users-table th:last-child,
#admin-users-table td.admin-user-actions {
  width: 1%;
  white-space: nowrap;
  text-align: left;
}
.admin-user-actions-row {
  display: inline-grid;
  grid-template-columns: 8.5rem 2rem 2rem 2rem 2rem;
  align-items: center;
  justify-content: start;
  column-gap: 0.35rem;
  vertical-align: middle;
}
.admin-user-actions .admin-user-icon.pub-copy-btn {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  margin: 0;
  border-radius: 6px;
  color: var(--muted);
  vertical-align: unset;
}
.admin-user-actions .admin-user-icon.pub-copy-btn:hover,
.admin-user-actions .admin-user-icon.pub-copy-btn:focus-visible {
  color: var(--ink, var(--ludi-ink));
  background: color-mix(in srgb, var(--ink, var(--ludi-ink)) 8%, transparent);
}
.admin-user-actions .admin-user-icon.pub-copy-btn.is-copied {
  color: var(--ludi-accent);
}
.admin-user-slot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 2.125rem;
}
.admin-user-actions .btn-ghost {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
}
.admin-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.admin-user-icon:hover,
.admin-user-icon:focus-visible {
  color: var(--ink, var(--ludi-ink));
  background: color-mix(in srgb, var(--ink, var(--ludi-ink)) 8%, transparent);
}
.admin-user-icon--danger {
  color: #8a2f1f;
}
.admin-user-icon--danger:hover,
.admin-user-icon--danger:focus-visible {
  color: #8a2f1f;
  background: color-mix(in srgb, #8a2f1f 12%, transparent);
}
.madlib-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.2rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  vertical-align: 0.05em;
  cursor: help;
}
.madlib-tip[data-tip]::after,
.demo-inert-link[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  z-index: 20;
  width: max-content;
  max-width: min(18rem, 70vw);
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg, #fff);
  color: var(--ink, inherit);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 4px 14px color-mix(in srgb, #000 12%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.madlib-tip[data-tip]:hover:not(.is-dismissed)::after,
.madlib-tip[data-tip].is-open::after,
.demo-inert-link[data-tip]:hover:not(.is-dismissed)::after,
.demo-inert-link[data-tip]:focus-visible::after,
.demo-inert-link[data-tip].is-open::after {
  opacity: 1;
}
.madlib-sentence {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ludi-accent, #2a6) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--ludi-accent, #2a6) 35%, var(--border));
}
.madlib-blank {
  display: inline-block;
  min-width: 3.5rem;
  border-bottom: 2px solid var(--ludi-accent, #2a6);
  padding: 0 0.15rem;
  color: inherit;
  font: inherit;
  font-weight: 700;
}
.madlib-blank.is-empty { color: var(--muted); font-weight: 500; }
.madlib-fields {
  display: grid;
  gap: 0.75rem;
}
.madlib-fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}
/* Field labels in the game survey / Edit game steps read as headings (owner 2026-11-15). */
.madlib-field-label,
#survey-madlib .madlib-fields > label,
#survey-madlib .madlib-row > label,
#survey-madlib .madlib-field-heading {
  font-weight: 600;
  color: var(--ludi-ink);
}
.madlib-field-label { margin-bottom: 0.35rem; }
.madlib-field-label .muted,
#survey-madlib .madlib-field-heading .muted { font-weight: 400; }
#survey-madlib .madlib-fields > label > input,
#survey-madlib .madlib-fields > label > textarea,
#survey-madlib .madlib-row > label > input { font-weight: 400; }
.madlib-fields input[type="text"],
.madlib-fields input[type="number"],
.madlib-fields textarea,
.madlib-fields select {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.madlib-fields textarea { min-height: 4.5rem; resize: vertical; }
.madlib-row {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 520px) {
  .madlib-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .madlib-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.madlib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.madlib-chip {
  border: 1px solid var(--border);
  background: var(--bg, #fff);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.madlib-chip.is-on {
  border-color: var(--ludi-accent, #2a6);
  background: color-mix(in srgb, var(--ludi-accent, #2a6) 18%, transparent);
  font-weight: 600;
}
.madlib-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.madlib-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
  align-items: center;
}
.madlib-actions .primary {
  background: var(--ludi-signal);
  color: var(--ludi-signal-fg);
  border: none;
  border-radius: var(--ludi-radius);
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.madlib-comp-card { position: relative; }
.madlib-comp-remove { position: absolute; top: 0.4rem; right: 0.4rem; }
.madlib-comp-remove svg { width: 1rem; height: 1rem; }
.madlib-suggest-row { margin: 0.2rem 0 0.6rem; }
.madlib-comp-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.game-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 0.25rem;
  border: none;
}
.game-badge-survey {
  background: var(--ludi-accent);
  color: #fff;
}
.game-badge-rules {
  background: var(--ludi-accent-soft);
  color: var(--ludi-accent);
}
.game-badge-detail {
  margin-left: 0;
  font-weight: 600;
  color: var(--ludi-muted);
  text-transform: none;
  letter-spacing: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.15rem;
  margin: 0.35rem 0 0.65rem;
}
.game-card-actions .linkish {
  padding: 0.15rem 0;
  line-height: 1.35;
}
.game-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.game-profile-link svg {
  flex: 0 0 auto;
}
.pitch-share-links {
  display: grid;
  gap: 0.35rem;
  margin: 0.15rem 0 0.75rem;
}
.pitch-share-links h4 {
  margin: 0;
  font-size: 0.95rem;
}
.public-profile-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0 0.35rem;
}
.public-materials-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 0.35rem;
}
/* Flat section under the game card content: top rule only, no nested box. */
.public-profile-accordion {
  margin: 0.85rem 0 0;
  padding-top: 0.55rem;
  border: 0;
  border-top: 1px solid var(--border, var(--ludi-border));
  border-radius: 0;
  min-width: 0;
  max-width: 100%;
}
.public-profile-accordion > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
  padding: 0.2rem 0 0.45rem;
}
.public-profile-accordion > summary::-webkit-details-marker,
.public-profile-accordion > summary::marker { display: none; content: ""; }
.public-profile-accordion > summary::after {
  content: "▸";
  display: inline-block;
  color: var(--muted);
  margin-left: auto;
  transition: transform 0.15s ease;
}
.public-profile-accordion[open] > summary::after { transform: rotate(90deg); }
.public-profile-accordion[open] > summary {
  border-bottom: 1px solid var(--border, var(--ludi-border));
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
}
.public-profile-accordion > :not(summary) {
  margin-left: 0;
  margin-right: 0;
}
.public-profile-accordion > :last-child { margin-bottom: 0; }
.public-profile-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--ludi-accent-soft);
  color: var(--ludi-muted);
}
.public-profile-pill.is-on {
  background: var(--ludi-accent);
  color: #fff;
}
.public-profile-links { font-size: 0.9rem; }
.public-profile-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.public-materials-section {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
  min-width: 0;
}
.public-materials-section.share-links {
  width: 100%;
  max-width: none;
}
.public-materials-section .share-link-table {
  min-width: 0;
  width: 100%;
  max-width: none;
}
.share-link-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  border: 0;
  background: transparent;
}
.share-link-table th,
.share-link-table td {
  vertical-align: middle;
  white-space: nowrap;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border, var(--ludi-border));
  font-size: 0.9rem;
}
.share-link-table th:first-child,
.share-link-table td:first-child,
.share-link-table td.share-link-label {
  padding-left: 0;
  white-space: normal;
  width: auto;
}
.share-link-table th:last-child,
.share-link-table td:last-child {
  padding-right: 0;
}
.share-link-table thead th {
  background: transparent;
  font-weight: 600;
  color: var(--ludi-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.share-link-meta {
  display: none;
}
.share-link-assets-cell,
.share-link-actions {
  width: auto;
  white-space: nowrap;
}
.share-link-assets {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  vertical-align: middle;
}
.share-link-assets .pitch-progress-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}
.share-link-actions {
  text-align: left;
}
.share-link-actions-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.2rem;
  vertical-align: middle;
}
.share-link-create [data-share-create-status] {
  margin: 0.25rem 0 0;
  grid-column: 1 / -1;
}
.share-link-actions a.pub-copy-btn {
  text-decoration: none;
  color: var(--ludi-muted);
}
.share-link-actions .pub-copy-btn,
.share-link-actions .pitch-trash {
  margin: 0;
  width: 1.45rem;
  height: 1.45rem;
  min-width: 0;
  min-height: 0;
}
.share-link-table tr.is-disabled td {
  color: var(--ludi-muted);
}
@media (max-width: 799px) {
  .share-link-table,
  .share-link-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .share-link-table thead {
    display: none;
  }
  .share-link-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.65rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border, var(--ludi-border));
  }
  .share-link-table td {
    display: block;
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .share-link-table td.share-link-label {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.25rem;
    min-width: 0;
  }
  .share-link-meta {
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .share-link-table td.share-link-created,
  .share-link-table td.share-link-viewed,
  .share-link-table td.share-link-views,
  .share-link-table td.share-link-scans {
    display: none;
  }
  .share-link-table td.share-link-assets-cell {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    justify-self: start;
    align-self: center;
    min-width: 0;
  }
  .share-link-assets,
  .share-link-actions-inner {
    flex-wrap: wrap;
  }
  .share-link-table td.share-link-actions {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    justify-self: start;
    align-self: center;
    text-align: left;
  }
}
.share-assets-dialog .share-assets-lede {
  margin: 0 0 0.75rem;
}
.share-assets-fields {
  border: 0;
  margin: 0;
  padding: 0;
}
.share-assets-grid {
  display: grid;
  gap: 0.55rem;
}
.share-assets-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-weight: 500;
}
.share-assets-check input {
  margin: 0;
}
.share-assets-check-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ludi-signal);
}
.share-assets-check-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.share-assets-other {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ludi-border);
}
.share-assets-hint {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
}
/* Public profile editor: page colour and headline font. */
.public-style-group {
  border: 0;
  margin: 0.6rem 0 0;
  padding: 0;
}
.public-style-group legend {
  font-weight: 600;
  margin-bottom: 0.4rem;
}
/* Beats .public-materials label (grid), which would stack the radio above the swatch. */
.public-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 0.4rem;
}
.public-logo-preview {
  max-height: 3rem;
  max-width: 12rem;
  padding: 0.3rem;
  border: 1px solid var(--ludi-border);
  border-radius: 6px;
  background: repeating-conic-gradient(var(--ludi-border) 0% 25%, transparent 0% 50%) 50% / 12px 12px;
}
.share-assets-status {
  min-height: 1.2em;
  margin: 0.65rem 0 0;
}
.share-link-create {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
}
.share-link-create label {
  flex: 1 1 14rem;
  min-width: 0;
}
.public-photos-block {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}
.public-materials {
  display: grid;
  gap: 0.65rem;
  margin: 0.35rem 0 0.75rem;
  max-width: none;
  width: 100%;
  min-width: 0;
}
.public-materials label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
  min-width: 0;
  max-width: 100%;
}
.public-materials input[type="text"],
.public-materials input[type="url"],
.public-materials input[type="number"],
.public-materials input[type="file"],
.public-materials textarea,
.public-materials select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.public-materials-playtests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.public-materials-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}
.public-materials-groups label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}
.public-materials-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}
.public-materials-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  background: #ece7df;
}
.public-photo-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.public-photo-flag {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-accent, #c45c26);
}
.page-share {
  min-height: 100vh;
  background: var(--ludi-bg, #f7f3ec);
}
.page-share-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.4rem 1.1rem 2rem;
}
.page-share-footer {
  padding: 0.5rem 1rem 2rem;
  text-align: center;
}
.page-share-footer .ludi-wordmark {
  display: inline-block;
  margin: 0;
  font-size: 1.05rem;
}
.share-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: baseline;
}
.game-gallery {
  margin: 0.85rem 0 1rem;
}
.game-public-photo.is-featured {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 22rem;
  object-fit: cover;
  background: #ece7df;
}
.pub-profile-hero.has-featured {
  padding: 0 0 1rem;
  overflow: hidden;
}
.pub-profile-hero.has-featured .pub-profile-title-row,
.pub-profile-hero.has-featured .pub-profile-lede {
  margin-right: 1.25rem;
  margin-left: 1.25rem;
}
.game-gallery-main {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #ece7df;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}
.game-public-photo.is-main {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32rem;
  object-fit: contain;
  background: #ece7df;
}
.game-gallery-thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.65rem;
  overflow-x: auto;
}
.game-gallery-thumb {
  flex: 0 0 auto;
  width: 7.5rem;
  height: 5.35rem;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #ece7df;
  cursor: pointer;
}
.game-gallery-thumb.is-active {
  border-color: var(--ludi-ink, #241c16);
}
.game-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-gallery-lightbox {
  width: auto;
  max-width: 96vw;
  border: 0;
  padding: 0;
  background: transparent;
}
.game-gallery-lightbox::backdrop {
  background: rgba(20, 16, 12, 0.9);
}
.game-gallery-lightbox img {
  display: block;
  max-width: min(92vw, 70rem);
  max-height: 82vh;
  margin: 0 auto;
}
.game-gallery-close,
.game-gallery-nav {
  position: fixed;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #241c16;
  cursor: pointer;
}
.game-gallery-close {
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
}
.game-gallery-nav {
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}
.game-gallery-nav[data-gallery-prev] { left: 0.75rem; }
.game-gallery-nav[data-gallery-next] { right: 0.75rem; }
.game-sell-sheet {
  margin: 0.85rem 0 0.75rem;
}

.create-game-progress {
  max-width: 40rem;
  margin: 0.25rem 0 0.4rem;
}
.create-game-status {
  margin: 0;
}
.create-game-status.is-busy {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--ludi-signal);
  font-weight: 650;
  letter-spacing: 0.01em;
}

#clarifications-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.9rem 0.85rem;
  margin: 0.2rem 0 1rem;
  max-width: 40rem;
}
#clarifications-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.clarifications-lede {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: inherit;
}

.finding-block {
  margin: 0.45rem 0;
}
.finding-location {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.finding-block textarea {
  width: 100%;
  min-height: 4rem;
}

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

main { padding: 1.5rem 1.5rem 2rem; max-width: 1400px; }
body.page-app main.view {
  max-width: var(--ludi-width-chrome);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ludi-gutter);
  padding-right: var(--ludi-gutter);
  width: 100%;
  box-sizing: border-box;
}

.hidden { display: none !important; }

#score-job-status:empty {
  display: none;
}

.score-progress-panel {
  margin: 1.25rem 0 2rem;
  padding: 1.5rem 1.75rem;
  max-width: 40rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.score-progress-lede {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.score-progress-track {
  height: 0.65rem;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.score-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ludi-signal);
  transition: width 0.35s ease;
}
.score-progress-stats {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.score-progress-eta,
.score-progress-current {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}
.score-progress-email {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.score-progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pub-job-status,
#detail-enrich-status {
  white-space: pre-wrap;
  margin: 0.4rem 0 0;
  max-width: 52rem;
}
.pub-job-status:empty,
#detail-enrich-status:empty {
  display: none;
}

.pub-job-acc {
  margin: 0.5rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  max-width: 52rem;
}
.pub-job-acc > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.pub-job-acc > summary::-webkit-details-marker,
.pub-job-acc > summary::marker { display: none; content: ""; }
.pub-job-acc > summary::after {
  content: "▸";
  display: inline-block;
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
  transition: transform 0.15s ease;
}
.pub-job-acc[open] > summary::after { transform: rotate(90deg); }
.pub-job-acc-title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--ludi-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ludi-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-job-acc.has-status .pub-job-acc-title {
  color: var(--ink);
}
.pub-job-acc-body {
  padding: 0 0.85rem 0.75rem;
  border-top: 1px solid var(--border);
}
.pub-job-acc .pub-job-status {
  margin: 0.5rem 0 0;
  max-height: 14rem;
  overflow: auto;
  font-size: 0.85rem;
}

.pub-with-selected select {
  min-width: 12rem;
}

/* Keep bulk actions reachable while scrolling the publisher table. */
#pub-panel-publishers > .table-toolbar,
#pub-panel-bgg-review > .table-toolbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ludi-bg);
  margin: 0 -0.25rem 0.65rem;
  padding: 0.55rem 0.25rem 0.65rem;
  border-bottom: 1px solid var(--ludi-border);
  box-shadow: 0 6px 12px -10px rgba(42, 33, 24, 0.35);
}
#pub-panel-publishers > .table-toolbar .pub-with-selected,
#pub-panel-bgg-review > .table-toolbar .pub-with-selected {
  font-weight: 600;
}
#pub-toolbar-status:empty {
  display: none;
}

.app-confirm-dialog {
  z-index: var(--z-dialog);
  border: 1px solid var(--ludi-border, #cfc6b8);
  border-radius: 10px;
  padding: 0;
  max-width: min(40rem, calc(100vw - 2rem));
  max-height: min(80vh, 40rem);
  color: inherit;
  background: var(--ludi-bg, #fff);
  box-shadow: 0 18px 40px rgba(42, 33, 24, 0.28);
}
.app-contact-dialog.app-confirm-dialog {
  max-width: min(36rem, calc(100vw - 2rem));
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(90vh, 44rem);
  overflow: auto;
}
.admin-user-report-dialog.app-confirm-dialog {
  max-width: min(48rem, calc(100vw - 2rem));
  width: min(48rem, calc(100vw - 2rem));
}
.admin-user-report-dialog .admin-user-report-summary {
  margin: 0;
}
.admin-user-report-dialog .admin-user-report-table {
  width: 100%;
}
.card-review-photo-wrap,
.app-contact-photo-wrap {
  margin: 0.25rem 0 0.5rem;
}
.card-review-photo-wrap img,
.app-contact-photo-wrap img {
  display: block;
  max-width: 100%;
  max-height: 12rem;
  object-fit: contain;
  border-radius: 0.35rem;
  background: #f3f1ec;
}
.card-review-dialog {
  max-width: min(36rem, calc(100vw - 2rem));
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(90vh, 44rem);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--ludi-border, #d5cfc4);
  border-radius: 0.5rem;
  color: inherit;
  background: var(--ludi-bg, #fff);
  box-shadow: 0 18px 40px rgba(42, 33, 24, 0.28);
}
.card-review-dialog::backdrop {
  background: rgba(42, 33, 24, 0.45);
}
.card-review-dialog form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.5rem;
}
.card-review-dialog form h3 {
  margin: 0;
  font-size: 1.05rem;
}
.card-review-dialog form > p.muted {
  margin: 0;
}
.card-review-dialog form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.card-review-dialog form input,
.card-review-dialog form textarea,
.card-review-dialog form select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}
.card-review-dialog .pitch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
}
#import-review-dialog .pitch-actions .linkish {
  min-height: 0;
  padding: 0 0.15rem;
}
.card-review-status:empty {
  display: none;
}
.card-review-status:not(:empty) {
  display: block;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: #f4efe4;
  border: 1px solid #d9cbb3;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.card-review-status.is-busy,
.create-game-status.is-busy {
  color: var(--ludi-ink);
  border-color: var(--ludi-signal);
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--ludi-signal) 14%, #fff),
    color-mix(in srgb, var(--ludi-signal) 14%, #fff) 10px,
    color-mix(in srgb, var(--ludi-signal) 28%, #fff) 10px,
    color-mix(in srgb, var(--ludi-signal) 28%, #fff) 20px
  );
  background-size: 200% 100%;
  animation: card-read-bar 0.7s linear infinite;
}
@keyframes card-read-bar {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card-review-status.is-busy,
  .create-game-status.is-busy {
    animation: none;
  }
}

/* Pro teaser kit (step 2) */
/* Logo-orange pill, white lock + bold "Pro". */
.pro-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.28rem;
  margin: 0;
  padding: 0.2rem 0.45rem;
  border: 1.5px solid var(--ludi-pro);
  border-radius: 0.35rem;
  background: var(--ludi-pro-surface);
  color: var(--ludi-pro-fg);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}
.pro-chip-icon {
  display: inline-flex;
  width: 0.9rem;
  height: 0.9rem;
  color: inherit;
}
.pro-chip-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pro-chip:hover {
  background: var(--ludi-pro-surface-hover);
  border-color: var(--ludi-pro-hover);
  color: var(--ludi-pro-fg-hover);
}
.pro-chip:focus-visible {
  background: var(--ludi-pro-surface-hover);
  border-color: var(--ludi-pro-hover);
  color: var(--ludi-pro-fg-hover);
  outline: 2px solid var(--ludi-ink);
  outline-offset: 2px;
}
/* Non-interactive badge inside a chooser <button> (no nested button). */
span.pro-chip {
  cursor: default;
  pointer-events: none;
}
span.pro-chip:hover,
span.pro-chip:focus-visible {
  background: var(--ludi-pro-surface);
  border-color: var(--ludi-pro);
  color: var(--ludi-pro-fg);
  outline: none;
}
.pro-teaser-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.4rem 0.55rem;
  margin: 0.35rem 0;
}
.pro-teaser-text {
  flex: 1 1 auto;
  min-width: 0;
}
.pro-sheet-dialog {
  max-width: min(28rem, calc(100vw - 2rem));
}
.pro-sheet-benefit {
  margin: 0.35rem 0 0.85rem;
  color: var(--ludi-muted, #6b635a);
  line-height: 1.45;
}
.pro-sheet-also-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.pro-sheet-also-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ludi-muted, #6b635a);
  line-height: 1.45;
}
.pro-sheet-also-list li {
  margin: 0.15rem 0;
}
.pro-sheet-plans {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pro-preview-mock {
  margin-top: 1.25rem;
}
/* pub-profile-section zeros horizontal padding; keep detail-block inset in the preview. */
.pro-preview-mock.pub-profile-section,
.pro-preview-mock.pitch-access-section {
  padding: 1rem 1.15rem;
}
.pro-preview-game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.65rem;
}
.locked-matches-games {
  display: grid;
  gap: 0.15rem;
  margin: 0.15rem 0 0.55rem;
}
.locked-matches-game-name {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--ludi-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
}
.pro-preview-sample-caption {
  margin: 0.5rem 0 0.35rem;
}
.public-profile-locked {
  margin: 0.85rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border, var(--ludi-border));
}
#view-game .public-profile-locked {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 1rem;
}
.public-profile-purpose {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  flex: 1 1 12rem;
  min-width: 0;
}
.public-profile-preview-btn {
  font-size: inherit;
}
.public-profile-preview-dialog {
  max-width: min(36rem, calc(100vw - 1.5rem));
}
.public-profile-preview-host {
  margin: 0.35rem 0 0.75rem;
}
.public-profile-preview-frame {
  display: block;
  width: 100%;
  min-height: 28rem;
  border: 1px solid var(--ludi-border, #d9d1c6);
  border-radius: var(--ludi-radius, 8px);
  background: var(--ludi-bg, #f7f3ec);
}
.public-profile-preview-mock {
  margin: 0.65rem 0 0;
  border: 1px solid var(--ludi-border, #d9d1c6);
  border-radius: var(--ludi-radius, 8px);
  overflow: hidden;
  background: var(--ludi-surface, #fff);
  max-width: 28rem;
  pointer-events: none;
  user-select: none;
}
.public-profile-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--ludi-border, #d9d1c6);
  background: color-mix(in srgb, var(--ludi-bg, #f7f3ec) 70%, transparent);
}
.public-profile-preview-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ludi-border, #d9d1c6);
}
.public-profile-preview-chrome-title {
  margin-left: 0.25rem;
  font-size: 0.78rem;
}
.public-profile-preview-page {
  padding: 0.85rem 0.9rem 1rem;
  display: grid;
  gap: 0.45rem;
}
.public-profile-preview-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.public-profile-preview-title {
  margin: 0;
  font-family: var(--ludi-font-display, inherit);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.public-profile-preview-ask {
  margin: 0;
  line-height: 1.4;
}
.public-profile-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}
.public-profile-preview-stats > div {
  display: grid;
  gap: 0.1rem;
}
.public-profile-preview-stats strong {
  font-size: 1.05rem;
}
.public-profile-preview-bio {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ludi-border, #d9d1c6);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem 0.7rem;
  align-items: start;
}
.public-profile-preview-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ludi-ink) 12%, var(--ludi-card, #fff));
  flex: 0 0 auto;
}
.public-profile-preview-bio p {
  margin: 0.15rem 0 0;
}
.pitch-visit-list-check.is-pro-locked {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.pub-show-visit-pro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
}
.crm-visits-pro-locked {
  display: grid;
  gap: 0.85rem;
  margin: 0.35rem 0 0.75rem;
  max-width: 40rem;
}
.crm-visits-pro-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.75rem;
}
.crm-visits-pro-copy {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  line-height: 1.45;
}
.crm-visits-pro-mock {
  border: 1px solid var(--ludi-border);
  border-radius: 0.55rem;
  background: var(--ludi-surface, #fff);
  box-shadow: 0 10px 28px rgba(28, 22, 16, 0.08);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.crm-visits-pro-mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--ludi-border);
  background: var(--ludi-accent-soft, #f3efe7);
}
.crm-visits-pro-mock-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ludi-border);
}
.crm-visits-pro-mock-title {
  margin-left: 0.35rem;
  font-size: 0.82rem;
}
.crm-visits-pro-mock .crm-visits-table-wrap {
  margin: 0;
}
.crm-visits-pro-mock-table {
  margin: 0;
}
.crm-visits-pro-mock .linkish {
  cursor: default;
  text-decoration: none;
  opacity: 0.85;
}
.pro-preview-matches-table {
  width: 100%;
}
.pro-preview-ludiscore-cell {
  white-space: nowrap;
}
.pro-preview-stands-for {
  margin-top: 0.75rem;
}
.pro-preview-locked-head,
.pitch-tracking-locked-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0;
  font-weight: 650;
}
.pitch-tracking-locked-head {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.pitch-game-copy .pitch-tracking-locked-head {
  margin-bottom: 0.35rem;
}
.pro-preview-cal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
@media (max-width: 799px) {
  .pro-chip {
    min-height: 40px;
    padding: 0.55rem 0.7rem;
  }
}

.import-review-not-a-fit {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.import-review-legend {
  font-weight: 500;
}
.import-review-not-a-fit .madlib-chips {
  margin: 0;
}
.create-game-status.is-added {
  color: var(--ludi-ink);
  font-size: 1.05rem;
}
.create-game-status.is-added strong {
  font-weight: 700;
}
.import-enrich-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ludi-border, #d5cfc4);
  border-radius: 0.4rem;
  background: var(--ludi-bg-soft, #f7f4ef);
  font-size: 0.95rem;
}
.import-enrich-nudge[hidden],
.import-enrich-nudge.hidden {
  display: none;
}
.import-enrich-nudge-copy {
  flex: 1 1 14rem;
  min-width: 0;
}
.import-enrich-nudge-title {
  margin: 0 0 0.2rem;
  font-family: var(--ludi-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
}
.import-enrich-nudge-copy > p {
  margin: 0;
}
.import-enrich-nudge .linkish {
  margin-left: 0.35rem;
}
.import-enrich-nudge-dismiss {
  flex: 0 0 auto;
  font-size: 0.85rem;
}

/* In-page notices (Games / game / Outreach / Settings) */
.notices {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  width: 100%;
}
.notices[hidden],
.notices.hidden {
  display: none !important;
}
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border: 1px solid var(--ludi-border, #d5cfc4);
  border-left-width: 3px;
  border-radius: 0.3rem;
  background: var(--ludi-card, #fff);
  font-size: 0.9rem;
  line-height: 1.35;
  box-sizing: border-box;
}
.notice--area-pitching {
  border-left-color: var(--ludi-c-pitch);
}
.notice--area-matching {
  border-left-color: var(--ludi-c-games);
}
.notice--area-details {
  border-left-color: var(--ludi-c-details);
}
.notice-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: var(--ludi-muted, #6a655c);
}
.notice-icon svg {
  width: 100%;
  height: 100%;
}
.notice--area-pitching .notice-icon { color: var(--ludi-c-pitch); }
.notice--area-matching .notice-icon { color: var(--ludi-c-games); }
.notice--area-details .notice-icon { color: var(--ludi-c-details); }
.notice-text {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}
.notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  flex: 0 1 auto;
  margin-left: auto;
}
.notice-action {
  font-size: 0.88rem;
}
.notice-hide {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ludi-radius, 0.4rem);
  background: transparent;
  color: var(--ludi-muted, #6a655c);
  cursor: pointer;
}
.notice-hide svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.notice-hide:hover {
  color: var(--ludi-ink, #1a1814);
  background: color-mix(in srgb, var(--ludi-muted, #6a655c) 12%, transparent);
}
.notice-hide:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ludi-accent) 55%, transparent);
  outline-offset: 2px;
}
.account-hidden-notices {
  margin: 0 0 1.25rem;
}
.account-hidden-notices[hidden],
.account-hidden-notices.hidden,
.account-seen-announcements[hidden],
.account-seen-announcements.hidden {
  display: none !important;
}
.account-hidden-notices-empty,
.account-seen-announcements-empty {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}
.account-hidden-notices-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.account-hidden-notices-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border: 1px solid var(--ludi-border, #d5cfc4);
  border-left-width: 3px;
  border-left-color: var(--ludi-muted, #6a655c);
  border-radius: 0.3rem;
  background: var(--ludi-card, #fff);
  font-size: 0.9rem;
  box-sizing: border-box;
}
.account-hidden-notices-item.notice--area-pitching {
  border-left-color: var(--ludi-c-pitch);
}
.account-hidden-notices-item.notice--area-matching {
  border-left-color: var(--ludi-c-games);
}
.account-hidden-notices-item.notice--area-details {
  border-left-color: var(--ludi-c-details);
}
.account-hidden-notices-text {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}
@media (max-width: 800px) {
  .notices {
    margin-bottom: 0.55rem;
  }
  .notice {
    padding: 0.4rem 0.5rem 0.4rem 0.55rem;
    font-size: 0.86rem;
    /* Keep clear of Quick FAB / Directory back-to-top (~390px phones). */
    margin-right: 0;
  }
  .notice-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

.card-capture-label {
  cursor: pointer;
}
.app-confirm-dialog::backdrop {
  background: rgba(42, 33, 24, 0.45);
}
.app-confirm-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1rem;
  max-height: min(80vh, 40rem);
}
.app-confirm-title {
  margin: 0;
  font-size: 1.05rem;
}
.app-confirm-body {
  margin: 0;
  /* A <pre> for the line breaks; the app's font, not the browser's monospace. */
  font-family: inherit;
  white-space: pre-wrap;
  overflow: auto;
  flex: 1 1 auto;
  font-size: 0.85rem;
  line-height: 1.4;
  max-height: 50vh;
}
.public-name-error {
  margin: 0;
  color: #9a3412;
  font-size: 0.9rem;
}
.account-contributions {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  max-width: 40rem;
}
.account-credits-title {
  margin: 0 0 0.75rem;
}
.account-credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: 0 0 1.75rem;
}
@media (min-width: 52rem) {
  .account-credits-grid {
    grid-template-columns: minmax(24rem, 1.15fr) minmax(0, 1fr);
  }
  .account-credits-grid .account-contribute-actions {
    flex-wrap: nowrap;
  }
}
.account-credits-grid > section[hidden] + section {
  grid-column: 1 / -1;
}
.account-credits-grid > section {
  margin: 0;
  max-width: none;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--ludi-ink) 12%, var(--ludi-card));
  border-radius: 0.75rem;
  background: var(--ludi-card);
}
.account-credit-usage {
  display: grid;
  gap: 0.75rem;
}
.account-credit-balance {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 650;
  color: var(--ludi-ink);
}
.account-credit-expiry {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
}
/* Donut with the balance beside it, centred on the dial. */
.account-usage-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.account-usage-status-line {
  position: relative;
  margin: 0;
}
.madlib-tip.account-usage-tip {
  position: static;
}
.madlib-tip.account-usage-tip[data-tip]::after {
  bottom: auto;
  top: calc(100% + 0.4rem);
  left: 0;
  transform: none;
  max-width: min(18rem, calc(100vw - 3rem));
}
.account-contribute-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}
.contribute-donut {
  --contribute-deg: 0deg;
  --contribute-track: color-mix(in srgb, var(--ludi-ink) 12%, var(--ludi-card));
  --contribute-fill: var(--ludi-accent, #2563eb);
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: conic-gradient(
    var(--contribute-fill) 0deg var(--contribute-deg),
    var(--contribute-track) var(--contribute-deg) 360deg
  );
  display: grid;
  place-items: center;
  position: relative;
}
.contribute-donut::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border-radius: 50%;
  background: var(--ludi-card, #fff);
}
.contribute-donut-center {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ludi-ink);
}
.account-contribute-copy {
  flex: 1 1 16rem;
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}
.account-contribute-how {
  margin: 0;
  font-size: 0.9rem;
  display: grid;
  gap: 0.4rem;
}
.account-contribute-how > p {
  margin: 0;
}
.account-contribute-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.2rem;
}
.account-contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
  align-items: center;
  max-width: 100%;
}
.account-contribute-actions .btn-ghost,
.account-contribute-actions .btn-primary {
  min-height: 2.125rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
  white-space: normal;
  max-width: 100%;
}
.earn-credit-choices {
  display: grid;
  gap: 0.45rem;
}
.earn-credit-choices .earn-credit-choice {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}
.account-contribution-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.account-contribution-history-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ludi-ink) 10%, transparent);
}
.account-contribution-history-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.account-history-kind {
  font-weight: 600;
}
.account-history-detail {
  font-size: 0.92rem;
}
.contribute-dialog.app-confirm-dialog {
  width: min(28rem, calc(100vw - 2rem));
  max-width: min(28rem, calc(100vw - 2rem));
}
.contribute-publisher-pick-dialog.app-confirm-dialog {
  overflow: visible;
}
.contribute-dialog .contribute-dialog-form,
.contribute-dialog.app-confirm-dialog .app-confirm-form {
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1.15rem;
}
.contribute-publisher-pick-dialog .contribute-dialog-form {
  overflow: visible;
}
.contribute-dialog .app-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.15rem;
  margin-bottom: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}
.earn-credit-choose {
  margin: 0;
  font-weight: 650;
  color: var(--ludi-ink);
}
.account-name-lede .madlib-tip {
  vertical-align: baseline;
}
/* Phone: the ? sits near the right edge; keep the tip inside the viewport. */
.account-name-lede .madlib-tip[data-tip]::after {
  left: auto;
  right: 0;
  transform: none;
  max-width: min(18rem, calc(100vw - 2rem));
}
.account-name-lede .linkish {
  font: inherit;
  padding: 0;
  vertical-align: baseline;
}
.account-contribution-history-empty {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}
.account-contribution-history-lede[hidden] {
  display: none;
}
.contribute-publisher-pick-dialog .app-contact-pub-combobox {
  position: relative;
  z-index: 6;
}
.contribute-publisher-pick-dialog #contribute-pub-pick-list {
  z-index: 8;
  max-height: min(14rem, 40vh);
}
.contribute-dialog .status-sugg-form-fields {
  display: grid;
  gap: 0.65rem;
}
.contribute-dialog .status-sugg-form-fields label {
  display: grid;
  gap: 0.3rem;
}
.contribute-share-block {
  display: grid;
  gap: 0.4rem;
}
.contribute-share-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.contribute-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.contribute-share-input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 2.5rem;
  font: inherit;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--ludi-border, #cfc6b8);
  border-radius: var(--ludi-radius, 6px);
  background: var(--ludi-card, #fff);
  color: inherit;
}
.contribute-form-grid {
  display: grid;
  gap: 0.75rem;
}
.contribute-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.contribute-field input,
.contribute-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--ludi-border, #cfc6b8);
  border-radius: var(--ludi-radius, 6px);
  background: var(--ludi-card, #fff);
  color: inherit;
}
.contribute-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.contribute-optional {
  font-weight: 400;
  color: var(--ludi-muted, #6b645a);
  font-size: 0.85rem;
}
.status-sugg-prompt {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ludi-border);
  display: grid;
  gap: 0.45rem;
}
.status-sugg-lede {
  margin: 0;
  font-size: 0.95rem;
}
.status-sugg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.status-sugg-form-fields {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.status-sugg-form-fields label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.status-sugg-form-fields input,
.status-sugg-form-fields textarea {
  width: 100%;
  max-width: 28rem;
}
.account-status-suggestions {
  margin: 0;
}
.account-status-sugg-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.admin-status-sugg-elig {
  margin: 0.75rem 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  display: grid;
  gap: 0.35rem;
}
.admin-status-sugg-elig legend {
  padding: 0 0.25rem;
  font-weight: 600;
}
.account-appearance {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  max-width: 36rem;
}
.theme-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.theme-legend {
  margin: 0 0 0.4rem;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.theme-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-ink) 4%, var(--ludi-card));
}
.theme-segment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: calc(var(--ludi-radius) - 0.05rem);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ludi-muted);
  text-align: center;
}
.theme-segment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-segment-option:has(input:checked) {
  background: var(--ludi-card);
  color: var(--ludi-ink);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ludi-ink) 12%, transparent);
}
.theme-segment-option:focus-within {
  outline: 2px solid color-mix(in srgb, var(--ludi-accent) 55%, transparent);
  outline-offset: 1px;
}
.account-theme-status,
.account-theme-impersonation-note {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
}
.account-theme-impersonation-note[hidden] {
  display: none !important;
}
.account-profile-form {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
}
.account-profile-form > .account-subheader {
  margin-top: 0.15rem;
}
.account-public-bio-pro {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  max-width: 32rem;
}
.account-public-bio-pro.hidden,
.account-public-bio-pro[hidden] {
  display: none;
}
.account-public-bio-pro-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}
.account-profile-form > button[type="submit"],
.public-materials > button[type="submit"] {
  justify-self: start;
  width: auto;
}
#account-name-open,
#account-bio-fields,
.account-profile-form > label.account-opt-in {
  max-width: 32rem;
}
.account-profile-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}
.account-label-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.account-label-line .madlib-tip {
  flex: 0 0 auto;
}
#account-name-open {
  display: grid;
  gap: 0.85rem;
}
#account-name-open .account-photo-row {
  margin-top: 0.15rem;
}
.account-profile-form label.account-opt-in {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}
.account-profile-form label.account-opt-in input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}
.account-contact-block {
  display: grid;
  gap: 0.85rem;
}
.account-profile-lede strong {
  color: var(--ludi-ink);
  font-weight: 700;
}
.account-subheader {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.account-seen-announcements {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  display: grid;
  gap: 0.55rem;
}
.account-seen-announcements .table-wrap {
  margin-top: 0.15rem;
  border: 1px solid var(--ludi-border, #d5cfc4);
  border-radius: 0.3rem;
  background: var(--ludi-card, #fff);
  overflow: hidden;
}
.account-seen-announcements-table {
  margin: 0;
}
.account-seen-announcements-table th:last-child,
.account-seen-announcements-table td:last-child {
  text-align: right;
}
.account-contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.35rem;
  row-gap: 0.75rem;
  align-items: end;
}
.account-contact-pref {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.3rem;
}
.account-contact-pref-head {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
@media (max-width: 560px) {
  .account-contact-fields {
    grid-template-columns: 1fr;
  }
}
.account-profile-form input[type="text"],
.account-profile-form input[type="url"],
.account-profile-form input[type="email"],
.account-profile-form input[type="tel"],
.account-profile-form input[type="file"] {
  font: inherit;
  width: 100%;
  max-width: 100%;
}
.account-profile-lede {
  max-width: 36rem;
  margin: 0;
}
.account-bio-fields {
  display: grid;
  gap: 0.85rem;
}
.account-profile-label {
  color: var(--ludi-muted);
}
.account-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
#account-photo-preview {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 999px;
  background: #f3f1ec;
}
#account-logo-preview {
  max-height: 3rem;
  max-width: 10rem;
  object-fit: contain;
  padding: 0.3rem;
  border: 1px solid var(--ludi-border);
  border-radius: 6px;
}
.pub-profile-title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  min-width: 0;
}
.game-byline {
  margin: 0;
  font-size: 1.05rem;
}
.game-byline-with-photo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.game-byline-photo {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f3f1ec;
}
.account-profile-form textarea {
  font: inherit;
  width: 100%;
  max-width: 100%;
}
.profile-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.profile-icon-link:hover {
  text-decoration: underline;
}
.app-edit-user-form .app-prompt-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}
.app-edit-user-form .app-edit-user-plan,
.app-edit-user-form .app-edit-user-note,
.app-edit-user-form .app-edit-user-email {
  width: 100%;
}
.app-edit-user-error {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.app-edit-user-events {
  margin-top: 1rem;
}
.app-edit-user-events-title,
.app-edit-user-account-title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.app-edit-user-events-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.app-edit-user-credits {
  margin-top: 1rem;
}
.app-edit-user-credits-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.app-edit-user-credits-value {
  min-width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.app-edit-user-matches,
.app-edit-user-account {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ludi-border, #cfc6b8);
}
.app-edit-user-matches p {
  margin: 0.25rem 0 0.6rem;
}
.app-edit-user-deactivate {
  color: var(--risk, #b42318);
}
.app-prompt-form .app-prompt-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.25rem 0 0.5rem;
}
.app-prompt-form .app-prompt-label-text {
  font-size: 0.9rem;
  color: var(--ludi-muted, #6b645a);
}
.app-prompt-form .app-prompt-input {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ludi-border, #cfc6b8);
  border-radius: 6px;
  background: var(--ludi-bg, #fff);
  color: inherit;
}
.app-confirm-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.app-pick-games-matches,
.app-pick-games-credit {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.app-pick-games-matches { white-space: pre-line; }
.app-pick-games-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.app-pick-games-list {
  display: grid;
  gap: 0.35rem;
  max-height: min(42vh, 18rem);
  overflow: auto;
  padding: 0.15rem 0;
}
.app-pick-games-item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}
.app-pick-games-item input {
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
}
.app-pick-games-tools {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 0;
}
.app-pick-games-credit {
  margin: 0;
  font-size: 0.88rem;
}
/* Let the tooltip extend beyond a short dialog without clipping its text. */
.app-pick-games-dialog {
  overflow: visible;
}
/* Keep the run explanation aligned to the dialog rather than centered on its icon. */
.app-pick-games-credit {
  position: relative;
}
.app-pick-games-credit .madlib-tip {
  position: static;
}
.app-pick-games-credit .madlib-tip[data-tip]::after {
  top: calc(100% + 0.4rem);
  bottom: auto;
  left: 0;
  transform: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  opacity: 0;
}
/* Focus alone never opens a tip when showModal() focuses its button. */
.app-pick-games-credit .madlib-tip[data-tip]:hover:not(.is-dismissed)::after,
.app-pick-games-credit .madlib-tip[data-tip].is-open::after {
  opacity: 1;
}
.app-pick-games-caveat {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ludi-text-muted, #666);
}
.app-pick-games-improve {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ludi-signal-hover, #c95f07);
}

.publishers-tier-heading {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.15rem;
  font-family: var(--ludi-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
}
.publishers-tier-section {
  margin-top: 0.9rem;
  max-width: none;
}
.publishers-tier-caption {
  margin: 0.65rem 0 0.55rem;
  font-size: 0.875rem;
  line-height: 1.45;
  max-width: 42rem;
}
.publishers-hold-footer {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
.publishers-advanced-link {
  margin-top: 1.1rem;
  font-size: 0.85rem;
}
.publishers-hold-footer .pub-job-acc-title {
  color: var(--muted);
  font-weight: 500;
  white-space: normal;
}
.publishers-hold-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-height: 16rem;
  overflow: auto;
}

.detail-admin-enrich label {
  display: block;
  margin: 0.4rem 0;
}
.admin-profile-edit {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem 0.9rem;
  border: 1px solid var(--ludi-border, #cfc6b8);
  border-radius: 8px;
  background: var(--card, #fff);
}
.admin-profile-edit > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
.admin-profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.admin-profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.55rem 0.85rem;
}
.admin-profile-edit-form textarea {
  width: 100%;
  min-height: 3.5rem;
  font: inherit;
}
.admin-profile-edit-form input[type="text"],
.admin-profile-edit-form input[type="url"],
.admin-profile-edit-form input[type="email"],
.admin-profile-edit-form input[type="number"],
.admin-profile-edit-form select {
  width: 100%;
  font: inherit;
}
.admin-profile-edit-check {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
.admin-pitch-access-edit {
  margin-top: 1rem;
  border-top: 1px solid var(--ludi-rule, #ddd);
  padding-top: 0.75rem;
}
.admin-pitch-access-edit > summary {
  cursor: pointer;
  font-weight: 600;
}
.admin-pitch-access-edit-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.55rem;
}
.admin-pitch-access-edit-form textarea {
  width: 100%;
  min-height: 3.5rem;
}
.admin-pitch-routes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.admin-pitch-routes {
  display: grid;
  gap: 0.65rem;
}
.admin-pitch-route-row {
  display: grid;
  gap: 0.4rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ludi-rule, #ddd);
  border-radius: 6px;
  background: var(--ludi-surface, #fafafa);
}
@media (min-width: 720px) {
  .admin-pitch-route-row {
    grid-template-columns: 9rem 1fr 1fr auto;
    align-items: end;
  }
  .admin-pitch-route-details {
    grid-column: 1 / -2;
  }
  .admin-pitch-route-remove {
    grid-column: -2 / -1;
    justify-self: end;
  }
}
.game-matching-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.9rem;
}
.game-matching-toggle input {
  margin: 0;
}
.matching-toggle-status {
  display: block;
  min-height: 0;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
}
.matching-toggle-status:empty {
  display: none;
}
.game-page-matching {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.game-page-matching .game-matching-toggle,
.games-col-matching .game-matching-toggle {
  margin: 0;
  cursor: pointer;
}
.games-col-matching .game-matching-toggle {
  display: inline-flex;
  padding: 0.25rem;
}
.matching-toggle-status:not(:empty) {
  margin: 0.15rem 0 0.25rem;
}
.unscored-lede {
  font-size: 0.85rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.scope-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52rem;
  margin: 0.15rem 0 0;
}

.app-header #stats-line:empty,
.scope-note:empty {
  display: none;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

/* Desktop: overflow-x:auto on a wrapper creates a scrollport and breaks
   position:sticky against page scroll. clip still contains wide tables
   without becoming a sticky containing block. Phone keeps overflow:auto /
   card layouts below. */
@media (min-width: 800px) {
  .table-scroll,
  .pitches-table-wrap,
  .crm-contacts-table-wrap,
  .crm-visits-table-wrap {
    overflow-x: clip;
  }
}

/* Matches uses normal page scroll (same as Directory). Sticky table headers
   still pin while the list moves. Top matches + Show other share one column
   schema (fixed layout) so ranks/scores line up; Secondary stays separate. */
#dash-publishers-table,
#dash-show-all-table,
#dash-verify-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
#dash-publishers-table,
#dash-show-all-table {
  table-layout: fixed;
}
#dash-publishers-table thead th,
#dash-show-all-table thead th,
#dash-verify-table thead th {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ludi-card);
  box-shadow: 0 1px 0 var(--ludi-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  text-align: left;
  padding: 0.65rem 0.75rem;
}
#dash-publishers-table tbody td,
#dash-show-all-table tbody td,
#dash-verify-table tbody td {
  padding: 0.75rem 0.75rem;
  border-top: 1px solid var(--ludi-border);
  vertical-align: middle;
  background: var(--ludi-card);
}
#dash-publishers-table tbody tr:first-child td,
#dash-show-all-table tbody tr:first-child td,
#dash-verify-table tbody tr:first-child td {
  border-top: 1px solid var(--ludi-border);
}
#dash-publishers-table tbody tr:hover td,
#dash-show-all-table tbody tr:hover td,
#dash-verify-table tbody tr:hover td {
  background: color-mix(in srgb, var(--ludi-accent-soft) 55%, var(--ludi-card));
}
#dash-publishers-table .pub-name,
#dash-show-all-table .pub-name,
#dash-verify-table .pub-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ludi-ink);
}
/* Shared Top / Show-other widths (Publisher column takes the remainder). */
#dash-publishers-table thead th:nth-child(1),
#dash-publishers-table tbody td.pub-rank,
#dash-show-all-table thead th:nth-child(1),
#dash-show-all-table tbody td.pub-rank {
  width: 3.75rem;
}
#dash-publishers-table thead th:nth-child(3),
#dash-publishers-table tbody td.pub-lead,
#dash-show-all-table thead th:nth-child(3),
#dash-show-all-table tbody td.pub-lead {
  width: 11rem;
}
#dash-publishers-table thead th:nth-child(4),
#dash-publishers-table tbody td.pub-ludiscore,
#dash-show-all-table thead th:nth-child(4),
#dash-show-all-table tbody td.pub-ludiscore {
  width: 6.75rem;
}
#dash-publishers-table thead th:nth-child(5),
#dash-publishers-table tbody td.pub-actions,
#dash-show-all-table thead th:nth-child(5),
#dash-show-all-table tbody td.pub-actions {
  width: 9.5rem;
}
/* Free locked Matches: no Rank column (thead + any leftover cells). */
#dash-publishers-table.is-free-locked thead th:first-child,
#dash-publishers-table.is-free-locked tbody td.pub-rank,
#dash-show-all-table.is-free-locked thead th:first-child,
#dash-show-all-table.is-free-locked tbody td.pub-rank {
  display: none;
}
#dash-publishers-table .pub-lead-blur,
.pro-preview-matches-table .pub-lead-blur {
  display: inline-block;
  max-width: 9.5rem;
  white-space: nowrap;
}
#dash-publishers-table .pub-ludiscore,
#dash-show-all-table .pub-ludiscore {
  white-space: nowrap;
  vertical-align: middle;
}
#dash-publishers-table .fit-game-title,
#dash-show-all-table .fit-game-title {
  white-space: nowrap;
}
#dash-publishers-table thead .ludi-term-bubble,
#dash-show-all-table thead .ludi-term-bubble {
  bottom: auto;
  top: calc(100% + 0.45rem);
}

/* Desktop sticky headers for Directory + Outreach tables. Phone layouts hide
   thead and use cards, so sticky is unnecessary / a no-op under 800px. */
@media (min-width: 800px) {
  #browse-publishers-table,
  .pitches-table,
  .crm-visits-table,
  .crm-contacts-table {
    border-collapse: separate;
    border-spacing: 0;
  }
  #browse-publishers-table thead th,
  .pitches-table thead th,
  .crm-visits-table thead th,
  .crm-contacts-table thead th {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 1px 0 var(--ludi-border);
  }
  #browse-publishers-table thead th {
    background: var(--ludi-accent-soft);
  }
  .pitches-table thead th,
  .crm-visits-table thead th,
  .crm-contacts-table thead th {
    background: var(--ludi-card);
  }
  #browse-publishers-table th.sortable-th:hover,
  .pitches-table th.sortable-th:hover,
  .crm-contacts-table th.sortable-th:hover {
    background: #e2e2e2;
  }
}

.pub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}

.pub-onboarding {
  margin: 0.85rem 0 0.25rem;
  padding: 0.7rem 0.9rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.pub-onboarding-phases {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.pub-onboarding-phase {
  margin: 0;
}
.pub-onboarding-phase-btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) minmax(4rem, auto) 1fr;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  text-align: left;
  background: transparent;
  border: 1px solid var(--ludi-border);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  border-radius: var(--ludi-radius);
  color: var(--ludi-muted);
}
.pub-onboarding-phase.is-active .pub-onboarding-phase-btn,
.pub-onboarding-phase-btn[aria-pressed="true"] {
  background: var(--ludi-accent-soft);
  border-color: color-mix(in srgb, var(--ludi-accent) 35%, var(--ludi-border));
  color: var(--ludi-ink);
}
.pub-onboarding-phase.is-next .pub-onboarding-phase-btn {
  border-color: color-mix(in srgb, var(--ludi-accent) 55%, var(--ludi-border));
  color: var(--ludi-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ludi-accent) 35%, transparent);
}
.pub-onboarding-phase.is-empty .pub-onboarding-phase-btn {
  opacity: 0.55;
}
.pub-onboarding-phase-label {
  font-weight: 600;
  color: var(--ludi-ink);
}
.pub-onboarding-phase-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pub-onboarding-phase-blurb {
  margin: 0;
}
.pub-onboarding-metrics {
  margin: 0.25rem 0 0;
}
.pub-onboarding-next {
  margin: 0.4rem 0 0;
  font-weight: 600;
  color: var(--ludi-ink);
}
.pub-onboarding-later {
  margin: 0.35rem 0 0;
}
.pub-onboarding-job {
  margin: 0.55rem 0 0;
  font-weight: 600;
  color: var(--ludi-ink);
  white-space: pre-wrap;
  min-height: 1.25em;
}
.pub-onboarding-job:empty {
  display: none;
}
.pub-onboarding-actions {
  margin-top: 0.45rem;
}
@media (max-width: 720px) {
  .pub-onboarding-phase-btn {
    grid-template-columns: 1fr auto;
  }
  .pub-onboarding-phase-blurb {
    grid-column: 1 / -1;
  }
}

.pub-tab {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--ludi-border);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font: inherit;
  border-radius: var(--ludi-radius);
  color: var(--ludi-muted);
}

.pub-tab.nav-active {
  background: var(--ludi-accent-soft);
  border-color: color-mix(in srgb, var(--ludi-accent) 35%, var(--ludi-border));
  color: var(--ludi-ink);
  font-weight: 600;
}

.pub-panel .listing-snip,
.pub-panel .llm-reason {
  display: block;
  margin-top: 0.2rem;
  max-width: 42rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
}

#targets-table {
  border-collapse: separate;
  border-spacing: 0;
}

#targets-table thead th {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ludi-accent-soft);
  box-shadow: 0 1px 0 var(--ludi-border);
}

th, td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}

th { background: var(--ludi-accent-soft); }

tr:hover td { background: #fafafa; }

th.game-col-header {
  white-space: nowrap;
  font-size: 0.82rem;
}

#browse-publishers-table thead th,
#directory-table thead th {
  white-space: nowrap;
}

th.sortable-th {
  cursor: pointer;
  user-select: none;
}

th.sortable-th:hover { background: #e2e2e2; }

th.sortable-th.sort-asc::after,
th.sortable-th.sort-desc::after {
  margin-left: 0.3em;
  color: var(--accent);
}

th.sortable-th.sort-asc::after { content: "▲"; }
th.sortable-th.sort-desc::after { content: "▼"; }

#browse-publishers-table th.sortable-th.is-active {
  color: var(--ludi-ink);
}
#browse-publishers-table th.sortable-th.is-active.sort-asc::after,
#browse-publishers-table th.sortable-th.is-active.sort-desc::after {
  color: var(--ludi-ink);
}

td.matrix-cell {
  text-align: center;
  padding: 0.35rem 0.5rem;
  font-weight: 600;
  white-space: nowrap;
}
.meetings-group-pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}
.meetings-group-priority_meeting { border-color: #2d7a4f; color: #2d7a4f; }
.meetings-group-verify_before_requesting { border-color: #b8860b; color: #b8860b; }
.meetings-group-remote_submission_channel { border-color: #4a6fa5; color: #4a6fa5; }
.meetings-group-unknown_access { border-color: #888; color: #666; }
.meetings-group-not_actionable { border-color: #a33; color: #a33; }

.portfolio-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.portfolio-game-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.portfolio-game-row:last-child { border-bottom: none; }
.portfolio-game-meta { font-size: 0.9rem; color: var(--muted, #666); }

.pitch-access-start {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.pitch-access-start-sep {
  color: var(--muted, #666);
}
.contribute-subline {
  margin-top: 0.25rem;
}
.status-sugg-dialog-sub {
  font-size: 0.92em;
}
.pitch-access-section h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}
.pitch-access-section h4:first-child { margin-top: 0; }
.pitch-access-facts { margin: 0.25rem 0; }
.pitch-access-verified {
  border-left: 3px solid #2d7a4f;
  padding-left: 0.65rem;
  margin: 0.5rem 0;
}
.pitch-access-lead {
  border-left: 3px solid #b8860b;
  padding-left: 0.65rem;
  margin: 0.5rem 0;
  opacity: 0.9;
}
.pitch-access-lead::before {
  content: "Research lead (unverified)";
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8860b;
  margin-bottom: 0.15rem;
}
.pitch-access-conflict-warning { margin: 0 0 0.5rem; font-weight: 600; }
.pub-pitch-links-rule {
  border: 0;
  border-top: 1px solid var(--ludi-border, #d9d1c6);
  margin: 0.85rem 0 0.2rem;
}

/* Route trust badges - same verified/unverified language as
   .pitch-access-verified / .pitch-access-lead above, reused wherever a
   designer sees a submission route or Next Step (dashboard table, detail
   page), not just in the buried Pitch Access records panel. */
.route-trust {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  white-space: nowrap;
}
.route-trust-verified { color: #2d7a4f; background: rgba(45, 122, 79, 0.12); }
.route-trust-lead { color: #b8860b; background: rgba(184, 134, 11, 0.12); }
.route-trust-autocheck {
  white-space: normal;
  max-width: 11rem;
  line-height: 1.25;
  text-align: left;
}
.route-trust-unknown { color: var(--muted, #666); background: rgba(102, 102, 102, 0.1); }
.evidence-reasons { font-size: 0.9rem; margin-top: 0.35rem; }
.evidence-reasons li { margin: 0.15rem 0; }
.opp-tier-prime { font-weight: 600; color: var(--hall); }
.opp-tier-strong { color: var(--ludi-accent-hover); }
.opp-tier-solid { color: #8a6a1d; }
.opp-tier-lean { color: var(--ludi-muted); }
.opp-posture-verify { color: #8a5a00; }
.opp-posture-hold { color: #a33; }
.matrix-conf { font-size: 0.72em; font-weight: 500; opacity: 0.85; margin-left: 0.15em; white-space: nowrap; }
.cell-unscored { background: var(--ludi-card); color: #bbb; font-weight: 400; text-align: center; }

a, button.linkish {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  font: inherit;
}

.detail-block {
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border-radius: var(--ludi-radius);
}

.pub-profile {
  padding: 0;
  overflow: hidden;
}
.pub-profile-hero {
  margin: 0 0 0.85rem;
  padding: 1.1rem 1.25rem 1rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: linear-gradient(
    to bottom right,
    var(--ludi-accent-soft),
    var(--ludi-card)
  );
}
.pub-profile-lede {
  margin: 0.45rem 0 0;
  max-width: 28rem;
  color: var(--ludi-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.pub-profile-lede p {
  margin: 0 0 0.55rem;
}
.pub-profile-lede p:last-child {
  margin-bottom: 0;
}
.pub-profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.25rem;
}
.pub-profile-name {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  font-family: var(--ludi-font);
  color: var(--ludi-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}
.pub-profile-name .conf-icon {
  cursor: help;
  flex-shrink: 0;
}
.pub-profile-country {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.pub-link-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pub-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  color: var(--ludi-ink);
  text-decoration: none;
}
.pub-link-icon svg {
  display: block;
}
.pub-link-icon-img {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
}
.pub-link-icon-img--bgg {
  -webkit-mask: url(/static/bgg-meeple.png) center / contain no-repeat;
  mask: url(/static/bgg-meeple.png) center / contain no-repeat;
}
.pub-link-icon:hover {
  border-color: var(--ludi-accent);
  color: var(--ludi-accent);
  background: var(--ludi-accent-soft);
}
.pub-show-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pub-show-item {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}
.pub-past-shows {
  margin-top: 0.75rem;
}
.pub-typical-show-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.pub-typical-show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 5.5rem;
  max-width: 7.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.pub-typical-show .pub-show-logo {
  display: block;
  max-height: 2.5rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.pub-typical-show-name {
  line-height: 1.25;
}
.admin-show-logo-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  min-width: 9rem;
}
.admin-show-logo-thumb {
  display: block;
  max-height: 2rem;
  max-width: 4.5rem;
  width: auto;
  object-fit: contain;
}
.admin-show-logo-upload {
  cursor: pointer;
  margin: 0;
}
.admin-shows-table input[type="text"],
#admin-shows-table input[type="text"],
#admin-shows-table input[type="date"] {
  width: 100%;
  min-width: 8rem;
  max-width: 18rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  font: inherit;
  background: var(--ludi-card);
  color: var(--ludi-ink);
}
#admin-shows-table input[type="date"] {
  max-width: 11rem;
  min-width: 9rem;
}
.pub-profile-meta {
  margin: 0 0 0.75rem;
  color: var(--ludi-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.pub-profile-actions {
  margin: 0.65rem 0 0;
}
.pub-profile-body {
  padding: 0;
}
.pub-profile-section {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ludi-border);
}
.pub-profile-section:last-of-type {
  border-bottom: 0;
}
.pub-profile-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.pub-profile-subhead {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.9rem;
  color: var(--ludi-ink);
}
.pub-profile-facts {
  display: grid;
  gap: 0.35rem 1.25rem;
}
@media (min-width: 720px) {
  .pub-profile-facts {
    grid-template-columns: 1fr 1fr;
  }
  .pub-profile-facts--stack {
    grid-template-columns: 1fr;
  }
}
.pub-profile-facts p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.pub-fact-label {
  display: inline-block;
  min-width: 6.5rem;
  margin-right: 0.35rem;
  font-weight: 600;
  color: var(--ludi-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pub-profile-gated {
  display: grid;
  gap: 0.85rem 1.25rem;
  margin-top: 0.85rem;
}
@media (min-width: 720px) {
  .pub-profile-gated {
    grid-template-columns: 1fr 1fr;
  }
}
.field-gated {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.field-label {
  font-weight: 600;
  color: var(--ludi-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field-blur {
  filter: blur(6px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  color: var(--ludi-ink);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow: hidden;
}
.field-note {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ludi-muted);
}
.pub-route-list,
.pub-req-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.pub-route-list li,
.pub-req-list li {
  margin: 0.2rem 0;
}
.pub-pitch-routes {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}
.pub-pitch-route p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.pub-pitch-route-detail {
  margin-top: 0.15rem !important;
  padding-left: 0.05rem;
  color: var(--ludi-ink);
  opacity: 0.88;
}
.pub-copy-item {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.pub-copy-item a {
  overflow-wrap: anywhere;
}
.pitch-status {
  font-weight: 700;
  font-size: 0.98rem;
}
.pitch-status--accepts { color: #1c7c3a; }
.pitch-status--conditional { color: #8a5a00; }
.pitch-status--closed { color: #c0392b; }
.pitch-status--unknown { color: var(--ludi-muted); }
.pub-pitch-routes-scroll {
  max-width: 100%;
  min-width: 0;
}
.pub-pitch-routes-table {
  width: max-content;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 0.45rem;
  font-size: 0.92rem;
}
.pub-pitch-routes-table th,
.pub-pitch-routes-table td {
  padding: 0.45rem 0.85rem;
  vertical-align: top;
}
.pub-pitch-routes-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  background: var(--ludi-accent-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--ludi-line, rgba(0, 0, 0, 0.14));
}
.pub-pitch-routes-table td {
  border-bottom: 1px solid var(--ludi-line, rgba(0, 0, 0, 0.08));
}
.pub-pitch-routes-table td:nth-child(2) {
  max-width: 32rem;
}
.pub-pitch-routes-table tr:hover td {
  background: transparent;
}
.pub-route-type {
  white-space: nowrap;
  font-weight: 500;
}
.pub-route-result {
  white-space: normal;
}
.pub-pitch-route-detail {
  display: block;
  margin-top: 0.15rem;
  color: var(--ludi-ink);
  opacity: 0.72;
  font-size: 0.8rem;
}
.route-feedback {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  vertical-align: middle;
}
.route-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  color: var(--ludi-muted);
  line-height: 1;
  cursor: pointer;
}
.route-feedback-btn svg {
  pointer-events: none;
}
.route-feedback-btn:hover,
.route-feedback-btn:focus-visible {
  color: var(--ludi-ink);
  background: var(--ludi-accent-soft);
}
.route-feedback-btn[data-vote="1"][aria-pressed="true"] {
  color: #1c7c3a;
  background: #e5f4ea;
}
.route-feedback-btn[data-vote="-1"][aria-pressed="true"] {
  color: #c0392b;
  background: #fdecea;
}
.route-feedback-note {
  flex-basis: 100%;
  font-size: 0.78rem;
  margin-left: 0;
}
@media (max-width: 799px) {
  .pub-pitch-routes-scroll {
    overflow: visible;
    margin-top: 0.35rem;
  }
  .pub-pitch-routes-table,
  .pub-pitch-routes-table tbody,
  .pub-pitch-routes-table tr,
  .pub-pitch-routes-table td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .pub-pitch-routes-table {
    width: 100%;
    border-radius: var(--ludi-radius);
  }
  .pub-pitch-routes-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .pub-pitch-routes-table tr {
    padding: 0;
    border-bottom: 1px solid var(--ludi-line, rgba(0, 0, 0, 0.12));
  }
  .pub-pitch-routes-table tr:last-child {
    border-bottom: 0;
  }
  .pub-pitch-routes-table td {
    border: 0;
    padding: 0.2rem 1rem;
  }
  .pub-pitch-routes-table td.pub-route-type {
    padding-top: 0.95rem;
    white-space: normal;
  }
  .pub-pitch-routes-table td.pub-route-result {
    padding-top: 0.15rem;
    padding-bottom: 0.7rem;
  }
  .pub-pitch-routes-table td:nth-child(2) {
    max-width: none;
  }
  .pub-route-type {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ludi-muted);
  }
  .pub-pitch-route-detail {
    margin-top: 0.45rem;
  }
  .pub-pitch-routes-table a,
  .pub-pitch-route-detail,
  .pub-copy-item {
    overflow-wrap: anywhere;
  }
  .pub-copy-btn,
  .route-feedback-btn {
    min-width: 40px;
    min-height: 40px;
  }
}
.pub-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 0 0 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ludi-muted);
  cursor: pointer;
  vertical-align: -0.2em;
}
.pub-copy-btn:hover,
.pub-copy-btn:focus-visible {
  color: var(--ludi-ink);
  background: var(--ludi-accent-soft);
}
.pub-copy-btn.is-copied {
  color: var(--ludi-accent);
}
.pub-profile-sources,
.pub-suggest-edits {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--ludi-border);
}
.pub-profile-sources > summary,
.pub-suggest-edits > summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ludi-muted);
  list-style: none;
}
.pub-profile-sources > summary::-webkit-details-marker,
.pub-suggest-edits > summary::-webkit-details-marker { display: none; }
.pub-profile-sources[open] > summary,
.pub-suggest-edits[open] > summary {
  margin-bottom: 0.55rem;
  color: var(--ludi-ink);
}

/* Shared in-page strip tabs (publisher jump nav, game page sections). */
.ludi-strip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}
.ludi-strip-tabs > .ludi-strip-tab {
  --strip-c: var(--ludi-accent);
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex: 1 1 8rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-left: 5px solid var(--strip-c);
  border-radius: 0;
  box-sizing: border-box;
  color: var(--ludi-ink);
  font: inherit;
  font-family: var(--ludi-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
}
/* Area mapping: pitch/outreach = blue, games/matches = green, profile/details = orange.
   Outreach's whole tab row is pitch-blue (not a mini rainbow). */
.ludi-strip-tab[data-strip="pitch"],
.ludi-strip-tab[data-pub-panel="pitch"],
.ludi-strip-tab[data-game-section="pitching"],
.ludi-strip-tab[data-outreach-tab] { --strip-c: var(--ludi-c-pitch); }
.ludi-strip-tab[data-strip="games"],
.ludi-strip-tab[data-pub-panel="games"],
.ludi-strip-tab[data-game-section="matching"] { --strip-c: var(--ludi-c-games); }
.ludi-strip-tab[data-strip="details"],
.ludi-strip-tab[data-pub-panel="details"],
.ludi-strip-tab[data-game-section="details"] { --strip-c: var(--ludi-c-details); }
.ludi-strip-tabs > .ludi-strip-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--strip-c) 11%, var(--ludi-card));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms ease;
  pointer-events: none;
}
.ludi-strip-tabs > .ludi-strip-tab:hover::before {
  transform: scaleX(0.18);
}
.ludi-strip-tabs > .ludi-strip-tab:focus-visible {
  outline: 2px solid var(--strip-c);
  outline-offset: 2px;
}
.ludi-strip-tabs > .ludi-strip-tab.is-active::before,
.ludi-strip-tabs > .ludi-strip-tab[aria-selected="true"]::before {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .ludi-strip-tabs > .ludi-strip-tab::before {
    transition: none;
  }
}

.pub-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin: 0 0 0.85rem;
  padding: 0;
  border-bottom: 0;
}
.pub-detail-toolbar-start {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
}
.pub-detail-back {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ludi-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0;
  cursor: pointer;
  line-height: 1.2;
  flex: 0 0 auto;
  margin-left: auto;
}
.pub-detail-back:hover {
  color: var(--ludi-ink);
}
.pub-detail-back:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ludi-accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
.pub-detail-switch {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.pub-detail-switch > .ludi-strip-tab {
  font-size: 1.25rem;
  flex: 1 1 0;
  min-width: 0;
}
#detail-content {
  min-width: 0;
  overflow-x: clip;
}
/* Keep the shared main.view chrome width (do not set max-width: 100% on
   #view-detail / #view-game - an ID beats body.page-app main.view). */
#view-detail {
  min-width: 0;
  overflow-x: clip;
}
/* Section heads: text only. The jump nav keeps the coloured strip. */
.pub-panel-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.pub-panel-head h2,
.pub-panel-head h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--ludi-font);
  color: var(--ludi-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
#btn-details-skip-open {
  margin-left: auto;
}
.pub-detail-panel.hidden {
  display: none;
}
/* Sticky jump bar stays page-coloured so the strips match the section heads. */
#detail-content .pub-detail-toolbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ludi-bg);
  padding: 0.35rem 0;
}
#detail-content .pub-detail-panel {
  scroll-margin-top: 4rem;
}
#detail-content .pub-detail-panel + .pub-detail-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ludi-border);
}

.pub-games-area {
  margin: 0 0 1rem;
}
.pub-games-lede {
  margin: 0 0 1rem;
  max-width: 40rem;
}
.what-to-pitch {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--ludi-ink) 3.5%, var(--ludi-bg));
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.what-to-pitch--empty {
  background: transparent;
  border: 0;
  padding: 0;
}
.what-to-pitch-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  flex: 0 0 auto;
}
.what-to-pitch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
}
.what-to-pitch-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: var(--ludi-ink);
  line-height: 1.25;
}
.what-to-pitch-rank {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.what-to-pitch-title {
  font-weight: 600;
}
.what-to-pitch-sep {
  color: var(--ludi-muted);
  user-select: none;
}
.what-to-pitch-meta {
  font-size: 0.85rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.designer-profile label {
  display: block;
  margin: 0.45rem 0;
}
.designer-profile input,
.designer-profile textarea {
  width: 100%;
  max-width: 36rem;
}
.pitch-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; align-items: center; }
.pub-pitch-area {
  margin-top: 0;
}
.pub-pitch-add-game {
  margin: 0.35rem 0 0;
}
.pub-pitch-add-game .linkish {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
.pitch-picker {
  margin: 0 0 1rem;
}
.pitch-picker-table {
  width: 100%;
}
.pitch-workflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.pitch-workflow-head h3 { margin: 0; }
.pitch-workflow-head .phase-label { margin: 0.2rem 0 0; }
.pitch-status-line {
  margin: 0;
  font-weight: 600;
  flex: 1 1 auto;
}
.pitch-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
}
.pitch-head-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.pitch-head-icon svg { width: 1.1rem; height: 1.1rem; }
.pitch-head-icon {
  color: var(--ludi-ink, #1c241e);
}
.pitch-head-icon.is-hidden-pitch {
  opacity: 0.45;
}
.pitch-head-icon:hover,
.pitch-head-icon:focus-visible {
  background: color-mix(in srgb, var(--ludi-ink, #1c241e) 8%, transparent);
}
.pitch-actions .pitch-head-icon {
  margin-left: 0.15rem;
}
.pitch-trash {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8a2f1f;
  cursor: pointer;
}
.pitch-trash:hover,
.pitch-trash:focus-visible {
  background: color-mix(in srgb, #8a2f1f 12%, transparent);
}
.pitch-games-accordion {
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  padding: 0;
  max-width: 28rem;
  background: color-mix(in srgb, var(--ludi-ink) 2%, var(--ludi-bg));
}
.pitch-games-accordion > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
}
.pitch-games-accordion > summary::-webkit-details-marker,
.pitch-games-accordion > summary::marker { display: none; content: ""; }
.pitch-games-accordion > summary::after {
  content: "▸";
  display: inline-block;
  color: var(--muted, #666);
  font-weight: 400;
  margin-left: auto;
  transition: transform 0.15s ease;
}
.pitch-games-accordion[open] > summary::after { transform: rotate(90deg); }
.pitch-games-summary { font-weight: 400; }
.pitch-copies-hint { margin: 0 0 0.45rem; }
.pitch-copy-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(8.5rem, 0.8fr) minmax(9rem, 1fr) minmax(11rem, 1.15fr);
  gap: 0.4rem 0.65rem;
  align-items: end;
  padding: 0.55rem 0;
  border-top: 1px solid var(--ludi-border);
  min-width: 0;
}
.pitch-copy-game { grid-column: 1 / -1; }
.pitch-copy-game-tag { max-width: 100%; }
.pitch-copy-field {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.82rem;
}
.pitch-copy-field select,
.pitch-copy-field input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font: inherit;
}
.pitch-copy-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.pitch-copy-feedback-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pitch-copy-feedback-date { margin: 0; }
.pitches-copy-out {
  font-size: 0.75rem;
  white-space: nowrap;
}
.app-copies-dialog.app-confirm-dialog {
  width: min(32rem, calc(100vw - 2rem));
  overflow: auto;
}
.app-copies-body { margin: 0 0 0.75rem; min-width: 0; }
.game-copies-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.game-copies-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-bg, #fff);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.game-copies-pub { font-weight: 600; }
.game-copies-feedback::before { content: "✓ "; }
@media (max-width: 799px) {
  .pitch-game-card .pitch-copy-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border: 0;
  }
  .pitch-copy-game,
  .pitch-copy-with,
  .pitch-copy-feedback { grid-column: 1 / -1; }
  .pitch-copy-row select,
  .pitch-copy-row input[type="date"],
  .pitch-copy-feedback-check {
    min-height: 40px;
  }
  .pitch-copy-feedback-check { align-items: center; }
  .game-card-actions .linkish[data-game-copies] {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}
.pitch-games-accordion .pitch-game-picker {
  padding: 0 0.85rem 0.85rem;
  margin: 0;
  border-top: 1px solid var(--ludi-border);
}
.pitch-history {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-accent-soft) 45%, var(--ludi-card));
}
.pitch-history-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.pitch-history-list {
  margin: 0;
  padding-left: 1.1rem;
}
.pitch-history-list li {
  margin: 0.2rem 0;
}
.pitch-history-more {
  margin: 0.35rem 0 0;
}
.pub-titles-5yr-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.pitch-purpose-field {
  display: grid;
  gap: 0.3rem;
  margin: 0.65rem 0 0.25rem;
  max-width: 28rem;
}
.pitch-phase-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.pitch-phase-current {
  font-weight: 600;
  min-width: 7rem;
  text-align: center;
}
.pitch-workflow-head .pitch-phase-nav {
  flex: 1 1 auto;
}
.pitch-reminder-field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin: 0.65rem 0;
  font-size: 0.9rem;
}
.pitch-reminder-date {
  display: grid;
  gap: 0.25rem;
}
.pitch-reminder-field input[type="date"] {
  width: auto;
  min-width: 11rem;
  font: inherit;
}
.pitch-cal-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.pitch-cal-actions .btn-ghost,
.pitch-cal-link {
  font-size: 0.85rem;
}
.pitch-cal-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  text-decoration: none;
}
.pitch-cal-row { margin: 0.35rem 0 0.75rem; }
.pitches-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.pitches-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.pitches-toolbar-secondary {
  width: 100%;
}
.pitches-toolbar-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
}
.pitches-toolbar-sort {
  margin-left: auto;
}
.pitches-filters-accordion {
  margin: 0 0 0.75rem;
}
.pitches-filters-summary {
  display: none;
  list-style: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ludi-ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  user-select: none;
}
.pitches-filters-summary::-webkit-details-marker {
  display: none;
}
.pitches-filters-summary::after {
  content: "▾";
  float: right;
  color: var(--ludi-muted);
  font-weight: 500;
}
.filters-summary-detail {
  font-weight: 400;
  color: var(--ludi-muted);
}
.pitches-filters-accordion[open] > .pitches-filters-summary::after {
  content: "▴";
}
.pitches-filters-accordion[open] > .pitches-filters-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
.pitches-filters-accordion .pitches-toolbar {
  margin-bottom: 0;
}
/* Desktop Matches / Directory: keep Search + filters (+ status) on one toolbar
   row. Flex the open accordion (JS sets open on desktop) instead of
   display:contents — nested contents on <details> dropped gaps / select fonts. */
@media (min-width: 800px) {
  #matches-filters-accordion:not(.hidden),
  #directory-filters-accordion:not(.hidden) {
    display: block;
    flex: 1 1 auto;
    min-width: 12rem;
    margin: 0;
  }
  #matches-filters-accordion:not(.hidden) > .pitches-filters-summary,
  #directory-filters-accordion:not(.hidden) > .pitches-filters-summary {
    display: none;
  }
  #matches-filters-accordion:not(.hidden) .matches-filters-toolbar,
  #directory-filters-accordion:not(.hidden) .directory-filters-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0;
    width: 100%;
  }
  #matches-filters-accordion:not(.hidden) .pitches-toolbar-row,
  #matches-filters-accordion:not(.hidden) .pitches-toolbar-checks,
  #directory-filters-accordion:not(.hidden) .pitches-toolbar-row {
    display: contents;
  }
  #matches-filters-accordion:not(.hidden) .pitches-toolbar-secondary {
    width: auto;
  }
  #directory-filters-accordion:not(.hidden) .pitches-toolbar-primary label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
  }
  #directory-filters-accordion:not(.hidden) .pitches-toolbar-primary select,
  #matches-filters-accordion:not(.hidden) select {
    font: inherit;
  }  /* Outreach: Game, Stage, the checkboxes and Sort on one row. */
  #pitches-filters-accordion .pitches-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
  }
  #pitches-filters-accordion .pitches-toolbar-secondary {
    width: auto;
    flex: 1 1 auto;
  }
}
@media (max-width: 799px) {
  .pitches-filters-summary {
    display: block;
  }
  .pitches-filters-accordion[open] .pitches-toolbar {
    border: 1px solid var(--ludi-border);
    border-top: 0;
    border-radius: 0 0 var(--ludi-radius) var(--ludi-radius);
    padding: 0.75rem 0.85rem 0.85rem;
    background: var(--ludi-card);
  }
  .matches-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .matches-toolbar > .pub-search,
  .matches-toolbar > #matches-filters-accordion,
  .matches-toolbar > #directory-filters-accordion,
  .matches-toolbar > #matching-bar,
  .matches-toolbar > #browse-filter-note {
    width: 100%;
    max-width: 100%;
  }
  .matches-toolbar > #browse-filter-note {
    margin-left: 0;
  }
}
.pitches-show-hidden {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}
.pitch-actions .linkish {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ludi-accent, #2f4a3c);
  text-decoration: underline;
  cursor: pointer;
}
.pitch-game-picker {
  display: grid;
  gap: 0.65rem;
  margin: 0.5rem 0 0.25rem;
  max-width: 28rem;
}
.pitch-game-picker > label {
  display: grid;
  gap: 0.3rem;
}
.pitch-also-fieldset {
  display: grid;
  gap: 0.3rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  padding: 0.55rem 0.7rem 0.7rem;
  margin: 0;
}
.pitch-also-fieldset legend {
  padding: 0 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.pitch-also-list {
  display: grid;
  gap: 0.35rem;
}
.pitch-game-also {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.3;
}
.pitch-game-also input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}
.pitch-activity {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ludi-border, #d5ddd6);
}
.pitch-activity-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.pitch-status-row {
  display: grid;
  grid-template-columns: minmax(0, 18rem) auto;
  align-items: center;
  gap: 0.25rem 1rem;
  margin: 0.65rem 0;
}
.pitch-status-row .pitch-status-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  grid-column: 1;
  margin: 0;
}
.pitch-status-row > select {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.9rem;
}
.pitch-status-row #pitch-visit-list-wrap {
  grid-column: 2;
  grid-row: 2;
}
.pitch-status-row .pitch-visit-list-check {
  margin: 0;
}
@media (max-width: 40rem) {
  .pitch-status-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .pitch-status-row #pitch-visit-list-wrap {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.25rem;
  }
}
.pitch-status-field {
  display: grid;
  gap: 0.25rem;
  margin: 0.65rem 0;
  font-size: 0.9rem;
}
.pitch-visit-list-check {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0.65rem 0 0.15rem;
  font-size: 0.9rem;
  max-width: 28rem;
}
.pitch-visit-list-check input {
  margin: 0;
}
.pitch-status-field select {
  width: 100%;
  max-width: 28rem;
  font: inherit;
}
.pitch-status-hint:empty {
  display: none;
}
.pitch-channel-other {
  margin: 0.35rem 0 0.65rem;
  max-width: 28rem;
}
.pitch-channel-other input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}
.pitch-channel-routes {
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  padding: 0.55rem 0.75rem 0.7rem;
  margin: 0.35rem 0 0.65rem;
  max-width: 28rem;
}
.pitch-channel-routes legend {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  padding: 0 0.25rem;
}
.pitch-route-list {
  display: grid;
  gap: 0.4rem;
}
.pitch-route-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.pitch-route-row .pitch-route-check {
  flex: 1;
  min-width: 0;
}
.pitch-route-row .pub-copy-btn {
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.pitch-route-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.35;
}
.pitch-meeting-fields {
  display: grid;
  gap: 0.55rem;
  margin: 0.5rem 0;
  max-width: 28rem;
}
.pitch-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.pitch-activity-item {
  display: grid;
  gap: 0.1rem;
  font-size: 0.9rem;
}
.pitch-activity-when {
  color: var(--ludi-muted, #66736a);
  font-size: 0.8rem;
}
.pitch-activity-summary {
  color: inherit;
}
.pitch-activity-note {
  white-space: pre-wrap;
  color: var(--ludi-muted, #66736a);
  font-size: 0.85rem;
}
.pitch-actions .pitch-delete {
  color: #8a2f1f;
}
.pitch-game-facts {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.7rem;
  background: color-mix(in srgb, var(--ludi-ink) 3%, var(--ludi-bg));
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.pitch-game-facts p { margin: 0; }
.pitch-card-due {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ludi-muted);
}
.pitch-card-due.is-overdue {
  color: #8a2f1f;
  font-weight: 600;
}
.pitch-card-chip {
  display: inline-block;
  margin: 0.2rem 0.25rem 0 0;
  padding: 0.05rem 0.35rem;
  font-size: 0.72rem;
  border: 1px solid var(--ludi-border);
  border-radius: 999px;
  color: var(--ludi-muted);
}
.pitch-card-chip.pitch-card-attention {
  border-color: color-mix(in srgb, var(--ludi-ink) 35%, transparent);
  color: var(--ludi-ink);
}
.pitch-waiting-on--you {
  border-color: color-mix(in srgb, #9a3f2e 40%, transparent);
  color: #9a3f2e;
  background: #fce8e4;
}
.pitch-waiting-on--them {
  border-color: color-mix(in srgb, #2f5f9e 35%, transparent);
  color: #2f5f9e;
  background: #e8f0fa;
}
.app-contact-dialog .app-contact-form,
.app-contact-view-dialog .app-contact-view-body {
  padding: 1rem 1.1rem 1.5rem;
  max-height: none;
  overflow: visible;
}
.app-contact-dialog .app-contact-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.app-contact-dialog .app-contact-form input,
.app-contact-dialog .app-contact-form textarea,
.app-contact-dialog .app-contact-form select {
  width: 100%;
  font: inherit;
}
.app-contact-publisher-pick {
  position: relative;
}
.app-contact-pub-combobox {
  position: relative;
}
.app-contact-pub-listbox {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 12rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  overflow: auto;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card, var(--ludi-bg));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ludi-ink) 12%, transparent);
}
.app-contact-pub-listbox.hidden {
  display: none;
}
.app-contact-pub-option {
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.app-contact-pub-option.is-active,
.app-contact-pub-option:hover {
  background: color-mix(in srgb, var(--ludi-ink) 6%, transparent);
}
.app-contact-view-fields {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}
.app-contact-view-row {
  display: grid;
  gap: 0.15rem;
}
.app-contact-view-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.app-contact-view-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.app-contact-view-notes .app-contact-view-value {
  display: block;
  white-space: pre-wrap;
}
.app-contact-view-photo {
  max-width: min(100%, 220px);
  max-height: 160px;
  border-radius: var(--ludi-radius);
  object-fit: cover;
}
.app-contact-view-publisher:empty {
  display: none;
}
.pitch-contact-links-head {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
}
.pitch-contact-link-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0;
}
.pitch-contact-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.pitch-contact-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
}
.pitch-contact-actions-row .pub-copy-btn {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
}
.pitch-contact-actions-row .pub-copy-btn.is-disabled {
  visibility: hidden;
  pointer-events: none;
}
.pitch-contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--ludi-muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.pitch-contact-icon-btn:hover,
.pitch-contact-icon-btn:focus-visible {
  color: var(--ludi-ink);
  background: color-mix(in srgb, var(--ludi-ink) 6%, transparent);
}
.app-contact-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}
.app-contact-heading .app-confirm-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.app-contact-heading .app-contact-publisher {
  font-weight: 500;
}
.app-contact-heading .app-contact-publisher:empty {
  display: none;
}
.pitches-empty-copy .linkish {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
.pitches-subhead {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 650;
  font-family: var(--ludi-font-display, Fraunces, Georgia, serif);
  color: var(--ludi-ink);
}
.publisher-contact-card-actions {
  display: inline-flex;
  gap: 0.65rem;
  flex-shrink: 0;
}
.publisher-contact-name-row,
.crm-contact-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.app-contact-actions {
  justify-content: flex-end;
}
.app-contact-actions .app-contact-delete {
  margin-right: auto;
  color: #a33;
}
.app-contact-actions .app-contact-delete:hover,
.app-contact-actions .app-contact-delete:focus-visible {
  color: #8a2a2a;
}
.crm-notes-row {
  cursor: pointer;
}
.crm-notes-row:hover td {
  background: color-mix(in srgb, var(--ludi-ink) 4%, var(--ludi-bg));
}
.context-notes {
  margin: 0.75rem 0 1rem;
}
.context-notes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}
.context-notes-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  font-family: var(--ludi-font);
}
.context-notes-count {
  font-weight: 500;
  font-size: 0.9rem;
}
.context-notes-add {
  min-height: 40px;
}
.context-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.context-notes-row {
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  background: var(--ludi-card);
}
.context-notes-row:hover,
.context-notes-row:focus {
  outline: none;
  background: color-mix(in srgb, var(--ludi-ink) 4%, var(--ludi-bg));
}
.context-notes-preview {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.context-notes-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
}
.context-notes-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  min-width: 0;
}
.context-notes-row-date {
  font-size: 0.8rem;
  white-space: nowrap;
}
.context-notes-more {
  margin: 0.45rem 0 0;
}
.context-notes-empty {
  margin: 0;
}
.app-note-suggested {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
}
.app-note-suggested-label {
  font-size: 0.85rem;
  color: var(--ludi-muted);
}
.app-note-suggested-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
button.crm-note-tag.crm-note-suggested-pill {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  /* Height/border/box come from .crm-note-tag so suggested matches every other pill. */
  padding: 0;
}
button.crm-note-tag.crm-note-suggested-pill.is-on {
  background: color-mix(in srgb, var(--ludi-ink) 10%, var(--ludi-bg));
  border-color: color-mix(in srgb, var(--ludi-ink) 35%, var(--ludi-border));
}
#crm-notes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
#crm-notes-toolbar > label:has(#crm-notes-q) {
  flex: 1 1 22rem;
  max-width: 32rem;
  min-width: 0;
}
#crm-notes-q {
  width: 100%;
  box-sizing: border-box;
}
.crm-notes-from-pitch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.crm-notes-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0.65rem;
}
.crm-notes-filters-label {
  margin-right: 0.15rem;
}
.crm-note-tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: calc(1.75rem + 2px);
  max-width: 16rem;
  margin: 0.1rem 0.25rem 0.1rem 0;
  border: 1px solid var(--ludi-border);
  background: color-mix(in srgb, var(--ludi-ink) 4%, var(--ludi-bg));
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.3;
  overflow: visible;
  vertical-align: middle;
}
.crm-note-tag-kind {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 0.85em;
  height: 0.85em;
  margin: 0 0 0 0.45rem;
  color: var(--ludi-muted);
  pointer-events: none;
}
.crm-note-tag-kind svg {
  width: 100%;
  height: 100%;
  display: block;
}
.crm-note-tag-label {
  display: block;
  border: 0;
  background: transparent;
  padding: 0 0.55rem 0 0.3rem;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
span.crm-note-tag-label {
  cursor: default;
}
.crm-note-tag-open,
.crm-note-tag-remove {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: var(--ludi-muted);
  cursor: pointer;
  padding: 0;
  min-width: 1.75rem;
  width: 1.75rem;
  height: 100%;
  min-height: 0;
  line-height: 1;
  font: inherit;
}
.app-note-dialog.app-confirm-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-width: min(36rem, calc(100vw - 2rem));
  max-height: min(90vh, 44rem);
  overflow: auto;
}
.app-note-dialog .app-note-form {
  padding: 1rem 1.1rem 1.5rem;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-note-dialog .app-note-form textarea,
.app-note-dialog .app-note-form select,
.app-note-dialog .app-note-form input[type="text"] {
  width: 100%;
  font: inherit;
  box-sizing: border-box;
}
.app-note-dialog .app-note-form > textarea[name="body"] {
  resize: vertical;
  min-height: 8rem;
  margin: 0;
}
.app-note-dialog .app-note-count {
  margin: 0;
  padding-top: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: right;
}
.app-note-dialog .app-note-count.risk {
  color: #8a2a2a;
}
.app-note-dialog .app-note-tag-management {
  margin: 0.85rem 0 0.5rem;
  display: grid;
  gap: 0.45rem;
}
.app-note-dialog .app-note-tag-mgmt-heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  font-family: var(--ludi-font);
  color: var(--ludi-ink);
}
.app-note-dialog .app-note-add-tag {
  display: grid;
  gap: 0.3rem;
}
.app-note-dialog .app-note-add-tags-label {
  font-size: 0.85rem;
  color: var(--ludi-muted);
}
.app-note-dialog .app-note-add-tag-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}
.app-note-dialog .app-note-tag-combobox {
  position: relative;
  min-width: 0;
}
.app-note-dialog .app-note-tag-listbox {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  margin: 0.15rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ludi-ink) 12%, transparent);
}
.app-note-dialog .app-note-tag-listbox li {
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.app-note-dialog .app-note-tag-listbox li:hover,
.app-note-dialog .app-note-tag-listbox li:focus {
  background: color-mix(in srgb, var(--ludi-ink) 6%, var(--ludi-bg));
  outline: none;
}
.app-note-dialog .app-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  min-height: 0;
}
.app-note-dialog .app-note-general-hint {
  margin: 0;
  font-size: 0.85rem;
}
.app-note-dialog .app-note-status {
  margin: 0.5rem 0 0;
}
.app-note-dialog .app-note-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.app-note-dialog .app-note-actions .btn-ghost,
.app-note-dialog .app-note-actions .btn-primary {
  min-height: 40px;
}
.app-note-dialog .crm-note-tag-locked {
  cursor: default;
}
.app-note-dialog .crm-note-tag-locked .crm-note-tag-label {
  cursor: default;
}
@media (max-width: 480px) {
  .app-note-dialog .app-note-add-tag-row {
    grid-template-columns: 1fr;
  }
  .app-note-dialog .app-note-actions .btn-ghost,
  .app-note-dialog .app-note-actions .btn-primary {
    flex: 1 1 100%;
  }
}
.publisher-crm {
  margin-top: 1.25rem;
}
#pub-panel-details > .pub-profile.detail-block {
  padding: 0.85rem 1.15rem 1rem;
}
.publisher-contacts-head {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0.35rem;
}
.publisher-contacts-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  font-family: var(--ludi-font);
  color: var(--ludi-ink);
  line-height: 1.3;
}
.publisher-contact-card {
  margin: 0.65rem 0;
  padding: 0.65rem 0;
  border-top: 1px solid var(--ludi-border);
}
.publisher-contact-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.publisher-contact-add label,
.publisher-contact-card label {
  display: block;
  margin: 0.35rem 0;
}
.outreach-tabs {
  margin: 0.15rem 0 1rem;
}
.outreach-tabs > .outreach-tab {
  flex: 1 1 6.5rem;
}
.crm-index-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0 1.5rem;
}
.crm-contacts-table-wrap {
  overflow-x: auto;
}
.crm-contacts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
/* These base rules sit after the shared sticky block above — re-apply desktop
   sticky prerequisites here so Contacts / Notes keep pinning. */
@media (min-width: 800px) {
  .crm-contacts-table-wrap {
    overflow-x: clip;
  }
  .crm-contacts-table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .crm-contacts-table thead th {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--ludi-card);
    box-shadow: 0 1px 0 var(--ludi-border);
  }
  .crm-contacts-table th.sortable-th:hover {
    background: #e2e2e2;
  }
}
.crm-notes-table .crm-note-updated {
  white-space: nowrap;
}
.crm-contacts-table th,
.crm-contacts-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--ludi-border);
  vertical-align: top;
}
.crm-contacts-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.crm-contacts-table th.sortable-th,
.pitches-table th.sortable-th {
  white-space: nowrap;
}
.crm-contacts-table th.sortable-th.is-active,
.pitches-table th.sortable-th.is-active {
  color: var(--ludi-ink);
}
.crm-contacts-table th.sortable-th.is-active.sort-asc::after,
.crm-contacts-table th.sortable-th.is-active.sort-desc::after,
.pitches-table th.sortable-th.is-active.sort-asc::after,
.pitches-table th.sortable-th.is-active.sort-desc::after {
  color: var(--ludi-ink);
}
.crm-contacts-table th.crm-contact-actions-col,
.crm-contacts-table td.crm-contact-actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.crm-contact-actions-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}
#crm-visits-toolbar.table-toolbar {
  margin-bottom: 0;
}
.crm-visits-body {
  margin: 0 0 1.5rem;
}
.crm-visits-body:not(:empty) {
  margin-top: 0.35rem;
}
.crm-visits-heading {
  font-size: 1rem;
  margin: 0.35rem 0 0.55rem;
}
.crm-visits-table-wrap {
  overflow-x: auto;
}
.crm-visits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
@media (min-width: 800px) {
  .crm-visits-table-wrap {
    overflow-x: clip;
  }
  .crm-visits-table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .crm-visits-table thead th {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--ludi-card);
    box-shadow: 0 1px 0 var(--ludi-border);
  }
}
.crm-visits-table th,
.crm-visits-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--ludi-border);
  vertical-align: top;
}
.crm-visits-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.crm-visits-table th.crm-visit-check-col,
.crm-visits-table td.crm-visit-check {
  width: 1%;
  white-space: nowrap;
  padding-right: 0.35rem;
  vertical-align: middle;
}
.crm-visits-table td.crm-visit-main {
  min-width: 0;
  padding-left: 0.35rem;
}
.crm-visits-table th.crm-visit-actions-col,
.crm-visits-table td.crm-visit-actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.crm-visit-actions-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.crm-visit-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.pub-show-visit-action {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  align-items: baseline;
}
.crm-visit-contact {
  font-size: 0.88rem;
  margin-top: 0.1rem;
}
.crm-visit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.25rem;
}
.crm-visits-visited {
  margin-top: 1rem;
}
.crm-visits-visited summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.pub-show-add-other {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.65rem;
  margin-top: 0.75rem;
}
.pub-show-add-other label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}
.app-contact-view-show-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem 0.55rem;
  margin: 0.65rem 0 0.35rem;
}
.app-contact-view-show-list label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}
#crm-visits-status:empty {
  display: none;
}
#crm-visits-status:not(:empty) {
  cursor: pointer;
  margin: 0.35rem 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .crm-visits-row {
    transition: none;
  }
}
.crm-contact-actions-row .pub-copy-btn,
.crm-contact-actions-row .pitch-contact-icon-btn {
  width: 2rem;
  height: 2rem;
}
.crm-contact-actions-row .pub-copy-btn.is-disabled {
  visibility: hidden;
  pointer-events: none;
}
.crm-contacts-row {
  cursor: pointer;
}
.crm-contacts-row:hover td {
  background: color-mix(in srgb, var(--ludi-ink) 4%, var(--ludi-bg));
}
.pitch-contact-links {
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  border: none;
}
.pitch-contact-links legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.pitch-contact-link-item {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  margin: 0.2rem 0;
}
.pitches-needs-attention,
.pitches-my-tasks {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}
.pub-suggest-edits textarea {
  width: 100%;
  font: inherit;
}

.score-card {
  border-left: 4px solid var(--accent);
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card);
}

.match-single-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.match-acc {
  padding: 0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}
.match-acc > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.match-acc > summary::-webkit-details-marker,
.match-acc > summary::marker { display: none; content: ""; }
.match-acc > summary::after {
  content: "▸";
  display: inline-block;
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.15s ease;
}
.match-acc[open] > summary::after { transform: rotate(90deg); }
.match-acc-title {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: auto;
}
.match-acc-body {
  padding: 0.15rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
}
.match-pct {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: var(--ludi-font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.match-pct-primary { color: var(--ludi-signal); }
.match-pct-strong { color: var(--ludi-signal); }
.match-pct-stretch { color: var(--ludi-accent); }
.match-pct-weak { color: var(--ludi-muted); font-weight: 600; }

.risk { color: #a33; font-size: 0.9rem; }

#games-list.games-table-wrap {
  margin: 0.75rem 0 0;
}
#games-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
#games-table thead th {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ludi-card);
  box-shadow: 0 1px 0 var(--ludi-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  text-align: left;
  padding: 0.65rem 0.75rem;
}
#games-table tbody td {
  padding: 0.75rem 0.75rem;
  border-top: 1px solid var(--ludi-border);
  vertical-align: middle;
  background: var(--ludi-card);
}
#games-table tbody tr:hover td {
  background: color-mix(in srgb, var(--ludi-accent-soft) 55%, var(--ludi-card));
}
#games-table tbody tr.is-game-disabled td {
  opacity: 0.72;
}
#games-table .games-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ludi-ink);
}
#games-table .games-title-cell {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
#games-table .games-phone-summary {
  display: none;
}
#games-table .games-profile-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
}
#games-table .games-col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
#games-table .games-actions-row {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.2rem;
  align-items: center;
}
#games-table .games-actions-row .pitch-contact-icon-btn {
  flex: 0 0 auto;
}
#games-table .games-action-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
#games-table .games-action-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
#games-table th.sortable-th.is-active {
  color: var(--ludi-ink);
}
#games-table th.sortable-th.is-active.sort-asc::after,
#games-table th.sortable-th.is-active.sort-desc::after {
  opacity: 1;
}

.match-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ludi-muted);
}
.match-detail-pct {
  font-variant-numeric: tabular-nums;
  color: var(--ludi-ink);
}
.match-detail-tip.madlib-tip {
  margin-left: 0.05rem;
}
.match-detail-tip.madlib-tip[data-tip]::after {
  bottom: auto;
  top: calc(100% + 0.4rem);
}
.game-profile-traits {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.game-profile-traits dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.game-profile-traits dd {
  margin: 0.12rem 0 0;
  font-size: 0.9rem;
  color: var(--ludi-ink);
  line-height: 1.4;
}
.game-profile-hook {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.95rem;
  color: var(--ludi-ink);
}

.game-page-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.game-page-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
}
.game-page-title-row .view-title {
  margin: 0;
}
.game-page-title-row .pitch-trash {
  margin-left: auto;
}
.game-page-title-row .pitch-trash svg {
  width: 18px;
  height: 18px;
  display: block;
}
#view-game,
.game-page {
  min-width: 0;
  overflow-x: clip;
}
.game-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ludi-bg);
  padding: 0.35rem 0;
  margin: 0 0 0.85rem;
  max-width: 100%;
  min-width: 0;
}
.game-page-tabs {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
.game-page-tabs > .ludi-strip-tab {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.15rem;
}
.game-page-back {
  appearance: none;
  margin: 0 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--ludi-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0;
  cursor: pointer;
  line-height: 1.2;
  flex: 0 0 auto;
  text-align: left;
  text-decoration: none;
}
.game-page-back:hover {
  color: var(--ludi-ink);
}
.game-page-back:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ludi-accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
.game-page-body {
  display: grid;
  gap: 0;
  max-width: 100%;
  min-width: 0;
}
#view-game .public-materials-section.share-links,
#view-game .table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.game-page-panel {
  scroll-margin-top: 4.5rem;
}
.game-page-panel + .game-page-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ludi-border);
}
.game-tab-panel .game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}
/* Editing a game: hide catalog, notices, and DNA filter behind the survey. */
/* Adding a game (rules upload or survey): no unrelated notices. */
#view-games:has(#create-game-form:not(.hidden)) > .notices,
#view-games:has(#survey-madlib:not(.hidden)) > .notices,
#view-games:has(#create-game-form:not(.hidden)) > #games-filter-line {
  display: none !important;
}
#view-games.is-editor-only > :not(#survey-madlib) {
  display: none !important;
}
.game-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.game-page-title-row .game-page-matching {
  margin-left: 0.15rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--ludi-border);
}
.game-page-actions .match-detail {
  margin-left: 0.15rem;
}
.game-page-status {
  margin: 0;
  font-size: 0.88rem;
}
.game-page-status:empty {
  display: none;
}
/* Game page tab content: each block is a card. */
.game-tab-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.game-section {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  min-width: 0;
}
/* Public profile is one game module, with flat subsections inside it. */
#view-game .public-materials {
  display: grid;
  gap: 1rem;
  margin: 0.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ludi-border);
}
.public-materials-section h4 {
  margin: 0;
  font-size: 0.95rem;
}
#view-game .public-materials-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#view-game .public-materials-section + .public-materials-section {
  padding-top: 1rem;
  border-top: 1px solid var(--ludi-border);
}
#view-game .public-materials-actions {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ludi-border);
}
.game-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}
.game-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.game-section-head > :not(h3):last-child {
  margin-left: auto;
}
.game-section-head > .public-profile-pill:last-child,
.game-section-head > .public-profile-links:last-child {
  margin-left: 0;
}
.game-section-lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 44rem;
}
.game-section-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--ludi-border);
  border-radius: var(--ludi-radius);
  color: var(--ludi-muted);
}
.game-section-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.game-section p {
  margin: 0;
  line-height: 1.5;
}
.game-section .game-card-actions,
.game-tab-panel .game-section .game-card-actions {
  margin: 0;
}
.game-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.game-section .game-profile-traits {
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem 1.25rem;
}
.game-section .game-profile-hook {
  margin: 0;
  font-family: var(--ludi-font-display);
  font-size: 1.1rem;
  line-height: 1.4;
}
.game-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.game-stat-strip > div {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-accent-soft) 55%, var(--ludi-card));
}
.game-stat-strip span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.game-stat-strip strong {
  font-size: 0.98rem;
  text-transform: capitalize;
}
.game-public-preview {
  display: grid;
  gap: 0.3rem;
}
.game-public-preview-link {
  justify-self: start;
  font-weight: 600;
}

.game-top-matches,
.game-pitches-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.game-top-matches th,
.game-pitches-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  padding: 0 0.6rem 0.45rem;
  border-bottom: 1px solid var(--ludi-border);
}
.game-top-matches td,
.game-pitches-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--ludi-border);
  vertical-align: middle;
}
.game-top-matches tbody tr:last-child td,
.game-pitches-table tbody tr:last-child td {
  border-bottom: 0;
}
.game-top-matches tbody tr.clickable-row:hover {
  background: color-mix(in srgb, var(--ludi-accent-soft) 45%, var(--ludi-card));
}
.game-top-rank {
  width: 2.5rem;
  color: var(--ludi-muted);
  font-variant-numeric: tabular-nums;
}
.game-top-matches tbody tr:nth-child(-n + 3) .game-top-rank {
  color: var(--ludi-ink);
  font-weight: 700;
}
.game-top-fit {
  width: 40%;
}
.game-top-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.game-top-score .fit-game-score {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}
.game-top-score-bar {
  flex: 1 1 auto;
  max-width: 12rem;
  height: 6px;
  border-radius: 999px;
  background: var(--ludi-accent-soft);
  overflow: hidden;
}
.game-top-score-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--ludi-accent);
}
.game-top-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.game-lane-pill {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--ludi-accent-soft);
}
.fit-game-open {
  font: inherit;
  font-weight: inherit;
  color: inherit;
}

.game-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 36rem;
}

.game-chip-wrap {
  position: relative;
  display: inline-block;
}

.game-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--ludi-accent-soft);
  border-radius: var(--ludi-radius);
  border: 1px solid var(--ludi-border);
  color: var(--ludi-ink);
  cursor: help;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Preview Matches lead chip (real Matches uses .publisher-lead-game-picker). */
.game-chip.lead {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--ludi-signal) 12%, var(--ludi-card));
  color: var(--ludi-ink);
}

pre#admin-output {
  background: #222;
  color: #eee;
  padding: 1rem;
  overflow: auto;
  max-height: 200px;
}

/* Public landing - marketing layout on shared product tokens */
.page-landing {
  --ludi-landing-max: var(--ludi-width-content);
  background: var(--ludi-bg);
  color: var(--ludi-ink);
}
.page-landing .ludi-photo-hero .ludi-wordmark-stem { color: #fff; }
.page-landing .ludi-photo-hero .ludi-wordmark-suffix { color: var(--ludi-signal); }
.page-landing .ludi-btn-secondary,
.page-landing a.ludi-btn-secondary {
  background: transparent;
  color: var(--ludi-ink);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.page-landing .ludi-photo-hero .ludi-btn-secondary{
  color: #f7f6f3;
  border-color: color-mix(in srgb, #f7f6f3 45%, transparent);
}
.page-landing .ludi-photo-hero .ludi-btn-secondary:hover{
  background: color-mix(in srgb, #f7f6f3 12%, transparent);
  border-color: #f7f6f3;
  color: #fff;
}
.page-landing h1,
.page-landing h2,
.page-landing .ludi-section-label,
.page-app .view-title,
.page-app h2.view-title {
  font-family: var(--ludi-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-landing .ludi-section-label {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.35rem;
  color: var(--ludi-ink);
  font-weight: 600;
}

.ludi-landing-header {
  background: color-mix(in srgb, var(--ludi-card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ludi-border);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 20;
}
.page-landing .ludi-landing-header {
  box-shadow: none;
}
.ludi-landing-header-inner,
.page-landing .ludi-family-footer-inner,
.ludi-landing-inner,
.ludi-landing,
.ludi-photo-hero-content{
  width: 100%;
  max-width: var(--ludi-landing-max, var(--ludi-width-content));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ludi-gutter, 1rem);
  padding-right: var(--ludi-gutter, 1rem);
  box-sizing: border-box;
}
/* Neutralize generic `main` padding/max-width so landing aligns with header/footer */
.page-landing main.ludi-landing {
  max-width: var(--ludi-landing-max, var(--ludi-width-content));
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  padding-left: var(--ludi-gutter, 1rem);
  padding-right: var(--ludi-gutter, 1rem);
}
.page-matching main > .ludi-landing:first-of-type {
  padding-top: 2.5rem;
  padding-bottom: 1.25rem;
}
.page-matching main > .ludi-ludiscore-band + .ludi-landing {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.ludi-landing-header-inner {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 4.25rem;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.ludi-landing-header .ludi-wordmark {
  flex-shrink: 0;
}
.page-landing .ludi-family-footer-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.ludi-landing-inner {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.ludi-photo-hero-content {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  width: 100%;
}
@media (min-width: 1024px) {
  .ludi-photo-hero-content { padding-bottom: 3.5rem; }
}
.ludi-landing-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
@media (min-width: 640px) {
  .ludi-landing-brand { gap: 0.5rem; }
}
.ludi-landing-auth {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.ludi-landing-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}
.ludi-landing-nav > a.ludi-nav-link,
.ludi-landing-auth > a.ludi-nav-link,
.ludi-landing-nav > a:not([class*="ludi-btn"]) {
  color: var(--ludi-muted);
  text-decoration: none;
  font-size: var(--ludi-text-nav);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--ludi-radius);
  background: transparent;
  border: 0;
  min-height: 0;
}
.ludi-landing-nav > a.ludi-nav-link:hover,
.ludi-landing-auth > a.ludi-nav-link:hover,
.ludi-landing-nav > a:not([class*="ludi-btn"]):hover {
  color: var(--ludi-ink);
}
.ludi-landing-nav > a.ludi-nav-link[aria-current="page"],
.ludi-landing-auth > a.ludi-nav-link[aria-current="page"] {
  color: var(--ludi-ink);
  font-weight: 600;
  background: var(--ludi-accent-soft);
}
.ludi-landing-auth > a.ludi-btn-primary,
.ludi-landing-auth > a.ludi-btn-secondary {
  text-decoration: none;
}

/* Shared chrome: hamburger + collapsible panel */
.ludi-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  color: var(--ludi-ink);
  cursor: pointer;
  flex-shrink: 0;
}
.ludi-nav-toggle:hover {
  border-color: color-mix(in srgb, var(--ludi-ink) 22%, var(--ludi-border));
}
.ludi-nav-toggle-bars {
  position: relative;
  display: block;
  width: 1.1rem;
  height: 0.75rem;
}
.ludi-nav-toggle-bars::before,
.ludi-nav-toggle-bars::after,
.ludi-nav-toggle-bars > span {
  position: absolute;
  left: 0;
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}
.ludi-nav-toggle-bars::before,
.ludi-nav-toggle-bars::after {
  content: "";
}
.ludi-nav-toggle-bars > span {
  top: 50%;
  margin-top: -1px;
}
.ludi-nav-toggle-bars::before { top: 0; }
.ludi-nav-toggle-bars::after { top: calc(100% - 2px); }
.is-nav-open .ludi-nav-toggle-bars > span {
  opacity: 0;
}
.is-nav-open .ludi-nav-toggle-bars::before {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}
.is-nav-open .ludi-nav-toggle-bars::after {
  top: 50%;
  margin-top: -1px;
  transform: rotate(-45deg);
}
.ludi-chrome-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.ludi-landing-header .ludi-chrome-panel {
  flex: 1 1 auto;
  justify-content: space-between;
}
@media (min-width: 800px) {
  .ludi-landing-header-inner {
    flex-wrap: nowrap;
    height: 4.25rem;
    min-height: 4.25rem;
  }
  .ludi-landing-header .ludi-nav-toggle,
  .ludi-app-header .ludi-nav-toggle {
    display: none;
  }
  .ludi-nav-phone {
    display: none;
  }
}
@media (max-width: 799px) {
  .ludi-landing-header .ludi-nav-toggle,
  .ludi-app-header .ludi-nav-toggle {
    display: inline-flex;
  }
  /* Keep logo + controls pinned to the same top offset open or closed */
  .ludi-landing-header-inner,
  .ludi-app-header-inner,
  .app-header-row {
    min-height: 0;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
    gap: 0.5rem 0.75rem;
  }
  .ludi-landing-header.is-nav-open .ludi-landing-header-inner,
  .ludi-app-header.is-nav-open .ludi-app-header-inner {
    padding-bottom: 0.5rem;
  }
  .ludi-landing-header .ludi-wordmark,
  .ludi-app-header .ludi-wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .ludi-chrome-panel {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.65rem 0 0.25rem;
    margin-top: 0.35rem;
    margin-left: 0;
    margin-right: 0;
    border-top: 1px solid var(--ludi-border);
    box-sizing: border-box;
  }
  /* Landing: toggle is the only trailing control. App: auth-bar already
     has margin-left:auto, so the toggle must not also claim free space. */
  .ludi-landing-header .ludi-nav-toggle {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .ludi-app-header .ludi-nav-toggle {
    flex: 0 0 auto;
    margin-left: 0;
  }
  .is-nav-open > .ludi-landing-header-inner > .ludi-chrome-panel,
  .is-nav-open > .ludi-app-header-inner > .ludi-chrome-panel,
  .is-nav-open .ludi-chrome-panel {
    display: flex;
  }
  .ludi-landing-nav,
  .ludi-app-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
  }
  .ludi-landing-nav > a.ludi-nav-link,
  .ludi-landing-auth > a.ludi-nav-link,
  .ludi-app-nav .ludi-nav-link,
  .ludi-app-nav button.ludi-nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.85rem;
  }
  .ludi-landing-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    padding-top: 0.35rem;
  }
  .ludi-landing-auth > a.ludi-btn-primary,
  .ludi-landing-auth > a.ludi-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .ludi-app-header .auth-bar {
    flex-wrap: nowrap;
  }
  .auth-bar .auth-credits {
    display: none;
  }
  /* Matches, Directory, and Outreach live in the bottom bar on phones.
     Games and Settings stay in the menu. */
  .ludi-app-nav .ludi-nav-primary {
    display: none;
  }
  body.page-app {
    padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }
  body.page-app .app-foot.ludi-family-footer {
    margin-bottom: 0;
  }
}

/* Directory: fixed back-to-top (window scroll) */
.directory-back-to-top {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: var(--z-header);
  min-width: 2.5rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(26, 24, 20, 0.12);
}
.directory-back-to-top[hidden] {
  display: none;
}
@media (max-width: 799px) {
  .directory-back-to-top {
    /* Sit above .ludi-bottom-nav (min-height + padding + safe area). */
    bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px) + 0.65rem);
  }
  .share-link-create {
    flex-direction: column;
    align-items: stretch;
  }
  .share-link-create label {
    flex: 0 0 auto;
  }
  .share-link-create .btn-ghost {
    width: 100%;
  }
  .public-materials-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-materials-playtests {
    grid-template-columns: 1fr;
  }
  .public-profile-accordion,
  .public-materials-section,
  .game-tab-panel {
    max-width: 100%;
    overflow-x: clip;
  }
}

/* App bottom primary nav (phone) */
.ludi-bottom-nav {
  display: none;
}
@media (max-width: 799px) {
  .ludi-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-header);
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    min-height: 3.5rem;
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--ludi-card) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ludi-border);
    box-sizing: border-box;
  }
  .ludi-bottom-nav-item {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.45rem 0.35rem;
    border: 0;
    border-radius: var(--ludi-radius);
    background: transparent;
    color: var(--ludi-muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
  }
  .ludi-bottom-nav-item:hover {
    color: var(--ludi-ink);
  }
  .ludi-bottom-nav-item.nav-active {
    color: var(--ludi-ink);
    background: var(--ludi-accent-soft);
  }
  .ludi-bottom-nav-label {
    line-height: 1.15;
  }
}

/* Outreach / publisher / contacts: phone-friendly stacking */
@media (max-width: 799px) {
  body.page-app main.view {
    padding-top: 1rem;
    /* Extra room so the Quick add FAB does not cover Save or the last list row. */
    padding-bottom: calc(1.5rem + 4rem);
  }
  .view-lede {
    font-size: 0.92rem;
  }
  .outreach-tabs {
    margin-bottom: 0.85rem;
  }
  .outreach-tabs > .outreach-tab {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 0.55rem;
    font-size: 1.05rem;
  }
  .pitches-toolbar.table-toolbar,
  .table-toolbar {
    gap: 0.55rem 0.75rem;
  }
  .pitches-filters-accordion {
    margin-bottom: 0.85rem;
  }
  .pitches-toolbar-row {
    gap: 0.55rem 0.75rem;
  }
  .pitches-toolbar-primary label,
  .pitches-toolbar-sort,
  #matches-filters-accordion .publisher-context-picker,
  #matches-filters-accordion .publisher-lead-game-picker,
  #directory-filters-accordion .pitches-toolbar-primary label,
  #outreach-panel-contacts .table-toolbar label,
  #outreach-panel-notes .table-toolbar label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 8.5rem;
    font-size: 0.82rem;
  }
  #matches-filters-accordion .publisher-context-picker select,
  #matches-filters-accordion .publisher-lead-game-picker select,
  #directory-filters-accordion .pitches-toolbar-primary select {
    width: 100%;
    min-height: 2.5rem;
    font-size: 1rem;
    max-width: 100%;
  }
  #matches-filters-accordion .pitches-toolbar-checks label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    flex: 1 1 100%;
    font-size: 0.9rem;
  }
  #matches-filters-accordion .pitches-toolbar-checks input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
  }
  #outreach-panel-notes .table-toolbar label:has(#crm-notes-q) {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
  #outreach-panel-notes .table-toolbar label.crm-notes-from-pitch {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 40px;
  }
  #outreach-panel-contacts .table-toolbar select {
    width: 100%;
    min-height: 2.4rem;
    font-size: 1rem;
    max-width: 100%;
  }
  #outreach-panel-contacts .table-toolbar .btn-ghost,
  #outreach-panel-contacts .table-toolbar .card-capture-label {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
  }
  .pitches-toolbar-sort {
    margin-left: 0;
    flex: 1 1 100%;
    align-items: flex-end;
  }
  .pitches-toolbar-sort select {
    width: auto;
    min-width: 10rem;
    max-width: 100%;
  }
  .pitches-toolbar select,
  .pitches-toolbar input:not([type="checkbox"]),
  #outreach-panel-contacts .table-toolbar input:not([type="checkbox"]),
  #outreach-panel-notes .table-toolbar input:not([type="checkbox"]) {
    width: 100%;
    min-height: 2.4rem;
    font-size: 1rem;
  }
  #outreach-panel-notes .table-toolbar input[type="checkbox"] {
    width: auto;
    min-width: 1.1rem;
    min-height: 1.1rem;
    flex: 0 0 auto;
  }
  .pitches-toolbar-checks {
    flex: 1 1 100%;
    gap: 0.45rem 0.85rem;
  }
  /* Match Matches filter checks: compact boxes, one-line labels. */
  #pitches-filters-accordion .pitches-toolbar-checks label,
  .pitches-toolbar .pitches-show-hidden,
  .pitches-toolbar .pitches-needs-attention,
  .pitches-toolbar .pitches-my-tasks {
    display: inline-flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    min-width: 0;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  #pitches-filters-accordion .pitches-toolbar-checks input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    min-height: 1.15rem;
    flex: 0 0 auto;
  }
  #btn-crm-add-contact {
    min-height: 2.5rem;
    width: 100%;
  }

  /* Pitches tables → stacked cards */
  .pitches-table-wrap {
    overflow: visible;
  }
  .pitches-table,
  .pitches-table tbody {
    display: block;
    width: 100%;
  }
  /* Suppress global `table { border; background }` around phone cards. */
  .pitches-table {
    border: 0;
    background: transparent;
  }
  .pitches-table thead {
    display: none;
  }
  .pitches-table .pitches-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 0.65rem;
    margin: 0 0 0.65rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--ludi-border);
    border-radius: var(--ludi-radius);
    background: var(--ludi-bg);
    box-sizing: border-box;
  }
  .pitches-table .pitches-row.is-your-turn {
    background: #fce8e4;
    border-color: color-mix(in srgb, #9a3f2e 28%, var(--ludi-border));
  }
  .pitches-table .pitches-row.is-your-turn td {
    background: transparent;
  }
  .pitches-table .pitches-row:hover td {
    background: transparent;
  }
  .pitches-table .pitches-row td {
    min-width: 0;
    border: 0;
    padding: 0.1rem 0;
  }
  .pitches-table .pitches-drag-col {
    display: none;
  }
  .pitches-table .pitches-pub-col {
    grid-column: 1 / -1;
    font-size: 1.02rem;
    padding-bottom: 0.25rem;
  }
  .pitches-table .pitches-move-col,
  .pitches-table .pitches-stage-col,
  .pitches-table .pitches-outcome-col {
    font-size: 0.85rem;
  }
  .pitches-table .pitches-progress-col,
  .pitches-table .pitches-lead-col,
  .pitches-table .pitches-due-col {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    color: var(--ludi-muted);
  }
  .pitches-table .pitches-lead-col::before {
    content: "Lead · ";
    font-weight: 600;
    color: var(--ludi-muted);
  }
  .pitches-table .pitches-due-col::before {
    content: "Next · ";
    font-weight: 600;
    color: var(--ludi-muted);
  }
  .pitches-lane,
  .pitches-lane-accordion {
    padding: 0;
  }
  .pitches-table .pitches-row:last-child {
    margin-bottom: 0;
  }

  /* Contacts / notes tables → stacked cards */
  .crm-contacts-table-wrap,
  .crm-contacts-table-wrap.table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .crm-contacts-table,
  .crm-contacts-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  /* Suppress global `table { border; background }` around phone cards. */
  .crm-contacts-table {
    border: 0;
    background: transparent;
  }
  .crm-contacts-table thead {
    display: none;
  }
  .crm-contacts-table tr,
  .crm-contacts-table tbody tr.crm-contacts-row,
  .crm-contacts-table tbody tr.crm-notes-row {
    display: block;
    margin: 0 0 0.65rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--ludi-border);
    border-radius: var(--ludi-radius);
    background: var(--ludi-bg);
    box-sizing: border-box;
  }
  .crm-contacts-table td {
    display: block;
    border: 0;
    padding: 0.15rem 0;
    background: transparent;
  }
  .crm-contacts-table tr:hover td,
  .crm-contacts-table tbody tr.crm-notes-row:hover td {
    background: transparent;
  }
  .crm-contacts-table td:first-child {
    font-size: 1.02rem;
    font-weight: 600;
    padding-bottom: 0.3rem;
  }
  /* Outreach Contacts: name + actions on row 1, publisher/last on row 2 */
  .crm-contacts-table:not(.crm-notes-table) tbody tr.crm-contacts-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.65rem;
    align-items: start;
  }
  .crm-contacts-table:not(.crm-notes-table) tbody td.crm-contact-name {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0;
  }
  .crm-contacts-table:not(.crm-notes-table) tbody td.crm-contact-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    width: auto;
    justify-self: end;
    align-self: start;
    text-align: right;
    padding: 0;
  }
  .crm-contacts-table:not(.crm-notes-table) tbody td.crm-contact-publisher,
  .crm-contacts-table:not(.crm-notes-table) tbody td.crm-contact-last {
    grid-column: 1;
    display: block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--ludi-muted);
    font-weight: 400;
    padding: 0;
    overflow-wrap: anywhere;
  }
  .crm-contacts-table:not(.crm-notes-table) tbody td.crm-contact-publisher {
    grid-row: 2;
  }
  .crm-contacts-table:not(.crm-notes-table) tbody td.crm-contact-last {
    grid-row: 3;
  }
  .crm-contacts-table:not(.crm-notes-table) tbody td.crm-contact-last .crm-contact-last-day::before {
    content: "Updated ";
  }
  .crm-contacts-table:not(.crm-notes-table) tbody .crm-contact-actions-row .pub-copy-btn,
  .crm-contacts-table:not(.crm-notes-table) tbody .crm-contact-actions-row .pitch-contact-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 40px;
    min-height: 40px;
  }
  .crm-notes-table tbody tr.crm-notes-row {
    display: block;
  }
  .crm-notes-table tbody td.crm-note-body {
    font-size: 1.02rem;
    font-weight: 600;
    padding-bottom: 0.35rem;
  }
  .crm-notes-table tbody td.crm-note-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
    width: 100%;
    max-width: 100%;
  }
  .crm-notes-table tbody td.crm-note-tags .crm-note-tag {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
  }
  .crm-notes-table tbody td.crm-note-updated {
    font-size: 0.8rem;
    color: var(--ludi-muted);
    white-space: nowrap;
  }
  .crm-note-tag-open::after,
  .crm-note-tag-remove::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
  /* Visit list: card rows; thead hidden; avoid generic td { display:block } fights */
  .crm-visits-table-wrap {
    overflow: visible;
  }
  .crm-visits-table,
  .crm-visits-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .crm-visits-table thead {
    display: none;
  }
  .crm-visits-table tbody tr.crm-visits-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
    margin: 0 0 0.65rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--ludi-border);
    border-radius: var(--ludi-radius);
    background: var(--ludi-card);
  }
  .crm-visits-table tbody td.crm-visit-check {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: flex-start;
    width: auto;
    padding: 0;
    border: 0;
  }
  .crm-visits-table tbody .crm-visit-check-label {
    /* Keep a usable tap target on phones without widening the column. */
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
  .crm-visits-table tbody td.crm-visit-main {
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .crm-visits-table tbody td.crm-visit-actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    width: auto;
    justify-content: flex-start;
    text-align: left;
    padding: 0.15rem 0 0;
    border: 0;
    white-space: nowrap;
  }
  .crm-visits-table tbody .crm-visit-actions-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  .crm-visits-table tbody .crm-visit-actions-row .linkish,
  .crm-visits-table tbody .crm-visit-actions-row .pitch-contact-icon-btn {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }
  .crm-visits-table tbody tr.crm-visits-empty-row {
    display: block;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
  }
  .crm-visits-table tbody tr.crm-visits-empty-row td {
    display: block;
    border: 0;
    padding: 0;
  }
  #outreach-panel-visits .table-toolbar label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    flex: 1 1 100%;
    font-size: 0.82rem;
  }
  #outreach-panel-visits .table-toolbar select {
    width: 100%;
    min-height: 2.4rem;
    font-size: 1rem;
    max-width: 100%;
  }
  .app-contact-view-dialog .app-contact-view-body,
  .app-contact-dialog .app-contact-form {
    max-width: min(100vw - 1.25rem, 28rem);
    box-sizing: border-box;
  }
  .app-contact-view-actions,
  .app-contact-actions {
    flex-wrap: wrap;
  }
  .app-contact-view-actions .btn-ghost,
  .app-contact-view-actions .btn-primary,
  .app-contact-actions .app-contact-save,
  .app-contact-actions .app-contact-save-pitch,
  .app-contact-actions .app-contact-cancel {
    flex: 1 1 auto;
    min-width: 6.5rem;
  }

  /* Games table → stacked cards */
  #games-list .table-scroll {
    overflow: visible;
  }
  #games-table,
  #games-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
  }
  #games-table thead {
    display: none;
  }
  #games-table tbody tr[data-slug] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    margin: 0 0 0.65rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--ludi-border);
    border-radius: var(--ludi-radius);
    background: var(--ludi-card);
  }
  #games-table tbody tr[data-slug]:hover {
    background: color-mix(in srgb, var(--ludi-accent-soft) 55%, var(--ludi-card));
  }
  #games-table tbody tr[data-slug] td {
    display: none;
    border: 0;
    padding: 0;
    background: transparent;
  }
  #games-table tbody tr[data-slug] td.games-col-title {
    display: block;
  }
  #games-table tbody tr[data-slug] td.games-col-actions {
    display: block;
    margin-top: 0.45rem;
    text-align: left;
  }
  #games-table tbody tr[data-slug] .games-actions-row {
    justify-content: flex-start;
  }
  #games-table .games-phone-summary {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
  }
  #games-table .games-profile-hint {
    display: none;
  }

  /* Matches tables → stacked cards (no Rank; no sideways scroll) */
  #dash-publishers-wrap .table-scroll,
  #view-publishers .table-scroll {
    overflow: visible;
  }
  #dash-publishers-table,
  #dash-publishers-table tbody,
  #dash-show-all-table,
  #dash-show-all-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
  }
  #dash-publishers-table thead,
  #dash-show-all-table thead {
    display: none;
  }
  #dash-publishers-table tbody tr[data-slug],
  #dash-show-all-table tbody tr[data-slug] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.35rem;
    margin: 0 0 0.65rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--ludi-border);
    border-radius: var(--ludi-radius);
    background: var(--ludi-card);
  }
  #dash-publishers-table tbody tr[data-slug]:hover,
  #dash-show-all-table tbody tr[data-slug]:hover {
    background: color-mix(in srgb, var(--ludi-accent-soft) 55%, var(--ludi-card));
  }
  #dash-publishers-table tbody tr[data-slug] td,
  #dash-show-all-table tbody tr[data-slug] td {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    vertical-align: middle;
  }
  #dash-publishers-table tbody tr[data-slug]:hover td,
  #dash-show-all-table tbody tr[data-slug]:hover td {
    background: transparent;
  }
  /* Must beat `tbody tr[data-slug] td { display: block }` above. */
  #dash-publishers-table tbody tr[data-slug] td.pub-rank,
  #dash-show-all-table tbody tr[data-slug] td.pub-rank,
  #dash-publishers-table tbody tr[data-slug] td.pub-lead,
  #dash-show-all-table tbody tr[data-slug] td.pub-lead {
    display: none;
  }
  #dash-publishers-table tbody tr[data-slug] td.pub-publisher,
  #dash-show-all-table tbody tr[data-slug] td.pub-publisher {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    min-width: 0;
    font-size: 1.02rem;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  /* View / Pitch under the name, left side (Ludiscore stays on the right). */
  #dash-publishers-table tbody tr[data-slug] td.pub-actions,
  #dash-show-all-table tbody tr[data-slug] td.pub-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    margin-left: 0;
    margin-right: 0;
    width: auto;
    max-width: 100%;
    text-align: left;
  }
  /* Ludiscore: right column, vertically centered, large. */
  #dash-publishers-table tbody tr[data-slug] td.pub-ludiscore,
  #dash-show-all-table tbody tr[data-slug] td.pub-ludiscore {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: end;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: var(--ludi-ink);
    white-space: nowrap;
    text-align: right;
  }
  #dash-publishers-table tbody tr[data-slug] td.pub-ludiscore .fit-game-score,
  #dash-show-all-table tbody tr[data-slug] td.pub-ludiscore .fit-game-score {
    font-family: var(--ludi-font-display);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ludi-signal);
  }
  #dash-publishers-table tbody tr:not([data-slug]),
  #dash-show-all-table tbody tr:not([data-slug]) {
    display: block;
    margin: 0;
    padding: 0.75rem 0;
    border: 0;
    background: transparent;
  }
  #dash-publishers-table tbody tr:not([data-slug]) td,
  #dash-show-all-table tbody tr:not([data-slug]) td {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
  }

  /* Directory table → stacked cards */
  #browse-publishers-table,
  #browse-publishers-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
  }
  #browse-publishers-table thead {
    display: none;
  }
  #browse-publishers-table tbody tr[data-slug] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.2rem 0.45rem;
    margin: 0 0 0.65rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--ludi-border);
    border-radius: var(--ludi-radius);
    background: var(--ludi-card);
    position: relative;
  }
  #browse-publishers-table tbody tr[data-slug]:hover td {
    background: transparent;
  }
  #browse-publishers-table tbody tr[data-slug]:hover {
    background: color-mix(in srgb, var(--ludi-accent-soft) 55%, var(--ludi-card));
  }
  #browse-publishers-table tbody tr[data-slug] td {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    white-space: normal;
  }
  #browse-publishers-table td.browse-pub {
    flex: 1 1 100%;
    order: 1;
    min-width: 0;
    padding-right: 2rem;
  }
  #browse-publishers-table td.browse-pub .browse-pub-name {
    font-size: 1.02rem;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  /* Flag sits at the card's top-right corner. */
  #browse-publishers-table td.browse-country {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    order: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: inherit;
    overflow: visible;
  }
  #browse-publishers-table td.browse-country .browse-country-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  #browse-publishers-table td.browse-country .browse-flag-emoji {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
  }
  #browse-publishers-table td.browse-country:not(:has(.browse-flag-emoji)) {
    display: none;
  }
  #browse-publishers-table td.browse-audience,
  #browse-publishers-table td.browse-titles,
  #browse-publishers-table td.browse-pitch-status {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--ludi-muted);
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  #browse-publishers-table td.browse-audience {
    order: 2;
  }
  #browse-publishers-table td.browse-audience::after,
  #browse-publishers-table td.browse-titles::after {
    content: " · ";
  }
  #browse-publishers-table td.browse-titles {
    order: 3;
  }
  #browse-publishers-table td.browse-titles .browse-titles-unit {
    display: inline;
  }
  #browse-publishers-table td.browse-pitch-status {
    order: 4;
  }
  /* View shares the meta row when it fits; otherwise wraps right-aligned. */
  #browse-publishers-table td.browse-actions {
    flex: 0 0 auto;
    order: 5;
    margin: 0 0 0 auto;
    padding: 0;
    text-align: right;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  #browse-publishers-table td.browse-actions .linkish {
    border: 0;
    box-shadow: none;
  }
  #browse-publishers-table tbody tr:not([data-slug]) {
    display: block;
    margin: 0;
    padding: 0.75rem 0;
    border: 0;
    background: transparent;
  }
  #browse-publishers-table tbody tr:not([data-slug]) td {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
  }

  /* Publisher profile */
  .pub-profile-hero {
    padding: 0.95rem 1rem;
  }
  .pub-profile-name {
    font-size: 1.35rem;
  }
  .pub-tabs {
    gap: 0.25rem;
  }
  .pub-tab {
    flex: 1 1 auto;
    min-height: 2.5rem;
    justify-content: center;
  }
  .pitch-workflow-head {
    flex-direction: column;
    align-items: stretch;
  }
  .pitch-head-actions {
    justify-content: flex-start;
  }
  .pitch-actions {
    gap: 0.65rem;
  }
  .pitch-actions .btn-primary,
  .pitch-actions .btn-ghost,
  .pitch-actions button {
    min-height: 2.5rem;
  }
  .pub-profile-facts {
    grid-template-columns: 1fr;
  }
  .pub-search input {
    min-width: 0;
    width: 100%;
  }
  .pub-search {
    width: 100%;
  }
  .publisher-context-picker,
  .publisher-lead-game-picker,
  .hide-pitched-toggle,
  .hide-skipped-toggle {
    width: 100%;
  }
}

/* Full-bleed marketing canvas */
.page-landing .ludi-shell-main.ludi-landing-canvas,
.page-matching .ludi-shell-main {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Photo hero - first viewport composition */
.ludi-photo-hero {
  position: relative;
  min-height: min(92vh, 44rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f7f6f3;
}
.ludi-photo-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ludi-photo-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the octopus / play area centered in the hero crop */
  object-position: 50% 42%;
  display: block;
  transform: scale(1.06);
  transform-origin: 50% 42%;
  animation: ludi-hero-ken 18s ease-out forwards;
}
@keyframes ludi-hero-ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ludi-photo-hero-media img { animation: none; transform: none; }
}
.ludi-photo-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(14, 12, 10, 0.96) 0%,
      rgba(14, 12, 10, 0.82) 34%,
      rgba(14, 12, 10, 0.55) 62%,
      rgba(14, 12, 10, 0.38) 100%
    );
}
.ludi-photo-hero-content {
  position: relative;
  z-index: 2;
}
.ludi-photo-hero .ludi-wordmark--lg {
  display: inline-flex;
  font-size: clamp(2.75rem, 9vw, 4rem);
  margin: 0 0 1rem;
  color: #fff;
}
.ludi-photo-hero .lede {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f7f6f3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.ludi-hero-byline {
  margin: -0.35rem 0 1.1rem;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e8e2d8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.ludi-hero-byline .ludi-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ludi-hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.5rem;
  max-width: 40rem;
}
.ludi-hero-proof-stat {
  font-family: var(--ludi-font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ludi-signal);
  font-variant-numeric: tabular-nums;
}
.ludi-hero-proof-stat--sm {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
}
.ludi-hero-proof-label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f0ebe3;
}
.ludi-hero-proof-sep {
  margin: 0 0.15rem;
  color: rgba(240, 235, 227, 0.55);
  font-weight: 600;
}
.ludi-photo-hero h1 {
  margin: 0 0 0.85rem;
  max-width: 30ch;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  color: #fff;
  text-wrap: pretty;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.ludi-photo-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  margin: 0;
}
.ludi-photo-hero .hero-actions .ludi-btn-primary,
.ludi-photo-hero .hero-actions .ludi-btn-secondary {
  min-height: 0;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.ludi-link-quiet {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  opacity: 1;
}
.ludi-link-quiet:hover { opacity: 0.88; }

/* Process steps (home) - alternating feature rows with UI shots */
.ludi-feature-rows {
  margin: 0 0 1.5rem;
}
.ludi-feature-rows-head {
  margin: 0 0 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ludi-ink);
}
.ludi-feature-rows-title {
  margin: 0;
  font-family: var(--ludi-font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
  line-height: 1.1;
}
.ludi-feature-rows > .ludi-section-label {
  margin: 0 0 1.75rem;
}
.ludi-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 2.75rem;
}
@media (min-width: 860px) {
  .ludi-feature-row {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.25rem;
  }
  .ludi-feature-row--flip .ludi-feature-copy { order: 2; }
  .ludi-feature-row--flip .ludi-ui-shot { order: 1; }
}
.ludi-feature-step {
  margin: 0 0 0.15rem;
  font-family: var(--ludi-font-display);
  font-size: clamp(3rem, 7vw, 4.25rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--ludi-accent);
  letter-spacing: -0.04em;
}
.ludi-feature-copy h3 {
  margin: 0 0 0.55rem;
  font-family: var(--ludi-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--ludi-ink);
}
.ludi-feature-copy > p:not(.ludi-feature-step) {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
.ludi-feature-copy > p:not(.ludi-feature-step):last-child {
  margin-bottom: 0;
}
.ludi-feature-aside {
  font-size: 0.98rem;
}
.ludi-feature-aside em {
  font-style: italic;
}
.ludi-feature-rows-cta {
  margin: 0.75rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}
.ludi-feature-rows-cta .ludi-btn-primary {
  min-height: 0;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.ludi-feature-rows-cta .ludi-link {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ludi-home-trust {
  margin: 0 0 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ludi-border);
}
.ludi-home-trust > h2 {
  margin: 0 0 1.25rem;
  font-family: var(--ludi-font-display, Fraunces, Georgia, serif);
  font-size: 1.45rem;
  color: var(--ludi-ink);
}
.ludi-home-trust-summary {
  margin: 0 0 1.25rem;
  max-width: 42rem;
}
.ludi-home-trust-summary h2 {
  margin: 0 0 0.65rem;
  font-family: var(--ludi-font-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
  color: var(--ludi-ink);
}
.ludi-home-trust-summary > p {
  margin: 0 0 0.65rem;
  color: var(--ludi-muted);
  line-height: 1.55;
}
.ludi-home-trust-summary > p:last-child {
  margin-bottom: 0;
}
.ludi-trust-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.45rem;
  margin: 1.15rem 0 0 !important;
  color: var(--ludi-ink) !important;
}
.ludi-trust-proof-stat {
  font-family: var(--ludi-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ludi-accent);
  font-variant-numeric: tabular-nums;
}
.ludi-trust-proof-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.ludi-trust-proof-sep {
  margin: 0 0.1rem;
  color: var(--ludi-muted);
  font-weight: 600;
}
.page-matching .ludi-home-trust {
  margin-top: 2.75rem;
}
.ludi-home-catalogue {
  background: #fff;
  border-top: 1px solid var(--ludi-border);
  border-bottom: 1px solid var(--ludi-border);
}
.ludi-home-catalogue-inner {
  width: 100%;
  max-width: var(--ludi-landing-max, var(--ludi-width-content));
  margin: 0 auto;
  padding: 2.75rem var(--ludi-gutter, 1rem) 3rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .ludi-home-catalogue-inner {
    grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.15fr);
    gap: 2rem 3rem;
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }
}
.ludi-home-catalogue-media {
  width: 100%;
}
.ludi-home-catalogue-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--ludi-radius);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--ludi-accent-soft) 85%, #fff) 0%,
      color-mix(in srgb, var(--ludi-border) 55%, #fff) 100%
    );
  color: var(--ludi-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ludi-home-catalogue-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--ludi-radius);
  background: #fff;
}
.ludi-home-catalogue-text {
  min-width: 0;
}
.ludi-home-catalogue h2 {
  margin: 0 0 0.85rem;
  font-family: var(--ludi-font-display, Fraunces, Georgia, serif);
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
  line-height: 1.12;
}
.ludi-home-catalogue-copy p {
  margin: 0 0 0.95rem;
  color: var(--ludi-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.ludi-home-catalogue-copy p:last-child {
  margin-bottom: 0;
}
.ludi-home-about {
  margin: 0 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ludi-border);
  max-width: 40rem;
}
.ludi-home-about h2 {
  margin: 0 0 0.75rem;
  font-family: var(--ludi-font-display, Fraunces, Georgia, serif);
  font-size: 1.45rem;
  color: var(--ludi-ink);
}
.ludi-home-about p {
  margin: 0 0 0.85rem;
  color: var(--ludi-muted);
  line-height: 1.55;
}
.ludi-home-about p:last-child {
  margin-bottom: 0;
}

/* UI screenshot mocks */
.ludi-ui-shot {
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(26, 24, 20, 0.08);
}
.ludi-ui-shot--compact {
  box-shadow: 0 8px 18px rgba(26, 24, 20, 0.06);
}
.ludi-ui-shot-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: color-mix(in srgb, var(--ludi-ink) 6%, var(--ludi-bg));
  border-bottom: 1px solid var(--ludi-border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ludi-muted);
}
.ludi-ui-shot-chrome span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ludi-border);
}
.ludi-ui-shot-chrome span:nth-child(1) { background: #d4a59a; }
.ludi-ui-shot-chrome span:nth-child(2) { background: #d4c59a; }
.ludi-ui-shot-chrome span:nth-child(3) { background: #9ab89a; }
.ludi-ui-shot-chrome em {
  margin-left: 0.45rem;
  font-style: normal;
}
.ludi-ui-shot-body {
  padding: 0.9rem 1rem 1rem;
}
.ludi-ui-shot-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.ludi-ui-shot-title-row strong {
  font-size: 1.05rem;
  color: var(--ludi-ink);
}
.ludi-ui-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 0.25rem;
  background: var(--ludi-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}
.ludi-ui-badge--soft {
  background: var(--ludi-accent-soft);
  color: var(--ludi-accent);
}
.ludi-ui-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--ludi-muted);
}
.ludi-ui-shot-profile dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.ludi-ui-shot-profile dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.ludi-ui-shot-profile dd {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--ludi-ink);
  line-height: 1.4;
}
.ludi-ui-match-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--ludi-border);
}
.ludi-ui-match-row:first-child { border-top: 0; padding-top: 0; }
.ludi-ui-match-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ludi-ink);
}
.ludi-ui-match-row span {
  font-size: 0.78rem;
  color: var(--ludi-accent);
  font-weight: 600;
}
.ludi-ui-match-row .ludi-ui-badge {
  color: #fff;
}
.ludi-ui-match-row b {
  font-family: var(--ludi-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ludi-signal);
}
.ludi-ui-shot-pitches {
  padding: 0 0 0.2rem;
  overflow-x: auto;
  background: #fff;
}
.ludi-ui-pitches-table {
  width: max-content;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.3;
}
.ludi-ui-pitches-table th,
.ludi-ui-pitches-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--ludi-border);
  color: var(--ludi-ink);
  vertical-align: middle;
}
.ludi-ui-pitches-table th:nth-child(n + 2),
.ludi-ui-pitches-table td:nth-child(n + 2) {
  white-space: nowrap;
}
.ludi-pitch-track .ludi-ui-pitches-table {
  width: 100%;
}
@media (min-width: 860px) {
  .ludi-pitch-track .ludi-ui-pitches-table {
    table-layout: fixed;
  }
  .ludi-pitch-track .ludi-ui-pitches-table th:nth-child(1),
  .ludi-pitch-track .ludi-ui-pitches-table td:nth-child(1) { width: 30%; }
  .ludi-pitch-track .ludi-ui-pitches-table th:nth-child(2),
  .ludi-pitch-track .ludi-ui-pitches-table td:nth-child(2) { width: 22%; }
  .ludi-pitch-track .ludi-ui-pitches-table th:nth-child(3),
  .ludi-pitch-track .ludi-ui-pitches-table td:nth-child(3) { width: 26%; }
  .ludi-pitch-track .ludi-ui-pitches-table th:nth-child(4),
  .ludi-pitch-track .ludi-ui-pitches-table td:nth-child(4) { width: 22%; }
}
.ludi-ui-pitches-table th {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  background: color-mix(in srgb, var(--ludi-ink) 3.5%, #fff);
}
.ludi-ui-pitches-table tbody tr:last-child td {
  border-bottom: 0;
}
.ludi-ui-pitches-table strong {
  font-size: 0.82rem;
  font-weight: 600;
}
.ludi-ui-pitches-table .ludi-ui-mat {
  width: 0.75rem;
  height: 0.75rem;
}
.ludi-ui-pitches-table .ludi-ui-progress {
  gap: 0.08rem;
  white-space: nowrap;
}
.ludi-ui-pitch-due,
.ludi-ui-pitches-table .ludi-ui-pitch-attention {
  display: block;
  width: fit-content;
  margin-top: 0.22rem;
}
.ludi-ui-pitch-due {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ludi-muted);
  line-height: 1.25;
}
.ludi-ui-pitch-attention {
  display: inline-block;
  max-width: 100%;
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, #a33 12%, #fff);
  color: #a33;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}
.ludi-ui-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
}
.ludi-ui-mat {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  background: color-mix(in srgb, var(--ludi-muted) 42%, transparent);
  -webkit-mask: var(--mat) center / contain no-repeat;
  mask: var(--mat) center / contain no-repeat;
}
.ludi-ui-mat.is-on {
  background: var(--ludi-signal);
}
.ludi-ui-mat--desc { --mat: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 4h10M3 8h10M3 12h6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/></svg>"); }
.ludi-ui-mat--sheet { --mat: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 2.5h5.2L13 5.3V13.5H5z' fill='none' stroke='%23000' stroke-width='1.4'/><path d='M10 2.5V5.5h3' fill='none' stroke='%23000' stroke-width='1.4'/></svg>"); }
.ludi-ui-mat--video { --mat: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='5.4' fill='none' stroke='%23000' stroke-width='1.4'/><path d='M6.6 5.6v4.8L11 8z' fill='%23000'/></svg>"); }
.ludi-ui-mat--rules { --mat: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 3h4.2c.9 0 1.6.7 1.6 1.6V13H5.1C4.2 13 3.5 12.3 3.5 11.4z' fill='none' stroke='%23000' stroke-width='1.4'/><path d='M9.3 3h3.2c.9 0 1.6.7 1.6 1.6V13H9.3' fill='none' stroke='%23000' stroke-width='1.4'/></svg>"); }
.ludi-ui-mat--proto { --mat: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 2.5 13.2 5.2v5.6L8 13.5 2.8 10.8V5.2z' fill='none' stroke='%23000' stroke-width='1.4'/><path d='M8 13.5V8M2.8 5.2 8 8l5.2-2.8' fill='none' stroke='%23000' stroke-width='1.4'/></svg>"); }
.ludi-ui-mat--deal { --mat: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 3h7.2L12.5 5v8H3.5z' fill='none' stroke='%23000' stroke-width='1.4'/><path d='M5.2 9.2c1.6.1 2.8 1 3.6 2.4.3-1.6 1.2-2.7 2.6-3.2' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.4'/></svg>"); }

/* Reveal motion */
.ludi-reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.ludi-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ludi-reveal { opacity: 1; transform: none; transition: none; }
}

/* Legacy hero (auth) */
.ludi-hero {
  text-align: center;
  padding: 1.5rem 0 1.75rem;
}
.ludi-hero .ludi-wordmark--lg {
  justify-content: center;
  margin-bottom: 1.25rem;
}
.ludi-hero .ludi-kicker {
  margin-bottom: 0.75rem;
}
.ludi-hero h1 {
  font-family: var(--ludi-font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 auto 1.25rem;
  max-width: 20ch;
  color: var(--ludi-ink);
  text-wrap: balance;
}
.ludi-hero .lede {
  margin: 0 auto 2rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
@media (min-width: 640px) {
  .ludi-hero .lede { font-size: 1.25rem; }
}
.ludi-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.5rem;
  gap: 1rem;
}
.ludi-hero .hero-actions .ludi-btn-primary,
.ludi-hero .hero-actions .ludi-btn-secondary {
  min-width: 0;
  min-height: 0;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}
.ludi-hero-note {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ludi-muted);
}

.ludi-pillars {
  display: none; /* retired on home; kept for safety */
}

.ludi-freshness {
  margin: 0 0 3.25rem;
}
.ludi-freshness .ludi-section-label {
  margin-bottom: 0.15rem;
}
.ludi-freshness-value {
  display: block;
  font-family: var(--ludi-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ludi-ink);
  font-variant-numeric: tabular-nums;
}
.ludi-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ludi-accent-soft);
  color: var(--ludi-accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.ludi-footer-cta {
  max-width: var(--ludi-width-chrome);
  margin: 0 auto;
  padding: 2rem var(--ludi-gutter) 1.75rem;
  text-align: center;
}
.ludi-footer-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: var(--ludi-width-chrome);
  margin: 0 auto;
  padding: 2rem var(--ludi-gutter);
}
.ludi-footer-blocks > .ludi-footer-cta,
.ludi-footer-blocks > .ludi-mailing-list {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--ludi-border);
  border-radius: 0.75rem;
  background: var(--ludi-bg);
  text-align: left;
}
.ludi-footer-blocks .ludi-footer-cta > p {
  max-width: none;
  text-align: left;
}
.ludi-footer-blocks .ludi-footer-cta-actions {
  justify-content: flex-start;
}
@media (max-width: 700px) {
  .ludi-footer-blocks {
    grid-template-columns: minmax(0, 1fr);
  }
  .ludi-footer-blocks > .ludi-footer-cta,
  .ludi-footer-blocks > .ludi-mailing-list {
    padding: 1.25rem;
  }
}
.ludi-footer-cta h2,
.ludi-mailing-list h2 {
  margin: 0 0 0.5rem;
  font-family: var(--ludi-font-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
  color: var(--ludi-ink);
}
.ludi-footer-cta > p {
  margin: 0 auto 1.1rem;
  max-width: 32rem;
  color: var(--ludi-muted);
  line-height: 1.5;
  text-align: center;
}
.ludi-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
}
.ludi-footer-cta-actions .ludi-btn-primary {
  flex: 0 0 auto;
}
.ludi-family-footer:has(.ludi-footer-cta) .ludi-family-footer-inner {
  border-top: 1px solid var(--ludi-border);
  padding-top: 1rem;
}
body.page-app .ludi-footer-cta {
  display: none;
}

.ludi-auth-page {
  max-width: 28rem;
  margin: 2.5rem auto 3rem;
  text-align: center;
}
.ludi-auth-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--ludi-font-display);
  color: var(--ludi-ink);
}
.ludi-auth-page .lede {
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}
.ludi-auth-card {
  padding: 1.5rem 1.35rem;
  text-align: left;
}
.ludi-auth-card .ludi-btn-primary {
  width: 100%;
  margin-top: 0.35rem;
}
.ludi-auth-foot {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.ludi-auth-success {
  margin: 0 0 0.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--ludi-accent);
  border-left-width: 4px;
  border-radius: var(--ludi-radius);
  background: var(--ludi-accent-soft);
  color: var(--ludi-ink);
  text-align: left;
}
.ludi-auth-success[hidden] {
  display: none;
}
.ludi-auth-success-title {
  margin: 0 0 0.4rem;
  font-family: var(--ludi-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ludi-accent);
}
.ludi-auth-success-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ludi-ink);
}
.ludi-email-typo-hint {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
}
.ludi-email-typo-hint[hidden] {
  display: none;
}
.ludi-email-typo-hint .ludi-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.ludi-related {
  margin: 0;
  padding: 0;
  max-width: none;
}
.ludi-related-strip {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
}
.ludi-related-strip .ludi-section-label {
  text-align: left;
  margin-bottom: 0.5rem;
}
.ludi-related-line {
  margin: 0 0 0.35rem;
  font-weight: 500;
  color: var(--ludi-ink);
  font-size: 1.05rem;
}
.ludi-related-strip .muted {
  margin: 0;
}

.landing-login-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}
.landing-login-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}
.landing-login-form label[hidden] {
  display: none !important;
}
.landing-login-form input,
.landing-login-form select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  font: inherit;
  background: var(--ludi-card);
  color: var(--ludi-ink);
  width: 100%;
  box-sizing: border-box;
}
.landing-login-form textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  font: inherit;
  background: var(--ludi-card);
  color: var(--ludi-ink);
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}
.landing-login-form .ludi-terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  font-weight: 500;
  line-height: 1.45;
}
.landing-login-form .ludi-terms-agree input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--ludi-accent, #2f6b4f);
}
.landing-login-form .ludi-terms-agree span {
  font-weight: 500;
}
.ludi-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ludi-mailing-list {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}
.ludi-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;
}
.ludi-mailing-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
}
.ludi-mailing-email {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ludi-border, #c9c2b6);
  border-radius: 0.4rem;
  background: var(--ludi-surface, #fff);
  color: inherit;
}
.ludi-mailing-row .ludi-btn-compact {
  flex: 0 0 auto;
  white-space: nowrap;
}
.ludi-mailing-note {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}
.ludi-mailing-status,
.ludi-mailing-error {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}
.account-mailing {
  margin-top: 1.5rem;
}
.account-mailing-toggle {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
}
/* Only the section title reads as a heading: names medium, descriptions regular. */
.account-mailing .account-subheader { margin-bottom: 0.75rem; }
.account-mailing-toggle + .account-mailing-toggle { margin-top: 0.85rem; }
.account-mailing-name { display: block; font-weight: 500; line-height: 1.5rem; color: var(--ludi-ink); }
.account-mailing-desc { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ludi-muted); margin-top: 0.1rem; }
.account-mailing-toggle input {
  /* Centred on the name's line: (1.5rem line - 1rem box) / 2. */
  width: 1rem;
  height: 1rem;
  margin: 0.25rem 0 0;
  flex: none;
}
.account-mailing-subscribed {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}
.admin-mailing-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 1rem;
}
.admin-mailing-import {
  margin-top: 1.25rem;
}
.admin-mailing-import textarea {
  width: 100%;
  min-height: 6rem;
  font: inherit;
}

/* Legacy landing helpers (unused by new shell; keep for safety) */
.landing-nav {
  display: flex;
  gap: 1.25rem;
}
.landing-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero {
  display: grid;
  gap: 2rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 3rem;
}
.lede { font-size: 1.12rem; color: var(--ludi-muted); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
}

/* Signed-in footer: edge-to-edge chrome strip */
body.page-app .app-foot.ludi-family-footer {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.page-app .app-foot .ludi-family-footer-inner {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  gap: 0.5rem 1rem;
}
body.page-app .app-foot .ludi-family-footer-products,
body.page-app .app-foot .ludi-family-footer-note {
  font-size: 0.8rem;
  line-height: 1.2;
}
body.page-app .app-foot .ludi-family-footer-note {
  display: inline;
  color: var(--ludi-muted);
}
body.page-app .app-foot .bgg-credit {
  margin: 0;
}
body.page-app .app-foot .bgg-credit img {
  height: 22px;
  width: auto;
}

@media (max-width: 720px) {
  .ludi-pillars{
    grid-template-columns: 1fr;
  }
}

.bgg-credit {
  margin: 0;
}

.bgg-credit a {
  display: inline-block;
}

.bgg-credit img {
  display: block;
  height: 24px;
  width: auto;
}

@media (max-width: 800px) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.view-lede { margin: -0.25rem 0 1rem; max-width: 42rem; }
.publisher-context-picker,
.publisher-lead-game-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.hide-pitched-toggle,
.hide-skipped-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
}
.publishers-state-panel {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  max-width: 36rem;
}
.publishers-state-panel--compact {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.65rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.35rem;
  padding: 0.4rem 0.65rem;
  max-width: none;
  border-radius: 6px;
  background: color-mix(in srgb, var(--warn, #c9a227) 12%, var(--card));
  border-color: color-mix(in srgb, var(--warn, #c9a227) 35%, var(--border));
  overflow-x: visible;
}
.publishers-state-panel--compact h2,
.publishers-state-panel--compact h3 {
  display: none;
}
.publishers-state-panel--compact #publishers-state-body {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.publishers-state-panel--compact .publishers-state-actions {
  margin-top: 0;
  flex: 0 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
}
.publishers-state-panel--compact .publishers-state-actions button {
  padding: 0.2rem 0.55rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.publishers-state-panel--compact .publishers-summary-inline {
  margin: 0 0 0 auto;
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  white-space: normal;
}
.publishers-state-panel--compact .publishers-summary-inline::before {
  content: "·";
  margin-right: 0.65rem;
  opacity: 0.55;
}
@media (min-width: 800px) {
  .publishers-state-panel--compact {
    flex-wrap: nowrap;
  }
  .publishers-state-panel--compact #publishers-state-body {
    flex: 0 1 auto;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .publishers-state-panel--compact .publishers-summary-inline {
    white-space: nowrap;
  }
}
#publishers-summary-line {
  margin: 0 0 0.35rem;
}
.publishers-state-panel h2,
.publishers-state-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
/* The term sits near the left of the lede. A centered upward bubble
   runs off the screen. Open downward, aligned to the word. */
#publishers-state-panel .ludi-term-bubble {
  left: 0;
  right: auto;
  bottom: auto;
  top: calc(100% + 0.45rem);
  transform: none;
  /* 100% would be the word width, because the term is inline. */
  width: min(18.5rem, calc(100vw - 3rem));
  z-index: var(--z-menu);
}
.publishers-state-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pitches-empty-show-slot {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-start;
}
.pitches-empty-show-slot .pitches-show-filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.pitches-empty-show-slot .pitches-show-filter select {
  font-weight: 400;
  min-width: 14rem;
}
.pitches-empty-other-shows {
  margin-top: 0.85rem;
  text-align: left;
}
.pitches-empty-other-label {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.pitches-empty-other-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.pitches-empty-other-list .linkish {
  font: inherit;
  font-size: 0.95rem;
}
.score-progress-fill.progress-indeterminate {
  animation: progress-indeterminate 1.4s ease-in-out infinite;
}
@keyframes progress-indeterminate {
  0% { margin-left: 0; width: 35%; }
  50% { margin-left: 45%; width: 45%; }
  100% { margin-left: 0; width: 35%; }
}
.detail-next-step .next-step-label {
  font-size: 1.1rem;
  font-weight: 600;
}
.next-step-cell {
  max-width: 14rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.next-step-cell a {
  word-break: break-all;
}
.pub-actions {
  white-space: nowrap;
}
.pub-actions .linkish + .linkish {
  margin-left: 0.5rem;
}
.nav-more { opacity: 0.85; font-size: 0.95rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.fit-game {
  display: inline-flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  max-width: 18rem;
  cursor: default;
}
.fit-game-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ludi-accent);
  line-height: 1.3;
}
.fit-game-score {
  font-family: var(--ludi-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ludi-signal);
  line-height: 1;
  flex-shrink: 0;
}
.fit-medal {
  display: inline-flex;
  line-height: 1;
}
.fit-medal svg { width: 0.95rem; height: 0.95rem; }
.fit-medal-gold { color: #b07d10; }
.fit-medal-silver { color: #7c8590; }
.fit-medal-bronze { color: #a3622c; }
html[data-theme="dark"] .fit-medal-gold { color: #e0b44a; }
html[data-theme="dark"] .fit-medal-silver { color: #b4bcc6; }
html[data-theme="dark"] .fit-medal-bronze { color: #d08a52; }
.pub-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.browse-pub-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.25;
}
.browse-pub-name {
  font-weight: 500;
}
.browse-pub-updated {
  font-size: 0.8rem;
}
.browse-flag-emoji {
  margin-right: 0.35rem;
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: -0.05em;
}
#browse-publishers-table td.browse-country {
  white-space: nowrap;
}
#browse-publishers-table td.browse-titles {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 800px) {
  #browse-publishers-table td.browse-titles .browse-titles-unit {
    display: none;
  }
}
.publishers-browse-toolbar {
  row-gap: 0.5rem;
}
.publishers-browse-toolbar .browse-filter-count {
  margin: 0;
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.9rem;
}
@media (min-width: 800px) {
  .publishers-browse-toolbar .browse-filter-count {
    align-self: center;
  }
}
.conf-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  /* Grey disc + coloured ring (owner, 2026-10-30). */
  --conf-fill: #c8c3b8;
  --conf-ring: #9a948a;
  --conf-mark: #2a2723;
  color: var(--conf-ring);
}
.conf-icon svg {
  display: block;
  width: 13px;
  height: 13px;
}
.conf-icon-high { --conf-ring: #2f8f5b; }
.conf-icon-medium { --conf-ring: #c9a227; }
.conf-icon-low { --conf-ring: #c44b3f; }
.conf-icon-unknown { --conf-ring: #8a8478; }
.conf-icon .conf-icon-disc {
  fill: var(--conf-fill);
  stroke: currentColor;
  stroke-width: 1.75;
}
.conf-icon .conf-icon-mark {
  stroke: var(--conf-mark);
}

.ludi-directory-intro {
  text-align: left;
  padding: 1.5rem 0 1.25rem;
}
.ludi-directory-intro h1 {
  font-family: var(--ludi-font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  max-width: 16ch;
  line-height: 1.15;
  color: var(--ludi-ink);
}
.ludi-directory-intro .lede {
  margin: 0 0 0.5rem;
  max-width: 28rem;
  color: var(--ludi-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}
.ludi-directory-lede {
  margin: 0 0 0.35rem;
  max-width: 28rem;
}
.ludi-directory-lede .lede + .lede {
  margin-top: 0.85rem;
}
.ludi-directory-browse-head {
  margin: 1.35rem 0 0.65rem;
  text-align: left;
}
.ludi-directory-intro .chooser-cards,
.page-landing .pub-stub-grid {
  margin-top: 1.35rem;
  max-width: 64rem;
}
.ludi-directory-intro .ludi-directory-browse-head + .chooser-cards {
  margin-top: 0;
}
@media (min-width: 700px) {
  .ludi-directory-intro .chooser-cards,
  .page-landing .pub-stub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.page-landing a.chooser-card {
  text-decoration: none;
  color: inherit;
}
.ludi-directory-intro .chooser-card,
.page-landing .pub-stub-grid .chooser-card,
.page-landing .pub-profile .chooser-card {
  background: var(--ludi-card);
}
.page-landing .chooser-card .pub-stub-flag {
  font-size: 1.45rem;
  line-height: 1;
  margin-right: 0.4rem;
}
.page-landing .chooser-card .pub-show-logo {
  display: block;
  max-height: 2.75rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  margin: 0 0 0.45rem;
}
.page-landing .pub-profile {
  max-width: 64rem;
  margin: 0 auto 2rem;
}
.page-landing .pub-profile-hero .pub-profile-name {
  font-family: var(--ludi-font-display);
}
.page-landing .pub-profile-title-row .pub-stub-back {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
}
.page-landing .ludi-stub-promo {
  max-width: none;
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: left;
  border: 1px solid var(--ludi-border);
  border-radius: 10px;
  background: var(--ludi-accent-soft);
  box-sizing: border-box;
}
.page-landing .pub-profile-body + .ludi-stub-promo {
  margin: 1.35rem 0 0;
}
.page-landing .ludi-stub-promo h2 {
  margin: 0 0 0.35rem;
  font-family: var(--ludi-font-display, Fraunces, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.page-landing .ludi-stub-promo > p {
  margin: 0 0 0.95rem;
  max-width: 36rem;
  color: var(--ludi-muted);
  line-height: 1.45;
  text-align: left;
  font-size: 0.95rem;
}
.page-landing .ludi-stub-disclosure {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--ludi-border);
  border-radius: 10px;
  background: var(--ludi-card, #fff);
}
.page-landing .ludi-stub-disclosure p {
  margin: 0 0 0.65rem;
  color: var(--ludi-ink);
  line-height: 1.45;
  font-size: 0.95rem;
}
.page-landing .ludi-stub-disclosure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin: 0 !important;
}
.page-landing .pub-stub-also-browse {
  margin: 1.35rem 0 0;
}
.page-landing .pub-stub-also-browse p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.page-landing .table-scroll {
  margin: 0 0 1.25rem;
}
.page-landing .table-scroll table {
  width: 100%;
}
.pub-stub-linklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.pub-stub-linklist-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ludi-border);
  border-radius: 10px;
  background: var(--ludi-card);
  color: var(--ludi-ink);
  text-decoration: none;
  font-weight: 600;
}
.pub-stub-linklist-row:hover {
  border-color: var(--ludi-accent);
  color: var(--ludi-accent);
  background: var(--ludi-accent-soft);
}
.pub-stub-linklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.pub-stub-linklist-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.pub-stub-linklist-icon .pub-link-icon-img {
  width: 1.25rem;
  height: 1.25rem;
}
.page-directory .ludi-directory-teaser {
  margin-top: 0.5rem;
}
.ludi-directory-count {
  margin: 0;
  min-height: 0;
}
.ludi-directory-proof {
  text-align: left;
  margin: 1.35rem 0 0;
  background: transparent;
  color: var(--ludi-ink);
  border: none;
  border-radius: 0;
  padding: 0;
}
.ludi-directory-intro .ludi-directory-proof + .ludi-directory-browse-head {
  margin-top: 1.5rem;
}
.ludi-directory-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
}
.ludi-directory-proof-grid > div {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.ludi-directory-proof .ludi-matching-stat {
  color: var(--ludi-accent);
  font-family: var(--ludi-font-display);
  font-weight: 600;
}
.ludi-directory-proof-grid .ludi-matching-stat-label {
  margin: 0.4rem 0 0 !important;
  color: var(--ludi-muted) !important;
}
@media (min-width: 640px) {
  .ludi-directory-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .ludi-directory-proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ludi-directory-distinguish {
  margin: 0;
  max-width: none;
  color: var(--ludi-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}
.ludi-directory-lock {
  position: relative;
  max-height: 38rem;
  overflow: hidden;
  user-select: none;
}
.ludi-directory-table-wrap {
  pointer-events: none;
  overflow: hidden;
  max-height: 38rem;
}
.ludi-directory-lock table {
  width: 100%;
}
.ludi-directory-lock .field-gated--inline {
  margin: 0;
  gap: 0;
}
.ludi-directory-lock .field-blur {
  display: inline-block;
  max-width: 8.5rem;
}
.ludi-directory-row-locked td {
  filter: blur(5px);
  opacity: 0.55;
}
.ludi-directory-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4.5rem 1.25rem 1.5rem;
  background: linear-gradient(to bottom, transparent, var(--ludi-bg) 42%);
  text-align: center;
  pointer-events: auto;
}
.nav-new-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.35rem;
  border-radius: 50%;
  /* Ludipitch orange (the "pitch" in the wordmark): new, not an error. */
  background: var(--ludi-signal);
  vertical-align: middle;
}
.nav-new-dot--menu {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin-left: 0;
}
.ludi-nav-toggle {
  position: relative;
}
.ludi-sample-match-teaser {
  position: relative;
  margin-top: 0.75rem;
}
.ludi-sample-match-lock {
  max-height: 14rem;
}
.sample-match-cta p {
  margin: 0 0 0.75rem;
}
.sample-match-weak {
  margin: 0 0 0.75rem;
}
.ludi-directory-cta p {
  margin: 0 0 1rem;
  color: var(--ludi-ink);
  font-weight: 500;
}
.ludi-directory-cta .hero-actions {
  justify-content: center;
  align-items: center;
}
.ludi-directory-cta .ludi-link {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ludi-directory-inside {
  margin: 2.75rem 0 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--ludi-border);
}
.ludi-directory-inside .ludi-section-label {
  margin-bottom: 1.5rem;
}
.ludi-directory-inside-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: none;
  margin: 0;
}
@media (min-width: 700px) {
  .ludi-directory-inside-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }
  .ludi-directory-inside-grid article {
    padding: 0 1.25rem;
  }
  .ludi-directory-inside-grid article:nth-child(odd) {
    padding-left: 0;
  }
  .ludi-directory-inside-grid article:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid var(--ludi-border);
  }
}
@media (min-width: 980px) {
  .ludi-directory-inside-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .ludi-directory-inside-grid article {
    padding: 0 1.25rem;
    border-left: 1px solid var(--ludi-border);
  }
  .ludi-directory-inside-grid article:nth-child(odd),
  .ludi-directory-inside-grid article:nth-child(even) {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .ludi-directory-inside-grid article:first-child {
    padding-left: 0;
    border-left: none;
  }
  .ludi-directory-inside-grid article:last-child {
    padding-right: 0;
  }
}
.ludi-directory-inside-grid h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ludi-ink);
}
.ludi-directory-inside-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ludi-muted);
}

.ludi-article {
  max-width: 40rem;
  margin: 0 auto 4rem;
  text-align: left;
}
.ludi-article .ludi-kicker {
  margin-bottom: 0.75rem;
}
.ludi-article h1 {
  font-family: var(--ludi-font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--ludi-ink);
}
.ludi-article .lede {
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 0 0 2rem;
  color: var(--ludi-muted);
}
.ludi-article h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
  color: var(--ludi-ink);
}
.ludi-article p,
.ludi-article li {
  color: var(--ludi-muted);
  line-height: 1.55;
}
.ludi-article ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.ludi-article li {
  margin: 0.35rem 0;
}
.ludi-article a {
  color: var(--ludi-accent, var(--ink));
}
.ludi-article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.ludi-matching-hero {
  text-align: left;
  padding: 1.25rem 0 1.5rem;
}
.ludi-matching-hero h1 {
  font-family: var(--ludi-font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  max-width: none;
  color: var(--ludi-ink);
}
.ludi-matching-hero .lede {
  margin: 0.85rem 0 0;
  max-width: none;
  color: var(--ludi-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}
@media (min-width: 800px) {
  .ludi-matching-hero .lede {
    white-space: nowrap;
  }
}

/* Two sources → matching → matches */
.ludi-confluence {
  margin: 0 0 2rem;
}
.ludi-confluence-sources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .ludi-confluence-sources {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.75rem;
    align-items: stretch;
  }
  .ludi-confluence-sources > .ludi-mini-profile {
    height: 100%;
  }
}
.ludi-confluence-source-copy {
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--ludi-accent);
}
.ludi-confluence-source-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--ludi-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.ludi-confluence-source-copy > p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
.ludi-mini-profile {
  padding: 0.9rem 1rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: #fff;
  box-sizing: border-box;
}
.ludi-mini-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.ludi-mini-profile-head strong {
  font-size: 1.05rem;
  color: var(--ludi-ink);
}
.ludi-mini-profile-line {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ludi-ink);
  line-height: 1.4;
}
.ludi-mini-profile-line span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
  margin-bottom: 0.1rem;
}
.ludi-mini-profile-stat {
  margin: 0;
  font-family: var(--ludi-font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ludi-signal);
  font-variant-numeric: tabular-nums;
}
.ludi-mini-directory {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}
.ludi-mini-directory .ludi-mini-profile-head {
  margin-bottom: 0;
}
.ludi-mini-directory-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem 1rem;
  width: 100%;
  align-items: end;
}
.ludi-mini-directory-col {
  min-width: 0;
}
.ludi-mini-directory-col + .ludi-mini-directory-col {
  padding-left: 1rem;
  border-left: 1px solid var(--ludi-border);
}
.ludi-mini-directory .ludi-mini-profile-stat {
  font-size: clamp(2.5rem, 5.5vw, 3.25rem);
}
.ludi-mini-profile-stat--ink {
  color: var(--ludi-ink);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem) !important;
}
.ludi-mini-directory .ludi-directory-counter-label {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.ludi-directory-counter {
  padding: 1rem 0 0.15rem;
}
.ludi-directory-counter-stat {
  margin: 0;
  font-family: var(--ludi-font-display);
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ludi-signal);
  font-variant-numeric: tabular-nums;
}
.ludi-directory-counter-label {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.ludi-confluence-def {
  margin: 0;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
.ludi-confluence-def p {
  margin: 0 0 0.85rem;
}
.ludi-confluence-def p:last-child {
  margin-bottom: 0;
}
.ludi-ludiscore-band {
  background: #fff;
  border-top: 1px solid var(--ludi-border);
  border-bottom: 1px solid var(--ludi-border);
  margin: 0.5rem 0 0;
}
.ludi-ludiscore-band-inner {
  width: 100%;
  max-width: var(--ludi-landing-max, var(--ludi-width-content));
  margin: 0 auto;
  padding: 2.5rem var(--ludi-gutter, 1rem) 2.75rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .ludi-ludiscore-band-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.95fr);
    gap: 2rem 3rem;
    padding-top: 3rem;
    padding-bottom: 3.25rem;
  }
}
.ludi-ludiscore-band-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--ludi-font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: var(--ludi-ink);
}
.ludi-ludiscore-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin: 1.35rem 0 0;
}
.ludi-ludiscore-band-actions .ludi-btn-primary {
  min-height: 0;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.ludi-ludiscore-band-actions .ludi-link {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ludi-ludiscore-band-media .ludi-ui-shot {
  max-width: 36rem;
  margin: 0;
}

.ludi-pitch-track {
  margin: 0 0 2.75rem;
  padding: 2rem 1.25rem;
  border-top: none;
  background: color-mix(in srgb, var(--ludi-accent) 8%, var(--ludi-bg));
  border-radius: var(--ludi-radius);
}
.ludi-pitch-track .ludi-section-label {
  margin-bottom: 1rem;
  text-align: left;
}
.ludi-pitch-track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .ludi-pitch-track-grid {
    grid-template-columns: 0.7fr 1.5fr;
    gap: 1.75rem;
  }
}
.ludi-pitch-track-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--ludi-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ludi-ink);
}
.ludi-pitch-track-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
.ludi-pitch-track-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ludi-pitch-track-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.3rem 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ludi-muted);
}
.ludi-pitch-track-list li::before {
  content: "";
  flex: 0 0 0.35rem;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.52em;
  border-radius: 50%;
  background: var(--ludi-accent);
}
.ludi-pitch-track-shots {
  min-width: 0;
}
.ludi-matching-stat {
  margin: 0;
  font-family: var(--ludi-font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ludi-accent);
}
.ludi-matching-stat-label {
  margin: 0.35rem 0 0 !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}

.ludi-matching-value {
  margin: 0 0 2.75rem;
  padding-top: 0.5rem;
}
.ludi-matching-value .ludi-section-label {
  margin-bottom: 1.25rem;
  text-align: left;
}
.ludi-matching-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .ludi-matching-value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }
  .ludi-matching-value-grid article {
    padding: 0 1.1rem;
  }
  .ludi-matching-value-grid article:nth-child(odd) {
    padding-left: 0;
  }
  .ludi-matching-value-grid article:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid var(--ludi-border);
  }
}
@media (min-width: 1100px) {
  .ludi-matching-value-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .ludi-matching-value-grid article {
    padding: 0 1rem;
    border-left: 1px solid var(--ludi-border);
  }
  .ludi-matching-value-grid article:nth-child(odd),
  .ludi-matching-value-grid article:nth-child(even) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .ludi-matching-value-grid article:first-child {
    padding-left: 0;
    border-left: none;
  }
  .ludi-matching-value-grid article:last-child {
    padding-right: 0;
  }
}
.ludi-matching-value-grid h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ludi-ink);
}
.ludi-matching-value-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ludi-muted);
  line-height: 1.45;
}
.ludi-matching-intel {
  margin-top: 1.75rem;
}
.ludi-matching-intel .ludi-ui-shot {
  max-width: 56rem;
  margin-inline: auto;
}
.ludi-ui-shot-intel {
  display: grid;
  gap: 0.85rem;
  background: color-mix(in srgb, var(--ludi-ink) 2.5%, #fff);
}
.ludi-ui-intel-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ludi-border);
  border-left: 3px solid var(--ludi-accent);
  border-radius: 0.4rem;
  background: #fff;
}
.ludi-ui-intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.ludi-ui-intel-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.ludi-ui-intel-head strong {
  font-size: 0.98rem;
  color: var(--ludi-ink);
}
.ludi-ui-intel-head b {
  font-family: var(--ludi-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ludi-signal);
}
.ludi-ui-intel-angle {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ludi-ink);
}
.ludi-ui-intel-risk {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #a33;
}
.ludi-ui-intel-meta {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.ludi-evidence-callout {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--ludi-border);
  border-left: 3px solid var(--ludi-accent);
  background: color-mix(in srgb, var(--ludi-accent-soft) 55%, var(--ludi-card));
  border-radius: var(--ludi-radius);
}
.ludi-evidence-callout h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ludi-ink);
}
.ludi-evidence-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ludi-muted);
  line-height: 1.5;
  max-width: 48rem;
}

.ludi-directory-byline {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.95rem;
  color: var(--ludi-muted);
}
.ludi-directory-sample-note {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--ludi-muted);
}

.ludi-about-top {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  align-items: start;
}
.ludi-about-top > h1 {
  margin: 0;
}
@media (min-width: 720px) {
  .ludi-about-top {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 20.5rem);
    gap: 0.75rem 2rem;
    align-items: start;
  }
  .ludi-about-top > h1 {
    grid-column: 1 / -1;
    margin: 0 0 0.15rem;
  }
}
.ludi-about-top-copy .lede {
  margin: 0 0 0.85rem;
}
.ludi-about-top-copy p {
  margin: 0 0 0.85rem;
  color: var(--ludi-muted);
  line-height: 1.55;
  max-width: 36rem;
}
.ludi-about-top-copy .lede {
  color: var(--ludi-ink);
  font-size: 1.1rem;
}
.ludi-about-top-copy h2 {
  margin: 1.25rem 0 0.65rem;
  font-family: var(--ludi-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
}
.ludi-about-portrait {
  margin: 0;
  justify-self: start;
}
@media (min-width: 720px) {
  .ludi-about-portrait {
    justify-self: end;
  }
}
.ludi-about-portrait img {
  display: block;
  width: 100%;
  max-width: 18.25rem;
  height: auto;
  aspect-ratio: 1;
}
.ludi-about-portrait figcaption {
  margin: 0.65rem 0 0;
  max-width: 18.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ludi-muted);
  text-align: center;
}
.ludi-about-contact {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ludi-border);
}
.ludi-about-contact h2 {
  margin: 0 0 0.75rem;
  font-family: var(--ludi-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
}
.ludi-about-contact p {
  margin: 0 0 0.45rem;
  color: var(--ludi-muted);
  line-height: 1.5;
}
.ludi-about-block {
  margin: 0 0 2rem;
  max-width: 40rem;
}
.ludi-about-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--ludi-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
}
.ludi-about-block p {
  margin: 0 0 0.85rem;
  color: var(--ludi-muted);
  line-height: 1.55;
}
.ludi-about-block p.muted {
  font-size: 0.95rem;
}

.madlib-weight-choices {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.madlib-weight-options {
  display: grid;
  gap: 0.4rem;
}
.madlib-weight-choice {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg, #fff);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.madlib-weight-choice.is-on {
  border-color: var(--ludi-accent, #2a6);
  background: color-mix(in srgb, var(--ludi-accent, #2a6) 14%, transparent);
}
.madlib-weight-choice-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.madlib-weight-choice-def {
  font-size: 0.9rem;
  line-height: 1.4;
}
.madlib-comp-weights {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
}
.madlib-weight-chip .madlib-weight-num {
  font-weight: 700;
}
.import-review-weight {
  display: grid;
  gap: 0.35rem;
}
.madlib-inferred-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--ludi-border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ludi-muted);
}
.madlib-footprint-warn:not(.hidden) {
  color: var(--ludi-ink);
}
.madlib-weight-inferred {
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--ludi-border);
}

.ludi-faq {
  max-width: none;
  margin: 0 0 2.5rem;
}
.ludi-faq-item {
  border-bottom: 1px solid var(--ludi-border);
}
.ludi-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ludi-ink);
  padding: 0.9rem 1.5rem 0.9rem 0;
  position: relative;
}
.ludi-faq-item summary::-webkit-details-marker {
  display: none;
}
.ludi-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.9rem;
  color: var(--ludi-accent);
  font-weight: 700;
  line-height: 1;
}
.ludi-faq-item[open] summary::after {
  content: "–";
}
.ludi-faq-item p {
  margin: 0 0 1rem;
  color: var(--ludi-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ludi-term {
  position: relative;
  display: inline;
  white-space: nowrap;
  cursor: help;
  border-bottom: 1px dotted color-mix(in srgb, var(--ludi-muted, var(--muted)) 70%, transparent);
}
.ludi-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ludi-muted, var(--muted)) 55%, transparent);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ludi-muted, var(--muted));
  vertical-align: 0.05em;
  cursor: help;
}
.ludi-term-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: var(--z-menu);
  width: min(18.5rem, 70vw);
  padding: 0.65rem 0.75rem;
  border-radius: var(--ludi-radius, 0.4rem);
  border: 1px solid var(--ludi-border, var(--border));
  background: var(--ludi-card, var(--card));
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.12);
  color: var(--ludi-muted, var(--muted));
  font-family: var(--ludi-font, inherit);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  white-space: normal;
  transform: translateX(-50%);
  pointer-events: none;
}
.ludi-term-bubble[hidden] {
  display: none;
}
.nowrap {
  white-space: nowrap;
}

/* Consent banner - public pages only */
.ludi-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-header);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem var(--ludi-gutter, 1rem) calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: var(--ludi-card);
  border-top: 1px solid var(--ludi-border);
  box-shadow: 0 -6px 20px rgba(26, 24, 20, 0.08);
  box-sizing: border-box;
}
.ludi-consent-banner[hidden] {
  display: none !important;
}
.ludi-consent-banner > p {
  margin: 0;
  flex: 1 1 14rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ludi-ink);
}
.ludi-consent-banner > p a {
  color: var(--ludi-accent);
  text-decoration: underline;
}
.ludi-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex: 0 0 auto;
}
@media (max-width: 799px) {
  .ludi-consent-banner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    padding: 0.45rem var(--ludi-gutter, 1rem) calc(0.45rem + env(safe-area-inset-bottom, 0px));
    max-height: 5.25rem;
  }
  .ludi-consent-banner > p {
    flex: 1 1 100%;
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .ludi-consent-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    margin-left: auto;
  }
  .ludi-consent-actions .ludi-btn-primary,
  .ludi-consent-actions .ludi-nav-link {
    flex: 0 0 auto;
    min-height: 1.9rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
  }
}


/* What's in Pro (/pro) */
.ludi-pro-hero {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 0 0;
  text-align: left;
}
.ludi-pro-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--ludi-font-display);
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
}
.ludi-pro-hero .lede {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
.ludi-pro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  margin: 0;
}
.ludi-pro-problem {
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}
.ludi-pro-problem h2 {
  margin: 0 0 0.65rem;
  font-family: var(--ludi-font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
}
.ludi-pro-problem p {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
.ludi-pro-problem-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--ludi-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.ludi-pro-problem-list li + li {
  margin-top: 0.45rem;
}
.ludi-pro-feature {
  display: grid;
  gap: 1.35rem;
  align-items: center;
  margin: 0 0 2.75rem;
}
.ludi-pro-feature--centrepiece {
  margin: 0 0 3.25rem;
  padding: 1.5rem 1.15rem;
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-c-pitch) 8%, var(--ludi-bg));
  border: 1px solid color-mix(in srgb, var(--ludi-c-pitch) 22%, var(--ludi-border));
}
.ludi-pro-feature--centrepiece .ludi-pro-feature-copy h2 {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
}
.ludi-pro-feature--centrepiece .ludi-pro-feature-media .ludi-ui-shot {
  max-width: 38rem;
}
.ludi-pro-shot-caption {
  margin: 1.5rem 0 0 !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ludi-muted);
}
.ludi-pro-feature-copy h2 {
  margin: 0 0 0.55rem;
  font-family: var(--ludi-font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ludi-ink);
}
.ludi-pro-feature-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ludi-muted);
}
.ludi-pro-feature-copy p + p {
  margin-top: 0.85rem;
}
.ludi-pro-feature-points {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.ludi-pro-feature-points li {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ludi-muted);
}
.ludi-pro-feature-points strong {
  color: var(--ludi-ink);
  font-weight: 700;
}
.ludi-pro-feature--convention {
  margin: 0 0 3rem;
  padding: 1.35rem 1.1rem;
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-accent) 6%, var(--ludi-bg));
  border: 1px solid color-mix(in srgb, var(--ludi-accent) 18%, var(--ludi-border));
}
.ludi-ui-shot-visits {
  display: grid;
  gap: 0;
}
.ludi-ui-visit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0;
  border-top: 1px solid var(--ludi-border);
}
.ludi-ui-visit-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.ludi-ui-visit-check {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  border-radius: 0.25rem;
  border: 1.5px solid color-mix(in srgb, var(--ludi-accent) 45%, var(--ludi-border));
  background: var(--ludi-card);
  font-size: 0.72rem;
  line-height: 1;
  color: transparent;
}
.ludi-ui-visit-row.is-done .ludi-ui-visit-check {
  border-color: var(--ludi-accent);
  background: var(--ludi-accent);
  color: #fff;
  font-weight: 700;
}
.ludi-ui-visit-row.is-done strong {
  color: var(--ludi-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.ludi-ui-visit-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ludi-ink);
}
.ludi-ui-visit-row span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--ludi-muted);
}
.ludi-ui-visit-foot {
  margin: 0.85rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ludi-border);
}
.ludi-pro-feature-media .ludi-ui-shot {
  margin: 0;
  max-width: 34rem;
}
@media (min-width: 860px) {
  .ludi-pro-feature--convention {
    padding: 1.65rem 1.5rem;
  }
}
@media (min-width: 860px) {
  .ludi-pro-feature {
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
  }
  .ludi-pro-feature--centrepiece {
    padding: 1.85rem 1.75rem;
    grid-template-columns: 1fr 1.25fr;
  }
  .ludi-pro-feature--flip .ludi-pro-feature-copy { order: 2; }
  .ludi-pro-feature--flip .ludi-pro-feature-media { order: 1; }
}
.ludi-ui-shot-share .ludi-ui-share-assets {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.ludi-ui-shot-share .ludi-ui-share-assets li {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--ludi-border);
  border-radius: 6px;
  background: var(--ludi-card);
  font-size: 0.9rem;
  color: var(--ludi-ink);
}
.ludi-pro-gravy {
  margin: 0 0 2.75rem;
  padding: 1.75rem 1.25rem;
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-c-pitch) 7%, var(--ludi-bg));
  border: 1px solid color-mix(in srgb, var(--ludi-c-pitch) 18%, var(--ludi-border));
}
.ludi-pro-gravy-intro {
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.ludi-pro-gravy-intro h2 {
  margin: 0 0 0.4rem;
  font-family: var(--ludi-font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.ludi-pro-gravy-intro p {
  margin: 0;
  color: var(--ludi-muted);
  line-height: 1.5;
}
.ludi-pro-gravy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .ludi-pro-gravy-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.ludi-pro-gravy-grid article {
  padding: 0.85rem 0.95rem;
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.ludi-pro-gravy-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ludi-ink);
}
.ludi-pro-gravy-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ludi-muted);
}
.ludi-credit-cost-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
}
.ludi-credit-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.ludi-credit-cost-table th,
.ludi-credit-cost-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--ludi-border);
  text-align: left;
  vertical-align: top;
}
.ludi-credit-cost-table thead th {
  font-family: var(--ludi-font-display);
  font-weight: 600;
  color: var(--ludi-ink);
}
.ludi-credit-cost-table tbody th {
  font-weight: 600;
  color: var(--ludi-ink);
  width: 48%;
}
.ludi-credit-cost-table tbody td {
  color: var(--ludi-muted);
}
/* Public pricing comparison */
.ludi-pricing-hero {
  text-align: left;
  padding: 1.5rem 0 1.5rem;
  margin: 0 0 0.5rem;
  max-width: none;
}
.ludi-pricing-hero h1 {
  font-family: var(--ludi-font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ludi-ink);
}
.ludi-pricing-hero .lede {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ludi-muted);
}
.ludi-pricing-plans {
  margin: 0 0 2.5rem;
}
.ludi-pricing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.ludi-pricing-credit-link {
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 1rem;
  text-align: center;
}
.ludi-pricing-pro-learn {
  color: var(--ludi-c-pitch);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ludi-pricing-pro-learn:hover,
.ludi-pricing-pro-learn:focus-visible {
  color: color-mix(in srgb, var(--ludi-c-pitch) 78%, var(--ludi-ink));
  outline: none;
}
.ludi-pricing-credit-inline {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ludi-c-pitch);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.ludi-pricing-credit-inline:hover,
.ludi-pricing-credit-inline:focus-visible {
  color: color-mix(in srgb, var(--ludi-c-pitch) 78%, var(--ludi-ink));
  outline: none;
}
.ludi-pricing-after-table {
  margin: 1.15rem 0 0;
  display: flex;
  justify-content: center;
}
.ludi-pricing-credit-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ludi-c-pitch);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  color: var(--ludi-c-pitch);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ludi-pricing-credit-open:hover,
.ludi-pricing-credit-open:focus-visible {
  background: color-mix(in srgb, var(--ludi-c-pitch) 10%, var(--ludi-card));
  border-color: var(--ludi-c-pitch);
  color: var(--ludi-c-pitch);
  outline: none;
}
.ludi-pricing-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  padding: 1.25rem 1.25rem 1rem;
  color: var(--ludi-ink);
}
.ludi-pricing-plan-best {
  border-color: var(--ludi-accent);
}
.ludi-pricing-plan h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.35rem;
  row-gap: 0.35rem;
}
.ludi-pricing-plan p {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}
.ludi-pricing-price {
  color: var(--ludi-muted);
}
.ludi-pricing-amount {
  font-family: var(--ludi-font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ludi-ink);
}
.ludi-pricing-billing {
  font-size: 0.9rem;
  color: var(--ludi-muted);
}
.ludi-pricing-tag {
  margin-left: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ludi-accent);
  white-space: nowrap;
}
.ludi-pricing-coming-soon {
  margin-left: 0;
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--ludi-border);
  background: color-mix(in srgb, var(--ludi-muted) 12%, var(--ludi-card));
  color: var(--ludi-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}
.ludi-pricing-plan .ludi-pricing-plan-cta {
  margin-top: auto;
  padding-top: 1rem;
}
.ludi-pro-hero-note {
  margin: 0 0 0.85rem;
  color: var(--ludi-muted);
  font-size: 1rem;
  line-height: 1.45;
}
.pro-sheet-coming-soon {
  margin: 0 0 0.75rem;
}
.ludi-pricing-details {
  margin: 0 0 3rem;
  max-width: none;
  color: var(--ludi-muted);
}
.ludi-pricing-details h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ludi-ink);
}
.ludi-pricing-details ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}
.ludi-pricing-compare {
  max-width: 52rem;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
/* Floating credit card under the sticky nav (same notice look as the old bottom dock). */
.ludi-credit-dock {
  --ludi-credit-dock-top: 4.25rem;
  position: fixed;
  left: 50%;
  top: calc(var(--ludi-credit-dock-top) + 0.75rem);
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(28rem, calc(100vw - 1.5rem));
  margin: 0;
  padding: 0;
  background: color-mix(in srgb, var(--ludi-c-pitch) 22%, var(--ludi-card));
  border: 1px solid color-mix(in srgb, var(--ludi-c-pitch) 35%, var(--ludi-border));
  border-left: 5px solid var(--ludi-c-pitch);
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(26, 24, 20, 0.1);
  box-sizing: border-box;
  overflow: hidden;
  transform: translate(-50%, calc(-100% - 1.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.ludi-credit-dock[data-visible="true"] {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .ludi-credit-dock {
    transition: none;
  }
}
.ludi-credit-dock-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ludi-ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.ludi-credit-dock-toggle:hover,
.ludi-credit-dock-toggle:focus-visible {
  background: color-mix(in srgb, var(--ludi-c-pitch) 12%, transparent);
  outline: none;
}
.ludi-credit-dock-chevron {
  position: relative;
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ludi-c-pitch);
  border-bottom: 2px solid var(--ludi-c-pitch);
  /* Closed: point down (panel opens below). Open: X to close. */
  transform: rotate(45deg);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ludi-credit-dock[data-open="true"] .ludi-credit-dock-chevron {
  width: 0.85rem;
  height: 0.85rem;
  border-color: transparent;
  transform: none;
}
.ludi-credit-dock[data-open="true"] .ludi-credit-dock-chevron::before,
.ludi-credit-dock[data-open="true"] .ludi-credit-dock-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85rem;
  height: 2px;
  margin: -1px 0 0 -0.425rem;
  background: var(--ludi-c-pitch);
  border-radius: 1px;
}
.ludi-credit-dock[data-open="true"] .ludi-credit-dock-chevron::before {
  transform: rotate(45deg);
}
.ludi-credit-dock[data-open="true"] .ludi-credit-dock-chevron::after {
  transform: rotate(-45deg);
}
.ludi-credit-dock-panel {
  width: 100%;
  margin: 0;
  padding: 0.15rem 1rem 0.85rem;
  border: 0;
  border-top: 1px solid var(--ludi-border);
  background: var(--ludi-card);
  box-sizing: border-box;
}
.ludi-credit-dock-panel[hidden] {
  display: none !important;
}
.ludi-credit-dock-panel p,
.ludi-credit-dock-panel li {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ludi-ink);
}
.ludi-credit-dock-panel p {
  margin-top: 0.75rem;
}
.ludi-credit-dock-panel p + ul,
.ludi-credit-dock-panel ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}
.ludi-credit-dock-panel li + li {
  margin-top: 0.3rem;
}
.ludi-credit-dock-pro {
  margin: 0.75rem 0 0;
}
.ludi-credit-dock-pro a {
  color: var(--ludi-c-pitch);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ludi-credit-dock-pro a:hover,
.ludi-credit-dock-pro a:focus-visible {
  color: color-mix(in srgb, var(--ludi-c-pitch) 78%, var(--ludi-ink));
  outline: none;
}
@media (max-width: 799px) {
  .ludi-credit-dock-toggle {
    min-height: 2.75rem;
    font-size: 0.9rem;
  }
}
.ludi-pricing-plan-bullets {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ludi-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.ludi-pricing-plan-bullets a {
  color: var(--ludi-c-pitch);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ludi-pricing-plan-bullets li + li {
  margin-top: 0.35rem;
}
.ludi-pricing-topup {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--ludi-muted);
  font-size: 0.95rem;
}
.ludi-pricing-benefits {
  margin: 0 0 2.5rem;
}
.ludi-pricing-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) {
  .ludi-pricing-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ludi-pricing-benefits-grid article {
  padding: 1rem 1.05rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
}
.ludi-pricing-benefits-grid .ludi-icon-tile {
  margin-bottom: 0.75rem;
}
.ludi-pricing-benefits-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ludi-ink);
}
.ludi-pricing-benefits-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ludi-muted);
}
.ludi-pricing-table-wrap {
  max-width: 46rem;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--ludi-border);
  border-bottom: 1px solid var(--ludi-border);
  background:
    linear-gradient(180deg, rgba(47, 74, 60, 0.04), transparent 7rem),
    var(--ludi-bg);
}
.ludi-pricing-table {
  width: 100%;
  min-width: 22rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  /* Keep tip bubbles from clipping against thead / wrap edges */
  overflow: visible;
}
.ludi-pricing-table th,
.ludi-pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ludi-border);
}
.ludi-pricing-table thead th {
  font-family: var(--ludi-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ludi-ink);
  background: transparent;
  border-bottom: 1px solid var(--ludi-border);
}
.ludi-pricing-table thead th:not(.ludi-pricing-feature-col),
.ludi-pricing-table tbody td {
  text-align: center;
  width: 5.5rem;
}
.ludi-pricing-feature-col {
  width: auto;
  text-align: left;
}
.ludi-pricing-table tbody th {
  font-weight: 500;
  color: var(--ludi-ink);
  font-size: 0.95rem;
}
.ludi-pricing-table tbody tr.ludi-pricing-group th {
  font-family: var(--ludi-font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: middle;
  line-height: 1.2;
  color: var(--ludi-accent-fg);
  background: var(--ludi-accent);
  border-bottom-color: var(--ludi-accent);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.ludi-pricing-table tbody tr:last-child th,
.ludi-pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.ludi-plan-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ludi-accent);
}
.ludi-plan-check--off {
  color: var(--ludi-border);
  opacity: 0.85;
}
.ludi-pricing-note {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 39.999rem) {
  .ludi-pricing-table {
    min-width: 0;
  }
  .ludi-pricing-table th,
  .ludi-pricing-table td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .ludi-pricing-table thead th:not(.ludi-pricing-feature-col),
  .ludi-pricing-table tbody td {
    width: 4rem;
  }
}
@media (min-width: 40rem) {
  .ludi-pricing-table thead th:not(.ludi-pricing-feature-col),
  .ludi-pricing-table tbody td {
    width: 7rem;
  }
}

.ludi-pricing-table tbody th .ludi-term {
  white-space: nowrap;
  margin-left: 0.35rem;
  border-bottom: none;
  vertical-align: 0.05em;
}
.ludi-pricing-table .ludi-term-bubble {
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 0.4rem);
  transform: none;
  width: min(22rem, 78vw);
  z-index: var(--z-menu);
}
/* Early rows open downward so tips clear the table header / wrap edge */
.ludi-pricing-table tbody tr.ludi-pricing-tip-down .ludi-term-bubble {
  top: calc(100% + 0.4rem);
  bottom: auto;
}
.ludi-pricing-paid-struck {
  text-decoration: line-through;
  color: var(--ludi-muted);
  font-weight: 500;
}

/* Soft copy/select guard for directory & publisher listing surfaces */
.ludi-protect-content,
[data-ludi-protect] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.ludi-protect-content input,
.ludi-protect-content textarea,
.ludi-protect-content select,
.ludi-protect-content button,
[data-ludi-protect] input,
[data-ludi-protect] textarea,
[data-ludi-protect] select,
[data-ludi-protect] button {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
.ludi-protect-content [data-ludi-select],
[data-ludi-protect] [data-ludi-select] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  cursor: text;
}

.announcement-dialog {
  border: 1px solid var(--ludi-border, #cfc6b8);
  border-radius: 12px;
  padding: 0;
  width: min(36rem, calc(100vw - 2rem));
  max-width: min(36rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 2rem));
  color: inherit;
  background: var(--ludi-bg, #fff);
  box-shadow: 0 18px 40px rgba(42, 33, 24, 0.28);
}
.announcement-dialog::backdrop {
  background: rgba(42, 33, 24, 0.45);
}
.announcement-frame {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: min(34rem, calc(100vh - 2rem));
  padding: 1.15rem 1.4rem 1.15rem;
}
.announcement-chrome {
  display: grid;
  flex: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.announcement-skip {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ludi-muted, #6d645b);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}
.announcement-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-height: 0.55rem;
}
.announcement-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ludi-border, #cfc6b8);
}
.announcement-dot.is-current {
  background: var(--ludi-ink, #2a2118);
}
.announcement-nav {
  justify-self: end;
  display: flex;
  gap: 0.4rem;
}
.announcement-nav .btn-ghost,
.announcement-nav .btn-primary {
  min-height: 2.125rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}
.announcement-nav .btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.announcement-nav .btn-primary {
  min-width: 4.75rem;
}
.announcement-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.announcement-frame h2 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  line-height: 1.25;
}
.announcement-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}
.announcement-image {
  display: block;
  width: 100%;
  max-height: 16rem;
  margin: 0.2rem 0 0.9rem;
  object-fit: contain;
  border-radius: 8px;
  background: var(--ludi-card, #f6f1ea);
}
.announcement-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.announcement-archive {
  margin-top: 1.5rem;
}
.announcement-archive summary {
  cursor: pointer;
  font-weight: 600;
}
.announcement-archive .table-scroll {
  margin-top: 0.75rem;
}
.admin-activity-profiles {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.admin-activity-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.admin-activity-metric svg {
  display: block;
  flex: none;
}
.admin-activity-metric-sep {
  color: var(--ludi-muted);
}
.announcement-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  white-space: nowrap;
}
.announcement-recent-preview {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: color-mix(in srgb, var(--ludi-ink) 3%, var(--ludi-card));
}
.announcement-recent-preview.hidden,
.announcement-recent-preview[hidden] {
  display: none;
}
.announcement-recent-lists {
  display: grid;
  gap: 0.85rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.announcement-recent-lists ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  max-height: 14rem;
  overflow: auto;
}
.announcement-editor {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin-top: 1.5rem;
}
.announcement-editor label,
.announcement-slide-edit label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}
.announcement-editor input[type="text"],
.announcement-editor input[type="number"],
.announcement-editor input[type="date"],
.announcement-editor select,
.announcement-editor textarea,
.announcement-slide-edit input[type="text"],
.announcement-slide-edit textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  color: var(--ludi-ink);
}
.announcement-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}
.announcement-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.announcement-slide-edit {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem 0.4rem;
  border: 1px solid var(--ludi-border);
  border-radius: 8px;
}
.announcement-slide-edit legend {
  padding: 0 0.35rem;
  font-weight: 600;
}
.announcement-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.announcement-slide-file {
  margin: 0.2rem 0 0.4rem;
}

/* ------------------------------------------------------------------ */
/* Dark mode (signed-in /app only via html[data-theme="dark"])          */
/* Light values above are unchanged; dark is an override layer.        */
/* ------------------------------------------------------------------ */
html[data-theme="dark"] {
  color-scheme: dark;
  --ludi-ink: #f0ebe3;
  --ludi-muted: #b0a99c;
  --ludi-bg: #171511;
  --ludi-card: #24201b;
  --ludi-border: #3f3a32;
  --ludi-accent: #d9d3c9;
  --ludi-accent-hover: #ebe6de;
  --ludi-accent-soft: #332f29;
  --ludi-accent-fg: #171511;
  --ludi-c-pitch: #6fa3f0;
  --ludi-c-games: #5cc98a;
  --ludi-c-details: #f0a050;
  --ludi-signal: #f08a2a;
  --ludi-signal-hover: #f5a04d;
  --ludi-signal-fg: #1a1208;
  /* Pro chip: dark logo orange fill, white lock/type (brand; ~2.51:1). */
  --ludi-pro: #f08a2a;
  --ludi-pro-hover: #f5a04d;
  --ludi-pro-fg: #ffffff;
  --ludi-pro-fg-hover: #ffffff;
  --ludi-pro-surface: #f08a2a;
  --ludi-pro-surface-hover: #f5a04d;
  --hall: #d9d3c9;
  --bg: var(--ludi-bg);
  --card: var(--ludi-card);
  --text: var(--ludi-ink);
  --muted: var(--ludi-muted);
  --accent: var(--ludi-accent);
  --accent-dark: var(--ludi-accent-hover);
  --ink: var(--ludi-ink);
  --border: var(--ludi-border);
}

html[data-theme="dark"] body {
  background: var(--ludi-bg);
  color: var(--ludi-ink);
}

/* Soft surfaces / chips that used warm paper greys */
html[data-theme="dark"] .game-gallery-thumb,
html[data-theme="dark"] .game-gallery-thumbs,
html[data-theme="dark"] #account-photo-preview,
html[data-theme="dark"] .account-photo-row,
html[data-theme="dark"] .pill-row .pill:not(.is-on),
html[data-theme="dark"] .tag-chip,
html[data-theme="dark"] .filter-chip {
  background: color-mix(in srgb, var(--ludi-ink) 8%, var(--ludi-card));
}

/* Table hover / sort headers */
html[data-theme="dark"] tr:hover td {
  background: color-mix(in srgb, var(--ludi-ink) 6%, var(--ludi-card));
}
html[data-theme="dark"] th.sortable-th:hover {
  background: color-mix(in srgb, var(--ludi-ink) 10%, var(--ludi-card));
}

/* Lane: your turn */
html[data-theme="dark"] .pitches-row.is-your-turn td {
  background: color-mix(in srgb, #e08a78 18%, var(--ludi-card));
}
html[data-theme="dark"] .pitches-row.is-your-turn:hover td {
  background: color-mix(in srgb, #e08a78 26%, var(--ludi-card));
}

/* Stage pills */
html[data-theme="dark"] .pitch-stage-pill,
html[data-theme="dark"] .pitch-stage-pill--contacted {
  background: color-mix(in srgb, #9aa3b2 22%, var(--ludi-card));
  color: #d2d7e0;
}
html[data-theme="dark"] .pitch-stage-pill--follow_up {
  background: color-mix(in srgb, #d4a24a 22%, var(--ludi-card));
  color: #f0c97a;
}
html[data-theme="dark"] .pitch-stage-pill--meeting_requested {
  background: color-mix(in srgb, #9b7bc8 24%, var(--ludi-card));
  color: #d2b8f0;
}
html[data-theme="dark"] .pitch-stage-pill--meeting_set {
  background: color-mix(in srgb, #c4a07a 22%, var(--ludi-card));
  color: #e2c4a0;
}
html[data-theme="dark"] .pitch-stage-pill--send_materials {
  background: color-mix(in srgb, #5fad88 22%, var(--ludi-card));
  color: #9fd9bc;
}
html[data-theme="dark"] .pitch-stage-pill--under_review {
  background: color-mix(in srgb, #6f8fc4 22%, var(--ludi-card));
  color: #b0c4e8;
}
html[data-theme="dark"] .pitch-stage-pill--contract_offered {
  background: color-mix(in srgb, #6aad5f 22%, var(--ludi-card));
  color: #a8d49e;
}
html[data-theme="dark"] .pitch-stage-pill--waiting_on_me {
  background: color-mix(in srgb, #e07060 16%, transparent);
  color: #f0a090;
}

/* Risk / error / attention text */
html[data-theme="dark"] .risk,
html[data-theme="dark"] .public-name-error,
html[data-theme="dark"] .pitch-risk,
html[data-theme="dark"] .danger-text,
html[data-theme="dark"] .auth-credits-count.is-zero,
html[data-theme="dark"] .copy-count-warn,
html[data-theme="dark"] .notes-error,
html[data-theme="dark"] .contact-error {
  color: #f0a090;
}
html[data-theme="dark"] .pitch-status--closed,
html[data-theme="dark"] .route-closed-badge {
  color: #f0a090;
  background: color-mix(in srgb, #e07060 18%, var(--ludi-card));
}
html[data-theme="dark"] .pitch-status--accepts,
html[data-theme="dark"] .route-open-badge {
  color: #7dcea0;
  background: color-mix(in srgb, #3d9a68 20%, var(--ludi-card));
}
html[data-theme="dark"] .pitch-status--conditional {
  color: #e0b86a;
}

/* Meeting group chips */
html[data-theme="dark"] .meetings-group-priority_meeting {
  border-color: #6fbf8f;
  color: #6fbf8f;
}
html[data-theme="dark"] .meetings-group-verify_before_requesting {
  border-color: #d4b05a;
  color: #d4b05a;
}
html[data-theme="dark"] .meetings-group-remote_submission_channel {
  border-color: #7a9fd0;
  color: #7a9fd0;
}
html[data-theme="dark"] .meetings-group-unknown_access {
  border-color: #9a958c;
  color: #b0a99c;
}
html[data-theme="dark"] .meetings-group-not_actionable {
  border-color: #e08878;
  color: #e08878;
}

/* Route trust / tier cells */
html[data-theme="dark"] .route-trust-verified {
  color: #6fbf8f;
  background: color-mix(in srgb, #3d9a68 20%, transparent);
}
html[data-theme="dark"] .route-trust-lead {
  color: #d4b05a;
  background: color-mix(in srgb, #b8860b 22%, transparent);
}
html[data-theme="dark"] .route-trust-unknown {
  color: var(--ludi-muted);
  background: color-mix(in srgb, var(--ludi-ink) 10%, transparent);
}
html[data-theme="dark"] .opp-tier-solid {
  color: #e0c070;
}
html[data-theme="dark"] .opp-posture-verify {
  color: #e0b86a;
}
html[data-theme="dark"] .opp-posture-hold {
  color: #e08878;
}
html[data-theme="dark"] .cell-unscored {
  color: #6a655c;
}

/* Confidence icons (built as conf-icon-${band} in app.js) */
html[data-theme="dark"] .conf-icon {
  --conf-fill: #8a8478;
  --conf-mark: #1a1814;
}
html[data-theme="dark"] .conf-icon-high { --conf-ring: #4caf7a; }
html[data-theme="dark"] .conf-icon-medium { --conf-ring: #d4b05a; }
html[data-theme="dark"] .conf-icon-low { --conf-ring: #e07a6c; }
html[data-theme="dark"] .conf-icon-unknown { --conf-ring: #8a8478; }

/* Attention / filter pills with hard-coded pink / blue */
html[data-theme="dark"] .needs-attention-pill,
html[data-theme="dark"] .pill.is-attention,
html[data-theme="dark"] .tag--attention {
  border-color: color-mix(in srgb, #e08a78 45%, transparent);
  color: #f0b0a4;
  background: color-mix(in srgb, #e08a78 18%, var(--ludi-card));
}
html[data-theme="dark"] .pill.is-info,
html[data-theme="dark"] .tag--info {
  border-color: color-mix(in srgb, #7a9fd0 40%, transparent);
  color: #a8c4e8;
  background: color-mix(in srgb, #4a6fa5 22%, var(--ludi-card));
}
html[data-theme="dark"] .notice {
  background: var(--ludi-card);
  border-top-color: var(--ludi-border);
  border-right-color: var(--ludi-border);
  border-bottom-color: var(--ludi-border);
}

/* Dialogs / sheets / menus that used paper shadows */
html[data-theme="dark"] .quick-add-menu,
html[data-theme="dark"] .quick-add-toast,
html[data-theme="dark"] .quick-add-sheet,
html[data-theme="dark"] .app-confirm-dialog,
html[data-theme="dark"] .inbox-panel,
html[data-theme="dark"] .auth-credits-tip,
html[data-theme="dark"] dialog {
  background: var(--ludi-card);
  color: var(--ludi-ink);
  border-color: var(--ludi-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .app-confirm-dialog::backdrop,
html[data-theme="dark"] .quick-add-sheet-backdrop:not(.hidden),
html[data-theme="dark"] dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

/* Inline SVG icons follow currentColor from parents.
   Do not force .ludi-nav-link here - inactive items stay muted so .nav-active reads. */
html[data-theme="dark"] .inbox-bell,
html[data-theme="dark"] .auth-exit-impersonation,
html[data-theme="dark"] .pub-copy-btn,
html[data-theme="dark"] .pitch-trash,
html[data-theme="dark"] .pitch-contact-icon-btn {
  color: var(--ludi-ink);
}

/* Transparent logos: light chip so they stay visible */
html[data-theme="dark"] .pub-show-logo,
html[data-theme="dark"] .publisher-logo,
html[data-theme="dark"] .game-card-cover img,
html[data-theme="dark"] .detail-hero-logo,
html[data-theme="dark"] img.pub-logo {
  background: #f0ebe3;
  border-radius: 0.25rem;
  padding: 0.15rem;
}

/* Wordmark stays readable on dark */
html[data-theme="dark"] .ludi-wordmark-stem { color: var(--ludi-ink); }
html[data-theme="dark"] .ludi-wordmark-suffix { color: var(--ludi-signal); }

/* Form controls */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: color-mix(in srgb, var(--ludi-ink) 6%, var(--ludi-card));
  color: var(--ludi-ink);
  border-color: var(--ludi-border);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: color-mix(in srgb, var(--ludi-muted) 85%, transparent);
}

/* Focus rings */
html[data-theme="dark"] :focus-visible {
  outline-color: color-mix(in srgb, var(--ludi-accent) 70%, #fff);
}

/* Bottom nav / header surfaces */
html[data-theme="dark"] .ludi-app-header,
html[data-theme="dark"] .ludi-bottom-nav,
html[data-theme="dark"] .ludi-chrome-panel {
  background: var(--ludi-card);
  border-color: var(--ludi-border);
}

/* Cards that hard-coded white */
html[data-theme="dark"] .match-card,
html[data-theme="dark"] .pub-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] #games-table tbody td {
  background: var(--ludi-card);
  border-color: var(--ludi-border);
}

/* Soft warm fills used in outreach / notes */
html[data-theme="dark"] .notes-editor,
html[data-theme="dark"] .contact-editor-panel {
  background: var(--ludi-card);
}

/* Admin toast-like dark panels already dark - leave alone */
/* Landing / marketing rules stay light (no data-theme on those pages). */

/* Phone FAB shadow */
html[data-theme="dark"] #btn-quick-add-fab,
html[data-theme="dark"] .quick-add-fab {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ludi-signal) 40%, transparent);
}

/* Links: warm grey + underline so they still read as links near body text.
   Chrome and card links keep their own look (the shared header's nav became
   <a> in Wave 105 and picked this up, 2026-11-09; the header avatar too). */
html[data-theme="dark"] a:not(.ludi-wordmark):not([class*="btn-"]):not(.ludi-nav-link):not(.ludi-bottom-nav-item):not(.quick-add-item):not(.inbox-bell):not(.auth-avatar):not(.help-link):not(.help-card a):not(.help-chapters a),
html[data-theme="dark"] .linkish {
  color: var(--ludi-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme="dark"] a:not(.ludi-wordmark):not([class*="btn-"]):not(.ludi-nav-link):not(.ludi-bottom-nav-item):not(.quick-add-item):not(.inbox-bell):not(.auth-avatar):not(.help-link):not(.help-card a):not(.help-chapters a):hover,
html[data-theme="dark"] .linkish:hover {
  color: var(--ludi-accent-hover);
}
html[data-theme="dark"] .ludi-wordmark {
  text-decoration: none;
}

/* Buttons that relied on soft accent fills */
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-secondary:hover {
  background: var(--ludi-accent-soft);
}

/* Warning / amber banners */
html[data-theme="dark"] .import-enrich-nudge,
html[data-theme="dark"] .rematch-banner,
html[data-theme="dark"] .score-work-banner {
  background: color-mix(in srgb, var(--ludi-signal) 14%, var(--ludi-card));
  border-color: color-mix(in srgb, var(--ludi-signal) 35%, var(--ludi-border));
}

/* Copies / visits muted greys */
html[data-theme="dark"] .muted,
html[data-theme="dark"] .portfolio-game-meta {
  color: var(--ludi-muted);
}

/* Attention reds used on the signed-in app (light hexes stay above) */
html[data-theme="dark"] .pitch-move--yours,
html[data-theme="dark"] .pitch-card-due.is-overdue,
html[data-theme="dark"] .pitch-actions .pitch-delete,
html[data-theme="dark"] .admin-user-icon--danger,
html[data-theme="dark"] .admin-user-icon--danger:hover,
html[data-theme="dark"] .admin-user-icon--danger:focus-visible {
  color: #f0a090;
}
html[data-theme="dark"] .admin-user-icon--danger:hover,
html[data-theme="dark"] .admin-user-icon--danger:focus-visible {
  background: color-mix(in srgb, #e07060 16%, transparent);
}
html[data-theme="dark"] .public-profile-pill.is-on {
  color: var(--ludi-accent-fg);
}

/* Code / pre in confirm dialogs */
html[data-theme="dark"] .app-confirm-body {
  color: var(--ludi-ink);
}

/* Segmented theme control on dark */
html[data-theme="dark"] .theme-segment {
  background: color-mix(in srgb, var(--ludi-ink) 6%, var(--ludi-bg));
}
html[data-theme="dark"] .theme-segment-option:has(input:checked) {
  background: var(--ludi-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Extra signed-in hard-coded surfaces */
html[data-theme="dark"] .toolbar-actions .btn-ghost:hover,
html[data-theme="dark"] .toolbar-actions .btn-primary:hover {
  background: var(--ludi-card);
}
html[data-theme="dark"] .pitch-card {
  background: var(--ludi-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .pitch-waiting-on--you {
  border-color: color-mix(in srgb, #e07060 40%, transparent);
  color: #f0a090;
  background: color-mix(in srgb, #e07060 16%, transparent);
}
html[data-theme="dark"] .pitch-waiting-on--them {
  border-color: color-mix(in srgb, #7a9fd0 40%, transparent);
  color: #a8c4e8;
  background: color-mix(in srgb, #4a6fa5 22%, var(--ludi-card));
}
html[data-theme="dark"] .public-materials-photos img,
html[data-theme="dark"] .card-review-photo-wrap img,
html[data-theme="dark"] .app-contact-photo-wrap img,
html[data-theme="dark"] #account-photo-preview,
html[data-theme="dark"] .game-byline-photo {
  background: color-mix(in srgb, var(--ludi-ink) 10%, var(--ludi-card));
}
html[data-theme="dark"] .card-review-dialog {
  background: var(--ludi-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .pro-chip:focus-visible {
  outline-color: var(--ludi-accent);
}
html[data-theme="dark"] .pro-sheet-benefit,
html[data-theme="dark"] .pro-sheet-also-list {
  color: var(--ludi-muted);
}
@media (max-width: 799px) {
  html[data-theme="dark"] .pitches-table .pitches-row.is-your-turn {
    background: color-mix(in srgb, #e08a78 18%, var(--ludi-card));
    border-color: color-mix(in srgb, #e08a78 35%, var(--ludi-border));
  }
}

html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"] {
  accent-color: var(--ludi-accent);
}

/* Save notices use the same explicit toggle as other tips. */
.madlib-tip.profile-save-tip[data-tip]:hover:not(.is-dismissed)::after,
.madlib-tip.profile-save-tip[data-tip].is-open::after {
  opacity: 1;
}

/* Compact, aligned pitch contribution fields in both themes. */
#missing-pitch-route-dialog .app-confirm-form { gap: 0.65rem; padding: 1.1rem; overflow-y: auto; box-sizing: border-box; }
#missing-pitch-route-dialog p { margin: 0; }
#missing-pitch-route-dialog label { display: grid; gap: 0.25rem; }
#missing-pitch-route-dialog input,
#missing-pitch-route-dialog textarea { width: 100%; min-width: 0; box-sizing: border-box; }
#missing-pitch-route-dialog #missing-route-status:empty { display: none; }
#missing-pitch-route-dialog .app-confirm-actions { margin: 0.25rem 0 0; padding: 0; }

.show-list-flag {
  position: relative;
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.1rem 0.35rem;
}
/* Anchor the bubble to the wrapping chip, not the small icon at its right
   edge. Even an invisible pseudo-element otherwise widens phone pages. */
.show-list-flag .madlib-tip.show-list-tip { position: static; }
.madlib-tip.show-list-tip[data-tip]::after {
  left: 0;
  transform: none;
  max-width: min(18rem, 100%);
  box-sizing: border-box;
  opacity: 0;
}
.madlib-tip.show-list-tip[data-tip]:hover:not(.is-dismissed)::after,
.madlib-tip.show-list-tip[data-tip].is-open::after { opacity: 1; }

.matches-stand-in-notice {
  margin: 0.25rem 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid color-mix(in srgb, var(--ludi-c-pitch) 40%, var(--ludi-border));
  border-left: 4px solid var(--ludi-c-pitch);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--ludi-c-pitch) 12%, var(--ludi-card));
  color: var(--ludi-ink);
  font-weight: 500;
  line-height: 1.5;
}

/* Help centre: /help, /help/<slug>, the in-app Need help? dialog and admin editor */
.help-main {
  max-width: var(--ludi-width-content);
  margin: 0 auto;
  padding: 1.5rem var(--ludi-gutter) 3rem;
  box-sizing: border-box;
  min-width: 0;
}
.help-hero h1 {
  margin-bottom: 0.35rem;
}
.help-filter {
  width: 100%;
  max-width: 32rem;
  min-height: 44px;
  margin: 0.75rem 0 1.5rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--ludi-ink);
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  box-sizing: border-box;
}
/* Help home: one section per area, headed like the app's strip tabs
   (.ludi-strip-tab: card, 5px coloured left edge) but not clickable. */
.help-section {
  margin: 1.75rem 0;
}
.help-section-head {
  --strip-c: var(--ludi-accent);
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.9rem;
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-left: 5px solid var(--strip-c);
  color: var(--ludi-ink);
  font-family: var(--ludi-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.help-section-head[data-strip="pitch"] { --strip-c: var(--ludi-c-pitch); }
.help-section-head[data-strip="games"] { --strip-c: var(--ludi-c-games); }
.help-section-head[data-strip="details"] { --strip-c: var(--ludi-c-details); }
/* Button styles set display, which beats the hidden attribute. The confirm
   dialog's third button (appChoice only) showed blank in every appConfirm. */
#btn-help-publish-all[hidden],
.app-confirm-alt[hidden] { display: none; }
.help-section[hidden],
.help-card[hidden] {
  display: none;
}
.help-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 900px) {
  .help-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .help-cards {
    grid-template-columns: 1fr;
  }
}
.help-card a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 0.85rem;
  color: var(--ludi-ink);
  text-decoration: none;
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  box-sizing: border-box;
}
.help-card a:hover,
.help-card a:focus-visible {
  border-color: var(--ludi-accent);
}
.help-card-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--ludi-radius) - 0.1rem);
  border: 1px solid var(--ludi-border);
}
.help-card-title {
  font-weight: 600;
}
.help-card-summary {
  color: var(--ludi-muted);
  font-size: 0.92rem;
}
.help-pro {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  color: var(--ludi-pro-fg);
  background: var(--ludi-pro-surface);
  border-radius: 999px;
}
.help-back {
  margin: 0 0 0.75rem;
}
.help-article h1 {
  overflow-wrap: anywhere;
}
.help-body {
  max-width: 44rem;
}
.help-video {
  margin: 1.75rem 0;
  min-width: 0;
}
.help-video-title {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.help-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 1rem;
  align-items: start;
}
.help-player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
}
.help-speed {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.help-speed-label {
  color: var(--ludi-muted);
  margin-right: 0.15rem;
}
.help-speed-btn {
  min-width: 2.75rem;
  min-height: 1.9rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: transparent;
  color: var(--ludi-ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.help-speed-btn:hover,
.help-speed-btn:focus-visible {
  background: var(--ludi-accent-soft);
}
.help-speed-btn[aria-pressed="true"] {
  border-color: var(--ludi-ink);
  font-weight: 600;
}
.help-chapters h2 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ludi-muted);
}
.help-chapters ol {
  margin: 0;
  padding-left: 1.5rem;
  display: grid;
  gap: 0.15rem;
}
.help-chapters li::marker {
  color: var(--ludi-muted);
}
.help-chapters a {
  display: block;
  padding: 0.3rem 0.4rem;
  color: var(--ludi-ink);
  text-decoration: none;
  border-radius: var(--ludi-radius);
}
.help-chapters a:hover,
.help-chapters a:focus-visible {
  background: var(--ludi-accent-soft);
}
.help-chapter-time {
  color: var(--ludi-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.help-auth {
  gap: 0.25rem;
}
.help-auth .help-auth-who {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.help-logout {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.help-feedback {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  max-width: 44rem;
  background: var(--ludi-card);
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  box-sizing: border-box;
}
.help-feedback-q {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}
.help-feedback-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.help-feedback-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font: inherit;
  color: var(--ludi-ink);
  background: transparent;
  border: 1px solid var(--ludi-border);
  border-radius: 999px;
  cursor: pointer;
}
.help-feedback-vote:hover,
.help-feedback-vote:focus-visible {
  border-color: var(--ludi-accent);
}
.help-feedback-vote[aria-pressed="true"] {
  background: var(--ludi-accent-soft);
  border-color: var(--ludi-accent);
}
.help-feedback-thanks {
  margin: 0.6rem 0 0;
}
.help-feedback-form {
  margin-top: 0.75rem;
}
.help-feedback-form[hidden] {
  display: none;
}
.help-feedback-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.help-feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}
.help-feedback-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.help-feedback-error {
  margin: 0.4rem 0 0;
  color: var(--ludi-danger, #b42318);
}
.help-feedback-error:empty {
  display: none;
}
.help-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 799px) {
  .help-video-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.auth-bar .auth-help {
  white-space: nowrap;
}
@media (max-width: 799px) {
  .auth-bar .auth-help {
    display: none;
  }
}
.app-help-dialog.app-confirm-dialog {
  width: min(32rem, calc(100vw - 2rem));
}
.app-help-option {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
}
.app-help-option-summary,
.app-help-option-step {
  font-size: 0.84rem;
  color: var(--ludi-muted);
}
.app-help-browse {
  margin: 0;
}

.help-admin-editor {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-top: 1rem;
}
.help-admin-editor textarea {
  min-height: 9rem;
}
.help-admin-preview {
  padding: 0.75rem;
  border: 1px dashed var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
}
.admin-help-videos {
  margin-top: 1.5rem;
}
.help-video-admin {
  margin: 1rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ludi-border);
}
.help-video-admin h4 {
  margin: 0 0 0.5rem;
}
.help-video-admin td {
  vertical-align: top;
}
.help-video-caption {
  width: 100%;
  min-width: 16rem;
  box-sizing: border-box;
}
.help-video-admin-error {
  margin: 0.4rem 0 0;
  color: var(--ludi-danger, #b42318);
}
.help-video-admin-error:empty {
  display: none;
}
.help-admin-tours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.help-admin-tours li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.help-admin-serp {
  padding: 0.75rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  max-width: 38rem;
}
.help-admin-serp-title {
  color: var(--ludi-c-pitch);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.help-admin-serp-url {
  font-size: 0.82rem;
  color: var(--ludi-muted);
}
.help-admin-serp-desc {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.help-admin-count.is-over {
  color: var(--ludi-signal);
  font-weight: 600;
}

/* Header items are links so they also work on Help pages (web/partials/app-header.html). */
.ludi-app-header a.quick-add-item,
.ludi-app-header a.inbox-bell,
.ludi-app-header a.ludi-nav-link,
.ludi-bottom-nav a.ludi-bottom-nav-item {
  text-decoration: none;
}
.ludi-app-header a.quick-add-item {
  color: inherit;
}
.help-feedback-vote[disabled] {
  opacity: 0.5;
  cursor: default;
}

.help-admin-actions {
  white-space: nowrap;
}
.pitch-contact-icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}
.help-admin-editor label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}
.help-admin-editor input[type="text"],
.help-admin-editor input[type="number"],
.help-admin-editor select,
.help-admin-editor textarea,
.help-video-admin input[type="text"] {
  font: inherit;
  font-weight: 400;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  color: var(--ludi-ink);
}
.help-video-admin .help-video-caption {
  width: 100%;
}

/* In-app Help links: on the right of the heading or row they belong to. */
.heading-with-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}
.heading-with-help > [data-help-slot],
.heading-with-help > .help-link,
.pub-panel-head > .help-link,
.game-section-head > .help-link,
.madlib-heading > .help-link {
  margin-left: auto;
}
.pitch-games-head > .linkish {
  margin-left: auto;
}
.outreach-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}
.outreach-tabs-row > .outreach-tabs {
  flex: 1 1 auto;
  min-width: 0;
}
#outreach-tab-help {
  margin-left: auto;
}
/* In-app Help links (base style). */
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
  min-width: 24px;
  min-height: 24px;
  padding: 0.1rem 0.25rem;
  vertical-align: middle;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ludi-muted);
  text-decoration: none;
  border-radius: 0.25rem;
}
.help-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.help-link:hover,
.help-link:focus-visible {
  color: var(--ludi-link, var(--ludi-ink));
}
.help-link:focus-visible {
  outline: 2px solid var(--ludi-focus, currentColor);
  outline-offset: 2px;
}
h1 .help-link,
h2 .help-link,
h3 .help-link,
h4 .help-link,
label .help-link,
.view-title .help-link {
  font-weight: 500;
}

/* One shared show picker in the app header. Match + Quick (btn-ghost) weight/size. */
.show-chip {
  order: 3;
  flex: 0 1 150px;
  min-width: 70px;
  max-width: 150px;
  height: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ludi-border);
  border-radius: var(--ludi-radius);
  background: var(--ludi-card);
  color: var(--ludi-ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.show-chip:hover {
  background: var(--ludi-accent-soft);
  border-color: var(--ludi-accent);
  color: var(--ludi-ink);
}
.show-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.show-chip-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.75rem;
  height: 0.75rem;
  line-height: 0;
}
.show-chip-chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}
.show-chip img { height: 34px; min-height: 34px; max-width: calc(100% - 16px); object-fit: contain; }
.show-chip:focus-visible, .show-tile:focus-visible { outline: 3px solid var(--ludi-accent, #7964db); outline-offset: 3px; }
.show-picker { display: block; width: 100%; max-width: var(--ludi-width-chrome); margin: 0 auto; padding: 1rem var(--ludi-gutter); box-sizing: border-box; max-height: 65vh; overflow: auto; animation: show-picker-in .18s ease-out; }
.show-picker[hidden], #show-picker-backdrop[hidden] { display: none; }
.show-picker-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.show-picker-heading h2 { margin: 0; font-size: 1rem; margin-right: auto; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: .75rem; }
.show-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; border: 1px solid var(--ludi-border); border-radius: 10px; padding: 1rem .5rem; color: inherit; background: var(--ludi-card); cursor: pointer; }
.show-tile[aria-pressed="true"] { border-color: var(--ludi-accent, #7964db); box-shadow: inset 0 0 0 1px var(--ludi-accent, #7964db); }
/* A definite box also sizes SVGs that provide only a viewBox. */
.show-tile-logo { width: 100%; max-width: 125px; height: 58px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.show-tile-logo img { width: 100%; height: 58px; max-width: 125px; object-fit: contain; }
.show-tile-selected { position: absolute; top: .25rem; right: .4rem; }
.show-tile-count { border-radius: 12px; padding: 0 .5rem; background: var(--ludi-border); font-size: .75rem; }
#show-picker-other { margin-top: 1rem; }
#show-picker-other summary { cursor: pointer; margin-bottom: .75rem; }
@keyframes show-picker-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .show-picker { animation: none; } }
@media (max-width: 799px) {
  .show-chip { display: none; }
  #show-picker-backdrop { position: fixed; inset: 0; background: #0008; z-index: 1100; }
  .show-picker { position: fixed; z-index: 1101; left: 0; right: 0; bottom: 0; max-height: 85dvh; background: var(--ludi-card); border-radius: 16px 16px 0 0; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  body.show-picker-open { overflow: hidden; }
}
.show-chip[hidden], #nav-change-show[hidden] { display: none; }
.show-tile-selected svg { width: 16px; height: 16px; }
@media (min-width: 800px) {
  .ludi-app-header .ludi-app-nav, .ludi-app-header .auth-bar { flex-wrap: nowrap; }
}
@media (min-width: 800px) and (max-width: 1100px) {
  .ludi-app-header .app-header-row { gap: .5rem; }
  .ludi-app-header .ludi-app-nav .ludi-nav-link { padding-left: .375rem; padding-right: .375rem; white-space: nowrap; }
  .ludi-app-header .auth-bar .ludi-nav-link { padding-left: .5rem; padding-right: .5rem; }
}

@media (max-width: 799px) {
  .ludi-app-header #btn-account, .ludi-app-header #btn-logout { display: none; }
}

/* QR preview and downloads fit both desktop and phone dialogs. */
.share-qr-dialog { width: min(420px, calc(100vw - 32px)); }
.share-qr-preview { display: block; width: 240px; max-width: 100%; height: auto; margin: 0 auto; background: white; }
.share-qr-downloads { display: flex; flex-wrap: wrap; gap: 16px; }
.share-link-actions-inner [data-share-qr] svg { width: 16px; height: 16px; }
.share-link-create [data-tag-picker] { min-width: 0; }
.share-link-create [data-tag-picker][hidden] { display: none; }

.share-qr-dialog .app-prompt-label { display: grid; gap: 0.4rem; width: 100%; }
.share-qr-dialog .app-prompt-input { width: 100%; min-width: 0; box-sizing: border-box; }

/* Billing (payments phase 2): checkout errors on public pages. */
.ludi-billing-error {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--ludi-danger, #b3261e);
  font-size: 0.9rem;
}
.account-plan {
  margin: 0 0 1.25rem;
  max-width: none;
}
.account-plan-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--ludi-ink) 12%, var(--ludi-card));
  border-radius: 0.75rem;
  background: var(--ludi-card);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ludi-ink) 4%, transparent);
}
.account-plan-card .account-subheader {
  margin: 0;
}
.account-plan-layout {
  display: grid;
  gap: 0.85rem 1.25rem;
  align-items: start;
}
@media (min-width: 40rem) {
  .account-plan-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .account-plan-actions {
    justify-content: flex-end;
  }
}
.account-plan-copy {
  min-width: 0;
}
.account-plan-line { margin: 0 0 0.25rem; }
.account-plan-actions,
.pro-sheet-plans-row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0.5rem;
  margin: 0;
}
.account-plan-actions {
  margin: 0;
  flex-wrap: nowrap;
}
.account-plan-tax,
.pro-sheet-tax { margin: 0.35rem 0 0; font-size: 0.85rem; }
.pro-sheet-plans-row {
  margin: 0.75rem 0 0.25rem;
}
.ludi-plan-choice-note {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--ludi-signal);
  background: var(--ludi-card, #fff);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .score-progress-fill.progress-indeterminate { animation: none; }
}
.madlib-comp-field { display: grid; gap: 0.25rem; }
.madlib-comp-field > span { display: flex; align-items: center; }
.madlib-comp-field label { margin: 0; }

button.ludi-term {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(body.page-share) { scroll-behavior: smooth; }
}

.madlib-field-heading {
  display: block;
  line-height: 1.35;
}
.madlib-adds-hint {
  font-weight: 400;
  font-size: 0.85em;
}
.madlib-other-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.madlib-suggest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.madlib-suggest-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.madlib-suggest-card {
  border: 1px solid var(--ludi-line, #e4ded3);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.contribute-rating {
  border: 0;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.contribute-rating legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.contribute-rating-option {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.contribute-rating-star {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--ludi-accent, #c45c26);
}
.contribute-rating-star svg {
  width: 100%;
  height: 100%;
  display: block;
}
.contribute-readonly {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
}
.contribute-name-block,
.contribute-photo-block {
  display: grid;
  gap: 0.35rem;
}
.contribute-photo-preview {
  margin: 0.15rem 0 0;
}
.contribute-photo-preview img,
.admin-review-photo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: color-mix(in srgb, var(--ludi-ink) 8%, transparent);
}
.review-ludipitch-lede {
  margin: 0;
}
.review-ludipitch-disclaimer {
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------------ */
/* Public game page (/game/{token}): the designer's own pitch page.     */
/* Fixed template, light theme. Colours come from --pg-* tokens so a    */
/* look (pitch/games/page_style.py) sets them inline per game.         */
/* The designer microsite reuses .pg-card and these tokens.             */
/* ------------------------------------------------------------------ */
.pg {
  --pg-bg: #fbfaf8;
  --pg-ink: #17150f;
  --pg-muted: #595449;
  --pg-line: #e2ded6;
  --pg-accent: #2f4a3c;
  --pg-accent-ink: #ffffff;
  --pg-accent-tint: #e9efeb;
  --pg-display: var(--ludi-font-display);
  --pg-body: var(--ludi-font);
  color: var(--pg-ink);
  font-family: var(--pg-body);
  font-size: 1.03rem;
  line-height: 1.6;
  max-width: 1180px;
  margin: 0 auto;
}
/* Each page's look arrives as inline --pg-* tokens from pitch/games/page_style.py;
   the values above are the Ludipitch default (Classic). */
.pg { --pg-head: var(--pg-ink); --pg-display-weight: 700; --pg-display-track: -0.02em; --pg-display-case: none; }
body.page-share:has(.pg[data-tone="dark"]) .page-share-footer .pg-made { color: #b4ad9f; }
body.page-share:has(.pg[data-tone="dark"]) .page-share-footer .ludi-wordmark-stem { color: #efebe4; }
.pg[data-tone="dark"] .pg-video { background: #000; }
body.page-share { background-color: #fbfaf8; background-repeat: repeat; }
.page-share .page-share-main { max-width: none; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.pg h1, .pg h2, .pg h3 { margin: 0; text-wrap: balance; color: var(--pg-ink); }
.pg p { margin: 0; }
.pg a { color: inherit; }
.pg a:focus-visible, .pg button:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }
.pg-photo { display: block; flex: none; border-radius: 50%; object-fit: cover; }
.pg-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pg-muted); }

/* Designer strip */
.pg-strip { display: flex; align-items: center; gap: 0.75rem; padding-block: 1.35rem; border-bottom: 1px solid var(--pg-line); }
.pg-strip-name { font-weight: 600; text-decoration: none; }
.pg-strip-brand { display: block; line-height: 0; }
.pg-strip-logo { display: block; max-height: 2.5rem; max-width: 11rem; width: auto; height: auto; object-fit: contain; }
.pg-strip nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: 0.92rem; }
.pg-strip nav a { color: var(--pg-muted); text-decoration: none; }
.pg-strip nav a:hover { color: var(--pg-ink); }
@media (max-width: 600px) { .pg-strip nav a:not(.pg-strip-contact) { display: none; } }

/* Grid */
.pg-layout { display: grid; gap: 2.5rem 4rem; padding-top: 2.25rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "aside" "main"; }
.pg-layout.pg-no-aside { grid-template-areas: "hero" "main"; }
.pg-hero { grid-area: hero; min-width: 0; }
.pg-aside { grid-area: aside; min-width: 0; }
.pg-main { grid-area: main; min-width: 0; display: grid; gap: 4.5rem; align-content: start; }
@media (min-width: 960px) {
  .pg-layout { grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "hero aside" "main aside"; }
  .pg-layout.pg-no-aside { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "main"; }
  .pg-aside-inner { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1.75rem); border-left: 1px solid var(--pg-line); padding-left: 2rem; }
}

/* Hero: gallery reuses .game-gallery (script in designer_pages.py) */
.pg .game-gallery { display: grid; gap: 0.5rem; margin: 0; }
.pg .game-gallery-main { display: block; width: 100%; padding: 0; border: 0; background: var(--pg-accent-tint); border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.pg .game-gallery-main img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pg .game-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg .game-gallery-thumb { width: 4.75rem; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.15s; }
.pg .game-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg .game-gallery-thumb.is-active, .pg .game-gallery-thumb:hover { opacity: 1; }
.pg-headline { display: grid; gap: 1rem; margin-top: 2.5rem; }
.pg-hero.pg-no-photos .pg-headline { margin-top: 0.5rem; }
.pg-title { font-family: var(--pg-display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.02em; }
/* Game logo in place of the typed title (alt text carries the title). */
.pg-title-has-logo { line-height: 0; }
.pg-title-logo { display: block; max-width: min(100%, 26rem); max-height: 9rem; width: auto; height: auto; object-fit: contain; object-position: left center; }
.pg-prepared { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pg-ink); }
.pg-prepared::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pg-accent); flex: none; }
.pg-tagline { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; max-width: 60ch; }
.pg-byline { display: flex; align-items: center; gap: 0.6rem; color: var(--pg-muted); font-size: 0.95rem; }
.pg-byline a { color: var(--pg-ink); font-weight: 500; text-decoration-color: var(--pg-line); text-underline-offset: 3px; }
/* Stats size to their values (a long audience like "Family, Gateway" never
   breaks mid-word); each cell after the first gets a divider. */
.pg-stats { display: flex; flex-wrap: wrap; row-gap: 1rem; margin: 2.5rem 0 0; border-top: 1px solid var(--pg-ink); }
.pg-stat { flex: 1 1 auto; padding: 0.9rem 1.25rem 0 0; }
.pg-stat + .pg-stat { padding-left: 1.25rem; border-left: 1px solid var(--pg-line); }
.pg-stat dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pg-muted); }
.pg-stat dd { margin: 0.35rem 0 0; font-family: var(--pg-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  .pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-stat { padding-right: 0.5rem; }
  .pg-stat:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .pg-stat dd { white-space: normal; overflow-wrap: break-word; }
}

/* Aside */
.pg-aside-inner { display: grid; gap: 1.75rem; }
.pg-who { display: grid; gap: 0.9rem; }
.pg-who-head { display: flex; align-items: center; gap: 0.75rem; }
.pg-who-head b { display: block; font-family: var(--pg-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.pg-who-head span { font-size: 0.88rem; color: var(--pg-muted); }
.pg-btn { display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 0.75rem 1.1rem; border-radius: 6px; font: 600 0.95rem/1.2 var(--pg-body); text-decoration: none; background: var(--pg-accent); color: var(--pg-accent-ink); }
.pg a.pg-btn { color: var(--pg-accent-ink); }
.pg-btn:hover { filter: brightness(1.1); }
.pg-status { display: grid; gap: 0.5rem; font-size: 0.95rem; }
.pg-status-row { display: flex; align-items: center; gap: 0.5rem; }
.pg-status-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--pg-accent); flex: none; }
.pg-materials { display: grid; margin-top: 0.6rem; border-top: 1px solid var(--pg-line); }
.pg-mat { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--pg-line); text-decoration: none; font-weight: 500; }
.pg-mat svg { width: 1.15rem; height: 1.15rem; color: var(--pg-accent); }
.pg-mat small { font-size: 0.78rem; color: var(--pg-muted); font-weight: 400; }
.pg-mat:hover .pg-mat-label { text-decoration: underline; text-underline-offset: 3px; }

/* Main sections */
.pg-section { display: grid; gap: 1.4rem; }
.pg-section > h2 { font-family: var(--pg-display); font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 600; }
.pg-section > h2.pg-eyebrow { font-family: var(--pg-body); font-size: 0.75rem; }
/* A note from the designer on this link */
.pg-note { display: grid; gap: 0.9rem; padding: 1.4rem 0; border-block: 1px solid var(--pg-line); }
.pg-note-body { display: flex; gap: 0.9rem; align-items: flex-start; }
.pg-note-text { font-size: 1.12rem; line-height: 1.55; max-width: 60ch; }
.pg-looking { font-family: var(--pg-display); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; max-width: 34ch; }
.pg-highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.75rem; }
.pg-highlights li { padding-top: 0.9rem; border-top: 2px solid var(--pg-accent); }
.pg-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 3px; overflow: hidden; background: #111; }
.pg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pg-numbers { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; }
.pg-numbers b { display: block; font-family: var(--pg-display); font-weight: 600; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pg-numbers span { font-size: 0.88rem; color: var(--pg-muted); }
.pg-groups { color: var(--pg-muted); }
.pg-comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.pg-comp { display: grid; gap: 0.5rem; align-content: start; padding-top: 0.9rem; border-top: 1px solid var(--pg-line); }
.pg-comp h3 { font-family: var(--pg-display); font-size: 1.25rem; font-weight: 600; }
.pg-comp p { font-size: 0.97rem; }
.pg-comp b { font-weight: 600; }

/* Reference tier: deliberately quiet */
.pg-ref { display: grid; gap: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--pg-line); }
.pg-ref-block { display: grid; gap: 0.75rem; }
.pg-ref-block h2 { font-family: var(--pg-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pg-muted); }
.pg-ref-block p { max-width: 66ch; }
.pg-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.pg-details div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--pg-line); font-size: 0.92rem; }
.pg-details dt { color: var(--pg-muted); }
.pg-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .pg-details { grid-template-columns: minmax(0, 1fr); } }

/* About the designer */
.pg-about { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.75rem; align-items: start; padding-top: 2.5rem; border-top: 1px solid var(--pg-line); }
.pg-about.pg-no-photo { grid-template-columns: minmax(0, 1fr); }
.pg-about h2 { font-family: var(--pg-display); font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 600; }
.pg-about-body { display: grid; gap: 0.9rem; min-width: 0; }
.pg-about-body p { max-width: 62ch; }
.pg-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; font-size: 0.92rem; }
.pg-contact-item { color: var(--pg-muted); }
.pg-contact .pg-select { user-select: all; overflow-wrap: anywhere; }
/* The designer's preferred way to be reached stands out; no extra label. */
.pg-contact .is-preferred { color: var(--pg-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pg-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 600px) { .pg-about { grid-template-columns: minmax(0, 1fr); } }

/* Game cards (shared with the future designer microsite) */
/* Games grid: full width under the page, below the main column and aside. */
.pg-related { padding-top: 4.5rem; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 2rem 1.75rem; }
.pg-card { display: grid; gap: 0.75rem; align-content: start; text-decoration: none; }
.pg-card-cover { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 3px; overflow: hidden; background: var(--pg-accent-tint); }
.pg-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-card-cover span { display: grid; place-items: center; height: 100%; font-family: var(--pg-display); font-size: 2.5rem; font-weight: 700; color: var(--pg-accent); }
.pg-card h3 { font-family: var(--pg-display); font-size: 1.25rem; font-weight: 600; }
.pg-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pg-card p { font-size: 0.92rem; color: var(--pg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-card-meta { font-size: 0.82rem; color: var(--pg-muted); font-variant-numeric: tabular-nums; }

/* Phone contact bar: shown by PG_BAR_SCRIPT once the stats scroll away */
.pg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem max(16px, env(safe-area-inset-right, 0px)) calc(0.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--pg-bg); border-top: 1px solid var(--pg-line); transform: translateY(110%); transition: transform 0.2s ease; }
.pg-bar.is-shown { transform: none; }
.pg-bar-text { font-size: 0.88rem; line-height: 1.25; min-width: 0; }
.pg-bar-text b { display: block; }
.pg-bar .pg-btn { margin-left: auto; padding: 0.6rem 0.9rem; }
@media (min-width: 960px) { .pg-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .pg-bar, .pg .game-gallery-thumb { transition: none; } }

/* After the base .pg rules so the look wins: display font and heading colour for titles and section headings. */
.pg-title, .pg-section > h2:not(.pg-eyebrow), .pg-about h2, .pg-comp h3, .pg-card h3 {
  color: var(--pg-head);
  font-weight: var(--pg-display-weight);
  letter-spacing: var(--pg-display-track);
  text-transform: var(--pg-display-case);
}
.pg-looking { color: var(--pg-head); }
/* Footer: Ludipitch lives here, not at the top */
.page-share-footer .pg-made { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--pg-muted, #595449); }
.page-share-footer .pg-made a { text-decoration: none; }
.pg-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; font-size: 0.85em; vertical-align: 0.05em; }
.share-assets-note {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.9rem;
  width: 100%;
  min-width: 0;
}
.share-assets-note .app-prompt-label-text {
  font-weight: 700;
}
.share-assets-note textarea {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--ludi-border, #cfc6b8);
  border-radius: 6px;
  background: var(--ludi-bg, #fff);
  color: inherit;
  line-height: 1.5;
  resize: vertical;
}
/* Page style editor: dropdowns on the left, a live sample on the right. */
.public-style-layout {
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0.6rem;
}
/* Looks + dropdowns share the left half; the preview stays beside them. */
@media (min-width: 1000px) {
  .public-style-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .public-style-preview { position: sticky; top: 1rem; }
}
.public-style-controls { display: grid; gap: 0.9rem; min-width: 0; }
.public-style-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}
@media (max-width: 520px) { .public-style-fields { grid-template-columns: minmax(0, 1fr); } }
.public-materials .public-style-field { display: grid; gap: 0.3rem; font-weight: 600; }
.public-style-field select { width: 100%; font-weight: 400; }
.pg-preview {
  display: grid;
  gap: 0.55rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--ludi-border);
  border-radius: 8px;
  background-repeat: repeat;
}
.pg-preview p { margin: 0; }
.pg-preview-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.pg-preview-title { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.02; letter-spacing: -0.01em; }
.pg-preview-hook { font-size: 0.92rem; line-height: 1.45; max-width: 36ch; }
.pg-preview-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.4rem; padding-top: 0.55rem; border-top: 1px solid; }
.pg-preview-stats span { display: grid; gap: 0.1rem; }
.pg-preview-stats small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.pg-preview-stats b { font-size: 1.25rem; line-height: 1.1; }
.pg-preview-heading { margin-top: 0.5rem !important; font-size: 1.2rem; }
.pg-preview-line { font-size: 0.86rem; }
.pg-preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.35rem; }
.pg-preview-btn { padding: 0.5rem 0.9rem; font-size: 0.84rem; font-weight: 600; }
.pg-preview-mat { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0; border-bottom: 1px solid; font-size: 0.84rem; font-weight: 500; }
.pg-preview-mat i { width: 0.6rem; height: 0.6rem; border-radius: 2px; }
/* Look tiles (same feel as the convention picker's .show-tile). */
.public-look-label { margin: 0 0 0.4rem; font-weight: 600; }
.public-look-label strong { font-weight: 600; color: var(--ludi-muted); }
.public-look-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: 0.45rem; }
.public-look-tile { display: grid; gap: 0.35rem; padding: 0.45rem; border: 1px solid var(--ludi-border); border-radius: 10px; background: var(--ludi-card); color: inherit; cursor: pointer; font: 600 0.82rem/1.2 var(--ludi-font); text-align: left; }
.public-look-tile[aria-pressed="true"] { border-color: var(--ludi-accent); box-shadow: inset 0 0 0 1px var(--ludi-accent); }
.public-look-tile:hover { border-color: var(--ludi-accent); }
.public-look-swatch { display: flex; align-items: center; justify-content: space-between; height: 2.6rem; padding: 0 0.55rem; border-radius: 6px; border: 1px solid rgba(0, 0, 0, 0.08); background-repeat: repeat; }
.public-look-swatch { gap: 0.35rem; }
.public-look-swatch b { font-size: 1.3rem; line-height: 1; white-space: nowrap; overflow: hidden; }
.public-look-swatch i { flex: none; }
.public-look-swatch i { width: 0.8rem; height: 0.8rem; border-radius: 50%; display: block; }
/* Corner style (page_style.CORNERS): radii come in as tokens; Angled bevels
   photos, video, cards and buttons with clip-path instead. */
.pg { --pg-radius-media: 3px; --pg-radius-btn: 6px; --pg-bevel: 12px; --pg-bevel-small: 7px; }
.pg .game-gallery-main, .pg .game-gallery-thumb, .pg-video, .pg-card-cover { border-radius: var(--pg-radius-media); }
.pg .game-gallery-thumb { border-radius: min(var(--pg-radius-media), 8px); }
.pg-btn, .pg-bar .pg-btn { border-radius: var(--pg-radius-btn); }
.pg[data-corners="angled"] .game-gallery-main, .pg[data-corners="angled"] .pg-video, .pg[data-corners="angled"] .pg-card-cover {
  clip-path: polygon(var(--pg-bevel) 0, 100% 0, 100% calc(100% - var(--pg-bevel)), calc(100% - var(--pg-bevel)) 100%, 0 100%, 0 var(--pg-bevel));
}
.pg[data-corners="angled"] .pg-btn, .pg[data-corners="angled"] .game-gallery-thumb {
  clip-path: polygon(var(--pg-bevel-small) 0, 100% 0, 100% calc(100% - var(--pg-bevel-small)), calc(100% - var(--pg-bevel-small)) 100%, 0 100%, 0 var(--pg-bevel-small));
}
.pg-preview-photo { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* Manage email previews */
#admin-emails-table { width: 100%; }
#view-email .table-wrap { overflow-x: auto; }
.admin-email-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#admin-email-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
#admin-email-html { width: 100%; height: 650px; border: 1px solid var(--border); background: #ffffff; }
#admin-email-preview { margin-top: 1.5rem; min-width: 0; }

.admin-email-dialog.app-confirm-dialog { width: min(48rem, calc(100vw - 2rem)); max-width: 48rem; max-height: 90dvh; }
.admin-email-close { float: right; font-size: 1.5rem; }
@media (max-width: 799px) {
  .admin-email-dialog.app-confirm-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}

/* Compact email preview close target, including the phone dialog layout. */
.admin-email-dialog .app-confirm-form { position: relative; }
.admin-email-dialog .app-confirm-form button.admin-email-close {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px;
  min-width: 44px; padding: 0; margin: 0; font-size: 28px;
}
.admin-email-dialog .app-confirm-title { padding-right: 48px; }
.submissions-count { border: 1px solid currentColor; border-radius: 1em; padding: 0 0.45em; margin-left: 0.4em; font-size: 0.85em; }

/* Wave 124: keyboard access and phone control sizes. */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--ludi-card, #fff);
  color: var(--ludi-ink, #17150f);
  border: 2px solid currentColor;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
/* Invisible tooltip boxes must not contribute to scrollable overflow. */
.madlib-tip[data-tip]::after { display: none; }
.madlib-tip[data-tip]:hover:not(.is-dismissed)::after,
.madlib-tip[data-tip].is-open::after { display: block; }
#view-account .account-usage-row { flex-wrap: wrap; }
#view-account .account-usage-row > *,
#view-account .account-credits-grid > section { min-width: 0; overflow-wrap: anywhere; }
#view-account .account-profile-form { min-width: 0; }
.pitches-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--ludi-card);
  color: var(--ludi-ink);
  cursor: pointer;
}
.pitches-order-button svg { width: 18px; height: 18px; }
.pitches-order-button[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.pitches-drag-col:has(.pitches-order-button) { width: auto; white-space: nowrap; }
@media (max-width: 799px) {
  .share-link-actions .pub-copy-btn,
  .share-link-actions .pitch-trash,
  .pitches-order-button { min-width: 40px; min-height: 40px; width: 40px; height: 40px; }
  .share-link-actions-inner { flex-wrap: wrap; }
  .public-style-fields select, .public-materials select { min-height: 24px; }
  .madlib-tip, .ludi-feature-tip, .ludiscore-tip { min-width: 24px; min-height: 24px; }
}

@media (max-width: 799px) {
  .pitches-table .pitches-drag-col:has(.pitches-order-button) { display: flex; gap: 4px; grid-column: 1 / -1; }
  .pitches-table .pitches-drag-col:has(.pitches-order-button) .pitches-drag-handle { display: none; }
}
.app-note-tag-listbox [aria-selected="true"] { background: var(--ludi-card); outline: 2px solid var(--ludi-ink); outline-offset: -2px; }

@media (max-width: 799px) {
  [data-ludiscore-tip], [data-feature-tip] { min-width: 24px; min-height: 24px; }
}

.account-usage-tip[data-tip]::after { box-sizing: border-box; max-width: 100%; }
@media (max-width: 799px) {
  #account-profile-form select { min-width: 24px; min-height: 24px; }
}

/* Semantic heading changes retain the previous unclassed admin heading size. */
#view-shows h1, #view-shows h2,
#view-help-pages h1, #view-help-pages h2,
#view-announcements h1, #view-admin h2:not([class]) {
  font-size: 1.17em;
  margin: 1em 0;
}

.admin-email-copy-field {
  display: grid;
  gap: .35rem;
  margin: 1rem 0;
}
.admin-email-copy-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  resize: vertical;
}

/* Public game details use the public-materials field styles. */
.public-materials-section fieldset { margin: 1rem 0; padding: .75rem; border: 1px solid var(--border); border-radius: .5rem; min-width: 0; }
.public-component-counts input[type="number"] { width: 6rem; }
.public-credit-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.public-credit-row label { flex: 1 1 12rem; min-width: 0; }
.public-materials-section [hidden] { display: none; }
#import-review-dialog [data-review-highlights] label { display: flex; align-items: flex-start; gap: .5rem; }
#import-review-dialog [data-review-highlights] input { width: auto; margin: 0; flex: 0 0 auto; }
#import-review-dialog [data-review-highlights] span { min-width: 0; }

/* The demo banner stays present across the app's view navigation. */
.demo-banner {
  padding: 8px 16px;
  text-align: center;
  background: var(--surface-2, #edf4ef);
  color: var(--text, #1c3026);
  border-bottom: 1px solid var(--border, #9fb5a8);
  font-size: 0.875rem;
}
.demo-banner a { margin-left: 0.5em; text-decoration: underline; }
body.demo-mode #btn-admin-manage,
body.demo-mode [data-billing-buy-credits],
body.demo-mode [data-billing-manage] { display: none !important; }
body.demo-mode [data-tracker-import] { display: none !important; }

/* Inert demo links retain the original row/icon layout. */
.demo-inert-link { position: relative; cursor: help; }
/* A closed demo tooltip near the page edge must not widen the page. */
.demo-inert-link[data-tip]:not(:hover):not(:focus-visible):not(.is-open)::after { display: none; }

/* Wave 140: keep trust and thumbs together; reasons and notes sit underneath. */
.route-feedback-controls { display: inline-flex; align-items: center; gap: 0.15rem; flex-wrap: nowrap; }
/* Wave 150: designer-verified check after the route type; the icon is the hover target. */
.route-verified.madlib-tip { width: 1rem; height: 1rem; margin-left: 0.25rem; border: 0; border-radius: 0; color: #2d7a4f; vertical-align: -0.15em; }
html[data-theme="dark"] .route-verified.madlib-tip { color: #6fbf8f; }
/* Wave 151: amber caution while a single report waits for a second designer. */
.route-caution.madlib-tip { width: 1rem; height: 1rem; margin-left: 0.25rem; border: 0; border-radius: 0; color: #b8860b; vertical-align: -0.15em; }
.route-caution > svg { width: 15px; height: 15px; }
.route-caution[data-tip]::after { left: 0; transform: none; max-width: min(15rem, 70vw); font-weight: 500; }
html[data-theme="dark"] .route-caution.madlib-tip { color: #e0b54a; }
.route-caution--ok.madlib-tip { color: #2d7a4f; }
html[data-theme="dark"] .route-caution--ok.madlib-tip { color: #6fbf8f; }
.route-verified > svg { width: 15px; height: 15px; }
.route-verified[data-tip]::after { left: 0; transform: none; max-width: min(15rem, 70vw); font-weight: 500; }
.route-type-label { white-space: nowrap; }
.route-feedback-chooser { flex-basis: 100%; font-size: 0.8rem; text-align: left; }
.route-feedback-chooser[hidden] { display: none; }
.route-feedback-choices { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.route-feedback-choices button { padding: 0.2rem 0.35rem; font-size: 0.8rem; }
.route-report-flag { display: flex; align-items: center; gap: 0.25rem; }
.route-report-flag svg { width: 16px; height: 16px; }

/* Main-site demo front door and public entry points. */
.ludi-footer-blocks > .ludi-demo-cta { grid-column: 1 / -1; }
.ludi-demo-cta h2 { font-size: 1.35rem; }
.ludi-demo-front { max-width: 680px; padding: 32px 20px 64px; margin: auto; }
.ludi-demo-form { display: grid; gap: 16px; max-width: 520px; }
.ludi-demo-form input[type="email"] { width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; padding: 10px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.ludi-demo-consent { font-weight: 600; }
.ludi-demo-form p { margin: 0; }

/* Tracker import page: numbered sections that collapse once confirmed. */
.tracker-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
[data-tracker-import] svg { width:1.1em; height:1.1em; }
.import-page { padding:0 0 3rem; }
.import-head-row { display:flex; align-items:baseline; justify-content:space-between; gap:.5rem 1rem; flex-wrap:wrap; }
.import-step { border-top:1px solid var(--ludi-border); padding:1.1rem 0; }
.import-step-head { display:flex; align-items:center; gap:.7rem; }
.import-step-head h2 { font-size:1.05rem; font-weight:600; margin:0; flex:1; }
.import-step-num { display:inline-flex; align-items:center; justify-content:center; width:1.9rem; height:1.9rem; flex:none; border-radius:50%; border:1.5px solid currentColor; font-weight:700; font-size:.9rem; }
.import-step-num svg { width:1rem; height:1rem; }
.import-step--done .import-step-num { background:var(--ludi-signal); border-color:var(--ludi-signal); color:var(--ludi-signal-fg); }
.import-step--pending { color:var(--ludi-muted); }
.import-step-summary { margin:.35rem 0 0 2.6rem; color:var(--ludi-muted); overflow-wrap:anywhere; }
.import-step-body { margin:.9rem 0 0 2.6rem; }
.import-step-body > p:first-child { margin-top:0; }
.import-file-btn { position:relative; cursor:pointer; }
.import-file-btn:focus-within { outline:2px solid var(--ludi-accent); outline-offset:2px; }
.import-file-input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.import-uploaded { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem 1rem; padding:.8rem 1rem; margin-bottom:1rem; }
.import-uploaded p { margin:0; overflow-wrap:anywhere; }
.import-field { display:block; margin:.8rem 0; font-weight:600; }
.import-field select, .import-field input { display:block; margin-top:.35rem; min-height:2.4rem; max-width:100%; font:inherit; font-weight:400; }
.import-field--inline select { display:inline-block; margin:0 0 0 .5rem; }
.import-row-picks { display:flex; flex-wrap:wrap; gap:0 1.5rem; }
.import-subhead { font-size:1rem; margin:1.2rem 0 .4rem; }
.import-preview.table-scroll { overflow:auto; }
.import-preview { max-height:24rem; border:1px solid var(--ludi-border); border-radius:var(--ludi-radius); }
.import-preview table { border-collapse:collapse; font-size:.85rem; }
.import-preview th, .import-preview td { padding:.35rem .6rem; border-bottom:1px solid var(--ludi-border); text-align:left; vertical-align:top; min-width:6.5rem; max-width:16rem; overflow-wrap:break-word; word-break:normal; hyphens:auto; }
.import-preview th { min-width:2rem; }
.import-preview th { color:var(--ludi-muted); font-weight:600; position:sticky; left:0; background:var(--ludi-card); }
.import-preview-header td { font-weight:700; background:var(--ludi-accent-soft); }
.import-preview-skip td { color:var(--ludi-muted); }
.import-map { width:100%; border-collapse:separate; border-spacing:0 .45rem; }
.import-map thead th { text-align:left; font-size:.75rem; letter-spacing:.04em; text-transform:uppercase; color:var(--ludi-muted); padding:0 .8rem; }
.import-map tbody th, .import-map tbody td { background:var(--ludi-card); border-top:1px solid var(--ludi-border); border-bottom:1px solid var(--ludi-border); padding:.7rem .8rem; vertical-align:middle; text-align:left; }
.import-map tbody th { border-left:1px solid var(--ludi-border); border-radius:var(--ludi-radius) 0 0 var(--ludi-radius); font-weight:600; max-width:14rem; overflow-wrap:anywhere; }
.import-map tbody td:last-child { border-right:1px solid var(--ludi-border); border-radius:0 var(--ludi-radius) var(--ludi-radius) 0; }
.import-map-samples span { display:block; font-size:.85rem; overflow-wrap:anywhere; max-width:18rem; }
.import-map select { min-height:2.3rem; max-width:16rem; font:inherit; }
.import-map-check { width:2rem; color:var(--ludi-signal); }
.import-map-check svg { width:1.2rem; height:1.2rem; }
.import-map-ignored th, .import-map-ignored .import-map-samples { color:var(--ludi-muted); }
.import-actions { display:flex; justify-content:flex-end; align-items:center; gap:.75rem; margin-top:1rem; flex-wrap:wrap; }
.import-actions--split { justify-content:space-between; }
.import-actions--split p { margin:0; }
.import-note { padding:.6rem .8rem; border-left:3px solid var(--ludi-accent); background:var(--ludi-accent-soft); border-radius:0 var(--ludi-radius) var(--ludi-radius) 0; }
.import-tips { margin:.8rem 0 1rem; }
.import-tips summary { cursor:pointer; color:var(--ludi-accent); font-weight:500; width:max-content; max-width:100%; }
.import-tips ul { margin:.5rem 0 .4rem; padding-left:1.2rem; color:var(--ludi-muted); }
.import-tips li { margin:.2rem 0; }
.import-error { color:var(--ludi-danger, #b42318); margin:.6rem 0 0; }
.import-error:empty, #tracker-status:empty, #tracker-reminder-consequence:empty { display:none; }
.import-values { border:1px solid var(--ludi-border); border-radius:var(--ludi-radius); padding:.6rem .9rem; margin:.6rem 0; min-width:0; }
.import-values label { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.4rem 1rem; padding:.35rem 0; }
.import-values select { min-height:2.2rem; max-width:100%; font:inherit; }
.import-field-group { margin:1rem 0; }
.import-step-body select { min-height:2.4rem; font:inherit; max-width:100%; }
#tracker-reminder-choice select { display:block; margin-top:.35rem; }
.import-counts { font-weight:600; }
.import-row-help { margin:.6rem 0 .2rem; }
.import-check { display:flex; gap:.55rem; align-items:flex-start; margin:.8rem 0; max-width:46rem; }
.import-check input { margin-top:.25rem; flex:none; }
.import-rows { margin-top:.5rem; }
.tracker-row { display:block; border-bottom:1px solid var(--ludi-border); padding:.55rem 0; }
.tracker-row small { display:block; color:var(--ludi-muted); margin-left:1.6rem; }
.tracker-publisher { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem 1rem; padding:.75rem .9rem; margin:.55rem 0; }
.tracker-publisher-main p { margin:.25rem 0; }
.tracker-publisher-main small { color:var(--ludi-muted); }
.tracker-publisher-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.tracker-publisher [data-suggest-block], .tracker-publisher [data-publisher-search] { flex-basis:100%; }
.tracker-publisher [data-suggest-block] label { display:block; margin:.35rem 0; }
.tracker-publisher [data-suggest-block] input[type="url"] { display:block; width:100%; max-width:26rem; min-height:2.3rem; margin-top:.3rem; font:inherit; }
.tracker-publisher [data-suggest-error] { color:var(--ludi-danger, #b42318); }
.tracker-publisher [role="listbox"] { max-height:16rem; overflow:auto; margin-top:.4rem; }
.tracker-publisher [role="option"] { display:flex; width:100%; justify-content:flex-start; margin:.3rem 0; }
.tracker-review { border-left:3px solid var(--ludi-accent); }
.tracker-publisher [hidden], .import-page [hidden] { display:none !important; }
.import-history { padding:1rem 1.1rem; margin-top:2rem; }
.import-history h2 { font-size:1.05rem; margin:0 0 .5rem; }
.import-history p { overflow-wrap:anywhere; }
@media (max-width: 640px) {
  .import-step-summary, .import-step-body { margin-left:0; }
  .import-map thead { display:none; }
  .import-map, .import-map tbody, .import-map tr, .import-map th, .import-map td { display:block; width:auto; }
  .import-map tr { border:1px solid var(--ludi-border); border-radius:var(--ludi-radius); margin:.5rem 0; background:var(--ludi-card); }
  .import-map tbody th, .import-map tbody td { border:0; border-radius:0; padding:.35rem .7rem; }
  .import-map select { max-width:100%; width:100%; }
  .import-map-check { display:none !important; }
  .import-actions--split { flex-direction:column; align-items:stretch; }
}

/* Designer pitch route labels keep the vote controls on the route line. */
.route-contribution-label { display: block; font-size: .78rem; font-weight: normal; white-space: normal; overflow-wrap: anywhere; }
.pitch-route-row { flex-wrap: wrap; }
.pitch-route-row > .route-contribution-label { flex-basis: 100%; }
.route-hidden { opacity: .75; }
@media (max-width: 400px) { .pub-pitch-routes-table td { overflow-wrap: anywhere; } .pub-route-result { white-space: nowrap; } }

/* Submissions inbox (Wave 152): one table for every type, a chip says which. */
.admin-inbox-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin: 0.5rem 0; }
.admin-inbox-filters label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
.admin-inbox-type { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--border); color: var(--ink, inherit); }
.admin-inbox-type--edit { background: color-mix(in srgb, #4a6fa5 12%, transparent); }
.admin-inbox-type--status { background: color-mix(in srgb, #b8860b 14%, transparent); }
.admin-inbox-type--publisher { background: color-mix(in srgb, #2d7a4f 12%, transparent); }
.admin-inbox-type--route { background: color-mix(in srgb, #7a4f9a 12%, transparent); }
#admin-inbox-table tbody tr { cursor: pointer; }
.admin-inbox-what { max-width: 32rem; overflow-wrap: anywhere; }

/* Manage links: "Who it's for" keeps its ? on the label line. */
.share-link-for { display: flex; flex-direction: column; gap: 0.25rem; }
.share-link-for-line { display: inline-flex; align-items: center; gap: 0.25rem; }
.share-link-for-line .madlib-tip { flex: 0 0 1rem; width: 1rem; height: 1rem; aspect-ratio: 1; }
/* Link assets dialog: assets for the other games, indented under "Show my other games". */
.share-other-assets { margin: 0.25rem 0 0.5rem 1.6rem; }
.share-other-assets legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; padding: 0; }
.share-other-assets-grid { display: grid; gap: 0.45rem; }
