/* FitnessPlatform design tokens — platform defaults; active Site theme overrides on <html> */
:root {
  /* Legacy source aliases (inline <html> may set these directly) */
  --fp-primary: #1f1f1f;
  --fp-secondary: #141414;
  --fp-accent: #9b1c1c;
  --fp-background: #0a0a0a;
  --fp-text: #ffffff;

  /* Semantic theme tokens */
  --fp-color-primary: var(--fp-primary, #1f1f1f);
  --fp-color-secondary: var(--fp-secondary, #141414);
  --fp-color-accent: var(--fp-accent, #9b1c1c);
  --fp-color-background: var(--fp-background, #0a0a0a);
  --fp-color-surface: #2a2a2a;
  --fp-color-surface-alt: #242424;
  --fp-color-surface-raised: #323232;
  --fp-color-text: var(--fp-text, #ffffff);
  --fp-color-text-muted: #c4c4c4;
  --fp-color-border: #3a3a3a;
  --fp-color-success: #2e7d32;
  --fp-color-warning: #ed6c02;
  --fp-color-danger: #c62828;
  --fp-font-body: var(--fp-font-family, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  --fp-font-heading: var(--fp-heading-font-family, var(--fp-font-body));
  --fp-radius-small: 0.375rem;
  --fp-radius-medium: 0.5rem;
  --fp-shadow-surface: 0 8px 24px rgba(0, 0, 0, 0.28);
  --fp-admin-sidebar-background: var(--fp-color-primary);
  --fp-admin-content-background: #ececea;
  --fp-admin-content-text: #151515;
  --fp-admin-text-muted: #4a4a4a;
  --fp-button-primary-background: var(--fp-color-accent);
  --fp-button-primary-text: #ffffff;
  --fp-table-header-background: var(--fp-color-surface-alt);
  --fp-table-row-background: var(--fp-color-surface);
  --fp-table-row-hover: rgba(255, 255, 255, 0.04);
  --fp-background-image: none;

  --fp-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fp-heading-font-family: var(--fp-font-family);

  --fp-color-bg: var(--fp-color-background);
  --fp-color-bg-elevated: var(--fp-color-secondary);
  --fp-color-bg-charcoal: var(--fp-color-primary);
  --fp-color-bg-surface: var(--fp-color-surface);
  --fp-color-text-subtle: #9a9a9a;
  --fp-color-accent-hover: #b52222;
  --fp-color-accent-active: #7a1616;
  --fp-color-focus: var(--fp-color-accent);
  --fp-black: #090909;
  --fp-charcoal: #242424;
  --fp-charcoal-mid: #333333;
  --fp-coaches-surface: #2a2c2e;
  --fp-coaches-surface-deep: #252628;
  --fp-coaches-section-bg: #262628;
  --fp-coach-card-border: rgba(192, 196, 200, 0.34);
  --fp-coach-card-radius: 1rem;
  --fp-coach-card-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  --fp-home-hero-bg: var(--fp-primary, #1e1e20);
  --fp-home-benefits-bg: var(--fp-secondary, #242426);
  --fp-heather-gray: #d7d7d3;
  --fp-heather-gray-secondary: #c9c9c5;
  --fp-text-on-light: var(--fp-admin-content-text, #151515);
  --fp-text-muted-on-light: var(--fp-admin-text-muted, #4a4a4a);
  --fp-divider-on-light: rgba(0, 0, 0, 0.18);
  --fp-heather-base: #202020;
  --fp-heather-line: rgba(255, 255, 255, 0.035);
  --fp-heather-dark: rgba(0, 0, 0, 0.16);
  --fp-heather-line-light: rgba(0, 0, 0, 0.045);
  --fp-heather-highlight-light: rgba(255, 255, 255, 0.42);
  --fp-separator: rgba(255, 255, 255, 0.08);
  --fp-separator-dark: rgba(0, 0, 0, 0.22);

  /* Typography scale */
  --fp-type-hero-title: clamp(2.25rem, 4vw, 3.25rem);
  --fp-type-page-title: clamp(2rem, 3vw, 2.75rem);
  --fp-type-section-title: clamp(1.65rem, 2.2vw, 2.1rem);
  --fp-type-card-title: clamp(1.1rem, 1.15vw, 1.25rem);
  --fp-type-lead: clamp(1.1rem, 1.25vw, 1.2rem);
  --fp-type-body: 1rem;
  --fp-type-small: clamp(0.875rem, 0.9vw, 0.9375rem);
  --fp-type-meta: 0.875rem;
  --fp-lh-hero-title: 1.1;
  --fp-lh-page-title: 1.1;
  --fp-lh-section-title: 1.2;
  --fp-lh-card-title: 1.25;
  --fp-lh-lead: 1.5;
  --fp-lh-body: 1.6;
  --fp-lh-small: 1.45;
  --fp-fw-hero-title: 800;
  --fp-fw-page-title: 800;
  --fp-fw-section-title: 800;
  --fp-fw-card-title: 700;
  --fp-fw-lead: 400;
  --fp-fw-body: 400;
  --fp-fw-small: 500;
  --fp-fw-meta: 600;
  --fp-ls-tight: -0.02em;
  --fp-ls-hero: -0.03em;

  /* Spacing scale */
  --fp-space-section-lg: clamp(3.5rem, 5vw, 4.5rem);
  --fp-space-section-md: clamp(2rem, 3.5vw, 3rem);
  --fp-space-section-sm: clamp(2rem, 3vw, 2.5rem);
  --fp-space-page-header-y: clamp(1.25rem, 2.5vw, 1.75rem);
  --fp-space-page-header-bottom: clamp(1rem, 2vw, 1.375rem);
  --fp-space-heading-to-text: clamp(0.75rem, 1.5vw, 1rem);
  --fp-space-text-to-cards: clamp(1.5rem, 2.5vw, 2rem);
  --fp-space-card-grid: clamp(1rem, 1.5vw, 1.5rem);
  --fp-space-cta: clamp(2rem, 3vw, 3rem);
  --fp-space-home: clamp(1.25rem, 3vw, 1.75rem);

  /* Layout widths */
  --fp-container-max: 1200px;
  --fp-container-narrow: 48rem;
  --fp-container-prose: 38rem;

  /* Card system */
  --fp-card-bg: var(--fp-color-bg-charcoal);
  --fp-card-bg-alt: var(--fp-color-bg);
  --fp-card-padding: clamp(1.125rem, 2vw, 1.5rem);
  --fp-card-radius: var(--fp-radius-lg);
  --fp-card-border: 1px solid var(--fp-color-border);
  --fp-card-surface: #2a2a2a;
  --fp-card-elevated-border: rgba(192, 196, 200, 0.34);
  --fp-card-elevated-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  /* Card texture palette — flat SVG fills, ~7–10% tonal span */
  --fp-card-pattern-base: #2a2a2a;
  --fp-card-pattern-dark: #242424;
  --fp-card-pattern-mid: #2d2d2d;
  --fp-card-pattern-light: #333333;
  --fp-card-pattern-strength: 1;
  --fp-card-pattern-tile: 200px;
  --fp-coach-card-surface: var(--fp-card-surface);
  --fp-coach-card-camo-opacity: var(--fp-card-pattern-strength);
  --fp-card-pattern-opacity: var(--fp-card-pattern-strength);

  /* Legacy aliases */
  --fp-font-size-base: var(--fp-type-body);
  --fp-line-height: var(--fp-lh-body);
  --fp-space-section: var(--fp-space-section-lg);
  --fp-space-block: var(--fp-space-text-to-cards);
  --fp-radius: 0.5rem;
  --fp-radius-lg: 0.75rem;
  --fp-shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.4);
  --fp-min-touch: 44px;
  --fp-nav-height: 84px;
  --fp-nav-height-home: 84px;
  --fp-footer-height-home: 65px;
  --fp-home-chrome: calc(var(--fp-nav-height-home) + var(--fp-footer-height-home));
  --fp-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--fp-font-body);
  font-size: var(--fp-type-body);
  line-height: var(--fp-lh-body);
  font-weight: var(--fp-fw-body);
  color: var(--fp-color-text);
  background-color: var(--fp-color-background);
  -webkit-font-smoothing: antialiased;
}

.fp-theme-body {
  background-color: var(--fp-color-background);
  background-image: var(--fp-background-gradient, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.fp-theme-body--heathered_charcoal:not(.fp-admin-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: var(--fp-background-texture, none);
  background-repeat: repeat;
  background-size: var(--fp-background-texture-size, 720px) var(--fp-background-texture-size, 720px);
  opacity: var(--fp-background-texture-opacity, 0.045);
}

.fp-admin-body.fp-theme-body {
  background-image: var(--fp-background-gradient, none);
  background-attachment: scroll;
}

.fp-admin-body.fp-theme-body::before {
  content: none;
}

/* Shared layout container */
.fp-navbar > .container,
main .container,
.fp-footer > .container {
  max-width: var(--fp-container-max);
}

a {
  color: var(--fp-color-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--fp-transition);
}

a:hover {
  color: var(--fp-color-text-muted);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.navbar-toggler:focus-visible {
  outline: 2px solid var(--fp-color-focus);
  outline-offset: 2px;
  box-shadow: none;
}

/* Navigation */
.fp-header {
  position: relative;
  z-index: 1030;
  overflow: visible;
}

.fp-navbar {
  background-color: var(--fp-color-bg);
  border-bottom: 1px solid var(--fp-color-border);
  box-shadow: var(--fp-shadow-nav);
  min-height: var(--fp-nav-height);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  overflow: visible;
}

.fp-navbar > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: calc(var(--fp-nav-height) - 0.5rem);
}

.fp-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1rem;
  padding: 0.1875rem 0;
  text-decoration: none;
  line-height: 1;
}

.fp-brand-logo {
  display: block;
  flex-shrink: 0;
  height: 50px;
  width: auto;
  max-width: none;
  max-height: calc(var(--fp-nav-height) - 0.875rem);
  border: 0;
  background: none;
  object-fit: contain;
  object-position: center center;
  transition: opacity var(--fp-transition);
}

@media (min-width: 768px) {
  .fp-brand {
    margin-right: 1.25rem;
  }

  .fp-brand-logo {
    height: 62px;
  }
}

@media (min-width: 992px) {
  .fp-brand {
    margin-right: 1.5rem;
    padding: 0.25rem 0;
  }

  .fp-brand-logo {
    height: 78px;
    max-height: calc(var(--fp-nav-height) - 1rem);
  }
}

.fp-brand:hover .fp-brand-logo,
.fp-brand:focus-visible .fp-brand-logo {
  opacity: 0.85;
}

.fp-brand:hover {
  color: var(--fp-color-text-muted) !important;
}

.fp-nav-links .nav-link {
  position: relative;
  color: var(--fp-color-text-muted);
  font-weight: 500;
  padding: 0.75rem 1rem;
  min-height: var(--fp-min-touch);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.fp-nav-links .nav-link:hover,
.fp-nav-links .nav-link:focus-visible {
  color: var(--fp-color-text);
}

.fp-nav-links .nav-link.active {
  color: var(--fp-color-text);
  font-weight: 600;
}

.fp-nav-links .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0.375rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--fp-color-accent);
}

.fp-nav-actions {
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .fp-navbar .navbar-collapse {
    flex-wrap: nowrap;
  }

  .fp-nav-links {
    flex-wrap: nowrap;
  }

  .fp-nav-links .nav-link {
    font-size: var(--fp-type-body);
    padding: 0.5rem 0.75rem;
    min-height: 0;
  }

  .fp-nav-links .nav-link.active::after {
    left: 0.75rem;
    right: 0.75rem;
  }

  .fp-nav-actions {
    margin-top: 0;
    flex-shrink: 0;
  }

  .fp-nav-actions .fp-btn {
    padding: 0.5rem 1rem;
    font-size: var(--fp-type-meta);
    white-space: nowrap;
    min-height: 2.5rem;
  }

  .fp-nav-actions .fp-phone-link {
    padding: 0.5rem 0.75rem;
    font-size: var(--fp-type-small);
    white-space: nowrap;
    min-height: 2.5rem;
  }

  .fp-nav-actions .fp-nav-auth-link,
  .fp-nav-actions .fp-nav-auth-form .fp-btn {
    padding: 0.5rem 1rem;
    font-size: var(--fp-type-meta);
    white-space: nowrap;
    min-height: 2.5rem;
  }
}

.fp-phone-link {
  color: var(--fp-color-text-muted) !important;
  font-weight: 500;
  text-decoration: none;
  min-height: var(--fp-min-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.fp-phone-link:hover {
  color: var(--fp-color-text) !important;
}

.fp-nav-auth-form {
  margin: 0;
  display: flex;
  align-self: stretch;
}

@media (min-width: 992px) {
  .fp-nav-auth-form {
    align-self: auto;
  }
}

.fp-nav-auth-link.active {
  border-color: var(--fp-color-accent);
  color: var(--fp-color-accent);
}

.fp-navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--fp-radius);
  min-width: var(--fp-min-touch);
  min-height: var(--fp-min-touch);
  color: var(--fp-color-text);
}

.fp-navbar-toggler:focus {
  box-shadow: none;
}

.fp-navbar-toggler .navbar-toggler-icon {
  width: 1.375rem;
  height: 1.375rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.25' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

@media (max-width: 991.98px) {
  .fp-navbar .navbar-collapse {
    margin-top: 0.25rem;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--fp-color-border);
  }

  .fp-navbar .navbar-collapse.show,
  .fp-navbar .navbar-collapse.collapsing {
    background-color: var(--fp-color-bg);
  }
}

/* Buttons */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--fp-min-touch);
  padding: 0.75rem 1.5rem;
  font-weight: var(--fp-fw-card-title);
  font-size: var(--fp-type-small);
  letter-spacing: 0.01em;
  border-radius: var(--fp-radius);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color var(--fp-transition), border-color var(--fp-transition), color var(--fp-transition);
}

.fp-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--fp-type-body);
}

.fp-btn-sm {
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.fp-btn-primary {
  background-color: var(--fp-button-primary-background, var(--fp-color-accent));
  border-color: var(--fp-button-primary-background, var(--fp-color-accent));
  color: var(--fp-button-primary-text, var(--fp-color-text));
}

.fp-btn-primary:hover,
.fp-btn-primary:focus-visible {
  background-color: var(--fp-color-accent-hover);
  border-color: var(--fp-color-accent-hover);
  color: var(--fp-button-primary-text, var(--fp-color-text));
}

.fp-btn-primary:active {
  background-color: var(--fp-color-accent-active);
  border-color: var(--fp-color-accent-active);
}

.fp-btn-secondary {
  background-color: var(--fp-color-surface-alt);
  border-color: var(--fp-color-border);
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-btn-secondary:hover,
.fp-btn-secondary:focus-visible {
  background-color: var(--fp-color-surface);
  border-color: var(--fp-color-accent);
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-btn-destructive {
  background-color: transparent;
  border-color: var(--fp-color-danger);
  color: var(--fp-color-danger);
}

.fp-btn-destructive:hover,
.fp-btn-destructive:focus-visible {
  background-color: var(--fp-color-danger);
  color: var(--fp-button-primary-text, #ffffff);
}

.fp-btn-destructive-subtle {
  background-color: transparent;
  border-color: var(--fp-color-border);
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
}

.fp-btn-destructive-subtle:hover,
.fp-btn-destructive-subtle:focus-visible {
  background-color: transparent;
  border-color: var(--fp-color-danger);
  color: var(--fp-color-danger);
}

.fp-btn-outline {
  background-color: transparent;
  border-color: var(--fp-color-text);
  color: var(--fp-color-text);
}

.fp-btn-outline:hover,
.fp-btn-outline:focus-visible {
  background-color: var(--fp-color-text);
  border-color: var(--fp-color-text);
  color: var(--fp-color-bg);
}

.fp-btn:disabled,
.fp-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Page headers */
.fp-page-header {
  padding: var(--fp-space-section-lg) 0 var(--fp-space-section-md);
  background-color: var(--fp-color-bg-charcoal);
  border-bottom: 1px solid var(--fp-color-border);
}

.fp-page-title {
  font-family: var(--fp-heading-font-family, var(--fp-font-family));
  font-size: var(--fp-type-page-title);
  font-weight: var(--fp-fw-page-title);
  line-height: var(--fp-lh-page-title);
  letter-spacing: var(--fp-ls-tight);
  margin-bottom: var(--fp-space-heading-to-text);
}

.fp-page-lead {
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-lead);
  line-height: var(--fp-lh-lead);
  color: var(--fp-color-text-muted);
  max-width: var(--fp-container-prose);
  margin-bottom: 0;
}

/* Heathered texture */
.fp-heathered {
  position: relative;
  background-color: var(--fp-heather-base);
  isolation: isolate;
}

.fp-heathered::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      11deg,
      transparent 0,
      transparent 2px,
      var(--fp-heather-line) 2px,
      var(--fp-heather-line) 3px
    ),
    repeating-linear-gradient(
      -19deg,
      transparent 0,
      transparent 3px,
      var(--fp-heather-dark) 3px,
      transparent 4px
    ),
    repeating-linear-gradient(
      37deg,
      transparent 0,
      transparent 5px,
      var(--fp-heather-line) 5px,
      transparent 6px
    ),
    repeating-linear-gradient(
      -43deg,
      transparent 0,
      transparent 1px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      83deg,
      transparent 0,
      transparent 4px,
      var(--fp-heather-dark) 4px,
      transparent 5px
    );
}

.fp-heathered::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 7px,
      rgba(255, 255, 255, 0.018) 7px,
      rgba(255, 255, 255, 0.018) 8px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 9px,
      rgba(0, 0, 0, 0.1) 9px,
      transparent 10px
    );
}

.fp-heathered--hero {
  background-color: var(--fp-home-hero-bg);
}

.fp-hero--has-image {
  background-color: var(--fp-home-hero-bg);
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), var(--fp-hero-image-url);
  background-size: cover;
  background-position: center;
}

.fp-hero--has-image.fp-heathered::before,
.fp-hero--has-image.fp-heathered::after {
  opacity: 0.35;
}

.fp-heathered--hero::before {
  background-image:
    repeating-linear-gradient(
      9deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.022) 3px,
      rgba(255, 255, 255, 0.022) 4px
    ),
    repeating-linear-gradient(
      -21deg,
      transparent 0,
      transparent 4px,
      rgba(0, 0, 0, 0.1) 4px,
      transparent 5px
    ),
    repeating-linear-gradient(
      33deg,
      transparent 0,
      transparent 5px,
      rgba(255, 255, 255, 0.018) 5px,
      transparent 6px
    ),
    repeating-linear-gradient(
      -48deg,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      transparent 3px
    );
}

.fp-heathered--hero::after {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 8px,
      rgba(255, 255, 255, 0.012) 8px,
      rgba(255, 255, 255, 0.012) 9px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 10px,
      rgba(0, 0, 0, 0.07) 10px,
      transparent 11px
    );
}

.fp-heathered--gray {
  background-color: var(--fp-heather-gray);
}

.fp-heathered--gray::before {
  background-image:
    repeating-linear-gradient(
      13deg,
      transparent 0,
      transparent 3px,
      var(--fp-heather-line-light) 3px,
      transparent 4px
    ),
    repeating-linear-gradient(
      -24deg,
      transparent 0,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 4px,
      transparent 5px
    ),
    repeating-linear-gradient(
      39deg,
      transparent 0,
      transparent 6px,
      var(--fp-heather-highlight-light) 6px,
      transparent 7px
    ),
    repeating-linear-gradient(
      -57deg,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.025) 2px,
      transparent 3px
    );
}

.fp-heathered--gray::after {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 7px,
      rgba(0, 0, 0, 0.028) 7px,
      transparent 8px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 9px,
      var(--fp-heather-highlight-light) 9px,
      transparent 10px
    );
}

.fp-heathered--mid {
  background-color: var(--fp-home-benefits-bg);
}

/* Reusable premium card texture — camo-inspired flat SVG shapes (no gradients).
   Colors: --fp-card-pattern-base/dark/mid/light in fp-card-texture.svg
   Strength: --fp-card-pattern-strength (0.5–1). Tile: --fp-card-pattern-tile */
.fp-card-texture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--fp-card-surface);
  border: 1px solid var(--fp-card-elevated-border);
  box-shadow: var(--fp-card-elevated-shadow);
}

.fp-card-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--fp-card-pattern-strength);
  background-image: url("/images/patterns/fp-card-texture.svg");
  background-repeat: repeat;
  background-size: var(--fp-card-pattern-tile) var(--fp-card-pattern-tile);
}

.fp-card-texture > * {
  position: relative;
  z-index: 1;
}

.fp-card-texture--none::before {
  opacity: 0;
}

/* Legacy section modifier — texture lives on cards; section is solid charcoal. */
.fp-heathered--coaches {
  background-color: var(--fp-coaches-section-bg);
}

.fp-heathered--coaches::before,
.fp-heathered--coaches::after {
  display: none;
}

.fp-heathered--mid::before {
  background-image:
    repeating-linear-gradient(
      11deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.02) 3px,
      rgba(255, 255, 255, 0.02) 4px
    ),
    repeating-linear-gradient(
      -26deg,
      transparent 0,
      transparent 4px,
      rgba(0, 0, 0, 0.08) 4px,
      transparent 5px
    ),
    repeating-linear-gradient(
      44deg,
      transparent 0,
      transparent 5px,
      rgba(255, 255, 255, 0.015) 5px,
      transparent 6px
    );
}

.fp-heathered--mid::after {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 8px,
      rgba(255, 255, 255, 0.01) 8px,
      rgba(255, 255, 255, 0.01) 9px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 10px,
      rgba(0, 0, 0, 0.05) 10px,
      transparent 11px
    );
}

.fp-heathered > .container,
.fp-heathered > .fp-hero-content {
  position: relative;
  z-index: 1;
}

/* Hero */
.fp-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--fp-space-section) 0;
  background-color: var(--fp-color-bg-charcoal);
}

.fp-hero--home {
  min-height: auto;
  padding: clamp(1rem, 2.5vw, 1.375rem) 0;
}

.fp-hero--home .fp-hero-title {
  font-size: var(--fp-type-hero-title);
  margin-bottom: 0.375rem;
  line-height: var(--fp-lh-hero-title);
}

@media (min-width: 768px) {
  .fp-hero--home .fp-hero-title {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .fp-hero--home .fp-hero-content {
    max-width: 100%;
  }
}

.fp-hero--home .fp-hero-tagline {
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-card-title);
  color: var(--fp-color-text);
  margin-bottom: 0.375rem;
}

.fp-hero--home .fp-hero-lead {
  font-size: var(--fp-type-small);
  margin-bottom: 0.75rem;
  max-width: var(--fp-container-prose);
  line-height: var(--fp-lh-small);
}

.fp-hero--home .fp-hero-eyebrow {
  margin-bottom: 0.25rem;
  font-size: var(--fp-type-meta);
}

.fp-hero--home .fp-hero-actions {
  gap: 0.625rem;
  margin-bottom: 0;
}

.fp-hero--home .fp-btn-lg {
  padding: 0.625rem 1.25rem;
  font-size: var(--fp-type-small);
}

@media (min-width: 992px) {
  .fp-hero--home .fp-hero-content {
    max-width: 52rem;
  }
}

.fp-hero-content {
  max-width: var(--fp-container-narrow);
}

.fp-hero-eyebrow {
  font-size: var(--fp-type-meta);
  font-weight: var(--fp-fw-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-color-accent);
  margin-bottom: 1rem;
}

.fp-hero-title {
  font-family: var(--fp-heading-font-family, var(--fp-font-family));
  font-size: var(--fp-type-hero-title);
  font-weight: var(--fp-fw-hero-title);
  line-height: var(--fp-lh-hero-title);
  letter-spacing: var(--fp-ls-hero);
  margin-bottom: 1rem;
}

.fp-hero-tagline {
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-card-title);
  line-height: var(--fp-lh-lead);
  color: var(--fp-color-text-muted);
  margin-bottom: 1.25rem;
}

.fp-hero-lead {
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-lead);
  line-height: var(--fp-lh-lead);
  color: var(--fp-color-text-muted);
  margin-bottom: 2rem;
  max-width: var(--fp-container-prose);
}

.fp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.fp-section {
  padding: var(--fp-space-section-lg) 0;
}

.fp-section--compact {
  padding: var(--fp-space-section-lg) 0;
}

.fp-section--home {
  padding: var(--fp-space-home) 0;
}

.fp-home-landing .container {
  max-width: var(--fp-container-max);
}

/* Home — section surfaces */
body.fp-page-home .fp-navbar {
  background-color: var(--fp-black);
  border-bottom: 1px solid var(--fp-separator);
}

body.fp-page-home .fp-nav-actions--home {
  margin-left: auto;
}

@media (min-width: 992px) {
  body.fp-page-home .fp-nav-actions--home:empty {
    display: none;
  }
}

body.fp-page-home .fp-footer {
  background-color: var(--fp-black);
  border-top: 1px solid var(--fp-separator);
}

.fp-home-landing .fp-home-intro {
  background-color: var(--fp-coaches-section-bg);
  border-top: 1px solid var(--fp-separator);
  color: var(--fp-color-text);
}

.fp-home-landing .fp-home-intro .fp-home-heading {
  color: var(--fp-color-text);
}

.fp-home-landing .fp-home-intro .fp-home-text {
  color: var(--fp-color-text-muted);
}

.fp-home-landing .fp-home-intro .fp-home-subheading {
  color: var(--fp-color-text);
}

.fp-home-landing .fp-home-intro .fp-link-more {
  color: var(--fp-color-accent);
}

.fp-home-landing .fp-home-intro .fp-link-more:hover,
.fp-home-landing .fp-home-intro .fp-link-more:focus-visible {
  color: var(--fp-color-accent-hover);
}

.fp-home-landing .fp-home-intro a:focus-visible {
  outline-color: var(--fp-color-focus);
}

.fp-home-landing .fp-home-intro .fp-home-coach-name {
  color: var(--fp-color-text);
}

.fp-home-landing .fp-home-intro .fp-home-coach-role {
  color: var(--fp-color-text-muted);
}

.fp-home-landing .fp-home-intro .fp-home-coach-photo-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--fp-black);
  box-shadow: none;
}

.fp-home-heading {
  font-size: var(--fp-type-section-title);
  font-weight: var(--fp-fw-section-title);
  letter-spacing: var(--fp-ls-tight);
  line-height: var(--fp-lh-section-title);
  margin-bottom: var(--fp-space-heading-to-text);
}

.fp-home-subheading {
  font-size: var(--fp-type-card-title);
  font-weight: var(--fp-fw-card-title);
  color: var(--fp-color-text);
  margin-bottom: 0.5rem;
  line-height: var(--fp-lh-card-title);
}

.fp-home-text {
  font-size: var(--fp-type-body);
  color: var(--fp-color-text-muted);
  line-height: var(--fp-lh-body);
  margin-bottom: 0;
}

.fp-home-services-list li {
  font-size: var(--fp-type-small);
  font-weight: var(--fp-fw-card-title);
  color: var(--fp-color-text);
  padding: 0.1875rem 0;
  line-height: var(--fp-lh-small);
}

.fp-home-services-list li + li {
  border-top: 1px solid var(--fp-color-border);
}

.fp-link-more--compact {
  min-height: var(--fp-min-touch);
  font-size: var(--fp-type-small);
}

/* Home — coach cards */
.fp-home-coach-cards {
  margin-bottom: 0;
}

.fp-home-coach-card {
  text-align: center;
  padding: 0.75rem 0.625rem 0.875rem;
}

.fp-home-coach-card.fp-card-texture {
  border: 1px solid var(--fp-coach-card-border);
  border-radius: var(--fp-coach-card-radius);
  box-shadow: var(--fp-coach-card-shadow);
}

.fp-home-coach-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: clamp(200px, 22vw, 240px);
  border-radius: var(--fp-radius-lg);
  border: 1px solid var(--fp-color-border);
  margin-bottom: 0.625rem;
  background-color: var(--fp-black);
}

.fp-home-coach-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform var(--fp-transition);
}

.fp-home-coach-card:hover .fp-home-coach-photo,
.fp-home-coach-card:focus-within .fp-home-coach-photo {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .fp-home-coach-photo {
    transition: none;
  }

  .fp-home-coach-card:hover .fp-home-coach-photo,
  .fp-home-coach-card:focus-within .fp-home-coach-photo {
    transform: none;
  }
}

.fp-home-coach-name {
  font-size: var(--fp-type-card-title);
  font-weight: var(--fp-fw-card-title);
  line-height: var(--fp-lh-card-title);
  color: var(--fp-color-text);
  margin-bottom: 0.125rem;
}

.fp-home-coach-role {
  font-size: var(--fp-type-small);
  font-weight: var(--fp-fw-small);
  line-height: var(--fp-lh-small);
  color: var(--fp-color-text-muted);
  margin-bottom: 0;
}

/* Home — combined benefits and CTA */
.fp-home-bottom {
  padding: clamp(0.875rem, 2vw, 1rem) 0;
  border-top: 1px solid var(--fp-separator);
}

.fp-home-bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--fp-separator);
}

.fp-home-benefits-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem 1rem;
  margin-bottom: 0.625rem;
}

@media (min-width: 768px) {
  .fp-home-benefits-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem 0.75rem;
  }
}

.fp-home-benefits-strip li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--fp-type-small);
  font-weight: var(--fp-fw-small);
  color: var(--fp-color-text-muted);
  line-height: var(--fp-lh-small);
}

.fp-home-benefits-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.5rem;
  height: 0.3rem;
  border-left: 2px solid var(--fp-color-accent);
  border-bottom: 2px solid var(--fp-color-accent);
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .fp-home-bottom-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

.fp-cta-banner-title {
  font-size: var(--fp-type-section-title);
  font-weight: var(--fp-fw-section-title);
  letter-spacing: var(--fp-ls-tight);
  line-height: var(--fp-lh-section-title);
  margin-bottom: 0;
}

.fp-cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .fp-cta-banner-actions {
    width: auto;
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

/* Home — desktop viewport fit (intentional exception: compact chrome for single-screen layout) */
@media (min-width: 1200px) and (min-height: 800px) {
  body.fp-page-home {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
  }

  body.fp-page-home main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
  }

  body.fp-page-home .fp-header {
    flex-shrink: 0;
  }

  body.fp-page-home .fp-navbar {
    min-height: var(--fp-nav-height-home);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  body.fp-page-home .fp-home-landing {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--fp-home-chrome));
    overflow: hidden;
  }

  body.fp-page-home .fp-hero--home {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    padding: 0.875rem 0;
  }

  body.fp-page-home .fp-home-intro {
    flex: 0 0 auto;
    padding: 0.625rem 0;
  }

  body.fp-page-home .fp-home-intro .row {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 1.25rem;
    margin-bottom: 0;
    align-items: center;
  }

  body.fp-page-home .fp-home-intro .fp-home-heading {
    margin-bottom: 0.125rem;
  }

  body.fp-page-home .fp-home-intro .fp-home-subheading {
    margin-bottom: 0.375rem;
  }

  body.fp-page-home .fp-home-intro .fp-home-text {
    margin-bottom: 0.5rem;
  }

  body.fp-page-home .fp-home-coach-photo-wrap {
    height: clamp(168px, 14vw, 196px);
    margin-bottom: 0.375rem;
  }

  body.fp-page-home .fp-home-coach-photo {
    height: 100%;
  }

  body.fp-page-home .fp-home-coach-name {
    font-size: var(--fp-type-small);
    margin-bottom: 0;
  }

  body.fp-page-home .fp-home-coach-role {
    font-size: var(--fp-type-meta);
  }

  body.fp-page-home .fp-home-bottom {
    flex: 0 0 auto;
    max-height: none;
    padding: 0.5rem 0 0.625rem;
    display: flex;
    align-items: center;
  }

  body.fp-page-home .fp-home-bottom > .container {
    width: 100%;
  }

  body.fp-page-home .fp-home-benefits-strip {
    gap: 0.375rem 1rem;
    margin-bottom: 0.375rem;
  }

  body.fp-page-home .fp-home-benefits-strip li {
    font-size: var(--fp-type-small);
    padding-block: 0.125rem;
  }

  body.fp-page-home .fp-home-bottom-cta {
    padding-top: 0.375rem;
    margin-top: 0.25rem;
  }

  body.fp-page-home .fp-cta-banner-title {
    font-size: var(--fp-type-card-title);
  }

  body.fp-page-home .fp-footer {
    flex-shrink: 0;
    height: var(--fp-footer-height-home);
    padding: 0;
    display: flex;
    align-items: center;
  }

  body.fp-page-home .fp-footer > .container {
    width: 100%;
  }

  body.fp-page-home .fp-footer .row.gy-4 {
    --bs-gutter-y: 0;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 0;
  }

  body.fp-page-home .fp-footer .row > [class*="col-"] {
    flex: 1 1 0;
    width: auto;
  }

  body.fp-page-home .fp-footer-brand {
    font-size: var(--fp-type-small);
    margin-bottom: 0;
    line-height: var(--fp-lh-small);
  }

  body.fp-page-home .fp-footer-tagline {
    font-size: var(--fp-type-meta);
    line-height: var(--fp-lh-small);
  }

  body.fp-page-home .fp-footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  body.fp-page-home .fp-footer-links li + li {
    margin-top: 0;
  }

  body.fp-page-home .fp-footer-links a {
    min-height: auto;
    padding: 0;
    font-size: var(--fp-type-meta);
  }

  body.fp-page-home .fp-footer-meta,
  body.fp-page-home .fp-footer-powered {
    font-size: var(--fp-type-meta);
    line-height: var(--fp-lh-small);
    text-align: right;
    margin-bottom: 0;
  }
}

.fp-section-alt {
  background-color: var(--fp-color-bg-elevated);
}

.fp-section-header {
  text-align: center;
  max-width: var(--fp-container-narrow);
  margin: 0 auto var(--fp-space-text-to-cards);
}

.fp-section-title {
  font-size: var(--fp-type-section-title);
  font-weight: var(--fp-fw-section-title);
  line-height: var(--fp-lh-section-title);
  letter-spacing: var(--fp-ls-tight);
  margin-bottom: var(--fp-space-heading-to-text);
}

.fp-section-intro {
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-lead);
  line-height: var(--fp-lh-lead);
  color: var(--fp-color-text-muted);
  margin-bottom: 0;
}

/* Image placeholders */
.fp-image-placeholder {
  background-color: var(--fp-color-bg-surface);
  border: 1px dashed var(--fp-color-border);
  border-radius: var(--fp-radius-lg);
  position: relative;
}

.fp-image-placeholder::after {
  content: "Image coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fp-type-meta);
  font-weight: var(--fp-fw-meta);
  color: var(--fp-color-text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fp-coach-name--sm {
  font-size: var(--fp-type-body);
  font-weight: var(--fp-fw-card-title);
  text-align: center;
}

.fp-coach-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--fp-radius-lg);
  border: 1px solid var(--fp-color-border);
}

.fp-coach-photo--sm {
  aspect-ratio: 1 / 1;
}

.fp-location-map {
  aspect-ratio: 16 / 10;
  min-height: 240px;
}

/* Shared card grid spacing */
.fp-card-grid {
  --bs-gutter-x: var(--fp-space-card-grid);
  --bs-gutter-y: var(--fp-space-card-grid);
}

/* Shared card surface */
.fp-card-surface {
  background-color: var(--fp-card-bg);
  border: var(--fp-card-border);
  border-radius: var(--fp-card-radius);
  padding: var(--fp-card-padding);
}

.fp-card-title {
  font-size: var(--fp-type-card-title);
  font-weight: var(--fp-fw-card-title);
  line-height: var(--fp-lh-card-title);
  margin-bottom: var(--fp-space-heading-to-text);
  color: var(--fp-color-text);
}

.fp-card-body-text {
  font-size: var(--fp-type-body);
  line-height: var(--fp-lh-body);
  color: var(--fp-color-text-muted);
  margin-bottom: 0;
}

/* Coach cards */
.fp-coach-card {
  height: 100%;
  background-color: var(--fp-card-bg);
  border: var(--fp-card-border);
  border-radius: var(--fp-card-radius);
  overflow: hidden;
}

.fp-coach-card-body {
  padding: var(--fp-card-padding);
}

.fp-coach-name {
  font-size: var(--fp-type-card-title);
  font-weight: var(--fp-fw-card-title);
  line-height: var(--fp-lh-card-title);
  margin-bottom: var(--fp-space-heading-to-text);
}

.fp-coach-bio {
  font-size: var(--fp-type-body);
  line-height: var(--fp-lh-body);
  color: var(--fp-color-text-muted);
  margin-bottom: 0;
}

.fp-coach-bio + .fp-coach-bio {
  margin-top: 1rem;
}

.fp-coach-profile {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .fp-coach-profile {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    gap: 2rem;
  }
}

.fp-coach-profile-body {
  padding-top: 0.25rem;
}

/* Service & benefit cards */
.fp-service-card,
.fp-benefit-card {
  height: 100%;
  padding: var(--fp-card-padding);
  background-color: var(--fp-card-bg);
  border: var(--fp-card-border);
  border-radius: var(--fp-card-radius);
}

.fp-section-alt .fp-service-card,
.fp-section-alt .fp-benefit-card {
  background-color: var(--fp-card-bg-alt);
}

.fp-service-title,
.fp-benefit-title {
  font-size: var(--fp-type-card-title);
  font-weight: var(--fp-fw-card-title);
  line-height: var(--fp-lh-card-title);
  margin-bottom: var(--fp-space-heading-to-text);
  color: var(--fp-color-text);
}

.fp-service-card p,
.fp-benefit-card p {
  font-size: var(--fp-type-body);
  line-height: var(--fp-lh-body);
  color: var(--fp-color-text-muted);
  margin-bottom: 0;
}

.fp-service-list {
  display: flex;
  flex-direction: column;
  gap: var(--fp-space-card-grid);
}

.fp-service-detail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--fp-card-padding);
  background-color: var(--fp-card-surface);
  border-radius: var(--fp-card-radius);
}

.fp-service-detail.fp-card-texture {
  border: 1px solid var(--fp-card-elevated-border);
  border-left: 3px solid var(--fp-color-accent);
  box-shadow: var(--fp-card-elevated-shadow);
}

.fp-service-detail-title {
  font-size: var(--fp-type-card-title);
  font-weight: var(--fp-fw-card-title);
  line-height: var(--fp-lh-card-title);
  margin-bottom: var(--fp-space-heading-to-text);
}

.fp-service-detail p {
  font-size: var(--fp-type-body);
  line-height: var(--fp-lh-body);
  color: var(--fp-color-text-muted);
  margin-bottom: 0;
}

.fp-service-detail p + p {
  margin-top: 1rem;
}

.fp-link-more {
  display: inline-flex;
  align-items: center;
  min-height: var(--fp-min-touch);
  font-weight: 600;
  color: var(--fp-color-accent);
  text-decoration: none;
}

.fp-link-more:hover,
.fp-link-more:focus-visible {
  color: var(--fp-color-accent-hover);
}

.fp-cta-section {
  background-color: var(--fp-color-bg-charcoal);
  border-top: 1px solid var(--fp-color-border);
}

.fp-cta-content {
  text-align: center;
  max-width: var(--fp-container-narrow);
  margin: 0 auto;
}

.fp-cta-title {
  font-size: var(--fp-type-section-title);
  font-weight: var(--fp-fw-section-title);
  line-height: var(--fp-lh-section-title);
  letter-spacing: var(--fp-ls-tight);
  margin-bottom: var(--fp-space-heading-to-text);
}

.fp-cta-lead {
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-lead);
  line-height: var(--fp-lh-lead);
  color: var(--fp-color-text-muted);
  margin-bottom: var(--fp-space-text-to-cards);
}

/* Compact interior pages (About, Services, Location, Contact) */
.fp-page-compact .fp-page-header {
  padding: var(--fp-space-page-header-y) 0 var(--fp-space-page-header-bottom);
}

.fp-page-compact .fp-section {
  padding: var(--fp-space-section-sm) 0;
}

.fp-page-compact .fp-section-header {
  margin-bottom: var(--fp-space-text-to-cards);
}

.fp-page-compact .fp-cta-section {
  padding: var(--fp-space-section-sm) 0;
}

.fp-page-compact .fp-cta-lead {
  margin-bottom: var(--fp-space-heading-to-text);
}

.fp-page-compact .fp-hero-actions {
  gap: 0.75rem;
}

/* About page — coach layout */
.fp-about-coach-grid {
  align-items: stretch;
}

.fp-about-coach-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fp-about-coach-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(200px, 24vh, 240px);
  margin-bottom: var(--fp-space-heading-to-text);
  overflow: hidden;
  border-radius: var(--fp-card-radius);
  border: var(--fp-card-border);
  background-color: var(--fp-card-bg);
}

.fp-about-coach-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 992px) {
  .fp-about-coach-photo-wrap {
    height: clamp(210px, 22vh, 230px);
  }
}

/* Services page — card grid layout */
.fp-page-services .fp-service-grid {
  align-items: stretch;
}

.fp-page-services .fp-service-grid > [class*="col-"] {
  display: flex;
}

.fp-page-services .fp-service-detail {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
}

/* Contact page — form layout */
.fp-page-contact .fp-contact-list {
  margin-top: var(--fp-space-text-to-cards);
}

.fp-page-contact .fp-contact-list li + li {
  margin-top: var(--fp-space-heading-to-text);
}

.fp-page-contact .fp-form-notice {
  padding: var(--fp-space-heading-to-text) var(--fp-space-heading-to-text);
  margin-bottom: var(--fp-space-text-to-cards);
}

.fp-page-contact .fp-form-control {
  padding: 0.625rem 0.875rem;
}

/* Location */
.fp-location-name {
  font-size: var(--fp-type-card-title);
  font-weight: var(--fp-fw-card-title);
  line-height: var(--fp-lh-card-title);
}

.fp-location-city {
  font-size: var(--fp-type-body);
  color: var(--fp-color-text-muted);
}

/* Contact */
.fp-contact-list {
  margin-top: var(--fp-space-text-to-cards);
}

.fp-contact-list li + li {
  margin-top: var(--fp-space-heading-to-text);
}

.fp-contact-label {
  display: block;
  font-size: var(--fp-type-meta);
  font-weight: var(--fp-fw-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-color-text-subtle);
  margin-bottom: 0.25rem;
}

.fp-contact-list a {
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-small);
  text-decoration: none;
}

.fp-contact-list a:hover {
  color: var(--fp-color-accent-hover);
}

.fp-contact-form-card {
  padding: var(--fp-card-padding);
  background-color: var(--fp-card-bg);
  border: var(--fp-card-border);
  border-radius: var(--fp-card-radius);
}

/* Textured card variants — unified elevated surface across all pages */
.fp-benefit-card.fp-card-texture,
.fp-contact-form-card.fp-card-texture,
.fp-about-coach-card.fp-card-texture {
  background-color: var(--fp-card-surface);
  border: 1px solid var(--fp-card-elevated-border);
  box-shadow: var(--fp-card-elevated-shadow);
  border-radius: var(--fp-card-radius);
}

.fp-section-alt .fp-benefit-card.fp-card-texture {
  background-color: var(--fp-card-surface);
}

.fp-about-coach-card.fp-card-texture {
  padding: var(--fp-card-padding);
}

.fp-about-coach-card.fp-card-texture .fp-about-coach-photo-wrap {
  background-color: var(--fp-black);
}

.fp-form-notice {
  font-size: var(--fp-type-small);
  line-height: var(--fp-lh-small);
  color: var(--fp-color-text-muted);
  padding: var(--fp-space-heading-to-text) var(--fp-space-heading-to-text);
  margin-bottom: var(--fp-space-text-to-cards);
  background-color: var(--fp-color-bg);
  border-left: 3px solid var(--fp-color-accent);
  border-radius: 0 var(--fp-radius) var(--fp-radius) 0;
}

.fp-form-notice a {
  color: var(--fp-color-text);
  font-weight: 600;
}

.fp-contact-form .form-label {
  font-size: var(--fp-type-small);
  font-weight: var(--fp-fw-small);
  color: var(--fp-color-text-muted);
  margin-bottom: 0.375rem;
}

.fp-form-control {
  min-height: var(--fp-min-touch);
  background-color: var(--fp-color-bg);
  border: 1px solid var(--fp-color-border);
  color: var(--fp-color-text);
  border-radius: var(--fp-radius);
  padding: 0.75rem 1rem;
}

.fp-form-control::placeholder {
  color: var(--fp-color-text-subtle);
}

.fp-form-control:focus {
  background-color: var(--fp-color-bg);
  border-color: var(--fp-color-text-muted);
  color: var(--fp-color-text);
  box-shadow: none;
}

textarea.fp-form-control {
  min-height: 8rem;
}

/* Footer */
.fp-footer {
  padding: clamp(1.25rem, 2.5vw, 1.5rem) 0;
  background-color: var(--fp-color-bg);
  border-top: 1px solid var(--fp-color-border);
}

@media (min-width: 992px) {
  .fp-footer .row.gy-4 {
    --bs-gutter-y: 0;
    flex-wrap: nowrap;
    align-items: center;
  }

  .fp-footer .row > [class*="col-"] {
    flex: 1 1 0;
    width: auto;
  }

  .fp-footer-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
  }

  .fp-footer-links li + li {
    margin-top: 0;
  }

  .fp-footer-links a {
    min-height: auto;
    padding: 0;
  }

  .fp-footer-meta,
  .fp-footer-powered {
    text-align: right;
  }
}

.fp-footer-brand {
  font-family: var(--fp-heading-font-family, var(--fp-font-family));
  font-size: var(--fp-type-lead);
  font-weight: var(--fp-fw-card-title);
}

.fp-footer-tagline {
  color: var(--fp-color-text-muted);
  font-size: var(--fp-type-small);
}

.fp-footer-links a {
  color: var(--fp-color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--fp-min-touch);
  padding: 0.25rem 0;
}

.fp-footer-links a:hover {
  color: var(--fp-color-text);
}

.fp-footer-meta,
.fp-footer-powered {
  font-size: var(--fp-type-meta);
  color: var(--fp-color-text-subtle);
}

/* Offset anchor targets for sticky nav */
section[id] {
  scroll-margin-top: calc(var(--fp-nav-height) + 1rem);
}

/* Administration area */
.fp-admin-body {
  margin: 0;
  background-color: var(--fp-admin-content-background);
  color: var(--fp-admin-content-text);
  font-family: var(--fp-font-body, var(--fp-font-family));
  --fp-admin-action-background: #3d5a73;
  --fp-admin-action-background-hover: #4a6985;
  --fp-admin-action-border: #3d5a73;
  --fp-admin-action-text: #ffffff;
}

.fp-admin-body .fp-btn-primary {
  background-color: var(--fp-admin-action-background);
  border-color: var(--fp-admin-action-border);
  color: var(--fp-admin-action-text);
}

.fp-admin-body .fp-btn-primary:hover,
.fp-admin-body .fp-btn-primary:focus-visible {
  background-color: var(--fp-admin-action-background-hover);
  border-color: var(--fp-admin-action-background-hover);
  color: var(--fp-admin-action-text);
}

.fp-admin-body .fp-btn-primary:active {
  background-color: #345068;
  border-color: #345068;
  color: var(--fp-admin-action-text);
}

.fp-admin-body .fp-btn-secondary:hover,
.fp-admin-body .fp-btn-secondary:focus-visible {
  border-color: var(--fp-admin-action-background);
  color: var(--fp-admin-content-text);
}

.fp-admin-body .fp-admin-btn-primary,
.fp-admin-body .fp-admin-btn-accent {
  background-color: var(--fp-admin-action-background);
  border-color: var(--fp-admin-action-border);
  color: var(--fp-admin-action-text);
}

.fp-admin-body .fp-admin-btn-primary:hover,
.fp-admin-body .fp-admin-btn-primary:focus-visible,
.fp-admin-body .fp-admin-btn-accent:hover,
.fp-admin-body .fp-admin-btn-accent:focus-visible {
  background-color: var(--fp-admin-action-background-hover);
  border-color: var(--fp-admin-action-background-hover);
  color: var(--fp-admin-action-text);
}

.fp-admin-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.fp-admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.55);
  z-index: 1040;
}

.fp-admin-sidebar {
  width: 18rem;
  flex-shrink: 0;
  background-color: var(--fp-admin-sidebar-background);
  color: var(--fp-color-text-muted);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-right: 1px solid var(--fp-color-border, #3a3a3a);
  z-index: 1041;
}

.fp-admin-sidebar-header {
  padding: 0 1.375rem 1.375rem;
  border-bottom: 1px solid var(--fp-separator, rgba(255, 255, 255, 0.08));
  margin-bottom: 1.125rem;
}

.fp-admin-brand {
  color: var(--fp-color-text, #ffffff);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.fp-admin-brand--logo {
  line-height: 0;
}

.fp-admin-brand--text {
  font-size: 1rem;
  line-height: 1.3;
}

.fp-admin-brand-logo {
  display: block;
  max-width: 100%;
  max-height: 2.5rem;
  width: auto;
  height: auto;
}

.fp-admin-brand-text {
  display: block;
  color: var(--fp-color-text, #ffffff);
}

.fp-admin-brand:hover {
  color: var(--fp-color-text, #ffffff);
  opacity: 0.92;
}

.fp-admin-nav {
  flex: 1;
  padding: 0 0.875rem;
  overflow-y: auto;
}

.fp-admin-nav-section {
  margin-bottom: 1.375rem;
}

.fp-admin-nav-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-color-text-subtle, #9a9a9a);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.fp-admin-nav-link {
  display: block;
  padding: 0.6875rem 0.875rem;
  min-height: 2.75rem;
  border-radius: 0.4375rem;
  color: var(--fp-color-text-muted, #c4c4c4);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.fp-admin-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--fp-color-text, #ffffff);
}

.fp-admin-nav-link.active {
  background-color: rgba(155, 28, 28, 0.32);
  color: var(--fp-color-text, #ffffff);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--fp-color-accent, #9b1c1c);
}

.fp-admin-nav-link.disabled,
.fp-admin-nav-link[aria-disabled="true"] {
  color: #767670;
  pointer-events: none;
  cursor: default;
}

.fp-admin-nav-sublink {
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.fp-admin-back-nav {
  margin: 0 0 0.75rem;
}

.fp-admin-back-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-admin-text-muted);
  text-decoration: none;
}

.fp-admin-back-nav-link:hover {
  color: var(--fp-admin-content-text, var(--fp-color-text));
  text-decoration: underline;
}

.fp-admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fp-admin-topbar {
  background-color: var(--fp-admin-topbar-background);
  border-bottom: 1px solid var(--fp-admin-topbar-border);
  color: var(--fp-admin-topbar-text);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.fp-admin-topbar-start {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.fp-admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fp-admin-user-identity,
.fp-authenticated-identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: min(100%, 18rem);
  font-size: 0.875rem;
  color: var(--fp-color-text-muted, #6c757d);
}

.fp-admin-user-identity-name,
.fp-authenticated-identity-name {
  font-weight: 600;
  color: var(--fp-color-text, inherit);
}

.fp-admin-user-identity-username,
.fp-authenticated-identity-username {
  color: var(--fp-color-text-muted, #6c757d);
}

.fp-admin-user-identity-separator,
.fp-authenticated-identity-separator {
  color: var(--fp-color-text-muted, #6c757d);
}

.fp-authenticated-identity--public {
  max-width: none;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
}

.fp-authenticated-identity--public .fp-authenticated-identity-name {
  color: #fff;
}

.fp-authenticated-identity--public .fp-authenticated-identity-username,
.fp-authenticated-identity--public .fp-authenticated-identity-separator {
  color: rgba(255, 255, 255, 0.78);
}

.fp-nav-auth-cluster {
  align-items: center;
}

@media (max-width: 991.98px) {
  .fp-nav-auth-cluster {
    width: 100%;
  }

  .fp-authenticated-identity--public {
    padding: 0.125rem 0;
  }
}

@media (max-width: 575.98px) {
  .fp-admin-user-identity-username,
  .fp-authenticated-identity-username {
    display: none;
  }

  .fp-authenticated-identity--public .fp-authenticated-identity-username {
    display: inline;
  }
}

.fp-account-menu {
  max-width: min(100%, 16rem);
}

.fp-account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  text-align: left;
}

.fp-account-menu-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fp-account-menu--public .fp-account-menu-toggle {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.fp-account-menu--public .fp-account-menu-toggle:hover,
.fp-account-menu--public .fp-account-menu-toggle:focus,
.fp-account-menu--public .fp-account-menu-toggle.show {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.fp-account-menu--admin .fp-account-menu-toggle {
  border: 1px solid var(--fp-color-border);
  background: var(--fp-color-surface-alt);
  color: var(--fp-admin-topbar-text);
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.fp-account-menu-dropdown {
  min-width: 12rem;
}

.fp-account-menu-signout-form .dropdown-item {
  width: 100%;
  text-align: left;
}

@media (max-width: 991.98px) {
  .fp-account-menu {
    width: 100%;
    max-width: none;
  }

  .fp-account-menu--public .fp-account-menu-toggle {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 575.98px) {
  .fp-account-menu--admin .fp-account-menu-label {
    max-width: 10rem;
  }
}

.fp-admin-menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: var(--fp-color-surface-alt);
  padding: 0.45rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.fp-admin-menu-btn span {
  display: block;
  height: 2px;
  background: var(--fp-admin-topbar-text);
  border-radius: 999px;
}

.fp-admin-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #5f5f5a;
  margin-bottom: 0.25rem;
}

.fp-admin-breadcrumb a {
  color: #5f5f5a;
  text-decoration: none;
}

.fp-admin-breadcrumb a:hover {
  color: var(--fp-admin-content-text, var(--fp-color-text));
  text-decoration: underline;
}

.fp-admin-breadcrumb-current {
  color: var(--fp-text-on-light, #151515);
  font-weight: 600;
}

.fp-admin-breadcrumb-sep {
  color: #8d8d88;
}

.fp-admin-page-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--fp-admin-topbar-text);
}

.fp-admin-page-subtitle {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fp-admin-topbar-muted);
  margin-top: 0.35rem;
  max-width: 52rem;
}

.fp-admin-content {
  padding: 1rem 1.125rem 1.5rem;
  flex: 1;
}

.fp-admin-content-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.fp-admin-content-inner--wide {
  max-width: 90rem;
}

.fp-admin-card {
  background-color: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  padding: 1.25rem;
  box-shadow: var(--fp-shadow-surface);
  color: var(--fp-admin-content-text);
}

.fp-admin-card--compact {
  padding: 1rem 1.125rem;
}

.fp-admin-card--dashboard {
  max-width: none;
}

.fp-admin-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fp-admin-content-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.fp-admin-card + .fp-admin-card {
  margin-top: 1rem;
}

.fp-admin-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #242424;
  margin-bottom: 0.35rem;
}

.fp-admin-control {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c9c9c3;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #151515;
  font-size: 0.9375rem;
}

.fp-admin-control:focus {
  outline: 2px solid var(--fp-color-accent, #9b1c1c);
  outline-offset: 1px;
  border-color: var(--fp-color-accent, #9b1c1c);
}

.fp-admin-alert {
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.fp-admin-alert-info {
  background: #f7f1f1;
  border: 1px solid #e7cccc;
  color: #4a2020;
}

.fp-admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.fp-admin-form-actions--compact {
  margin-top: 0.875rem;
  gap: 0.5rem;
}

.fp-admin-body .fp-admin-card.fp-client-edit-card,
.fp-admin-body .fp-admin-card.fp-client-details-card {
  padding: 0.875rem 1rem;
}

.fp-admin-body .fp-admin-card.fp-client-edit-card .form-label,
.fp-admin-body .fp-admin-card.fp-client-details-card .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
}

.fp-client-details-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.fp-client-details-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fp-admin-content-text);
  letter-spacing: -0.01em;
}

.fp-client-page-sections {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fp-client-section {
  min-width: 0;
}

.fp-client-summary {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fp-client-summary-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fp-admin-content-text);
  line-height: 1.3;
}

.fp-client-summary-preferred {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fp-admin-text-muted);
}

.fp-client-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--fp-admin-content-text);
}

.fp-client-summary-meta-label {
  color: var(--fp-admin-text-muted);
  font-weight: 500;
}

.fp-client-details-grid {
  --bs-gutter-y: 0.5rem;
}

.fp-client-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.fp-client-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fp-admin-text-muted);
}

.fp-client-detail-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
  line-height: 1.35;
}

.fp-client-details-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--fp-color-border);
}

.fp-client-form-grid {
  --bs-gutter-y: 0.5rem;
}

.fp-client-edit-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.625rem;
  margin-left: auto;
}

.fp-client-edit-status-form {
  margin: 0;
}

@media (max-width: 575.98px) {
  .fp-client-details-actions .fp-client-edit-status {
    margin-left: 0;
    width: 100%;
    padding-top: 0.375rem;
    border-top: 1px solid var(--fp-color-border);
  }
}

/* Administration form validation — explicit classes scoped to admin shell only. */
.fp-admin-body .fp-admin-validation-message {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #f0b8b0;
}

.fp-admin-body .fp-admin-card > .fp-admin-validation-message.mb-3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.fp-admin-body .fp-admin-card .form-control:has(+ .fp-admin-validation-message:not(:empty)),
.fp-admin-body .fp-admin-card .form-select:has(+ .fp-admin-validation-message:not(:empty)),
.fp-admin-body .fp-admin-card textarea.form-control:has(+ .fp-admin-validation-message:not(:empty)),
.fp-admin-body .fp-admin-card .form-control.input-validation-error,
.fp-admin-body .fp-admin-card .form-select.input-validation-error,
.fp-admin-body .fp-admin-card .form-control.is-invalid,
.fp-admin-body .fp-admin-card .form-select.is-invalid {
  border-color: #c97a72;
}

.fp-admin-body .fp-admin-card .form-control:has(+ .fp-admin-validation-message:not(:empty)):focus,
.fp-admin-body .fp-admin-card .form-select:has(+ .fp-admin-validation-message:not(:empty)):focus,
.fp-admin-body .fp-admin-card textarea.form-control:has(+ .fp-admin-validation-message:not(:empty)):focus,
.fp-admin-body .fp-admin-card .form-control.input-validation-error:focus,
.fp-admin-body .fp-admin-card .form-select.input-validation-error:focus,
.fp-admin-body .fp-admin-card .form-control.is-invalid:focus,
.fp-admin-body .fp-admin-card .form-select.is-invalid:focus {
  border-color: #d48980;
  box-shadow: 0 0 0 2px rgba(201, 122, 114, 0.25);
  outline: 0;
}

.fp-admin-status {
  font-size: 0.875rem;
  color: var(--fp-admin-text-muted);
  margin-bottom: 1rem;
}

.fp-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fp-admin-btn-sm {
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.fp-admin-btn-outline {
  background-color: transparent;
  border-color: var(--fp-admin-topbar-text);
  color: var(--fp-admin-topbar-text);
}

.fp-admin-btn-outline:hover,
.fp-admin-btn-outline:focus-visible {
  background-color: var(--fp-admin-topbar-text);
  border-color: var(--fp-admin-topbar-text);
  color: var(--fp-admin-topbar-background);
}

.fp-admin-btn-primary,
.fp-admin-btn-accent {
  background-color: var(--fp-button-primary-background, var(--fp-color-accent));
  border-color: var(--fp-button-primary-background, var(--fp-color-accent));
  color: var(--fp-button-primary-text, #ffffff);
}

.fp-admin-btn-primary:hover,
.fp-admin-btn-primary:focus-visible,
.fp-admin-btn-accent:hover,
.fp-admin-btn-accent:focus-visible {
  background-color: var(--fp-color-accent-hover, #b52222);
  border-color: var(--fp-color-accent-hover, #b52222);
  color: #ffffff;
}

.fp-admin-btn-ghost {
  min-height: 2.25rem;
  padding: 0.375rem 0.625rem;
  background: transparent;
  border-color: transparent;
  color: #242424;
  font-size: 0.8125rem;
  font-weight: 600;
}

.fp-admin-btn-ghost:hover,
.fp-admin-btn-ghost:focus-visible {
  background: #f4f4f2;
  color: #151515;
}

.fp-admin-btn-ghost-danger {
  color: var(--fp-color-accent, #9b1c1c);
}

.fp-admin-btn-ghost-danger:hover,
.fp-admin-btn-ghost-danger:focus-visible {
  background: #fdf4f4;
  color: var(--fp-color-accent-active, #7a1616);
}

.fp-admin-btn-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.fp-admin-topbar--compact {
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.fp-admin-dashboard-header-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: var(--fp-ls-tight, -0.02em);
  line-height: 1.2;
  color: var(--fp-admin-topbar-text);
}

.fp-admin-dashboard-header-meta {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--fp-admin-topbar-muted);
  margin-top: 0.15rem;
}

.fp-admin-content--dashboard {
  padding: 0.625rem 1.125rem 1rem;
}

/* Administration dashboard */
.fp-admin-dashboard {
  display: grid;
  gap: 0.75rem;
}

.fp-admin-dashboard-widgets {
  min-height: 3rem;
}

.fp-admin-dashboard-widgets-track {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 3rem;
}

.fp-admin-dashboard-widget-slot {
  min-height: 3rem;
  border-radius: var(--fp-radius-lg, 0.75rem);
}

.fp-admin-dashboard-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-text-muted-on-light, #4a4a4a);
  margin: 0 0 0.625rem;
}

.fp-admin-dashboard-grid {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .fp-admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fp-admin-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fp-admin-dashboard-module {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 17rem;
  padding: 1.5rem 1.5rem 1.625rem;
  background: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  box-shadow: var(--fp-shadow-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--fp-admin-content-text);
}

a.fp-admin-dashboard-module--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.fp-admin-dashboard-module--link:focus-visible {
  outline: 2px solid var(--fp-color-accent, #9b1c1c);
  outline-offset: 2px;
}

a.fp-admin-dashboard-module--link .fp-admin-btn {
  pointer-events: none;
}

.fp-admin-dashboard-module--link:hover,
.fp-admin-dashboard-module--link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--fp-color-accent);
  box-shadow: var(--fp-shadow-surface);
}

.fp-admin-dashboard-module--link:hover .fp-admin-btn-accent,
.fp-admin-dashboard-module--link:focus-visible .fp-admin-btn-accent {
  background-color: var(--fp-color-accent-hover, #b52222);
  border-color: var(--fp-color-accent-hover, #b52222);
}

.fp-admin-dashboard-module--placeholder {
  background: var(--fp-color-surface-alt);
  border: 1px dashed var(--fp-module-inactive-border);
  box-shadow: none;
  opacity: 0.92;
}

.fp-admin-dashboard-module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.75rem;
  background: rgba(155, 28, 28, 0.08);
  color: var(--fp-color-accent, #9b1c1c);
  margin-bottom: 1.25rem;
}

.fp-admin-dashboard-module-icon svg {
  width: 1.875rem;
  height: 1.875rem;
}

.fp-admin-dashboard-module--link .fp-admin-dashboard-module-icon {
  background: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 42%, rgba(0, 0, 0, 0.45));
  color: rgba(255, 255, 255, 0.94);
}

.fp-admin-dashboard-module--placeholder .fp-admin-dashboard-module-icon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fp-module-inactive-text);
}

.fp-admin-dashboard-module-body {
  flex: 1 1 auto;
}

.fp-admin-dashboard-module-title {
  font-size: 1.1875rem;
  font-weight: var(--fp-fw-card-title, 700);
  letter-spacing: var(--fp-ls-tight, -0.02em);
  color: var(--fp-admin-content-text);
  margin: 0 0 0.5rem;
}

.fp-admin-dashboard-module-description {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fp-admin-text-muted);
  margin: 0;
}

.fp-admin-dashboard-module-action {
  margin-top: auto;
  padding-top: 1.375rem;
}

.fp-admin-dashboard-module-action .fp-admin-btn {
  min-width: 9.5rem;
}

.fp-admin-dashboard-module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--fp-radius-small);
  border: 1px solid var(--fp-module-inactive-border);
  background: var(--fp-color-surface);
  color: var(--fp-module-inactive-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fp-admin-dashboard-empty {
  background: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  padding: 1.5rem;
  color: var(--fp-admin-text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 991.98px) {
  .fp-admin-dashboard-widgets-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-admin-dashboard-widget-slot:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .fp-admin-dashboard {
    gap: 0.625rem;
  }

  .fp-admin-content--dashboard {
    padding: 0.5rem 0.875rem 0.875rem;
  }

  .fp-admin-dashboard-widgets {
    min-height: 0;
  }

  .fp-admin-dashboard-widgets-track {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fp-admin-dashboard-widget-slot {
    min-height: 2.75rem;
  }

  .fp-admin-dashboard-widget-slot:nth-child(n + 2) {
    display: none;
  }

  .fp-admin-dashboard-header-title {
    font-size: 1.25rem;
  }

  .fp-admin-dashboard-module {
    min-height: 0;
    padding: 1.125rem 1.25rem 1.25rem;
  }

  .fp-admin-dashboard-module-icon {
    width: 3.375rem;
    height: 3.375rem;
  }

  .fp-admin-dashboard-module-icon svg {
    width: 1.625rem;
    height: 1.625rem;
  }

  .fp-admin-dashboard-module-action .fp-admin-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Media administration */
.fp-media-top-panels {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .fp-media-top-panels {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

@media (min-width: 640px) and (max-width: 991.98px) {
  .fp-media-top-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.fp-media-panel {
  min-width: 0;
}

.fp-media-top-panels .fp-admin-card + .fp-admin-card {
  margin-top: 0;
}

.fp-media-panel--shell {
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.5rem);
  background: var(--fp-color-surface);
  box-shadow: var(--fp-shadow-surface);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
}

.fp-media-panel-header {
  display: grid;
  gap: 0.125rem;
  margin-bottom: 0.5rem;
}

.fp-media-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-admin-text-muted);
  margin: 0;
}

.fp-media-panel-subline {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--fp-admin-text-muted);
  min-height: 1lh;
}

.fp-media-panel-subline:empty::before {
  content: "\00a0";
}

.fp-media-albums-section {
  margin-bottom: 1.25rem;
  overflow: visible;
}

.fp-album-card-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  overflow: visible;
}

@media (min-width: 640px) {
  .fp-album-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  }
}

.fp-album-card-wrap {
  position: relative;
  min-width: 0;
}

.fp-album-card-wrap--diagnostic {
  opacity: 0.82;
}

.fp-album-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.5rem);
  background: var(--fp-color-surface);
  box-shadow: var(--fp-shadow-surface);
  color: var(--fp-admin-content-text);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fp-album-card:hover,
.fp-album-card:focus-visible {
  border-color: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 35%, var(--fp-color-border));
  box-shadow: var(--fp-shadow-surface);
  color: var(--fp-admin-content-text);
  outline: none;
}

.fp-album-card.is-selected {
  border-color: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 55%, var(--fp-color-border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 35%, transparent);
}

.fp-album-card-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--fp-radius-medium, 0.5rem) - 1px) calc(var(--fp-radius-medium, 0.5rem) - 1px) 0 0;
  background: var(--fp-color-surface-alt);
}

.fp-album-card-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fp-album-card-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-admin-text-muted);
}

.fp-album-card-cover-icon {
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.72;
}

.fp-album-card-body {
  display: grid;
  gap: 0.125rem;
  padding: 0.4375rem 0.5rem 0.5rem;
  min-width: 0;
}

.fp-album-card-name {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-album-card-count {
  font-size: 0.625rem;
  color: var(--fp-admin-text-muted);
  line-height: 1.2;
}

.fp-album-card.is-selected .fp-album-card-name {
  color: var(--fp-color-accent, #9b1c1c);
}

.fp-album-card-menu {
  position: absolute;
  top: 0.3125rem;
  right: 0.3125rem;
  z-index: 2;
}

.fp-album-card-menu .fp-album-filter-menu-trigger {
  width: 1.5rem;
  min-height: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--fp-color-surface-raised) 88%, transparent);
  border-color: color-mix(in srgb, var(--fp-color-border) 80%, transparent);
  backdrop-filter: blur(4px);
}

.fp-album-card-menu[open] {
  z-index: 4;
}

.fp-album-card-empty {
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-library-full {
  width: 100%;
  overflow: visible;
}

.fp-media-grid {
  overflow: visible;
}

.fp-media-upload-form {
  display: grid;
  gap: 0.5rem;
}

.fp-media-create-album-form {
  display: grid;
  gap: 0.5rem;
}

.fp-media-upload-btn {
  width: 100%;
  justify-content: center;
}

.fp-media-form-field {
  display: grid;
  gap: 0.25rem;
}

.fp-media-dropzone {
  position: relative;
  border: 1px dashed var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.5rem);
  background: var(--fp-table-row-background);
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fp-media-dropzone:hover {
  border-color: var(--fp-color-accent, #9b1c1c);
  background: var(--fp-color-surface-raised);
}

.fp-media-dropzone-label {
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.fp-media-dropzone-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
}

.fp-media-selected-file {
  display: block;
  font-size: 0.6875rem;
  color: var(--fp-admin-text-muted);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-media-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fp-media-albums-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.fp-media-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.fp-media-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-admin-text-muted);
  margin: 0;
}

.fp-media-section-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fp-color-accent, #9b1c1c);
  margin: 0;
}

.fp-media-album-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
  padding: 0.4375rem 0;
  border-bottom: 1px solid var(--fp-color-border);
  color: var(--fp-admin-content-text);
  font-size: 0.8125rem;
}

.fp-media-album-breadcrumb-current {
  font-weight: 600;
  min-width: 0;
}

.fp-media-album-breadcrumb-back {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fp-color-accent, #9b1c1c);
  text-decoration: none;
}

.fp-media-album-breadcrumb-back:hover,
.fp-media-album-breadcrumb-back:focus-visible {
  text-decoration: underline;
}

.fp-media-album-selected-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.625rem 0.875rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--fp-color-border);
}

.fp-media-album-selected-info {
  min-width: 0;
}

.fp-media-album-selected-label {
  margin: 0 0 0.125rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-admin-text-muted);
}

.fp-media-album-selected-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fp-admin-content-text);
  line-height: 1.25;
}

.fp-media-album-selected-meta {
  margin: 0.1875rem 0 0;
  font-size: 0.75rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-album-back-link {
  flex-shrink: 0;
  text-decoration: none;
}

.fp-media-album-upload-target {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--fp-admin-content-text);
}

.fp-media-album-upload-note {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-album-actions {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 28%, var(--fp-color-border));
  border-radius: var(--fp-radius-medium, 0.5rem);
  background: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 6%, var(--fp-color-surface));
}

.fp-media-album-actions-label {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fp-admin-content-text);
}

.fp-media-album-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fp-media-upload-album-note {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-add-existing-help {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-add-existing-empty {
  font-size: 0.8125rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-add-existing-list {
  display: grid;
  gap: 0.375rem;
  max-height: min(24rem, 60vh);
  overflow: auto;
}

.fp-media-add-existing-option {
  display: grid;
  grid-template-columns: auto 2.75rem 1fr;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.4375rem 0.5rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.5rem);
  background: var(--fp-color-surface);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.fp-media-add-existing-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 45%, var(--fp-color-border));
  background: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 8%, var(--fp-color-surface));
}

.fp-media-add-existing-option:hover {
  border-color: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 25%, var(--fp-color-border));
}

.fp-media-add-existing-thumb-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--fp-color-surface-alt);
}

.fp-media-add-existing-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fp-media-add-existing-meta {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.fp-media-add-existing-name {
  font-size: 0.8125rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-media-add-existing-size {
  font-size: 0.6875rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .fp-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .fp-media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .fp-media-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.fp-media-card {
  position: relative;
  background: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.5rem);
  overflow: visible;
  box-shadow: var(--fp-shadow-surface);
  transition: border-color 0.15s ease;
}

.fp-media-card-thumb-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--fp-radius-medium, 0.5rem) var(--fp-radius-medium, 0.5rem) 0 0;
}

.fp-media-card:hover {
  border-color: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 35%, var(--fp-color-border));
}

.fp-media-card--inactive {
  opacity: 0.82;
}

.fp-media-thumb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  background: var(--fp-color-surface-alt);
  cursor: zoom-in;
}

.fp-media-thumb-btn:focus-visible {
  outline: 2px solid var(--fp-color-accent, #9b1c1c);
  outline-offset: -2px;
}

.fp-media-thumb {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.fp-media-card-body {
  padding: 0.4375rem 0.5rem 0.5rem;
}

.fp-media-card-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
}

.fp-media-card-info {
  min-width: 0;
  flex: 1 1 auto;
}

.fp-media-card-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-media-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.625rem;
  color: var(--fp-admin-text-muted);
  margin: 0.125rem 0 0;
}

.fp-media-card-meta-sep {
  opacity: 0.65;
}

.fp-media-card-status {
  margin: 0.25rem 0 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fp-color-accent, #9b1c1c);
}

.fp-media-card-menu {
  position: relative;
  flex-shrink: 0;
}

.fp-media-card-menu[open] {
  z-index: 3;
}

.fp-media-card-menu-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--fp-admin-text-muted);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
  padding: 0;
}

.fp-media-card-menu-trigger::-webkit-details-marker {
  display: none;
}

.fp-media-card-menu-trigger:hover,
.fp-media-card-menu-trigger:focus-visible,
.fp-media-card-menu[open] .fp-media-card-menu-trigger {
  border-color: var(--fp-color-border);
  background: var(--fp-color-surface-raised);
  color: var(--fp-admin-content-text);
  outline: none;
}

.fp-media-card-menu-popover {
  position: absolute;
  top: calc(100% + 0.125rem);
  right: 0;
  z-index: 4;
  min-width: 11rem;
  max-width: min(12rem, calc(100vw - 1rem));
  padding: 0.25rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.5rem);
  background: var(--fp-color-surface-raised);
  box-shadow: var(--fp-shadow-surface);
  overflow: hidden;
}

.fp-media-card-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-media-card-menu-list > li[role="none"] {
  margin: 0;
}

.fp-media-card-menu-separator {
  height: 0;
  margin: 0.25rem 0;
  border: 0;
  border-top: 2px solid var(--fp-color-border);
}

.fp-media-card-menu-form {
  display: none;
}

.fp-media-action-form[hidden] {
  display: none !important;
}

.fp-media-action-form:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.fp-media-action-form:not([hidden]) .modal-header,
.fp-media-action-form:not([hidden]) .modal-body,
.fp-media-action-form:not([hidden]) .modal-footer {
  width: 100%;
}

.fp-media-card-menu-section {
  padding: 0.375rem;
}

.fp-media-card-menu-section + .fp-media-card-menu-section {
  border-top: 1px solid var(--fp-color-border);
}

.fp-media-card-menu-section--danger {
  padding-top: 0.5rem;
}

.fp-media-destructive-zone {
  background: var(--fp-table-row-background);
  border-top: 2px solid var(--fp-color-border);
}

.fp-media-destructive-label {
  margin: 0 0 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fp-admin-content-text);
}

.fp-media-destructive-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  margin: 0;
  padding: 0.4375rem 0.5rem;
  border: 1px solid var(--fp-admin-content-text);
  border-radius: 0.3125rem;
  background: var(--fp-color-surface);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fp-admin-content-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.fp-media-destructive-action:hover,
.fp-media-destructive-action:focus-visible {
  background: var(--fp-table-row-hover);
  border-color: var(--fp-admin-content-text);
  box-shadow: inset 0 0 0 1px var(--fp-admin-content-text);
  outline: none;
}

.fp-media-action-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.fp-media-menu-inline-form {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.5rem;
}

.fp-media-menu-inline-form:last-child {
  margin-bottom: 0;
}

.fp-media-menu-control {
  min-height: 2.25rem;
  padding: 0.3125rem 0.5rem;
  font-size: 0.75rem;
}

.fp-media-menu-inline-submit {
  width: 100%;
  justify-content: center;
}

.fp-media-card-menu-heading {
  margin: 0 0 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fp-admin-text-muted);
}

.fp-media-rename-form {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.fp-media-rename-input {
  font-size: 0.75rem;
  padding: 0.25rem 0.4375rem;
}

.fp-media-rename-submit {
  width: 100%;
  justify-content: center;
}

.fp-media-delete-form,
.fp-media-toggle-form {
  margin: 0;
}

.fp-media-card-menu-action {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  margin: 0;
  padding: 0.375rem 0.4375rem;
  border: none;
  border-radius: 0.3125rem;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fp-admin-content-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.fp-media-card-menu-action--destructive {
  margin-top: 0.125rem;
  padding-top: 0.4375rem;
  padding-bottom: 0.4375rem;
  border: 1px solid var(--fp-admin-content-text);
  background: var(--fp-color-surface);
  font-weight: 700;
}

.fp-media-card-menu-action--destructive .fp-media-action-icon {
  width: 0.9375rem;
  height: 0.9375rem;
}

.fp-media-card-menu-action:hover,
.fp-media-card-menu-action:focus-visible {
  background: var(--fp-table-row-hover);
  outline: 2px solid var(--fp-admin-content-text);
  outline-offset: 1px;
}

.fp-media-card-menu-action--destructive:hover,
.fp-media-card-menu-action--destructive:focus-visible {
  background: var(--fp-table-row-hover);
  border-color: var(--fp-admin-content-text);
  box-shadow: inset 0 0 0 1px var(--fp-admin-content-text);
}

.fp-album-filter-list {
  display: grid;
  gap: 0.125rem;
}

.fp-album-filter-row {
  display: flex;
  align-items: stretch;
  gap: 0.125rem;
  min-width: 0;
}

.fp-album-filter-row .fp-album-filter {
  flex: 1;
  min-width: 0;
}

.fp-album-filter-menu {
  position: relative;
  flex-shrink: 0;
}

.fp-album-filter-menu[open] {
  z-index: 3;
}

.fp-album-filter-menu-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 100%;
  min-height: 1.875rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  color: var(--fp-admin-text-muted);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

.fp-album-filter-menu-trigger::-webkit-details-marker {
  display: none;
}

.fp-album-filter-menu-trigger:hover,
.fp-album-filter-menu[open] .fp-album-filter-menu-trigger {
  border-color: var(--fp-color-border);
  background: var(--fp-color-surface-raised);
  color: var(--fp-admin-content-text);
}

.fp-album-filter-menu-body {
  position: absolute;
  top: calc(100% + 0.125rem);
  right: 0;
  z-index: 4;
  min-width: 11rem;
  padding: 0.375rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.5rem);
  background: var(--fp-color-surface-raised);
  box-shadow: var(--fp-shadow-surface);
}

.fp-album-filter-menu-body.fp-media-destructive-zone {
  position: absolute;
}

.fp-album-delete-form {
  margin: 0;
}

.fp-album-filter-menu-action {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.4375rem 0.5rem;
  border: none;
  border-radius: 0.3125rem;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fp-admin-content-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.fp-album-filter-menu-action:hover,
.fp-album-filter-menu-action:focus-visible {
  background: var(--fp-table-row-hover);
  outline: 2px solid var(--fp-admin-content-text);
  outline-offset: 1px;
}

.fp-album-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  color: var(--fp-admin-content-text);
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.3;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.fp-album-filter:hover,
.fp-album-filter:focus-visible {
  background: var(--fp-table-row-hover);
  border-color: var(--fp-color-border);
  color: var(--fp-admin-content-text);
}

.fp-album-filter.is-active {
  background: var(--fp-table-row-background);
  border-color: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 40%, var(--fp-color-border));
  border-left: 3px solid var(--fp-color-accent, #9b1c1c);
  padding-left: calc(0.5rem - 2px);
  font-weight: 600;
}

.fp-album-filter--diagnostic {
  opacity: 0.75;
}

.fp-album-filter-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-album-filter-count {
  flex-shrink: 0;
  min-width: 1.25rem;
  padding: 0 0.3125rem;
  border-radius: 999px;
  background: var(--fp-color-surface-alt);
  color: var(--fp-admin-text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
}

.fp-album-filter.is-active .fp-album-filter-count {
  background: color-mix(in srgb, var(--fp-color-accent, #9b1c1c) 18%, var(--fp-color-surface-alt));
  color: var(--fp-color-accent, #9b1c1c);
}

.fp-album-filter-empty {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: var(--fp-admin-text-muted);
}

.fp-media-empty-state {
  color: var(--fp-admin-text-muted);
  font-size: 0.8125rem;
  padding: 0.75rem 0.875rem;
}

.fp-media-advanced-actions {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--fp-color-border);
}

.fp-media-advanced-summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
}

.fp-media-advanced-body {
  margin-top: 0.625rem;
  display: grid;
  gap: 0.625rem;
}

.fp-media-advanced-form {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--fp-color-border);
}

.fp-media-advanced-form:first-child {
  padding-top: 0;
  border-top: 0;
}

.fp-media-advanced-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fp-admin-content-text);
  margin: 0;
}

.fp-media-modal .modal-content {
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium, 0.75rem);
  background: var(--fp-color-surface);
  color: var(--fp-admin-content-text);
}

.fp-media-modal-image {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: var(--fp-color-surface-alt);
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.fp-media-modal-meta {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.fp-media-modal-meta dt {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fp-admin-text-muted);
  margin: 0;
}

.fp-media-modal-meta dd {
  font-size: 0.8125rem;
  color: var(--fp-admin-content-text);
  margin: 0.1rem 0 0;
}

@media (max-width: 991.98px) {
  .fp-admin-topbar {
    padding: 0.75rem 1rem;
  }

  .fp-admin-content {
    padding: 0.875rem 1rem 1.25rem;
  }

  .fp-media-upload-controls {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .fp-media-upload-btn {
    width: 100%;
  }

  .fp-media-card-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .fp-media-inline-note {
    white-space: normal;
  }

  .fp-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  }

  .fp-admin-sidebar.is-open {
    transform: translateX(0);
  }

  .fp-admin-menu-btn {
    display: inline-flex;
  }

  body.fp-admin-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 479.98px) {
  .fp-admin-topbar {
    padding: 0.625rem 0.875rem;
    align-items: center;
  }

  .fp-admin-page-subtitle {
    font-size: 0.8125rem;
    margin-top: 0.15rem;
  }

  .fp-admin-topbar-actions .fp-admin-btn {
    min-height: 2.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .fp-admin-content {
    padding: 0.75rem 0.875rem 1rem;
  }

  .fp-media-top-panels {
    gap: 1rem;
    margin-bottom: 1.125rem;
  }

  .fp-media-panel--shell {
    padding: 0.875rem 1rem;
  }
}

.fp-trainer-order-help {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--fp-admin-text-muted);
}

.fp-trainer-order-shell {
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  background: var(--fp-table-row-background);
  overflow: hidden;
  box-shadow: var(--fp-shadow-surface);
}

.fp-trainer-order-shell--empty {
  padding: 1rem 1.125rem;
  color: var(--fp-admin-content-text);
}

.fp-trainer-order-header {
  display: grid;
  grid-template-columns: 3.25rem 1.4fr 1.2fr 1fr 0.9fr 0.9fr 1fr 0.75fr 7.5rem auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--fp-color-border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fp-admin-text-muted);
  background: var(--fp-table-header-background);
}

.fp-trainer-order-header-actions,
.fp-trainer-order-header-reorder {
  text-align: right;
}

.fp-trainer-order-list {
  display: flex;
  flex-direction: column;
}

.fp-trainer-order-item {
  display: grid;
  grid-template-columns: 3.25rem 1.4fr 1.2fr 1fr 0.9fr 0.9fr 1fr 0.75fr 7.5rem auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--fp-color-border);
  background: var(--fp-table-row-background);
  color: var(--fp-admin-content-text);
  cursor: default;
}

.fp-trainer-order-item:last-child {
  border-bottom: none;
}

.fp-trainer-order-item:hover {
  background: var(--fp-table-row-hover);
}

.fp-trainer-order-position {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-trainer-order-field {
  min-width: 0;
}

.fp-trainer-order-mobile-label {
  display: none;
}

.fp-trainer-order-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-trainer-order-public-title {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--fp-admin-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-trainer-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.375rem;
}

.fp-trainer-order-reorder {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
}

.fp-trainer-order-move {
  border: 1px solid var(--fp-color-border);
  background: var(--fp-color-surface-alt);
  color: var(--fp-admin-content-text);
  border-radius: var(--fp-radius-small);
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.fp-trainer-order-move:hover:not(:disabled),
.fp-trainer-order-move:focus-visible:not(:disabled) {
  border-color: var(--fp-color-accent, #9b1c1c);
  color: var(--fp-color-accent, #9b1c1c);
}

.fp-trainer-order-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (min-width: 992px) {
  .fp-trainer-order-shell:not(.fp-trainer-order-shell--reorderable) .fp-trainer-order-header,
  .fp-trainer-order-shell:not(.fp-trainer-order-shell--reorderable) .fp-trainer-order-item {
    grid-template-columns: 1.4fr 1.2fr 1fr 0.9fr 0.9fr 1fr 0.75fr auto;
  }
}

@media (max-width: 991.98px) {
  .fp-trainer-order-header {
    display: none;
  }

  .fp-trainer-order-item {
    display: block;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--fp-color-border);
  }

  .fp-trainer-order-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.625rem;
    padding: 0 0.375rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.8125rem;
  }

  .fp-trainer-order-field {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
    margin-bottom: 0.375rem;
  }

  .fp-trainer-order-mobile-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-admin-text-muted);
  }

  .fp-trainer-order-value {
    white-space: normal;
  }

  .fp-trainer-order-field--site-user {
    display: none;
  }

  .fp-trainer-order-actions {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .fp-trainer-order-reorder {
    flex-direction: row;
    margin-top: 0.75rem;
  }

  .fp-trainer-order-reorder .fp-trainer-order-move {
    flex: 1 1 0;
  }
}

/* Client trainer assignment tables (Bootstrap .table on dark admin cards) */
.fp-admin-body .fp-admin-card .fp-admin-assignment-table {
  --bs-table-bg: transparent;
  --bs-table-striped-color: var(--fp-admin-content-text);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-active-color: var(--fp-admin-content-text);
  --bs-table-hover-color: var(--fp-admin-content-text);
  --bs-table-hover-bg: var(--fp-table-row-hover);
  color: var(--fp-admin-content-text);
  border-color: var(--fp-color-border);
}

.fp-admin-body .fp-admin-card .fp-admin-assignment-table > :not(caption) > * > * {
  border-bottom-color: var(--fp-color-border);
}

.fp-admin-body .fp-admin-card .fp-admin-assignment-table thead th {
  color: var(--fp-admin-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fp-admin-body .fp-admin-card .fp-admin-assignment-table tbody td {
  color: var(--fp-admin-content-text);
}

/* Client Edit — coaching / trainer assignments */
.fp-client-coaching-card {
  padding: 0.875rem 1rem;
}

.fp-client-coaching-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fp-admin-content-text);
  letter-spacing: -0.01em;
}

.fp-client-status-inline {
  font-size: 0.8125rem;
  color: var(--fp-admin-text-muted);
  white-space: nowrap;
}

.fp-client-assignment-list {
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  overflow: hidden;
}

.fp-client-assignment-header,
.fp-client-assignment-item,
a.fp-client-assignment-item--clickable {
  display: grid;
  grid-template-columns: minmax(8rem, 1.4fr) 3.5rem 6.5rem 6.5rem;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
}

.fp-client-assignment-header {
  border-bottom: 1px solid var(--fp-color-border);
  background: rgba(0, 0, 0, 0.03);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fp-admin-text-muted);
}

.fp-client-assignment-item {
  border-bottom: 1px solid var(--fp-color-border);
  font-size: 0.875rem;
}

a.fp-client-assignment-item--clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.fp-client-assignment-item--clickable:hover {
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

a.fp-client-assignment-item--clickable:focus-visible {
  outline: 2px solid var(--fp-color-accent, #9b1c1c);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.04);
}

a.fp-client-assignment-item--active {
  background: rgba(255, 255, 255, 0.06);
}

.fp-client-assignment-item:last-child {
  border-bottom: none;
}

.fp-client-assignment-mobile-label {
  display: none;
}

.fp-client-assignment-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
  line-height: 1.35;
}

.fp-client-assignment-title {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--fp-admin-text-muted);
}

.fp-client-assignment-value {
  font-size: 0.875rem;
  color: var(--fp-admin-content-text);
}

.fp-client-assignment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.375rem;
}

.fp-client-assignment-details {
  position: relative;
}

.fp-client-assignment-details > summary {
  list-style: none;
}

.fp-client-assignment-details > summary::-webkit-details-marker {
  display: none;
}

.fp-client-assignment-details-body {
  position: absolute;
  right: 0;
  z-index: 5;
  min-width: 13rem;
  margin-top: 0.375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: var(--fp-color-surface-raised, var(--fp-color-surface));
  box-shadow: var(--fp-shadow-surface);
}

.fp-client-assignment-inline-form .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}

.fp-client-assignment-inline-actions {
  margin-top: 0.5rem;
}

.fp-client-assignment-add,
.fp-client-assignment-scheduled {
  border-top: 1px solid var(--fp-color-border);
  padding-top: 0.625rem;
}

.fp-client-assignment-history {
  border-top: 1px solid var(--fp-color-border);
  padding-top: 0.625rem;
}

.fp-client-assignment-history-heading {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
}

.fp-client-assignment-history .fp-client-assignment-list {
  margin-top: 0;
  margin-bottom: 0;
}

.fp-client-assignment-add-toggle {
  margin-bottom: 0;
}

.fp-client-assignment-scheduled-summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
}

.fp-client-assignment-add-form {
  margin-top: 0.625rem;
}

.fp-client-assignment-add-actions,
.fp-client-assignment-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.fp-client-assignment-edit {
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  background: rgba(0, 0, 0, 0.02);
}

.fp-client-assignment-edit-heading {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fp-admin-content-text);
}

@media (max-width: 991.98px) {
  .fp-client-assignment-header {
    display: none;
  }

  .fp-client-assignment-item,
  a.fp-client-assignment-item--clickable {
    display: block;
    padding: 0.625rem 0.75rem;
  }

  .fp-client-assignment-field {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.25rem;
  }

  .fp-client-assignment-field--trainer {
    margin-bottom: 0.375rem;
  }

  .fp-client-assignment-mobile-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fp-admin-text-muted);
  }

  .fp-client-assignment-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .fp-client-assignment-details-body {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.375rem;
  }
}

/* Client administration list */
.fp-client-directory-toolbar .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
}

.fp-client-directory-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fp-client-directory-summary {
  margin-bottom: 0.5rem;
}

.fp-client-list {
  padding: 0;
  overflow: hidden;
}

.fp-client-list--directory .fp-client-list-header,
.fp-client-list--directory .fp-client-list-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.85fr 1fr 0.65fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
}

.fp-client-list-header {
  border-bottom: 1px solid var(--fp-color-border);
  background: rgba(0, 0, 0, 0.03);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fp-admin-text-muted);
}

.fp-client-list-sort-link {
  color: inherit;
  text-decoration: none;
}

.fp-client-list-sort-link:hover {
  color: var(--fp-admin-content-text);
  text-decoration: underline;
}

.fp-client-list-sort-link.is-active {
  color: var(--fp-admin-content-text);
}

.fp-client-list-sort-indicator {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
}

.fp-client-list-item {
  border-bottom: 1px solid var(--fp-color-border);
}

.fp-client-list-item--clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.fp-client-list-item--clickable:hover {
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.fp-client-list-item--clickable:focus-visible {
  outline: 2px solid var(--fp-color-accent, #9b1c1c);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.04);
}

.fp-client-list-item:last-child {
  border-bottom: none;
}

.fp-client-list-name {
  font-weight: 600;
  color: var(--fp-admin-content-text);
}

.fp-client-list-value {
  color: var(--fp-admin-content-text);
}

.fp-client-list-mobile-label {
  display: none;
}

.fp-client-list-status {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
}

.fp-client-directory-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.fp-client-directory-page-label {
  font-size: 0.8125rem;
  color: var(--fp-admin-text-muted);
}

@media (max-width: 991.98px) {
  .fp-client-list--directory .fp-client-list-header {
    display: none;
  }

  .fp-client-list--directory .fp-client-list-item {
    display: block;
    padding: 0.625rem 0.75rem;
  }

  .fp-client-list-field {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.25rem;
  }

  .fp-client-list-field--name {
    margin-bottom: 0.375rem;
  }

  .fp-client-list-mobile-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fp-admin-text-muted);
  }
}

/* Shared design-system components */
.fp-page-heading {
  font-family: var(--fp-font-heading);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fp-admin-content-text, var(--fp-color-text));
  margin: 0 0 0.75rem;
}

.fp-page-heading--section {
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-help-text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
}

.fp-surface {
  background: var(--fp-color-surface-raised, var(--fp-color-surface));
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  padding: 1.25rem;
  box-shadow: none;
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-surface--compact {
  padding: 1rem 1.125rem;
}

.fp-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-form-control {
  min-height: 2.75rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: var(--fp-color-surface-alt);
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-form-control:focus {
  outline: 2px solid var(--fp-color-accent);
  outline-offset: 1px;
  border-color: var(--fp-color-accent);
  box-shadow: none;
}

.fp-alert {
  border-radius: var(--fp-radius-medium);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--fp-color-border);
}

.fp-alert-success {
  background: rgba(46, 125, 50, 0.14);
  border-color: rgba(46, 125, 50, 0.35);
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-alert-warning {
  background: rgba(237, 108, 2, 0.12);
  border-color: rgba(237, 108, 2, 0.35);
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-alert-danger {
  background: rgba(155, 28, 28, 0.12);
  border-color: rgba(155, 28, 28, 0.35);
  color: var(--fp-admin-content-text, var(--fp-color-text));
}

.fp-empty-state {
  padding: 1.25rem;
  border: 1px dashed var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
  text-align: center;
}

.fp-data-list {
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  overflow: hidden;
  background: var(--fp-table-row-background);
}

.fp-data-list__header,
.fp-data-list__row {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
}

.fp-data-list__header {
  background: var(--fp-table-header-background);
  color: var(--fp-admin-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--fp-color-border);
}

.fp-data-list__row {
  border-bottom: 1px solid var(--fp-color-border);
  color: var(--fp-admin-content-text);
}

.fp-data-list__row:hover {
  background: var(--fp-table-row-hover);
}

.fp-data-list__row:last-child {
  border-bottom: none;
}

.fp-branding-color-field {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  align-items: center;
}

.fp-branding-preview-shell {
  position: sticky;
  top: 1rem;
}

.fp-branding-preview {
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  overflow: hidden;
  background: var(--fp-color-background);
  color: var(--fp-color-text);
  font-family: var(--fp-font-body);
}

.fp-branding-preview-background {
  padding: 1rem;
  background-color: var(--fp-color-background);
  background-image: var(--fp-background-image);
  background-repeat: repeat;
  background-size: 200px 200px;
}

.fp-branding-preview-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--fp-color-border);
}

.fp-branding-preview-nav-brand {
  font-family: var(--fp-font-heading);
  font-weight: 700;
  color: var(--fp-color-text);
}

.fp-branding-preview-nav-link {
  color: var(--fp-color-text-muted);
  font-size: 0.875rem;
}

.fp-branding-preview-card {
  background: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  padding: 1rem;
}

.fp-branding-preview-heading {
  font-family: var(--fp-font-heading);
  margin: 0 0 0.5rem;
  color: var(--fp-color-text);
}

.fp-branding-preview-body {
  margin: 0 0 0.875rem;
  color: var(--fp-color-text-muted);
  font-size: 0.9375rem;
}

.fp-trainer-order-help details {
  display: inline;
}

.fp-trainer-order-help summary {
  cursor: pointer;
  color: var(--fp-admin-content-text, var(--fp-color-text));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fp-trainer-order-help summary:focus-visible {
  outline: 2px solid var(--fp-color-focus, var(--fp-color-accent));
  outline-offset: 2px;
}

.fp-site-overview-grid {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fp-site-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fp-site-overview-card {
  min-height: 14rem;
  background: var(--fp-color-surface-raised, var(--fp-color-surface));
  box-shadow: none;
}

a.fp-site-overview-card:hover,
a.fp-site-overview-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.fp-site-overview-card .fp-admin-dashboard-module-title {
  color: var(--fp-admin-content-text, #ffffff);
}

.fp-site-overview-card .fp-admin-dashboard-module-description {
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
}

.fp-site-overview-summary {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
}

.fp-branding-form {
  display: grid;
  gap: 1rem;
}

.fp-branding-section + .fp-branding-section {
  margin-top: 0;
}

.fp-branding-status {
  border: 1px solid var(--fp-color-border);
}

.fp-branding-status-summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-admin-content-text);
}

.fp-branding-status-body {
  margin-top: 0.75rem;
}

.fp-branding-contrast-summary {
  margin-bottom: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-left: 3px solid var(--fp-color-warning);
  background: rgba(237, 108, 2, 0.08);
  border-radius: var(--fp-radius-small);
}

.fp-branding-contrast-line,
.fp-branding-field-warning {
  font-size: 0.8125rem;
  color: var(--fp-color-warning);
}

.fp-branding-field-warning {
  margin: 0.375rem 0 0;
}

.fp-branding-page-header {
  margin-bottom: 1rem;
}

.fp-branding-page-intro {
  margin: 0.375rem 0 0;
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
  max-width: 42rem;
}

.fp-branding-action-bar {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--fp-color-border);
}

.fp-branding-action-bar__status {
  flex: 1 1 16rem;
  min-width: 0;
}

.fp-branding-action-bar__message {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fp-admin-content-text);
}

.fp-branding-action-bar__message--success {
  color: var(--fp-color-success, #1b7f45);
}

.fp-branding-action-bar__message--error {
  color: var(--fp-color-danger, #b42318);
  font-weight: 600;
}

.fp-branding-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.375rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
}

.fp-branding-action-bar__badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--fp-color-surface-alt);
  border: 1px solid var(--fp-color-border);
}

.fp-branding-action-bar__badge--warning {
  background: rgba(237, 108, 2, 0.12);
  border-color: rgba(237, 108, 2, 0.35);
  color: #9a4b00;
}

.fp-branding-action-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fp-branding-validation-summary {
  margin-bottom: 1rem;
}

.fp-branding-validation-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.fp-branding-shell {
  display: grid;
  gap: 1rem;
}

.fp-branding-tabs__desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  background: var(--fp-color-surface-alt);
}

.fp-branding-tabs__button {
  border: 0;
  background: transparent;
  color: var(--fp-admin-content-text);
  padding: 0.5rem 0.875rem;
  border-radius: var(--fp-radius-small);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.fp-branding-tabs__button[aria-selected="true"] {
  background: var(--fp-color-surface);
  box-shadow: inset 0 0 0 1px var(--fp-color-border);
}

.fp-branding-tabs__mobile {
  display: none;
}

.fp-branding-panels {
  display: grid;
  gap: 1rem;
}

.fp-branding-panel {
  display: none;
}

.fp-branding-panel.is-active {
  display: block;
}

.fp-branding-subheading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.fp-branding-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.fp-branding-panel-status {
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--fp-radius-small);
  font-size: 0.875rem;
  font-weight: 600;
}

.fp-branding-panel-status--success {
  color: var(--fp-color-success, #1b7f45);
  background: rgba(27, 127, 69, 0.08);
  border: 1px solid rgba(27, 127, 69, 0.25);
}

.fp-branding-asset-card__operation-error {
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--fp-radius-small);
  border: 1px solid rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.08);
  color: var(--fp-color-danger, #b42318);
  font-size: 0.875rem;
  font-weight: 600;
}

.fp-branding-asset-card__success {
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--fp-radius-small);
  border: 1px solid rgba(27, 127, 69, 0.25);
  background: rgba(27, 127, 69, 0.08);
  color: var(--fp-color-success, #1b7f45);
  font-size: 0.875rem;
  font-weight: 600;
}

.fp-branding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.fp-branding-layout__settings,
.fp-branding-layout__assets {
  min-width: 0;
}

.fp-branding-reset-row {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--fp-color-border);
}

.fp-branding-asset-stack {
  display: grid;
  gap: 1rem;
}

.fp-branding-asset-block {
  min-width: 0;
}

.fp-branding-asset-card {
  display: grid;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  background: var(--fp-color-surface-alt);
}

.fp-branding-asset-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.fp-branding-asset-card__description,
.fp-branding-asset-card__recommended {
  margin: 0.375rem 0 0;
}

.fp-branding-asset-card__preview {
  overflow: hidden;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: var(--fp-color-surface);
}

.fp-branding-asset-card__preview--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  padding: 1rem;
}

.fp-branding-asset-card__preview--logo .fp-branding-asset-card__image {
  max-width: 100%;
  max-height: 10rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fp-branding-asset-card__preview--hero {
  aspect-ratio: 16 / 7;
}

.fp-branding-asset-card__preview--hero .fp-branding-asset-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-branding-asset-card__preview--favicon {
  padding: 0.75rem 0;
}

.fp-branding-asset-card__browser-icon-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
}

.fp-branding-asset-card__browser-icon-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.fp-branding-asset-card__browser-icon-label {
  font-size: 0.75rem;
  color: var(--fp-color-text-muted);
}

.fp-branding-asset-card__browser-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--fp-color-border);
  border-radius: 0.35rem 0.35rem 0 0;
  background: #f3f4f6;
}

.fp-branding-asset-card__browser-tab-icon,
.fp-branding-asset-card__browser-icon-preview {
  display: block;
  object-fit: contain;
}

.fp-branding-asset-card__browser-tab-label {
  font-size: 0.75rem;
  color: #4b5563;
  white-space: nowrap;
}

.fp-browser-icon-crop-preview {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: var(--fp-color-surface);
}

.fp-browser-icon-crop-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.75rem;
}

.fp-browser-icon-crop-preview__item {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  text-align: center;
}

.fp-browser-icon-crop-preview__item figcaption {
  font-size: 0.75rem;
  color: var(--fp-color-text-muted);
}

.fp-browser-icon-crop-preview__canvas {
  width: 7.5rem;
  height: 7.5rem;
  border: 1px dashed var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: #fff;
}

.fp-browser-icon-crop-preview__tab {
  justify-content: center;
  min-width: 7.5rem;
}

.fp-browser-icon-crop-preview__tab-canvas {
  width: 32px;
  height: 32px;
  display: block;
}

.fp-browser-icon-crop-preview__warning {
  margin: 0;
}

.fp-branding-asset-card__meta {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.fp-branding-asset-card__meta div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
}

.fp-branding-asset-card__meta dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
}

.fp-branding-asset-card__meta dd {
  margin: 0;
  font-size: 0.875rem;
  word-break: break-word;
}

.fp-branding-asset-card__empty {
  padding: 1rem;
  border: 1px dashed var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: var(--fp-color-surface);
}

.fp-branding-asset-card__empty-title {
  margin: 0;
  font-weight: 600;
}

.fp-branding-asset-card__empty-description {
  margin: 0.375rem 0 0;
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
}

.fp-branding-asset-card__actions {
  display: grid;
  gap: 0.75rem;
}

.fp-branding-asset-card__upload-form {
  display: grid;
  gap: 0.625rem;
}

.fp-branding-asset-card__secondary-form,
.fp-branding-asset-card__remove-form {
  display: grid;
  gap: 0.625rem;
}

.fp-branding-asset-card__file-row {
  display: grid;
  gap: 0.375rem;
}

.fp-branding-asset-card__file-input {
  max-width: 100%;
}

.fp-branding-asset-card__remove-form {
  margin: 0;
}

.fp-branding-field-error,
.field-validation-error,
.fp-branding-field-error.field-validation-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-color-danger, #b42318);
}

.fp-branding-media-current {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-small);
  background: var(--fp-color-surface-alt);
  margin-bottom: 0.625rem;
}

.fp-branding-media-current-thumb,
.fp-branding-media-current-placeholder {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--fp-radius-small);
  object-fit: cover;
  background: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
}

.fp-branding-media-current-label {
  font-size: 0.875rem;
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
  word-break: break-word;
}

.fp-branding-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.fp-branding-media-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.fp-branding-media-file-label {
  margin: 0;
  max-width: 100%;
}

.fp-branding-media-file-input {
  max-width: 12rem;
  font-size: 0.8125rem;
  color: var(--fp-admin-text-muted, var(--fp-color-text-muted));
}

.fp-branding-preview-background {
  position: relative;
  padding: 1rem;
  background-color: var(--fp-color-background);
  background-repeat: no-repeat;
  background-size: cover;
}

.fp-branding-preview-card {
  background: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  padding: 1rem;
}

@media (max-width: 1199.98px) {
  .fp-branding-layout {
    grid-template-columns: 1fr;
  }

  .fp-branding-preview-shell {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .fp-branding-tabs__desktop {
    display: none;
  }

  .fp-branding-tabs__mobile {
    display: none;
  }

  .fp-branding-panel {
    display: block;
  }

  .fp-branding-action-buttons .fp-btn {
    flex: 1 1 100%;
  }

  .fp-branding-asset-card__preview--favicon {
    grid-template-columns: 1fr;
  }

  .fp-branding-asset-card__meta div {
    grid-template-columns: 1fr;
  }
}

.fp-site-user-list--directory.fp-client-list--directory .fp-site-user-list-header,
.fp-site-user-list--directory.fp-client-list--directory .fp-site-user-list-item {
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 0.75fr)
    minmax(0, 0.95fr)
    minmax(0, 0.95fr)
    minmax(0, 0.6fr)
    minmax(0, 0.8fr);
  gap: 0.375rem 0.625rem;
  padding: 0.375rem 0.625rem;
}

.fp-site-user-list--directory .fp-client-list-header {
  padding-top: 0.4375rem;
  padding-bottom: 0.4375rem;
}

.fp-site-user-list--directory .fp-client-list-item {
  min-height: 0;
}

.fp-site-user-list--directory .fp-client-list-field,
.fp-site-user-list--directory .fp-client-list-name,
.fp-site-user-list--directory .fp-client-list-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-site-user-list--directory .fp-client-list-status {
  white-space: nowrap;
}

.fp-site-user-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem 1rem;
}

.fp-site-user-details-grid dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-admin-text-muted);
  margin-bottom: 0.125rem;
}

.fp-site-user-details-grid dd {
  margin: 0;
  color: var(--fp-admin-content-text);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.fp-site-user-details-card {
  padding: 0.875rem 1rem;
}

.fp-site-user-details-card .fp-client-details-header {
  margin-bottom: 0.625rem;
}

.fp-site-user-details-card .fp-client-details-title {
  margin-bottom: 0;
}

.fp-site-user-page-sections .fp-client-section + .fp-client-section {
  margin-top: 0.75rem;
}

.fp-site-user-role-list li + li {
  margin-top: 0.25rem;
}

.fp-site-user-role-list .fw-semibold {
  color: var(--fp-admin-content-text);
}

.fp-site-user-linked-profile-list {
  display: grid;
  gap: 0.375rem;
}

.fp-site-user-linked-profile-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
}

.fp-site-user-linked-profile-type {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-admin-text-muted);
}

.fp-site-user-linked-profile-name {
  font-weight: 600;
  color: var(--fp-admin-content-text);
}

@media (max-width: 991.98px) {
  .fp-site-user-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-site-user-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Password eye toggle (wwwroot/js/password-visibility.js): icon sits inside the box, right edge. */
.fp-password-field {
  position: relative;
}

.fp-password-field > input {
  padding-right: 2.75rem;
}

/* Edge and IE draw their own reveal eye; hide it so there is exactly one. */
.fp-password-field > input::-ms-reveal,
.fp-password-field > input::-ms-clear {
  display: none;
}

.fp-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: 0;
  border-radius: var(--fp-radius-small);
  background: transparent;
  color: #6c757d;
  line-height: 0;
  cursor: pointer;
}

.fp-password-toggle:hover {
  color: #212529;
}

.fp-password-toggle:focus-visible {
  outline: 2px solid var(--fp-color-accent);
  outline-offset: 1px;
}

/* Client portal (My Coaching) */
.fp-portal {
  max-width: 1100px;
}

.fp-portal-eyebrow {
  /* Light grey, not the dark brand red, which was hard to read on the dark background. */
  color: var(--fp-color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fp-portal-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.fp-portal-card {
  background: var(--fp-color-surface);
  border: 1px solid var(--fp-color-border);
  border-radius: var(--fp-radius-medium);
  box-shadow: var(--fp-shadow-surface);
  color: var(--fp-color-text);
  padding: 1.5rem;
}

.fp-portal-card--placeholder {
  background: var(--fp-color-surface-alt);
  border-style: dashed;
  box-shadow: none;
}

.fp-portal-card-title,
.fp-portal-section-title {
  font-family: var(--fp-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.fp-portal-muted {
  color: var(--fp-color-text-muted);
}

.fp-portal-trainer {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.fp-portal-trainer-photo {
  border: 1px solid var(--fp-color-border);
  border-radius: 50%;
  flex-shrink: 0;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.fp-portal-trainer-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.fp-portal-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  white-space: pre-line;
}

.fp-portal-details {
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: max-content 1fr;
}

.fp-portal-details dt {
  color: var(--fp-color-text-muted);
  font-weight: 500;
}

.fp-portal-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.fp-portal-header {
  align-items: center;
  display: flex;
  gap: 1.25rem;
}

.fp-portal-photo {
  border: 2px solid var(--fp-color-border);
  border-radius: 50%;
  flex-shrink: 0;
  height: 88px;
  object-fit: cover;
  width: 88px;
}

.fp-portal-photo--empty {
  align-items: center;
  background: var(--fp-color-surface-raised);
  color: var(--fp-color-text-muted);
  display: flex;
  font-size: 2rem;
  font-weight: 600;
  justify-content: center;
}

.fp-portal-divider {
  border-color: var(--fp-color-border);
  margin: 1.5rem 0 1rem;
  opacity: 1;
}

.fp-portal-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fp-portal-link {
  color: var(--fp-color-text-muted);
}

/* Client photo in Administration (private; DA-003) */
.fp-client-photo {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fp-client-photo-image {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.fp-client-photo-placeholder {
  align-items: center;
  background: #d9d9d6;
  color: var(--fp-admin-text-muted);
  display: flex;
  font-size: 1.75rem;
  font-weight: 600;
  justify-content: center;
}

.fp-client-photo-actions {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 0.5rem;
}

.fp-client-photo-input {
  max-width: 320px;
}

.fp-client-photo-hint {
  color: var(--fp-admin-text-muted);
  font-size: 0.8125rem;
}

.fp-client-list-photo {
  border-radius: 50%;
  height: 32px;
  margin-right: 0.5rem;
  object-fit: cover;
  vertical-align: middle;
  width: 32px;
}

/* Client progress: body composition (shared by My Coaching and Administration) */
.fp-progress {
  /* High-contrast on the dark public theme: never the dark brand red for lines or text. */
  --fp-progress-good: #7ee08a;
  --fp-progress-bad: #ff8a80;
  --fp-progress-line: #ffffff;
  --fp-progress-rule: rgba(255, 255, 255, 0.22);
  --fp-progress-muted: #d6d6d6;
  color: var(--fp-color-text);
}

.fp-admin-content .fp-progress {
  --fp-progress-good: #146c23;
  --fp-progress-bad: #a01b14;
  --fp-progress-line: #151515;
  --fp-progress-rule: rgba(0, 0, 0, 0.2);
  --fp-progress-muted: #3d3d3d;
  color: var(--fp-admin-content-text);
}

.fp-progress-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
}

.fp-progress-empty,
.fp-progress-legend {
  color: var(--fp-progress-muted);
  font-size: 0.875rem;
}

.fp-progress-trends {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: 1.25rem;
}

.fp-progress-trend {
  border: 1px solid var(--fp-progress-rule);
  border-radius: var(--fp-radius-medium);
  margin: 0;
  padding: 0.75rem;
}

.fp-progress-trend-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fp-progress-trend-chart {
  color: var(--fp-progress-line);
  display: block;
  height: 64px;
  width: 100%;
}

.fp-progress-trend-values {
  display: flex;
  font-size: 0.8125rem;
  justify-content: space-between;
}

.fp-progress-unit {
  color: var(--fp-progress-muted);
  font-weight: 400;
}

.fp-progress-table-wrap {
  border: 1px solid var(--fp-progress-rule);
  border-radius: var(--fp-radius-medium);
  max-width: 100%;
  overflow-x: auto;
}

.fp-progress-table {
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 100%;
  white-space: nowrap;
}

.fp-progress-table th,
.fp-progress-table td {
  border-bottom: 1px solid var(--fp-progress-rule);
  padding: 0.4rem 0.75rem;
}

.fp-progress-section-row th {
  font-weight: 700;
  padding-top: 0.9rem;
}

.fp-progress-table th.fp-progress-metric {
  font-weight: 500;
  text-align: left;
}

.fp-progress-section-row th.fp-progress-metric {
  font-weight: 700;
}

.fp-progress-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fp-progress-delta {
  font-weight: 600;
}

.fp-progress-delta--good {
  color: var(--fp-progress-good);
}

.fp-progress-delta--bad {
  color: var(--fp-progress-bad);
}

.fp-progress-delta--neutral {
  color: inherit;
}

.fp-progress-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.fp-progress-scan-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-progress-scan {
  align-items: center;
  border-bottom: 1px solid var(--fp-progress-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.fp-progress-scan-note {
  color: var(--fp-progress-muted);
}

.fp-progress-delete-form {
  margin: 0;
}

.fp-progress-delete {
  background: none;
  border: 0;
  color: var(--fp-progress-bad);
  font-size: 0.875rem;
  padding: 0;
  text-decoration: underline;
}

.fp-progress-tiles {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.fp-progress-tile {
  background: var(--fp-color-surface-alt);
  border-radius: var(--fp-radius-medium);
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
}

.fp-progress-tile-label {
  color: #d6d6d6;
  font-size: 0.8125rem;
}

.fp-progress-tile-value {
  font-size: 1.35rem;
  font-weight: 600;
}

.fp-progress-tile .fp-progress-delta--good {
  color: #7ee08a;
}

.fp-progress-tile .fp-progress-delta--bad {
  color: #ff8a80;
}

.fp-portal-back {
  color: var(--fp-color-text-muted);
  text-decoration: none;
}

.fp-portal-back:hover {
  color: var(--fp-color-text);
}

/* Scan entry form */
.fp-scan-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.fp-scan-legend {
  float: none;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.fp-scan-grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.fp-scan-unit {
  font-size: 0.8125rem;
  font-weight: 400;
}

.fp-scan-field .form-label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.fp-scan-field--wide {
  max-width: 640px;
}

.fp-scan-segments {
  display: grid;
  gap: 0.5rem;
  max-width: 640px;
}

.fp-scan-segment-head,
.fp-scan-segment-row {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 7rem repeat(3, 1fr);
}

.fp-scan-segment-head {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.8;
}

.fp-scan-segment-name {
  font-weight: 500;
}

/* Desktop: the column headings label the segment boxes. */
.fp-scan-segment-row .form-label {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 575.98px) {
  .fp-scan-segment-head {
    display: none;
  }

  .fp-scan-segment-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .fp-scan-segment-name {
    grid-column: 1 / -1;
  }

  .fp-scan-segment-row .form-label {
    clip: auto;
    height: auto;
    margin: 0 0 0.25rem;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
  }
}

.fp-progress-method {
  color: var(--fp-progress-muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
}

.fp-scan-hint {
  font-size: 0.875rem;
  margin: -0.5rem 0 0.75rem;
}

.fp-scan-inbody[hidden] {
  display: none;
}

/* Print / Save as PDF: just the progress content, black on white. */
@media print {
  header,
  footer,
  nav,
  .fp-admin-sidebar,
  .fp-progress-actions,
  .fp-progress-delete-form,
  .fp-portal-back,
  .fp-alert {
    display: none !important;
  }

  body,
  .fp-portal-card,
  .fp-admin-card {
    background: #ffffff !important;
    box-shadow: none !important;
    color: #000000 !important;
  }

  .fp-progress {
    --fp-progress-good: #146c23;
    --fp-progress-bad: #a01b14;
    --fp-progress-line: #000000;
    --fp-progress-rule: #999999;
    --fp-progress-muted: #333333;
    color: #000000;
  }

  .fp-progress-table-wrap {
    overflow: visible;
  }

  .fp-progress-table {
    font-size: 9pt;
  }
}

/* Form errors on the dark portal: Bootstrap's dark red is too dim on dark gray. */
.fp-portal .invalid-feedback,
.fp-portal .text-danger {
  color: #ff8a80 !important;
}

.fp-portal .form-control.is-invalid {
  border-color: #ff8a80;
}

/* Site Permissions grid (Administration → People → Permissions) */
.fp-permissions-notes {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.fp-permissions-table {
  border-collapse: collapse;
  color: var(--fp-admin-content-text);
  font-size: 0.875rem;
  min-width: 100%;
}

.fp-permissions-table th,
.fp-permissions-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

.fp-permissions-table thead th {
  font-weight: 700;
  text-align: left;
}

.fp-permissions-role,
.fp-permissions-cell {
  text-align: center !important;
  white-space: nowrap;
  width: 7.5rem;
}

.fp-permissions-category th {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
  padding-top: 0.75rem;
}

.fp-permissions-name {
  font-weight: 500;
  text-align: left;
}

.fp-permissions-description {
  color: #3d3d3d;
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
}

.fp-permissions-cell .form-check-input {
  border-color: #555555;
  height: 1.25rem;
  width: 1.25rem;
}

.fp-permissions-na {
  color: #6b6b6b;
}

.fp-permissions-changed-dot {
  background: #b35c00;
  border-radius: 50%;
  display: inline-block;
  height: 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  width: 0.5rem;
}

/* Audit log (Administration → Security → Audit log) */
.fp-audit-filters {
  align-items: end;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.fp-audit-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 1 / -1;
}

.fp-audit-table td {
  font-size: 0.8125rem;
}

.fp-audit-when,
.fp-audit-ip {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fp-audit-outcome {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

.fp-audit-outcome--success {
  background: #dcefdc;
  color: #145c1e;
}

.fp-audit-outcome--failed,
.fp-audit-outcome--invalidtoken,
.fp-audit-outcome--expiredtoken {
  background: #f8dcda;
  color: #8a1c14;
}

.fp-audit-outcome--noteligible,
.fp-audit-outcome--validationfailed {
  background: #fbe9c8;
  color: #6b4100;
}

/* Client goals (My Coaching and Administration) */
.fp-goal-celebration {
  align-items: center;
  background: linear-gradient(135deg, #1f5f2a, #2e7d32);
  border-radius: var(--fp-radius-medium);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
}

.fp-goal-celebration-icon {
  font-size: 2rem;
  line-height: 1;
}

.fp-goal-celebration-body {
  flex: 1 1 240px;
}

.fp-goal-celebration-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.fp-goal-celebration-action {
  margin: 0;
}

.fp-goal-celebration .fp-btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #1f5f2a;
}

.fp-goal-list,
.fp-goal-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-goal,
.fp-goal-summary li {
  border-bottom: 1px solid var(--fp-progress-rule, rgba(255, 255, 255, 0.22));
  padding: 0.85rem 0;
}

.fp-goal-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
}

.fp-goal-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.fp-goal-meta,
.fp-goal-setby,
.fp-goal-description {
  color: var(--fp-progress-muted, #d6d6d6);
  font-size: 0.875rem;
}

.fp-goal-description {
  margin: 0.25rem 0 0;
}

.fp-goal-badge {
  background: #2e7d32;
  border-radius: 999px;
  color: #ffffff;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  vertical-align: middle;
}

.fp-goal-bar {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  height: 0.6rem;
  margin: 0.5rem 0 0.35rem;
  overflow: hidden;
}

.fp-goal-bar span {
  background: #7ee08a;
  border-radius: 999px;
  display: block;
  height: 100%;
}

.fp-goal--reached .fp-goal-bar span {
  background: #ffd54f;
}

.fp-goal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.35rem;
}

.fp-goal-link {
  background: none;
  border: 0;
  color: inherit;
  font-size: 0.875rem;
  padding: 0;
  text-decoration: underline;
}

.fp-goal-link--danger {
  color: var(--fp-progress-bad, #ff8a80);
}

.fp-goal-abandoned {
  margin-top: 1rem;
}

.fp-goal-abandoned summary {
  color: var(--fp-progress-muted, #d6d6d6);
  cursor: pointer;
}

/* Light Administration theme */
.fp-admin-content .fp-goal,
.fp-admin-content .fp-goal-summary li {
  border-bottom-color: rgba(0, 0, 0, 0.15);
}

.fp-admin-content .fp-goal-meta,
.fp-admin-content .fp-goal-setby,
.fp-admin-content .fp-goal-description,
.fp-admin-content .fp-goal-abandoned summary {
  color: #3d3d3d;
}

.fp-admin-content .fp-goal-bar {
  background: rgba(0, 0, 0, 0.12);
}

.fp-admin-content .fp-goal-bar span {
  background: #2e7d32;
}

.fp-admin-content .fp-goal--reached .fp-goal-bar span {
  background: #c79100;
}

.fp-admin-goals {
  margin-bottom: 0.75rem;
}

/* Goal cards (larger, easier to read) */
.fp-goal-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.fp-goal-card {
  background: var(--fp-color-surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 5px solid #7ee08a;
  border-radius: var(--fp-radius-medium);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
}

.fp-goal-card--reached {
  border-left-color: #ffd54f;
  box-shadow: 0 0 0 1px rgba(255, 213, 79, 0.35);
}

.fp-goal-card--achieved {
  border-left-color: #ffd54f;
}

.fp-goal-card-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  justify-content: space-between;
}

.fp-goal-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.fp-goal-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fp-goal-card-measure {
  font-size: 0.95rem;
  margin: 0;
}

.fp-goal-chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.6rem;
  white-space: nowrap;
}

.fp-goal-chip--gold {
  border-color: #ffd54f;
  color: #ffd54f;
}

.fp-goal-card .fp-goal-badge {
  margin-left: 0;
}

.fp-goal-stats {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.fp-goal-stats dt {
  color: var(--fp-progress-muted, #d6d6d6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fp-goal-stats dd {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin: 0;
}

.fp-goal-stats dd small {
  font-size: 0.8rem;
  font-weight: 500;
}

.fp-goal-stats-now dd {
  color: #7ee08a;
}

.fp-goal-meter {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.fp-goal-meter .fp-goal-bar {
  flex: 1;
  margin: 0;
}

.fp-goal-bar--large {
  height: 0.9rem;
}

.fp-goal-percent {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 3rem;
  text-align: right;
}

.fp-goal-card .fp-goal-meta,
.fp-goal-card .fp-goal-description {
  margin: 0;
}

.fp-goal-card-foot {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
}

.fp-goal-card-foot .fp-goal-actions {
  margin-top: 0;
}

.fp-goal-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--fp-radius-small);
  color: inherit;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
}

.fp-goal-button:hover,
.fp-goal-button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.fp-goal-button--primary {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #ffffff;
}

.fp-goal-button--primary:hover,
.fp-goal-button--primary:focus-visible {
  background: #256628;
  color: #ffffff;
}

.fp-goal-button--danger {
  border-color: #ff8a80;
  color: #ff8a80;
}

/* Goal form: goal on its own row, then measurement / target / date in line, then notes. */
.fp-goal-form-grid {
  align-items: end;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-goal-form-grid .fp-scan-field--wide {
  grid-column: 1 / -1;
  max-width: none;
}

@media (max-width: 767.98px) {
  .fp-goal-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Light Administration theme */
.fp-admin-content .fp-goal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  border-left-color: #2e7d32;
  color: var(--fp-admin-content-text);
}

.fp-admin-content .fp-goal-card--reached,
.fp-admin-content .fp-goal-card--achieved {
  border-left-color: #c79100;
}

.fp-admin-content .fp-goal-stats dt {
  color: #3d3d3d;
}

.fp-admin-content .fp-goal-stats-now dd {
  color: #1b5e20;
}

.fp-admin-content .fp-goal-chip {
  border-color: rgba(0, 0, 0, 0.35);
}

.fp-admin-content .fp-goal-chip--gold {
  border-color: #c79100;
  color: #7a5900;
}

.fp-admin-content .fp-goal-card-foot {
  border-top-color: rgba(0, 0, 0, 0.12);
}

.fp-admin-content .fp-goal-button {
  border-color: rgba(0, 0, 0, 0.35);
}

.fp-admin-content .fp-goal-button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.fp-admin-content .fp-goal-button--primary,
.fp-admin-content .fp-goal-button--primary:hover {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #ffffff;
}

.fp-admin-content .fp-goal-button--danger {
  border-color: #a01b14;
  color: #a01b14;
}

/* Goal strips: one horizontal row per goal on wide screens (Mike: less open space). */
.fp-goal-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fp-goal-row {
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.fp-goal-row .fp-goal-card-title {
  font-size: 1.1rem;
}

.fp-goal-row-main {
  min-width: 0;
}

.fp-goal-row-main > * + * {
  margin-top: 0.2rem;
}

.fp-goal-row .fp-goal-card-tags {
  align-items: center;
  margin-top: 0.3rem;
}

.fp-goal-row .fp-goal-stats dd {
  font-size: 1.3rem;
}

.fp-goal-row .fp-goal-meta {
  font-size: 0.8125rem;
  margin: 0.2rem 0 0;
}

.fp-goal-row .fp-goal-actions {
  margin-top: 0;
}

@media (min-width: 992px) {
  .fp-goal-row {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(200px, 1.5fr) minmax(230px, 1.3fr) minmax(160px, 1fr) auto;
  }

  .fp-goal-row--text {
    grid-template-columns: minmax(200px, 1fr) auto;
  }

  .fp-goal-row--achieved {
    grid-template-columns: minmax(200px, 1fr) auto auto;
  }

  .fp-goal-row .fp-goal-actions {
    justify-content: flex-end;
    max-width: 15rem;
  }
}

/* Measurements log */
.fp-measure-table td,
.fp-measure-table th {
  vertical-align: middle;
}

.fp-measure-trend {
  color: var(--fp-progress-line, #ffffff);
  display: block;
  height: 28px;
  width: 120px;
}

.fp-measure-entries {
  margin-top: 1rem;
}

.fp-measure-entries summary {
  color: var(--fp-progress-muted, #d6d6d6);
  cursor: pointer;
  font-weight: 600;
}

.fp-measure-day {
  align-items: baseline;
  display: grid;
  gap: 0.25rem 1rem;
  grid-template-columns: 8rem 1fr;
}

.fp-measure-day .fp-progress-scan-note {
  grid-column: 2;
}

.fp-measure-day-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-measure-day-items li {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .fp-measure-day {
    grid-template-columns: 1fr;
  }

  .fp-measure-day .fp-progress-scan-note {
    grid-column: 1;
  }
}

/* Workouts (DA-006): board, history cards, plans, and the workout/plan forms */
.fp-workouts,
.fp-wf,
.fp-training-layout,
.fp-workout-plans,
.fp-training-hidden {
  --fp-wo-card: var(--fp-card-surface);
  --fp-wo-inset: var(--fp-color-surface-alt);
  --fp-wo-border: rgba(255, 255, 255, 0.18);
  --fp-wo-muted: #d6d6d6;
  --fp-wo-accent: #7ee08a;
  --fp-wo-danger: #ff8a80;
}

.fp-workouts,
.fp-wf,
.fp-training-layout,
.fp-workout-plans,
.fp-training-hidden {
  color: var(--fp-color-text);
}

.fp-workouts {
  display: grid;
  gap: 1.75rem;
}

.fp-workout-section-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.fp-workout-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.fp-workout-section-header .fp-workout-section-title {
  margin-bottom: 0;
}

.fp-workout-subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.fp-workout-subtitle .fp-workout-muted {
  font-weight: 400;
}

.fp-workout-muted,
.fp-wf-hint {
  color: var(--fp-wo-muted, #d6d6d6);
  font-size: 0.9rem;
}

/* Personal bests */
.fp-workout-bests {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-workout-best {
  background: var(--fp-wo-inset);
  border-left: 4px solid #ffd54f;
  border-radius: var(--fp-radius-medium);
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.9rem;
}

.fp-workout-best-name {
  color: var(--fp-wo-muted);
  font-size: 0.85rem;
}

.fp-workout-best-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.fp-workout-best-date {
  color: var(--fp-wo-muted);
  font-size: 0.8rem;
}

/* Plans and history cards */
.fp-workout-plans,
.fp-workout-history {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

/* Same textured card as the public About page (fp-card-texture adds the pattern). */
.fp-workout-plan,
.fp-workout-card {
  background-color: var(--fp-card-surface);
  border: 1px solid var(--fp-card-elevated-border);
  border-radius: var(--fp-card-radius);
  box-shadow: var(--fp-card-elevated-shadow);
  color: var(--fp-color-text);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.15rem;
}

.fp-workout-plan-header,
.fp-workout-card-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: space-between;
}

.fp-workout-plan-name,
.fp-workout-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.fp-workout-date {
  color: var(--fp-wo-muted);
  font-size: 0.85rem;
  margin: 0 0 0.1rem;
}

.fp-workout-tag {
  border: 1px solid var(--fp-wo-border);
  border-radius: 999px;
  color: var(--fp-wo-muted);
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
}

.fp-workout-meta {
  color: var(--fp-wo-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-workout-exercises,
.fp-workout-plan-exercises {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.fp-workout-exercises {
  list-style: none;
}

.fp-workout-plan-exercises {
  padding-left: 1.25rem;
}

.fp-workout-exercises li,
.fp-workout-plan-exercises li {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.75rem;
}

.fp-workout-exercise-name {
  font-weight: 600;
}

.fp-workout-exercise-sets {
  font-variant-numeric: tabular-nums;
}

.fp-workout-exercise-notes {
  color: var(--fp-wo-muted);
  flex-basis: 100%;
  font-size: 0.85rem;
}

.fp-workout-notes {
  color: var(--fp-wo-muted);
  font-size: 0.9rem;
  margin: 0;
  white-space: pre-line;
}

.fp-workout-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.fp-workout-delete {
  background: none;
  border: 0;
  color: var(--fp-wo-danger);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  text-decoration: underline;
}

/* Workout and plan forms */
.fp-wf-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.25rem;
}

.fp-wf-exercises {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.fp-wf-exercise {
  background: var(--fp-wo-inset);
  border: 1px solid var(--fp-wo-border);
  border-radius: var(--fp-radius-medium);
  margin: 0;
  min-width: 0;
  padding: 0.75rem 0.9rem;
}

.fp-wf-exercise-header {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.fp-wf-exercise-number {
  align-items: center;
  background: var(--fp-wo-accent);
  border-radius: 999px;
  color: #0a0a0a;
  display: inline-flex;
  font-weight: 700;
  height: 1.9rem;
  justify-content: center;
  margin-bottom: 0.1rem;
  width: 1.9rem;
}

.fp-wf-field {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  gap: 0.15rem;
  margin: 0;
}

.fp-wf-field > span {
  color: var(--fp-wo-muted);
}

.fp-wf-field--name {
  flex: 1 1 14rem;
}

/* Exercise type-ahead list (workout-form.js) */
.fp-wf-field--name {
  position: relative;
}

.fp-wf-suggest {
  background: var(--fp-color-surface-raised);
  border: 1px solid var(--fp-card-elevated-border);
  border-radius: var(--fp-radius-medium);
  box-shadow: var(--fp-card-elevated-shadow);
  color: var(--fp-color-text);
  left: 0;
  list-style: none;
  margin: 0.25rem 0 0;
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.25rem 0;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

.fp-wf-suggest li {
  align-items: baseline;
  cursor: pointer;
  display: flex;
  font-size: 0.95rem;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
}

.fp-wf-suggest li small {
  color: var(--fp-wo-muted, #d6d6d6);
  font-size: 0.75rem;
  white-space: nowrap;
}

.fp-wf-suggest li:hover,
.fp-wf-suggest li.is-active {
  background: rgba(255, 255, 255, 0.12);
}
.fp-wf-field--tracking {
  flex: 0 1 11rem;
}

.fp-wf-field--notes {
  flex: 1 1 14rem;
}

.fp-wf-sets {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.fp-wf-set {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.fp-wf-set--target {
  margin-top: 0.75rem;
}

.fp-wf-set .fp-wf-field {
  width: 6.5rem;
}

.fp-wf-set-number {
  color: var(--fp-wo-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding-bottom: 0.35rem;
  width: 3.5rem;
}

.fp-wf-exercise-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.6rem;
}

.fp-wf-icon-button {
  background: none;
  border: 1px solid var(--fp-wo-border);
  border-radius: 999px;
  color: var(--fp-wo-muted);
  font-size: 1rem;
  height: 2rem;
  line-height: 1;
  margin-bottom: 0.05rem;
  width: 2rem;
}

.fp-wf-icon-button:hover,
.fp-wf-icon-button:focus-visible {
  border-color: var(--fp-wo-danger);
  color: var(--fp-wo-danger);
}

.fp-wf-text-button {
  background: none;
  border: 0;
  color: var(--fp-wo-accent);
  font-weight: 600;
  padding: 0.25rem 0;
}

.fp-wf-text-button:hover {
  text-decoration: underline;
}

.fp-wf-add-exercise {
  margin-top: 0.6rem;
}

/* Show only the boxes each exercise records. */
.fp-wf-exercise[data-tracking="WeightReps"] [data-field="distance"],
.fp-wf-exercise[data-tracking="WeightReps"] [data-field="time"],
.fp-wf-exercise[data-tracking="Reps"] [data-field="weight"],
.fp-wf-exercise[data-tracking="Reps"] [data-field="distance"],
.fp-wf-exercise[data-tracking="Reps"] [data-field="time"],
.fp-wf-exercise[data-tracking="Time"] [data-field="reps"],
.fp-wf-exercise[data-tracking="Time"] [data-field="weight"],
.fp-wf-exercise[data-tracking="Time"] [data-field="distance"],
.fp-wf-exercise[data-tracking="DistanceTime"] [data-field="reps"],
.fp-wf-exercise[data-tracking="DistanceTime"] [data-field="weight"] {
  display: none;
}

.fp-wf-top .fp-wf-title {
  grid-column: span 2;
}

/* Exercise library */
.fp-training-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.fp-training-category {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

.fp-training-exercises,
.fp-training-hidden {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-training-exercises li,
.fp-training-hidden li {
  align-items: center;
  border-top: 1px solid var(--fp-wo-border, rgba(0, 0, 0, 0.15));
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.fp-training-exercises .fp-workout-actions {
  margin-top: 0;
  padding-top: 0;
}

.fp-training-exercises .fp-workout-tag {
  margin-left: 0.5rem;
}

@media (max-width: 991.98px) {
  .fp-training-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fp-wf-top .fp-wf-title {
    grid-column: auto;
  }

  .fp-wf-set .fp-wf-field {
    width: calc(50% - 2.5rem);
  }

  .fp-wf-set-number {
    padding-bottom: 0;
    width: 100%;
  }
}

@media print {
  .fp-workouts {
    --fp-wo-card: #ffffff;
    --fp-wo-inset: #ffffff;
    --fp-wo-border: #999999;
    --fp-wo-muted: #333333;
  }

  .fp-workout-actions {
    display: none;
  }
}

/* My Coaching shortcuts: two per row on phones, one row on wider screens */
.fp-portal-shortcuts {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-portal-shortcuts .btn {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 3rem;
}

@media (min-width: 768px) {
  .fp-portal-shortcuts {
    display: flex;
    flex-wrap: wrap;
  }

  .fp-portal-shortcuts .btn {
    min-width: 10rem;
  }
}
/* Daily steps: the 7-day average under the latest day's count */
.fp-measure-average {
  color: var(--fp-progress-muted, #d6d6d6);
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Every card uses the textured card from the public About page (Mike, 2026-10-05): My Coaching cards,
   Administration cards, and dashboard modules. The pattern sits behind the content (z-index -1 inside an
   isolated card), so cards don't clip pop-ups such as the exercise type-ahead. */
.fp-portal-card,
.fp-admin-card,
.fp-admin-dashboard-module:not(.fp-admin-dashboard-module--placeholder) {
  background-color: var(--fp-card-surface);
  border: 1px solid var(--fp-card-elevated-border);
  box-shadow: var(--fp-card-elevated-shadow);
  isolation: isolate;
  position: relative;
}

.fp-portal-card::before,
.fp-admin-card::before,
.fp-admin-dashboard-module:not(.fp-admin-dashboard-module--placeholder)::before {
  background-image: url("/images/patterns/fp-card-texture.svg");
  background-repeat: repeat;
  background-size: var(--fp-card-pattern-tile) var(--fp-card-pattern-tile);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: var(--fp-card-pattern-strength);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

@media print {
  .fp-portal-card::before,
  .fp-admin-card::before,
  .fp-admin-dashboard-module::before {
    content: none;
  }
}
/* Demo sites (DemoSite:BannerText): a slim notice above every page */
.fp-demo-banner {
  background: #f2c94c;
  color: #1c1b1b;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  z-index: 1100;
}

@media print {
  .fp-demo-banner {
    border-bottom: 1px solid #999999;
  }
}

/* ------------------------------------------------------------------------------------------------
   Light background theme (Administration -> Site -> Branding -> Background theme "Light Modern").
   The site was designed dark-first (Triple M): cards, coach panels, and the workout and progress
   colors were fixed to dark values, so a light theme showed dark text on dark cards (found on the
   Campau Bay demo, 2026-10-06). Everything below applies only to light-theme sites; dark themes are
   untouched. The header and footer stay in the brand's primary color with light text.
   ------------------------------------------------------------------------------------------------ */
body.fp-theme-body--light_modern {
  --fp-card-surface: var(--fp-color-surface);
  --fp-card-elevated-border: var(--fp-color-border);
  --fp-card-elevated-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  --fp-card-pattern-strength: 0;
  --fp-coach-card-camo-opacity: 0;
  --fp-card-pattern-opacity: 0;
  --fp-coaches-surface: var(--fp-color-surface);
  --fp-coaches-surface-deep: var(--fp-color-surface-alt);
  --fp-coaches-section-bg: var(--fp-color-background);
  --fp-coach-card-border: var(--fp-color-border);
  --fp-coach-card-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  --fp-home-benefits-bg: var(--fp-color-surface-alt);
  --fp-heather-base: var(--fp-color-surface-alt);
  --fp-heather-line: rgba(0, 0, 0, 0.03);
  --fp-separator: rgba(0, 0, 0, 0.08);
  --fp-color-text-subtle: #5b6b7a;
  --fp-color-accent-hover: color-mix(in srgb, var(--fp-color-accent) 85%, #000000);
  --fp-color-accent-active: color-mix(in srgb, var(--fp-color-accent) 70%, #000000);
  --fp-table-row-hover: rgba(0, 0, 0, 0.03);
  --fp-shadow-nav: 0 2px 12px rgba(0, 0, 0, 0.12);
  --fp-black: var(--fp-color-secondary);
  --fp-wo-muted: #4a5663;
  /* Administration buttons use the Branding accent color instead of the fixed slate blue. */
  --fp-admin-action-background: var(--fp-button-primary-background);
  --fp-admin-action-background-hover: color-mix(in srgb, var(--fp-button-primary-background) 85%, #000000);
  --fp-admin-action-border: var(--fp-button-primary-background);
  --fp-admin-action-text: var(--fp-button-primary-text);
}

body.fp-theme-body--light_modern .fp-navbar,
body.fp-theme-body--light_modern .fp-footer {
  background-color: var(--fp-color-primary);
  border-color: transparent;
}

body.fp-theme-body--light_modern .fp-footer,
body.fp-theme-body--light_modern .fp-footer a,
body.fp-theme-body--light_modern .fp-footer .fp-footer-brand {
  color: #ffffff;
}

body.fp-theme-body--light_modern .fp-footer .fp-footer-tagline,
body.fp-theme-body--light_modern .fp-footer .fp-footer-meta,
body.fp-theme-body--light_modern .fp-footer .fp-footer-powered {
  color: rgba(255, 255, 255, 0.72);
}

body.fp-theme-body--light_modern .fp-home-coach-photo-wrap,
body.fp-theme-body--light_modern .fp-about-coach-photo-wrap {
  background-color: var(--fp-color-secondary);
  border-color: var(--fp-color-border);
}

/* Workout and progress panels set their own light-on-dark colors; give them dark-on-light ones. */
body.fp-theme-body--light_modern .fp-wf,
body.fp-theme-body--light_modern .fp-training-layout,
body.fp-theme-body--light_modern .fp-workout-plans,
body.fp-theme-body--light_modern .fp-training-hidden,
body.fp-theme-body--light_modern .fp-workouts {
  --fp-wo-border: rgba(0, 0, 0, 0.14);
  --fp-wo-muted: #4a5663;
  --fp-wo-accent: #146c23;
  --fp-wo-danger: #a01b14;
}

body.fp-theme-body--light_modern .fp-progress {
  --fp-progress-good: #146c23;
  --fp-progress-bad: #a01b14;
  --fp-progress-line: var(--fp-color-text);
  --fp-progress-rule: rgba(0, 0, 0, 0.2);
  --fp-progress-muted: #3d4a57;
}
/* Brand bands (header, hero, page headers, call-to-action sections) use the brand's primary color in
   every theme, so their text stays light. */
body.fp-theme-body--light_modern .fp-hero,
body.fp-theme-body--light_modern .fp-page-header,
body.fp-theme-body--light_modern .fp-cta-section {
  color: #ffffff;
}

body.fp-theme-body--light_modern .fp-hero h1,
body.fp-theme-body--light_modern .fp-hero h2,
body.fp-theme-body--light_modern .fp-page-header h1,
body.fp-theme-body--light_modern .fp-page-header h2,
body.fp-theme-body--light_modern .fp-cta-section h2,
body.fp-theme-body--light_modern .fp-cta-section h3 {
  color: #ffffff;
}

body.fp-theme-body--light_modern .fp-hero p,
body.fp-theme-body--light_modern .fp-page-header p,
body.fp-theme-body--light_modern .fp-cta-section p {
  color: rgba(255, 255, 255, 0.85);
}

body.fp-theme-body--light_modern .fp-hero .fp-hero-eyebrow {
  color: color-mix(in srgb, var(--fp-color-accent) 40%, #ffffff);
}

body.fp-theme-body--light_modern .fp-hero .fp-btn-outline,
body.fp-theme-body--light_modern .fp-cta-section .fp-btn-outline,
body.fp-theme-body--light_modern .fp-navbar .fp-btn-outline,
body.fp-theme-body--light_modern .fp-navbar .fp-phone-link {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* .fp-phone-link sets its muted color with !important, so the light override must too. */
body.fp-theme-body--light_modern .fp-navbar .fp-phone-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Links that were white for the dark cards */
body.fp-theme-body--light_modern .fp-contact-list a,
body.fp-theme-body--light_modern .fp-form-notice a {
  color: var(--fp-color-accent);
}
/* Light theme: progress, goals, workouts, and Administration details that used light-on-dark colors */
body.fp-theme-body--light_modern .fp-progress-tile-label,
body.fp-theme-body--light_modern .fp-goal-description,
body.fp-theme-body--light_modern .fp-goal-abandoned summary,
body.fp-theme-body--light_modern .fp-goal-stats dt,
body.fp-theme-body--light_modern .fp-measure-entries summary,
body.fp-theme-body--light_modern .fp-measure-average {
  color: var(--fp-progress-muted);
}

body.fp-theme-body--light_modern .fp-progress-tile .fp-progress-delta--good,
body.fp-theme-body--light_modern .fp-goal-stats-now dd {
  color: #146c23;
}

body.fp-theme-body--light_modern .fp-progress-tile .fp-progress-delta--bad,
body.fp-theme-body--light_modern .fp-goal-link--danger {
  color: #a01b14;
}

body.fp-theme-body--light_modern .fp-portal .text-danger,
body.fp-theme-body--light_modern .fp-admin-body .fp-admin-validation-message {
  color: #a01b14 !important;
}

body.fp-theme-body--light_modern .fp-portal .form-control.is-invalid {
  border-color: #a01b14;
}

body.fp-theme-body--light_modern .fp-goal-bar {
  background: rgba(0, 0, 0, 0.12);
}

body.fp-theme-body--light_modern .fp-goal-bar span {
  background: #2e7d32;
}

body.fp-theme-body--light_modern .fp-goal--reached .fp-goal-bar span {
  background: #c9a227;
}

body.fp-theme-body--light_modern .fp-goal-card {
  border-left-color: #2e7d32;
}

body.fp-theme-body--light_modern .fp-goal-card--reached,
body.fp-theme-body--light_modern .fp-goal-card--achieved,
body.fp-theme-body--light_modern .fp-workout-best {
  border-left-color: #c9a227;
}

body.fp-theme-body--light_modern .fp-goal-chip--gold {
  border-color: #c9a227;
  color: #6f5500;
}

body.fp-theme-body--light_modern .fp-goal-button--danger {
  border-color: #a01b14;
  color: #a01b14;
}

body.fp-theme-body--light_modern .fp-goal-button:focus-visible,
body.fp-theme-body--light_modern .fp-wf-suggest li.is-active,
body.fp-theme-body--light_modern .fp-admin-nav-link:hover,
body.fp-theme-body--light_modern .fp-admin-dashboard-module--placeholder .fp-admin-dashboard-module-icon,
body.fp-theme-body--light_modern a.fp-client-assignment-item--clickable:hover,
body.fp-theme-body--light_modern a.fp-client-assignment-item--clickable:focus-visible,
body.fp-theme-body--light_modern .fp-client-list-item--clickable:hover,
body.fp-theme-body--light_modern .fp-client-list-item--clickable:focus-visible {
  background: rgba(0, 0, 0, 0.05);
}

body.fp-theme-body--light_modern a.fp-client-assignment-item--active {
  background: rgba(0, 0, 0, 0.07);
}
body.fp-theme-body--light_modern.fp-admin-body .fp-btn-primary:active {
  background-color: color-mix(in srgb, var(--fp-button-primary-background) 75%, #000000);
  border-color: color-mix(in srgb, var(--fp-button-primary-background) 75%, #000000);
}