:root {
  color-scheme: dark;
  --bg: #0f1216;
  --bg-alt: #161b22;
  --panel: rgba(18, 22, 28, 0.94);
  --panel-strong: #1c232d;
  --accent: #2f7bff;
  --accent-2: #5fa0ff;
  --accent-3: #9cc4ff;
  --text: #f3f6fb;
  --muted: #99a6bb;
  --danger: #ff4d4f;
  --success: #51cf66;
  --info: #79d8ff;
  --shadow: 0 22px 60px rgba(2, 8, 20, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --surface-rgb: 15, 20, 30;
  --surface-rgb-strong: 9, 14, 22;
  --role-accent-rgb: 47, 123, 255;
  --role-accent-2-rgb: 95, 160, 255;
  --role-accent-3-rgb: 156, 196, 255;
  --glass-noise: rgba(255, 255, 255, 0.08);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --elevation-1: 0 12px 30px rgba(5, 8, 16, 0.35);
  --elevation-2: 0 24px 56px rgba(4, 8, 16, 0.48);
  --elevation-3: 0 34px 76px rgba(2, 6, 14, 0.58);
  --motion-fast: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --motion-snappy: 360ms cubic-bezier(0.18, 0.84, 0.3, 1);
  --motion-slow: 560ms cubic-bezier(0.2, 0.82, 0.2, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.2, 1);
  --glass-trace-width-card: 11%;
  --glass-trace-width-list: 8.5%;
  --glass-trace-opacity: 0.58;
  --glass-edge-opacity: 0.26;
  --glass-hover-lift: -5px;
  --glass-motion-fast: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --glass-motion-main: 340ms cubic-bezier(0.2, 0.85, 0.3, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 4%, rgba(var(--role-accent-rgb), 0.18) 0%, rgba(12, 17, 24, 0) 38%),
    radial-gradient(circle at 92% 18%, rgba(var(--role-accent-2-rgb), 0.12) 0%, rgba(12, 17, 24, 0) 44%),
    linear-gradient(165deg, #0a0f16 0%, #0d131c 48%, #080c12 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  overscroll-behavior-y: none;
}

body[data-role='guest'] {
  --accent: #2f6dff;
  --accent-2: #6696ff;
  --accent-3: #9ebcff;
  --role-accent-rgb: 47, 109, 255;
  --role-accent-2-rgb: 102, 150, 255;
  --role-accent-3-rgb: 158, 188, 255;
}

body[data-role='admin'] {
  --accent: #3f8cff;
  --accent-2: #74afff;
  --accent-3: #abcfff;
  --role-accent-rgb: 63, 140, 255;
  --role-accent-2-rgb: 116, 175, 255;
  --role-accent-3-rgb: 171, 207, 255;
}

body[data-role='front-office'] {
  --accent: #0067a8;
  --accent-2: #2f8fcc;
  --accent-3: #8abfe3;
  --role-accent-rgb: 0, 103, 168;
  --role-accent-2-rgb: 47, 143, 204;
  --role-accent-3-rgb: 138, 191, 227;
}

body[data-role='trainer'] {
  --accent: #6f72f5;
  --accent-2: #9a9ffb;
  --accent-3: #c5c8ff;
  --role-accent-rgb: 111, 114, 245;
  --role-accent-2-rgb: 154, 159, 251;
  --role-accent-3-rgb: 197, 200, 255;
}

body[data-role='member'] {
  --accent: #00c8ff;
  --accent-2: #4fddff;
  --accent-3: #99efff;
  --role-accent-rgb: 0, 200, 255;
  --role-accent-2-rgb: 79, 221, 255;
  --role-accent-3-rgb: 153, 239, 255;
}

body[data-role='support-staff'] {
  --accent: #2f95cf;
  --accent-2: #66b6e2;
  --accent-3: #a2d4ee;
  --role-accent-rgb: 47, 149, 207;
  --role-accent-2-rgb: 102, 182, 226;
  --role-accent-3-rgb: 162, 212, 238;
}

body[data-role='super-admin'] {
  --accent: #6b3fe7;
  --accent-2: #b69cff;
  --accent-3: #efe7ff;
  --role-accent-rgb: 107, 63, 231;
  --role-accent-2-rgb: 182, 156, 255;
  --role-accent-3-rgb: 239, 231, 255;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 85% 20%, rgba(var(--role-accent-rgb), 0.2), transparent 42%),
    radial-gradient(circle at 18% 78%, rgba(var(--role-accent-2-rgb), 0.22), transparent 48%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}

.orb--one {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(var(--role-accent-rgb), 0.56), transparent 70%);
}

.orb--two {
  bottom: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(var(--role-accent-2-rgb), 0.52), transparent 70%);
  animation-delay: -4s;
}

.orb--three {
  top: 35%;
  right: 12%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--role-accent-3-rgb), 0.44), transparent 70%);
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

.app {
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

/* Role-based nav safety: hide super-admin items from all non-super-admin roles */
body[data-role]:not([data-role="super-admin"]) .nav__link[data-view="super-admin"],
body[data-role]:not([data-role="super-admin"]) .nav__link[data-view^="super-admin-"],
body[data-role]:not([data-role="super-admin"]) .nav__sublink[data-view="super-admin"],
body[data-role]:not([data-role="super-admin"]) .nav__sublink[data-view^="super-admin-"] {
  display: none !important;
}

/* Hide super-admin-only top-level standalone views from non-super-admin roles */
body[data-role="admin"] .nav__link[data-view="saas-maturity"],
body[data-role="front-office"] .nav__link[data-view="saas-maturity"],
body[data-role="trainer"] .nav__link[data-view="saas-maturity"],
body[data-role="member"] .nav__link[data-view="saas-maturity"] {
  display: none !important;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', 'Sora', sans-serif;
  letter-spacing: 0.4px;
  margin: 0 0 8px 0;
}

#viewTitle {
  font-family: 'Sora', sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.3px;
}

p {
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  text-transform: none;
  letter-spacing: 0.4px;
  font-size: 12px;
  color: var(--accent);
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a212a, #0f1216);
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--accent);
  border: 1px solid rgba(var(--role-accent-rgb), 0.55);
  box-shadow: inset 0 0 18px rgba(var(--role-accent-rgb), 0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.26);
  background: linear-gradient(
    130deg,
    rgba(var(--role-accent-rgb), 0.2),
    rgba(var(--role-accent-2-rgb), 0.08)
  );
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.35px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pill.subtle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.avatar-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.avatar-picker__actions .btn {
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.1;
}

.avatar-picker {
  display: grid;
  gap: 10px;
}

.avatar-picker__preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.avatar-picker__preview img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(var(--role-accent-rgb), 0.3);
  background: rgba(5, 10, 18, 0.85);
}

.avatar-picker__preview-meta {
  display: grid;
  gap: 2px;
}

.avatar-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 72px));
  justify-content: start;
  gap: 8px;
}

.avatar-picker__option {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--glass-motion-fast), transform var(--glass-motion-fast), background var(--glass-motion-fast);
}

.avatar-picker__option:hover {
  border-color: rgba(var(--role-accent-rgb), 0.48);
  transform: translateY(-1px);
}

.avatar-picker__option.is-selected {
  border-color: rgba(var(--role-accent-rgb), 0.76);
  box-shadow: 0 0 0 1px rgba(var(--role-accent-rgb), 0.28), inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.18);
  background: rgba(var(--role-accent-rgb), 0.16);
}

.avatar-picker__option img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(var(--role-accent-rgb), 0.26);
  background: rgba(7, 12, 22, 0.9);
}

.avatar-picker__option span {
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}

.avatar-picker__upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
}

.avatar-picker__upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avatar-camera {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-camera video {
  width: 100%;
  max-height: 280px;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
}

.user-card-item {
  align-items: flex-start;
}

.user-card-item__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.user-card-item__avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--role-accent-rgb), 0.3);
  background: rgba(8, 15, 28, 0.8);
  flex: 0 0 auto;
}

.user-card-item__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-card-item__content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.user-card-item .tag {
  align-self: flex-start;
}

.qr-card {
  display: flex;
  gap: 18px;
  align-items: center;
}

.qr-preview {
  width: 192px;
  height: 192px;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.qr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-token-swipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: hidden;
  padding-bottom: 0;
}

.qr-token-swipe-item {
  min-width: 0;
}

.qr-token-swipe-item .qr-card {
  justify-content: center;
}

@media (max-width: 640px) {
  .qr-preview {
    width: 156px;
    height: 156px;
  }

  .qr-token-swipe-item {
    min-width: 0;
  }
}

.pill.yes,
.pill.full {
  background: rgba(var(--role-accent-rgb), 0.2);
  color: var(--accent);
}

.pill.no {
  background: rgba(255, 77, 79, 0.2);
  color: var(--danger);
}

.pill.view,
.pill.info {
  background: rgba(var(--role-accent-3-rgb), 0.2);
  color: var(--accent-3);
}

.pill.edit,
.pill.warn {
  background: rgba(var(--role-accent-2-rgb), 0.2);
  color: var(--accent-2);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.splash {
  padding: 48px clamp(20px, 6vw, 72px);
  min-height: 100vh;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.splash__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.splash__title h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.splash__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.splash__hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.8fr);
  gap: 24px;
}

.splash__hero--solo {
  grid-template-columns: minmax(280px, 1fr);
}

.splash__stack {
  display: grid;
  gap: 24px;
}

.splash__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 32%, rgba(255, 255, 255, 0.01) 100%),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.92), rgba(var(--surface-rgb-strong), 0.9));
  border-radius: calc(var(--radius) + 2px);
  padding: 24px;
  border: 1px solid rgba(var(--role-accent-rgb), var(--glass-edge-opacity));
  box-shadow:
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.1);
  backdrop-filter: blur(13px) saturate(132%);
  transition:
    transform var(--glass-motion-main),
    border-color var(--glass-motion-fast),
    box-shadow var(--glass-motion-fast),
    background var(--glass-motion-fast);
  animation: card-rise 680ms var(--ease-spring) both;
}

.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.25px;
}

.card > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 30%),
    radial-gradient(120% 105% at 8% 0%, rgba(var(--role-accent-rgb), 0.2), transparent 54%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.16),
    inset 0 0 28px rgba(var(--role-accent-rgb), 0.11);
  opacity: 0.9;
  transition: box-shadow var(--glass-motion-fast), opacity var(--glass-motion-fast);
  pointer-events: none;
  z-index: 0;
}

.card::after {
  content: '';
  position: absolute;
  top: -34%;
  left: -19%;
  width: var(--glass-trace-width-card);
  height: 168%;
  border-radius: 999px;
  transform: translateX(0) skewX(-12deg);
  background: linear-gradient(
    180deg,
    rgba(var(--role-accent-rgb), 0) 0%,
    rgba(var(--role-accent-2-rgb), var(--glass-trace-opacity)) 48%,
    rgba(var(--role-accent-rgb), 0) 100%
  );
  box-shadow: 0 0 10px rgba(var(--role-accent-rgb), 0.18);
  opacity: 0;
  transition: transform var(--glass-motion-main), opacity var(--glass-motion-fast);
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  transform: translateY(var(--glass-hover-lift));
  border-color: rgba(var(--role-accent-2-rgb), 0.58);
  box-shadow:
    var(--elevation-3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.26),
    0 0 18px rgba(var(--role-accent-rgb), 0.16);
  animation: glass-pulse 320ms ease-out 1;
}

.card:hover::before,
.card:focus-within::before {
  box-shadow:
    inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.3),
    inset 0 0 28px rgba(var(--role-accent-rgb), 0.14);
  opacity: 1;
}

.card:hover::after,
.card:focus-within::after {
  animation: glass-trace-pass 480ms var(--ease-spring) 1;
}

.card:focus-within {
  transform: translateY(calc(var(--glass-hover-lift) + 1px));
  border-color: rgba(var(--role-accent-2-rgb), 0.64);
  box-shadow:
    0 0 0 2px rgba(var(--role-accent-rgb), 0.24),
    0 18px 42px rgba(2, 8, 18, 0.58);
}

.card--interactive {
  cursor: pointer;
}

.card--metric {
  padding: 20px 22px;
  display: grid;
  gap: 8px;
}

.card--compact {
  padding: 16px 18px;
}

.card--status.is-active,
.list-item--status.is-active {
  border-color: rgba(81, 207, 102, 0.6);
  box-shadow: 0 0 0 1px rgba(81, 207, 102, 0.24), var(--elevation-1);
}

.card--status.is-on-hold,
.list-item--status.is-on-hold {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.24), var(--elevation-1);
}

.card--status.is-expired,
.list-item--status.is-expired {
  border-color: rgba(255, 77, 79, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.24), var(--elevation-1);
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glass-trace-pass {
  from {
    opacity: 0;
    transform: translateX(0) skewX(-12deg);
  }
  26% {
    opacity: 0.74;
  }
  to {
    opacity: 0;
    transform: translateX(840%) skewX(-12deg);
  }
}

@keyframes glass-pulse {
  from {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.04);
  }
  to {
    filter: saturate(1) brightness(1);
  }
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hero-card__foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.glow-card {
  border: 1px solid rgba(var(--role-accent-rgb), 0.45);
  box-shadow: 0 0 40px rgba(var(--role-accent-rgb), 0.22);
}

.prism-card {
  background: linear-gradient(135deg, rgba(var(--role-accent-2-rgb), 0.12), rgba(18,22,28,0.95));
}

.access-card {
  background: linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.12), rgba(18,22,28,0.95));
}

.status-card .stat {
  display: flex;
  gap: 16px;
}

.status-card .stat div {
  background: var(--panel-strong);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  flex: 1;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li::before {
  content: '+';
  color: var(--accent);
  margin-right: 8px;
}

#view-crm-migration .grid.wide {
  grid-template-columns: minmax(0, 1fr);
}

[data-profile-import-card] {
  display: grid;
  gap: 18px;
  align-content: start;
}

[data-profile-import-card] #profileImportForm,
[data-profile-import-card] #profileImportList {
  display: grid;
  gap: 16px;
  min-width: 0;
}

[data-profile-import-card] .profile-import-step-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

[data-profile-import-card] .profile-import-step-list .list-item,
[data-profile-import-card] .profile-import-mapping-list .list-item,
[data-profile-import-card] #profileImportForm > .list-item,
[data-profile-import-card] #profileImportList > .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: stretch;
  gap: 8px;
}

[data-profile-import-card] .profile-import-mapping-list {
  gap: 14px;
}

.profile-import-step--done strong {
  color: var(--success);
}

.profile-import-step--active strong {
  color: var(--info);
}

.profile-import-mapping-row {
  gap: 14px;
}

.profile-import-mapping-row .field {
  margin: 0;
}

[data-profile-import-card] .profile-import-follow-up-actions,
[data-profile-import-card] #profileImportForm > .actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 0.5rem;
}

.profile-import-follow-up-actions .btn,
[data-profile-import-card] #profileImportForm > .actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

@media (min-width: 720px) {
  .profile-import-mapping-list .profile-import-mapping-row {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: end;
  }
}

@media (max-width: 640px) {
  [data-profile-import-card] {
    gap: 16px;
    padding: 18px;
  }

  [data-profile-import-card] .profile-import-step-list,
  [data-profile-import-card] .profile-import-follow-up-actions,
  [data-profile-import-card] #profileImportForm > .actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Digital Waiver & Contract panel responsive layout --- */

#complianceProfilePanel form.list-item {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

#complianceProfilePanel fieldset.form {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#complianceProfilePanel fieldset.form legend {
  float: left;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  padding-bottom: 8px;
}

@media (max-width: 600px) {
  [data-compliance-profile-card] .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  [data-compliance-profile-card] .list-item .actions {
    width: 100%;
  }

  [data-compliance-profile-card] .list-item .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
}

form,
.form {
  align-content: start;
}

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

form .field input,
form .field select,
form .field textarea,
.form .field input,
.form .field select,
.form .field textarea {
  width: 100%;
}

form .field input:invalid:not(:placeholder-shown),
form .field textarea:invalid:not(:placeholder-shown),
form .field select[aria-invalid="true"],
form .field input[aria-invalid="true"],
form .field textarea[aria-invalid="true"],
.form .field input:invalid:not(:placeholder-shown),
.form .field textarea:invalid:not(:placeholder-shown),
.form .field select[aria-invalid="true"],
.form .field input[aria-invalid="true"],
.form .field textarea[aria-invalid="true"] {
  border-color: rgba(255, 77, 79, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.12);
}

.field > label,
.field > span,
.field legend,
.field__checkbox-label,
#dietForm .field-inline > span,
#nutritionScheduleForm .field-inline > span {
  text-transform: none;
  letter-spacing: 0;
}

.notice {
  border: 1px solid rgba(var(--role-accent-rgb), 0.22);
  border-radius: 12px;
  color: var(--text);
  background: rgba(var(--role-accent-rgb), 0.08);
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
}

.notice--success {
  border-color: rgba(81, 207, 102, 0.34);
  background: rgba(81, 207, 102, 0.10);
}

.notice--warning {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.12);
}

.notice--info {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(96, 165, 250, 0.10);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  margin-top: 2px;
}

.field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field__input-wrap > input {
  width: 100%;
  padding-right: 52px;
}

.field__toggle {
  position: absolute;
  right: 8px;
  height: 34px;
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 28, 0.9);
  color: var(--text);
  line-height: 1;
  padding: 0;
  z-index: 3;
  cursor: pointer;
}

.field__toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.field__toggle:hover {
  border-color: rgba(var(--role-accent-rgb), 0.4);
  color: var(--accent-2);
}

.field__toggle:focus-visible {
  outline: 2px solid rgba(var(--role-accent-rgb), 0.45);
  outline-offset: 1px;
}

.field__toggle--password {
  --password-eye-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M1.5%2012s3.8-6%2010.5-6%2010.5%206%2010.5%206-3.8%206-10.5%206S1.5%2012%201.5%2012Z'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.2'%20fill='none'%20stroke='black'%20stroke-width='1.9'/%3E%3C/svg%3E");
  --password-eye-off-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M3.5%204.5%2020.5%2019.5'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M10.6%206.3A10.9%2010.9%200%200%201%2012%206c6.7%200%2010.5%206%2010.5%206a16.4%2016.4%200%200%201-4.1%204.3'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M6.5%208.6A16.6%2016.6%200%200%200%201.5%2012s3.8%206%2010.5%206c1.6%200%203-.3%204.3-.9'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M9.9%2010a3.2%203.2%200%200%200%204.2%204.2'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  width: 28px;
  height: 28px;
  right: 10px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.field__toggle--password svg {
  width: 19px;
  height: 19px;
}

@supports ((-webkit-mask: url("") center / contain no-repeat) or (mask: url("") center / contain no-repeat)) {
  .field__toggle--password::before {
    content: "";
    position: absolute;
    inset: 4px;
    display: block;
    background: currentColor;
    -webkit-mask: var(--password-eye-off-icon) center / contain no-repeat;
    mask: var(--password-eye-off-icon) center / contain no-repeat;
    pointer-events: none;
  }

  .field__toggle--password[aria-pressed="true"]::before {
    -webkit-mask-image: var(--password-eye-icon);
    mask-image: var(--password-eye-icon);
  }

  .field__toggle--password svg {
    opacity: 0;
  }
}

.field__toggle--password:hover {
  background: rgba(var(--role-accent-rgb), 0.16);
  color: var(--accent-2);
}

.field__toggle--password[aria-pressed="true"] {
  color: var(--accent-2);
}

.field__toggle--password:focus-visible {
  outline: 2px solid rgba(var(--role-accent-rgb), 0.5);
  outline-offset: 1px;
}

#groupsForm .groups-timetable-date-picker {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
}

.star-rating {
  display: grid;
  gap: 8px;
}

.star-rating__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.star-rating__btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(var(--role-accent-3-rgb), 0.36);
  font-size: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease;
}

.star-rating__btn:hover {
  transform: translateY(-1px);
  color: rgba(var(--role-accent-3-rgb), 0.92);
}

.star-rating__btn.active {
  color: #ffd166;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.32);
}

.star-rating__meta {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  #view-ratings .star-rating__row {
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: hidden;
    padding-bottom: 0;
  }

  #view-ratings .star-rating__btn {
    width: 28px;
    height: 28px;
    font-size: 20px;
    flex: 0 0 auto;
  }
}

.ratings-trainer-list {
  display: grid;
  gap: 10px;
}

.rating-trainer-option {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-align: left;
}

.rating-trainer-option .tag {
  background: rgba(var(--role-accent-3-rgb), 0.2);
  color: var(--accent-3);
}

.rating-trainer-option.list-item--selected .tag {
  background: rgba(var(--role-accent-rgb), 0.26);
  color: #ffffff;
}

.field--checkbox {
  margin-top: -8px;
}

.field__checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.field__checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

#reviewFeedbackSettings,
#reviewFeedbackSettingsForm {
  min-width: 0;
}

#reviewFeedbackSettingsForm.review-feedback-settings-form {
  display: grid;
  gap: 14px;
}

#reviewFeedbackSettingsForm .field {
  margin-bottom: 0;
}

#reviewFeedbackSettingsForm .review-feedback-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

#reviewFeedbackSettingsForm .review-feedback-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

#reviewFeedbackSettingsForm .review-feedback-toggle span {
  min-width: 0;
  line-height: 1.4;
}

#reviewFeedbackSettingsForm .actions {
  justify-content: flex-start;
  margin-top: 2px;
}

#reviewFeedbackSettingsForm .actions .btn {
  min-width: 180px;
  max-width: 100%;
  min-height: 42px;
  white-space: normal;
}

@media (max-width: 600px) {
  #reviewFeedbackSettingsForm .actions .btn {
    width: 100%;
  }
}

#dietForm .field-inline,
#nutritionScheduleForm .field-inline {
  display: grid;
  grid-template-columns: auto 18px;
  align-items: center;
  justify-content: flex-start;
  justify-items: start;
  column-gap: 8px;
  row-gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 0 4px 0;
  padding: 0;
  cursor: pointer;
}

#dietForm .field-inline > span,
#nutritionScheduleForm .field-inline > span {
  display: block;
  margin: 0;
  line-height: 1.2;
  color: var(--text);
}

#dietForm .field-inline > input[type="checkbox"],
#nutritionScheduleForm .field-inline > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  justify-self: start;
  align-self: center;
  accent-color: var(--accent);
}

#nutritionScheduleForm .nutrition-health-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 14px;
  margin-bottom: 10px;
}

#nutritionScheduleForm .nutrition-health-tags legend {
  flex: 0 0 100%;
  margin-bottom: 4px;
}

#nutritionScheduleForm .nutrition-health-tags__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

#nutritionScheduleForm .nutrition-health-tags__grid .field-inline {
  margin: 0;
}

#nutritionScheduleForm .advanced-nutrition-meal-editor {
  border: 1px solid rgba(var(--role-accent-rgb), 0.24);
  border-radius: 8px;
  margin: 0 0 12px;
  padding: 10px 12px 12px;
}

#nutritionScheduleForm .advanced-nutrition-meal-editor legend {
  color: var(--text);
  font-weight: 800;
  padding: 0 4px;
}

#nutritionScheduleForm .advanced-nutrition-meal-editor__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

#nutritionScheduleForm .advanced-nutrition-meal-editor__field {
  margin: 0;
}

#nutritionScheduleForm .nutrition-recipient-picker {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(var(--role-accent-rgb), 0.28);
  border-radius: 10px;
  padding: 6px;
  background: rgba(var(--surface-rgb), 0.2);
  display: grid;
  gap: 4px;
}

#nutritionScheduleForm .nutrition-recipient-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
}

#nutritionScheduleForm .nutrition-recipient-row:hover,
#nutritionScheduleForm .nutrition-recipient-row:focus-within {
  background: rgba(var(--role-accent-rgb), 0.12);
}

#nutritionScheduleForm .nutrition-recipient-row input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  accent-color: var(--accent);
}

#nutritionScheduleForm .nutrition-recipient-row > div {
  min-width: 0;
}

#nutritionScheduleForm .nutrition-recipient-row strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 600;
}

#nutritionScheduleForm .nutrition-recipient-row .meta {
  font-size: 0.76rem;
  line-height: 1.35;
}

#nutritionScheduleList .nutrition-template-edit-icon {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.45);
  background: rgba(var(--role-accent-rgb), 0.12);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  margin-left: 10px;
}

#nutritionScheduleList .nutrition-template-edit-icon:hover,
#nutritionScheduleList .nutrition-template-edit-icon:focus-visible {
  background: rgba(var(--role-accent-rgb), 0.22);
  border-color: rgba(var(--role-accent-rgb), 0.7);
  outline: none;
}

#nutritionScheduleList .nutrition-template-title-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: default;
}

#nutritionScheduleList .nutrition-template-title-btn:hover,
#nutritionScheduleList .nutrition-template-title-btn:focus-visible {
  color: var(--text);
  text-decoration: none;
  outline: none;
}

#diversionList .nutrition-template-detail-card,
#nutritionScheduleList .nutrition-template-detail-card,
#dietView .nutrition-template-detail-card,
#dietForm .nutrition-template-detail-card {
  align-items: flex-start;
}

#diversionList .nutrition-template-detail-card > div,
#nutritionScheduleList .nutrition-template-detail-card > div,
#dietView .nutrition-template-detail-card > div,
#dietForm .nutrition-template-detail-card > div,
#nutritionScheduleList .list-item > div {
  width: 100%;
}

#diversionList .nutrition-template-expand,
#nutritionScheduleList .nutrition-template-expand,
#dietView .nutrition-template-expand,
#dietForm .nutrition-template-expand {
  margin-top: 8px;
}

#diversionList .nutrition-template-expand > summary,
#nutritionScheduleList .nutrition-template-expand > summary,
#dietView .nutrition-template-expand > summary,
#dietForm .nutrition-template-expand > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

#diversionList .nutrition-template-expand[open] > summary,
#nutritionScheduleList .nutrition-template-expand[open] > summary,
#dietView .nutrition-template-expand[open] > summary,
#dietForm .nutrition-template-expand[open] > summary {
  margin-bottom: 10px;
}

#diversionList .nutrition-template-plan-grid,
#nutritionScheduleList .nutrition-template-plan-grid,
#dietView .nutrition-template-plan-grid,
#dietForm .nutrition-template-plan-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

#diversionList .nutrition-day-block,
#nutritionScheduleList .nutrition-day-block,
#dietView .nutrition-day-block,
#dietForm .nutrition-day-block {
  border: 1px solid rgba(var(--role-accent-rgb), 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(var(--surface-rgb), 0.28);
}

#diversionList .nutrition-day-block > strong,
#nutritionScheduleList .nutrition-day-block > strong,
#dietView .nutrition-day-block > strong,
#dietForm .nutrition-day-block > strong {
  display: block;
  margin-bottom: 6px;
}

#diversionList .nutrition-day-row,
#nutritionScheduleList .nutrition-day-row,
#dietView .nutrition-day-row,
#dietForm .nutrition-day-row {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

#diversionList .nutrition-day-row--detail,
#nutritionScheduleList .nutrition-day-row--detail,
#dietView .nutrition-day-row--detail,
#dietForm .nutrition-day-row--detail {
  margin-left: 10px;
}

#diversionList .nutrition-day-row__label,
#nutritionScheduleList .nutrition-day-row__label,
#dietView .nutrition-day-row__label,
#dietForm .nutrition-day-row__label {
  color: var(--text);
  font-weight: 600;
}

#diversionList .timetable-history-filter-panel {
  gap: 10px;
}

#diversionList .timetable-history-filter-panel__head .meta {
  display: block;
  line-height: 1.4;
}

#diversionList .timetable-history-sections {
  display: grid;
  gap: 12px;
}

#diversionList .timetable-history-summary {
  align-items: flex-start;
}

#diversionList .timetable-history-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

#diversionList .timetable-history-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#diversionList .timetable-history-grid {
  display: grid;
  gap: 10px;
}

#diversionList .timetable-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

#diversionList .timetable-history-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#diversionList .timetable-history-card .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#dietView .member-nutrition-filter-card .field {
  margin: 0;
  max-width: none;
}

#dietView .member-nutrition-filter-card .member-nutrition-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

#dietView .member-nutrition-filter-card--plain {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#dietView .member-nutrition-filter-card--plain > .actions {
  margin: 0;
  justify-content: flex-start;
}

#dietView .member-nutrition-filter-card--plain .field {
  width: min(100%, 220px);
}

#dietView .nutrition-assignment-stack,
#dietForm .nutrition-assignment-stack {
  display: grid;
  gap: 10px;
  width: 100%;
}

#dietView .nutrition-assignment-stack > .list-item,
#dietForm .nutrition-assignment-stack > .list-item {
  width: 100%;
}

@media (max-width: 760px) {
  #dietView .member-nutrition-filter-card .member-nutrition-filter-grid {
    grid-template-columns: 1fr;
  }
}

#attendanceForm .trainer-attendance-manual-gate {
  margin-bottom: 12px;
}

#attendanceForm .trainer-attendance-manual-gate .meta {
  display: block;
  line-height: 1.35;
  margin-bottom: 8px;
}

#attendanceForm .trainer-attendance-manual-gate .field--checkbox {
  margin-top: 0;
  margin-bottom: 2px;
}

#attendanceForm .trainer-attendance-manual-gate .field__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

#attendanceForm .trainer-attendance-manual-gate .field__checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

input, select, textarea {
  background: #10151c;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

input,
textarea {
  touch-action: manipulation;
}

select {
  touch-action: auto;
  user-select: auto;
  -webkit-user-select: auto;
}

#loginForm #roleSelect {
  pointer-events: none;
}

#loginForm #roleSelect.login-role-native-select {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  min-inline-size: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
}

.login-role-field {
  position: relative;
  z-index: 8;
}

.login-role-field:focus-within {
  z-index: 40;
}

.login-role-picker {
  position: relative;
  width: 100%;
}

.login-role-picker__button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 31, 45, 0.98), rgba(8, 14, 23, 0.98)),
    #0a111c;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-role-picker__button:hover {
  border-color: rgba(var(--role-accent-rgb), 0.4);
  background:
    linear-gradient(180deg, rgba(25, 39, 57, 0.98), rgba(9, 16, 27, 0.98)),
    #0a111c;
}

.login-role-picker__button:focus-visible {
  outline: none;
  border-color: rgba(var(--role-accent-rgb), 0.78);
  box-shadow:
    0 0 0 3px rgba(var(--role-accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-role-picker__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-role-picker:not(.has-value) .login-role-picker__value {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.login-role-picker__chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  margin-right: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: rgba(255, 255, 255, 0.82);
  transform: rotate(45deg);
  transition: transform 0.18s ease, margin-top 0.18s ease;
}

.login-role-picker.is-open .login-role-picker__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.login-role-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  max-height: min(320px, 54vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(18, 28, 41, 0.98), rgba(7, 12, 20, 0.98)),
    #08111b;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--role-accent-rgb), 0.45) transparent;
}

.login-role-picker__menu::-webkit-scrollbar {
  width: 8px;
}

.login-role-picker__menu::-webkit-scrollbar-track {
  background: transparent;
}

.login-role-picker__menu::-webkit-scrollbar-thumb {
  background: rgba(var(--role-accent-rgb), 0.42);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.login-role-picker__menu[hidden] {
  display: none;
}

.login-role-picker__option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  padding: 7px 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.login-role-picker__option:hover,
.login-role-picker__option:focus-visible {
  outline: none;
  background: rgba(var(--role-accent-rgb), 0.14);
  color: #fff;
}

.login-role-picker__option.is-selected {
  background: rgba(var(--role-accent-rgb), 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.26);
}

.login-role-picker__option[data-value=""].is-selected {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

#loginForm,
#loginForm .field,
#loginForm input,
#loginForm select,
#loginForm button {
  pointer-events: auto;
}

.login-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.login-mode-toggle .btn {
  min-width: 112px;
  justify-content: center;
}

#firstLoginSetupPanel {
  display: grid;
  gap: 12px;
}

#firstLoginSetupPanel.hidden {
  display: none;
}

.temporary-credential-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.temporary-credential-panel.hidden {
  display: none;
}

.temporary-credential-panel .actions {
  flex-shrink: 0;
}

button,
.btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  user-select: none;
}

button:focus {
  outline: none;
}

button:focus:not(:focus-visible) {
  outline: none;
}

select[multiple] {
  min-height: 220px;
}

select[multiple] optgroup {
  color: var(--accent-3);
  background: #0f1620;
  font-weight: 700;
}

select[multiple] option {
  color: var(--text);
  background: #10151c;
  padding: 8px 10px;
}

select[multiple] option:checked {
  background: rgba(var(--role-accent-rgb), 0.35);
  color: #ffffff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

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

.gym-selection-panel {
  display: grid;
  gap: 12px;
}

.gym-selection-options {
  margin-bottom: 4px;
}

.gym-selection-option {
  justify-content: center;
}

.employee-manage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.employee-manage-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.employee-manage-card__footer {
  width: 100%;
  margin-top: 0;
}

.employee-manage-card__pen {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.34);
  background: rgba(16, 28, 44, 0.92);
  color: #d8edff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.employee-manage-card__pen:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--role-accent-2-rgb), 0.55);
  box-shadow: 0 0 0 2px rgba(var(--role-accent-rgb), 0.16);
}

.employee-manage-card__pen:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--role-accent-2-rgb), 0.74);
}

#productsList .products-admin-card {
  align-items: stretch;
}

#productsList .products-admin-card .employee-manage-card__top {
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

#productsList .products-admin-card .products-admin-card__body {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

#productsList .products-admin-card .products-admin-card__body strong,
#productsList .products-admin-card .products-admin-card__body .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#productsList .products-admin-card .products-admin-card__body strong {
  line-height: 1.25;
}

#productsList .products-admin-card .products-admin-card__body .meta {
  line-height: 1.3;
}

#productsList .products-admin-card .employee-manage-card__pen {
  margin-top: 2px;
}

#productsList .products-trainer-table-wrap {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

#view-products .products-trainer-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 13px;
}

#view-products .products-trainer-table th,
#view-products .products-trainer-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  overflow-wrap: anywhere;
}

#view-products .products-trainer-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

#view-products .products-trainer-table .stats-table__cell--right {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #view-products .products-trainer-table,
  #view-products .products-trainer-table tbody,
  #view-products .products-trainer-table tr,
  #view-products .products-trainer-table td {
    display: block;
    width: 100%;
  }

  #view-products .products-trainer-table thead {
    display: none;
  }

  #view-products .products-trainer-table tbody {
    display: grid;
    gap: 0;
  }

  #view-products .products-trainer-table tr {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #view-products .products-trainer-table tr:first-child {
    padding-top: 4px;
  }

  #view-products .products-trainer-table tr:last-child {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  #view-products .products-trainer-table td,
  #view-products .products-trainer-table .stats-table__cell--right {
    display: grid;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 0.58fr);
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    border: 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #view-products .products-trainer-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
  }

  #view-products .products-trainer-table td:first-child {
    font-weight: 700;
  }
}

.employee-manage-card__actions {
  width: 100%;
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.employee-manage-card__action {
  border: 1px solid rgba(var(--role-accent-rgb), 0.3);
  border-radius: 999px;
  background: rgba(16, 28, 44, 0.9);
  color: var(--text);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.employee-manage-card__action:hover {
  border-color: rgba(var(--role-accent-2-rgb), 0.52);
}

.actions--admin-profile .actions__primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.actions--admin-profile {
  align-items: flex-start;
}

.actions--admin-profile > .btn {
  align-self: flex-start;
}

.actions--admin-profile .actions__primary .form__message {
  margin: 0;
  line-height: 1.3;
  display: block;
}

.actions--admin-profile #cancelEditBtn {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 34px;
  border-radius: 14px;
}

#groupsList .groups-directory-actions {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
}

#groupsList .groups-directory-filter {
  width: 100%;
  min-width: 0;
}

#groupsList .groups-directory-filter .field {
  margin-bottom: 8px;
}

#groupsList .groups-directory-results {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

#groupsList .groups-directory-menu-toggle {
  margin-top: 2px;
}

#groupsList .groups-directory-menu {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 4;
  min-width: 128px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.26);
  background: rgba(10, 20, 34, 0.96);
  box-shadow:
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#groupsList .groups-directory-menu .employee-manage-card__action {
  width: 100%;
  text-align: left;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(var(--role-accent-rgb), 0.28);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 58%),
    linear-gradient(160deg, rgba(var(--surface-rgb), 0.9), rgba(var(--surface-rgb-strong), 0.92));
  color: var(--text);
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(2, 8, 20, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition:
    transform var(--glass-motion-fast),
    box-shadow var(--glass-motion-fast),
    border-color var(--glass-motion-fast),
    background var(--glass-motion-fast),
    color var(--glass-motion-fast);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  z-index: 0;
}

.btn::after {
  content: '';
  position: absolute;
  top: -32%;
  left: -25%;
  width: var(--glass-trace-width-list);
  height: 164%;
  border-radius: 999px;
  transform: translateX(0) skewX(-12deg);
  background: linear-gradient(
    180deg,
    rgba(var(--role-accent-rgb), 0) 0%,
    rgba(var(--role-accent-2-rgb), calc(var(--glass-trace-opacity) - 0.1)) 50%,
    rgba(var(--role-accent-rgb), 0) 100%
  );
  opacity: 0;
  transition: transform var(--glass-motion-main), opacity var(--glass-motion-fast);
  pointer-events: none;
  z-index: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn.primary {
  background:
    linear-gradient(145deg, rgba(var(--role-accent-rgb), 0.25), rgba(var(--role-accent-2-rgb), 0.12) 58%, rgba(var(--surface-rgb), 0.92) 100%),
    linear-gradient(165deg, rgba(var(--surface-rgb), 0.92), rgba(var(--surface-rgb-strong), 0.92));
  color: #eef8ff;
  border-color: rgba(var(--role-accent-2-rgb), 0.5);
  box-shadow:
    0 14px 28px rgba(var(--role-accent-rgb), 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.btn.ghost {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 60%),
    linear-gradient(165deg, rgba(var(--surface-rgb), 0.88), rgba(var(--surface-rgb-strong), 0.9));
  border: 1px solid rgba(var(--role-accent-rgb), 0.3);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--role-accent-2-rgb), 0.54);
  box-shadow:
    0 16px 30px rgba(2, 8, 18, 0.42),
    0 0 14px rgba(var(--role-accent-rgb), 0.14);
  animation: glass-pulse 280ms ease-out 1;
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: glass-trace-pass 440ms var(--ease-spring) 1;
}

.btn.primary:hover {
  box-shadow:
    0 18px 32px rgba(var(--role-accent-rgb), 0.32),
    0 0 14px rgba(var(--role-accent-2-rgb), 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn.ghost:hover {
  border-color: rgba(var(--role-accent-2-rgb), 0.5);
  background:
    linear-gradient(145deg, rgba(var(--role-accent-rgb), 0.12), rgba(var(--role-accent-2-rgb), 0.06)),
    linear-gradient(165deg, rgba(var(--surface-rgb), 0.9), rgba(var(--surface-rgb-strong), 0.9));
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(var(--role-accent-2-rgb), 0.72),
    0 0 0 5px rgba(var(--role-accent-rgb), 0.24),
    0 14px 30px rgba(2, 8, 18, 0.4);
}

.btn:active {
  transform: translateY(1px);
}

.form__message {
  min-height: 20px;
  color: var(--muted);
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  font-size: 0.78rem;
}

.login-legal-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-legal-links a:hover,
.login-legal-links a:focus-visible {
  color: var(--text);
}

[data-contact-verification] .form__message {
  margin: 2px 0 0;
  min-height: 0;
  line-height: 1.3;
}

[data-contact-verification] .form__message:empty {
  display: none;
}

[data-contact-verification] .contact-verification-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

[data-contact-verification] .contact-verification-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-contact-verification] .contact-verification-item .btn.is-verified {
  color: var(--success);
  border-color: rgba(81, 207, 102, 0.6);
  background:
    linear-gradient(145deg, rgba(81, 207, 102, 0.14), rgba(81, 207, 102, 0.08)),
    linear-gradient(165deg, rgba(var(--surface-rgb), 0.9), rgba(var(--surface-rgb-strong), 0.9));
}

[data-contact-verification] .contact-verification-tick {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(81, 207, 102, 0.55);
  background: rgba(81, 207, 102, 0.18);
  color: var(--success);
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-contact-verification] .contact-verification-tick.is-verified {
  opacity: 1;
  transform: scale(1);
}

/* ── AI Outcomes Tracker ─────────────────────────────────────────────────── */

.stats-ai-outcome-dashboard,
.stats-ai-outcome-form {
  display: block;
  padding: 20px 22px;
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.94), rgba(var(--surface-rgb-strong), 0.92));
  border: 1px solid rgba(var(--role-accent-rgb), 0.22);
  box-shadow: var(--elevation-2), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  margin-bottom: 12px;
}

.stats-ai-outcome-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stats-ai-outcome-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.stats-ai-outcome-stat--revenue {
  background: rgba(var(--role-accent-rgb), 0.1);
  border-color: rgba(var(--role-accent-rgb), 0.25);
}

.stats-ai-outcome-stat__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.1;
}

.stats-ai-outcome-stat--revenue .stats-ai-outcome-stat__value {
  color: rgba(var(--role-accent-rgb), 1);
}

.stats-ai-outcome-stat__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stats-ai-outcome-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .stats-ai-outcome-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Login card ─────────────────────────────────────────────────────────── */

.login-card {
  position: relative;
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.14);
}

.login-card__accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(var(--role-accent-rgb), 0.9) 0%,
    rgba(var(--role-accent-2-rgb, var(--role-accent-rgb)), 0.7) 100%
  );
  border-radius: 3px 3px 0 0;
  transition: background 0.4s ease;
}

.login-card__header {
  align-items: flex-start;
  padding-bottom: 4px;
}

.login-card__welcome {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--text);
}

.login-card__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.1px;
}

.login-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(var(--role-accent-rgb), 0.22),
    rgba(var(--role-accent-rgb), 0.08)
  );
  border: 1px solid rgba(var(--role-accent-rgb), 0.25);
  color: rgba(var(--role-accent-rgb), 1);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.login-card__icon svg {
  width: 22px;
  height: 22px;
}

.login-form {
  display: grid;
  gap: 14px;
}

/* ── Credential hint text ────────────────────────────────────────────────── */

.field__hint {
  display: block;
  font-size: 11.5px;
  color: rgba(var(--role-accent-rgb), 0.85);
  margin-top: 4px;
  line-height: 1.4;
  letter-spacing: 0.15px;
}

.field__hint--muted {
  color: var(--muted);
}

.field__hint.hidden,
.field__hint--muted.hidden {
  display: none;
}

/* ── Login action buttons ────────────────────────────────────────────────── */

.login-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.login-actions .login-btn--primary {
  width: 116px;
  min-height: 34px;
  gap: 5px;
  border: 1px solid rgba(var(--role-accent-2-rgb), 0.66);
  border-radius: 999px;
  background:
    radial-gradient(120% 150% at 12% 0%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.92), rgba(var(--role-accent-2-rgb), 0.64) 48%, rgba(var(--role-accent-rgb), 0.34)),
    linear-gradient(180deg, rgba(20, 32, 48, 0.96), rgba(7, 13, 22, 0.98));
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14px;
  padding: 6px 14px;
  justify-content: center;
  box-shadow:
    0 8px 16px rgba(var(--role-accent-rgb), 0.2),
    0 4px 10px rgba(2, 8, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.login-actions .login-btn--primary svg {
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.2));
}

.login-actions .login-btn--forgot {
  width: 148px;
  min-height: 34px;
  border-radius: 999px;
  border-color: rgba(var(--role-accent-rgb), 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 62%),
    linear-gradient(180deg, rgba(22, 33, 48, 0.88), rgba(8, 14, 23, 0.94));
  color: rgba(238, 248, 255, 0.9);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08px;
  padding: 6px 14px;
  justify-content: center;
  white-space: nowrap;
  box-shadow:
    0 6px 14px rgba(2, 8, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-actions .login-btn--forgot::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 55%),
    linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.12), rgba(var(--role-accent-2-rgb), 0));
}

.login-actions .login-btn--primary:hover,
.login-actions .login-btn--primary:focus-visible {
  border-color: rgba(var(--role-accent-2-rgb), 0.92);
  background:
    radial-gradient(120% 150% at 12% 0%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(135deg, rgba(var(--role-accent-rgb), 1), rgba(var(--role-accent-2-rgb), 0.74) 48%, rgba(var(--role-accent-rgb), 0.42)),
    linear-gradient(180deg, rgba(20, 32, 48, 0.98), rgba(7, 13, 22, 1));
  box-shadow:
    0 13px 22px rgba(var(--role-accent-rgb), 0.28),
    0 0 14px rgba(var(--role-accent-2-rgb), 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-actions .login-btn--forgot:hover,
.login-actions .login-btn--forgot:focus-visible {
  border-color: rgba(var(--role-accent-2-rgb), 0.62);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(var(--role-accent-rgb), 0.2), rgba(var(--role-accent-2-rgb), 0.08)),
    linear-gradient(180deg, rgba(25, 38, 56, 0.92), rgba(8, 14, 23, 0.98));
  box-shadow:
    0 11px 18px rgba(2, 8, 18, 0.32),
    0 0 12px rgba(var(--role-accent-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-actions .login-btn--primary:focus-visible,
.login-actions .login-btn--forgot:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(var(--role-accent-2-rgb), 0.84),
    0 0 0 5px rgba(var(--role-accent-rgb), 0.22),
    0 10px 20px rgba(2, 8, 18, 0.34);
}

.login-actions .login-btn--primary:active,
.login-actions .login-btn--forgot:active {
  transform: translateY(0);
}

.login-forgot-btn,
.btn-link {
  background: none;
  border: none;
  padding: 6px 4px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
  font-family: inherit;
  letter-spacing: 0.1px;
}

.login-forgot-btn:hover,
.btn-link:hover,
.login-forgot-btn:focus-visible,
.btn-link:focus-visible {
  color: var(--text);
  text-decoration-color: var(--muted);
  outline: none;
}

/* ── Login message ───────────────────────────────────────────────────────── */

.login-message {
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  padding: 2px 0;
}

/* ── First-login setup notice ────────────────────────────────────────────── */

.login-setup-notice {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(var(--role-accent-rgb), 0.07);
  border: 1px solid rgba(var(--role-accent-rgb), 0.2);
  line-height: 1.4;
  margin: 0;
}

/* ── Badge accent variant ────────────────────────────────────────────────── */

.badge--accent {
  background: linear-gradient(
    130deg,
    rgba(var(--role-accent-rgb), 0.35),
    rgba(var(--role-accent-rgb), 0.18)
  );
  border-color: rgba(var(--role-accent-rgb), 0.5);
  color: var(--text);
  font-weight: 600;
}

/* ── Splash eyebrow text ─────────────────────────────────────────────────── */

.splash__title .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(var(--role-accent-rgb), 0.85);
  margin-bottom: 2px;
}

/* ── Mobile responsive login ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .login-card {
    max-width: 100%;
    border-radius: 20px;
    padding: 22px 18px 20px;
  }

  .login-card__welcome {
    font-size: 22px;
  }

  .login-actions {
    gap: 8px;
  }

  .login-actions .login-btn--primary {
    width: 108px;
    padding: 6px 12px;
  }

  .login-actions .login-btn--forgot {
    width: 142px;
    padding: 6px 12px;
  }

  .splash__header {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .splash__badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 16px 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.status-chip.online {
  background: rgba(81, 207, 102, 0.2);
  color: var(--success);
}

.status-chip.danger {
  background: rgba(255, 77, 79, 0.2);
  color: var(--danger);
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
}

.nav {
  background: rgba(8, 10, 14, 0.96);
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom)) 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid rgba(255,255,255,0.05);
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
  overflow: hidden;
  position: relative;
  z-index: 6;
  isolation: isolate;
}

.nav__brand {
  --nav-brand-logo-slot: 48px;
  display: grid;
  grid-template-columns: var(--nav-brand-logo-slot) minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  min-width: 0;
  min-height: calc(var(--nav-brand-logo-slot) + 16px);
  box-sizing: border-box;
}

.nav__brand .logo {
  width: var(--nav-brand-logo-slot);
  height: var(--nav-brand-logo-slot);
  min-width: var(--nav-brand-logo-slot);
  flex: 0 0 var(--nav-brand-logo-slot);
  overflow: hidden;
  align-self: start;
}

.nav__brand .logo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.98);
}

.nav__brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.nav__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__subtitle {
  color: var(--muted);
  font-size: 11.5px;
  text-transform: none;
  letter-spacing: 0.4px;
  line-height: 1.22;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.nav__profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(var(--role-accent-rgb), 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav__profile-photo-btn {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav__profile-photo-btn:focus-visible {
  outline: 2px solid rgba(var(--role-accent-2-rgb), 0.86);
  outline-offset: 3px;
}

.nav__profile-photo-btn:disabled {
  cursor: progress;
  opacity: 0.74;
}

.nav__profile-photo {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(var(--role-accent-2-rgb), 0.4);
  background: rgba(5, 10, 18, 0.86);
}

.nav__profile-photo-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.98), rgba(var(--role-accent-2-rgb), 0.96));
  color: #08111d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
}

.nav__profile-photo-input {
  display: none;
}

.nav__profile-avatar-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 24;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.42);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav__profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.nav__profile-avatar-option {
  width: 100%;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav__profile-avatar-option:hover,
.nav__profile-avatar-option.is-selected {
  border-color: rgba(var(--role-accent-2-rgb), 0.86);
  box-shadow: 0 0 0 2px rgba(var(--role-accent-rgb), 0.24);
}

.nav__profile-avatar-option img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.nav__profile-avatar-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.nav__profile-avatar-actions .btn {
  min-height: 34px;
  min-width: 0;
  padding: 8px 6px;
  font-size: 11px;
}

.nav__profile-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nav__profile-name,
.nav__profile-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__profile-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.nav__profile-role {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--role-accent-2-rgb), 0.5) rgba(255,255,255,0.04);
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
}

.nav__links::-webkit-scrollbar {
  width: 6px;
}

.nav__links::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.nav__links::-webkit-scrollbar-thumb {
  background: rgba(var(--role-accent-2-rgb), 0.48);
  border-radius: 999px;
}

.nav__links:hover::-webkit-scrollbar-thumb,
.nav__links[data-nav-scroll-active="true"]::-webkit-scrollbar-thumb {
  background: rgba(var(--role-accent-2-rgb), 0.68);
}

.nav__link {
  text-align: left;
  padding: 12px 14px;
  padding-right: 72px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.nav__link:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.6),
    0 0 0 2px rgba(var(--role-accent-rgb), 0.35);
}

.nav__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__link--group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 14px;
}

.nav__link--group::after {
  display: none;
}

.nav__arrow {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav__group--expanded .nav__arrow {
  color: var(--text);
  transform: rotate(90deg);
}

.nav__submenu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.24s ease, opacity 0.2s ease;
}

.nav__group--expanded .nav__submenu {
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
}

.nav__group[data-nav-group="statistics"].nav__group--expanded .nav__submenu {
  max-height: 460px;
}

.nav__group--expanded .nav__submenu.nav__submenu--scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.nav__group--expanded .nav__submenu--more {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.nav__submenu--more > .nav__link {
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 13px;
}

.nav__submenu--more > .nav__link:hover {
  background: rgba(var(--role-accent-rgb), 0.14);
  color: #ffffff;
}

.nav__submenu--more > .nav__group {
  gap: 4px;
  margin-top: 2px;
}

.nav__submenu--more > .nav__group > .nav__link--group {
  padding: 9px 10px;
  border-radius: 10px;
}

.nav__submenu--more > .nav__group > .nav__submenu {
  margin-left: 8px;
}

.nav__sublink {
  text-align: left;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(248, 250, 252, 0.88);
  padding: 9px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}

.nav__sublink:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.62),
    0 0 0 2px rgba(var(--role-accent-rgb), 0.32);
}

.nav__sublink:hover {
  background: rgba(var(--role-accent-rgb), 0.14);
  color: #ffffff;
}

.nav__sublink.active {
  background: linear-gradient(90deg, rgba(var(--role-accent-rgb), 0.38), rgba(var(--role-accent-rgb), 0.16));
  color: #ffffff;
  font-weight: 700;
  box-shadow:
    inset 3px 0 0 0 var(--accent-3),
    inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.55),
    0 6px 14px rgba(var(--role-accent-rgb), 0.22);
}

.nav__sublink.locked {
  opacity: 0.6;
}

.nav__sublink.nav__sublink--role-locked {
  padding-right: 30px;
}

.nav__sublink.nav__sublink--role-locked::after {
  content: '\1F512';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  opacity: 0.9;
  pointer-events: none;
}

.nav__sublink.nav__sublink--role-locked.active::after {
  color: var(--accent-3);
}

.nav__sublink--forecast-locked::before {
  content: '\1F512';
  margin-right: 6px;
}

.nav__sublink:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.nav__link::after {
  content: attr(data-access);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__link[data-access=""]::after,
.nav__link:not([data-access])::after {
  display: none;
}

.nav__link.active {
  background: rgba(var(--role-accent-rgb), 0.2);
  color: var(--accent-3);
  box-shadow: inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.35);
}

.nav__group--active > .nav__link--group {
  background: rgba(var(--role-accent-rgb), 0.26);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.55);
}

.nav__link.locked {
  opacity: 0.6;
}

.nav__link.nav__link--role-locked {
  padding-right: 44px;
}

.nav__link.nav__link--role-locked::before {
  content: '\1F512';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  opacity: 0.92;
  pointer-events: none;
}

.nav__link.nav__link--role-locked.active::before {
  color: var(--accent-3);
}

.nav__link:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.nav__mode-toggle {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.3px;
}

body.nav-simple #accessBadge {
  display: none !important;
}

.main {
  padding: 32px clamp(20px, 4vw, 48px) calc(32px + var(--safe-bottom)) clamp(20px, 4vw, 48px);
  min-width: 0;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.64),
    0 0 0 2px rgba(var(--role-accent-rgb), 0.35);
}

.icon-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: block;
}

.nav-overlay {
  display: none;
}

.topbar__status {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  position: relative;
}

.topbar__notifications {
  position: relative;
  flex: 0 0 auto;
  padding: 7px 7px 0 0;
}

.topbar__notifications:not(:has(> .topbar__notify:not(.hidden))) {
  display: none;
}

.super-admin-analytics-scope {
  margin: -10px 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.super-admin-analytics-scope__form {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.super-admin-analytics-scope__field {
  flex: 1 1 360px;
  max-width: 560px;
}

.super-admin-analytics-scope__status {
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 10px;
  text-align: right;
}

.super-admin-analytics-scope__breakdown {
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
}

.super-admin-analytics-scope__breakdown .stats-table {
  min-width: 760px;
}

@media (max-width: 760px) {
  .super-admin-analytics-scope {
    margin-top: -12px;
  }

  .super-admin-analytics-scope__form {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .super-admin-analytics-scope__field {
    max-width: none;
  }

  .super-admin-analytics-scope__status {
    padding-bottom: 0;
    text-align: left;
  }
}

.topbar__sync-btn-host {
  display: flex;
  align-items: center;
}

.topbar__sync-btn-host #syncNowBtn {
  margin: 0;
}

.status-pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  text-transform: none;
  font-size: 12px;
  letter-spacing: 0.4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.status-pill.success {
  background: rgba(81, 207, 102, 0.2);
  color: var(--success);
}

.status-pill.info {
  background: rgba(var(--role-accent-3-rgb), 0.2);
  color: var(--accent-3);
}

.status-pill.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-pill.danger {
  background: rgba(255, 77, 79, 0.2);
  color: var(--danger);
}

.status-pill.role-admin {
  background: rgba(63, 140, 255, 0.2);
  color: #abcfff;
  border-color: rgba(116, 175, 255, 0.36);
}

.status-pill.role-trainer {
  background: rgba(111, 114, 245, 0.2);
  color: #c5c8ff;
  border-color: rgba(154, 159, 251, 0.36);
}

.status-pill.role-member {
  background: rgba(0, 200, 255, 0.2);
  color: #99efff;
  border-color: rgba(79, 221, 255, 0.36);
}

.status-pill.role-front-office {
  background: rgba(0, 103, 168, 0.2);
  color: #8abfe3;
  border-color: rgba(47, 143, 204, 0.36);
}

.status-pill.role-support-staff {
  background: rgba(47, 149, 207, 0.2);
  color: #a2d4ee;
  border-color: rgba(102, 182, 226, 0.36);
}

.status-pill.role-super-admin {
  background: rgba(107, 63, 231, 0.24);
  color: #efe7ff;
  border-color: rgba(182, 156, 255, 0.4);
}

.topbar__notify {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: 50% 8px;
  box-shadow: 0 0 0 rgba(var(--role-accent-rgb), 0);
}

.topbar__notify::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 1px solid rgba(var(--role-accent-2-rgb), 0.24);
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
}

.topbar__notify:hover {
  border-color: rgba(var(--role-accent-2-rgb), 0.5);
  background: rgba(var(--role-accent-2-rgb), 0.2);
}

.topbar__notify:focus-visible {
  outline: 2px solid rgba(var(--role-accent-2-rgb), 0.8);
  outline-offset: 2px;
}

.topbar__notify--active {
  border-color: rgba(var(--role-accent-2-rgb), 0.55);
  background: rgba(var(--role-accent-rgb), 0.2);
  box-shadow: 0 0 16px rgba(var(--role-accent-rgb), 0.24);
}

.topbar__notify-icon {
  line-height: 1;
  font-size: 17px;
  display: inline-block;
  transform-origin: 50% 8px;
}

.topbar__notify--animated .topbar__notify-icon {
  animation: bell-idle 2.8s ease-in-out infinite;
}

.topbar__notify--ringing .topbar__notify-icon {
  animation: bell-ring 1.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.topbar__notify--ringing::before {
  animation: bell-aura 1.2s ease-out infinite;
}

.topbar__notify-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 77, 79, 0.95);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.topbar__notify--ringing .topbar__notify-count {
  animation: bell-badge-pulse 1.2s ease-in-out infinite;
}

.topbar__notify-count--empty {
  background: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
}

.topbar__notify-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 28px));
  max-height: min(70vh, 540px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(var(--role-accent-2-rgb), 0.36);
  background: linear-gradient(160deg, rgba(26, 39, 67, 0.98), rgba(9, 18, 36, 0.97));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(var(--role-accent-rgb), 0.2) inset;
  z-index: 60;
}

.topbar__notify-menu-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.topbar__notify-menu-head strong {
  font-size: 13px;
  letter-spacing: 0.2px;
  text-transform: none;
}

.topbar__notify-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(min(70vh, 540px) - 64px);
  overflow-y: auto;
  padding: 10px 12px 12px;
}

.topbar__notify-menu-item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.topbar__notify-menu-item:hover {
  border-color: rgba(var(--role-accent-2-rgb), 0.52);
  background: rgba(var(--role-accent-rgb), 0.16);
}

.topbar__notify-menu-item:focus-visible {
  outline: 2px solid rgba(var(--role-accent-2-rgb), 0.72);
  outline-offset: 2px;
}

.topbar__notify-menu-item--unread {
  border-color: rgba(var(--role-accent-2-rgb), 0.42);
  background: rgba(var(--role-accent-rgb), 0.14);
}

.topbar__notify-menu-item-title {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  word-break: break-word;
}

.topbar__notify-menu-item-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.topbar__notify-menu-empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
}

@keyframes bell-idle {
  0%, 84%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(7deg); }
  92% { transform: rotate(-6deg); }
  96% { transform: rotate(4deg); }
}

@keyframes bell-ring {
  0%, 18%, 100% { transform: rotate(0deg); }
  22% { transform: rotate(16deg); }
  30% { transform: rotate(-13deg); }
  38% { transform: rotate(11deg); }
  46% { transform: rotate(-9deg); }
  54% { transform: rotate(6deg); }
  62% { transform: rotate(-4deg); }
}

@keyframes bell-aura {
  0% {
    opacity: 0.6;
    transform: scale(0.84);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes bell-badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.grid.wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 20px;
}

#view-integrations .integrations-command-actions {
  align-items: flex-end;
  gap: 10px;
}

#view-integrations .integrations-command-actions .field {
  flex: 0 0 auto;
  margin-bottom: 0;
}

#view-integrations .integrations-command-actions .btn {
  align-self: flex-end;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 10px 16px;
  line-height: 1.1;
}

#view-integrations .integrations-command-actions .btn.primary {
  padding-inline: 18px;
}

#view-integrations .device-marketplace {
  display: grid;
  gap: 14px;
}

#view-integrations .device-marketplace__header,
#view-integrations .device-setup-heading,
#view-integrations .device-marketplace__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#view-integrations .device-marketplace__header h4,
#view-integrations .device-setup-heading h4 {
  margin: 0 0 5px;
}

#view-integrations .device-marketplace__header .btn,
#view-integrations .device-marketplace__select {
  width: auto;
  min-height: 0;
  padding: 9px 14px;
  flex: 0 0 auto;
}

#view-integrations .device-marketplace__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}

#view-integrations .device-marketplace__card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.27);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(var(--role-accent-rgb), 0.12), rgba(9, 16, 28, 0.78)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#view-integrations .device-marketplace__card:hover {
  border-color: rgba(var(--role-accent-rgb), 0.55);
  transform: translateY(-1px);
}

#view-integrations .device-marketplace__card .meta {
  overflow-wrap: anywhere;
}

#view-integrations .device-marketplace__select {
  justify-self: start;
  margin-top: 2px;
}

#view-integrations .device-marketplace__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

#view-integrations .device-marketplace__actions a {
  color: var(--info);
  font-size: 12px;
  font-weight: 700;
}

#view-integrations .device-connection-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#view-integrations .device-connection-fields > legend,
#view-integrations .device-connection-fields > .muted {
  grid-column: 1 / -1;
}

#view-integrations .device-connection-fields .field {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  #view-integrations .device-marketplace__header,
  #view-integrations .device-setup-heading {
    align-items: stretch;
    flex-direction: column;
  }

  #view-integrations .device-marketplace__header .btn {
    align-self: flex-start;
  }

  #view-integrations .device-connection-fields {
    grid-template-columns: 1fr;
  }

  #view-integrations .device-connection-fields > legend,
  #view-integrations .device-connection-fields > .muted {
    grid-column: auto;
  }
}

#view-dashboard .dashboard-metrics-grid {
  gap: 14px;
}

.metric__value {
  font-size: 42px;
  font-family: 'Bebas Neue', sans-serif;
}

#view-dashboard.dashboard-member-value-compact #activeMembershipCount {
  font-size: 30px;
  line-height: 1.05;
}

#view-dashboard.dashboard-front-office-metrics-two-by-two > .dashboard-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  #view-dashboard.dashboard-front-office-metrics-two-by-two > .dashboard-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#view-super-admin-telemetry .metric__value {
  font-size: 20px;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#view-super-admin-telemetry > .grid:first-child {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#view-super-admin-telemetry .list-item .tag {
  min-width: 88px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
}

#view-super-admin-telemetry .list-item .tag.warn {
  border-color: rgba(251, 191, 36, 0.56);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(217, 119, 6, 0.2));
  color: #fcd34d;
  box-shadow: inset 0 1px 0 rgba(255, 251, 235, 0.18);
}

#view-super-admin #superAdminGymKpiList,
#view-super-admin #superAdminGymComparisonList,
#view-super-admin .super-admin-comparison-list,
#view-super-admin .super-admin-gateway-status-list {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: start;
}

#view-super-admin #superAdminGymKpiList .list-item,
#view-super-admin #superAdminGymComparisonList .list-item {
  align-items: flex-start;
}

#view-super-admin #superAdminGymKpiList .list-item > div,
#view-super-admin #superAdminGymComparisonList .list-item > div {
  flex: 1 1 auto;
  min-width: 0;
}

#view-super-admin #superAdminGymKpiList .list-item .tag,
#view-super-admin #superAdminGymComparisonList .list-item .tag {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
}

.dashboard-desktop-only-copy {
  display: block;
}

@media (max-width: 1024px) {
  #view-dashboard .dashboard-desktop-only-copy {
    display: none;
  }
}

.highlight {
  border: 1px solid rgba(var(--role-accent-rgb), 0.4);
  background: linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.18), rgba(18,22,28,0.9));
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline .event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

#quickActions.actions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.actions-grid button {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 14px;
  border-radius: 14px;
  text-align: left;
}

#quickActions.actions-grid .quick-action-btn {
  min-height: 52px;
  padding: 12px;
  border-radius: 12px;
}

.actions-grid .quick-action-btn {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.actions-grid .quick-action-btn.quick-action-btn--no-icon {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.daily-workspace-card {
  padding: 18px;
}

.daily-workspace-card h3 {
  margin-bottom: 6px;
}

.daily-workspace {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.daily-workspace__summary {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.daily-workspace__table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.18);
  background: rgba(255,255,255,0.035);
}

.daily-workspace__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.daily-workspace__table th,
.daily-workspace__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
}

.daily-workspace__table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.daily-workspace__table th:nth-child(1),
.daily-workspace__table td:nth-child(1) {
  width: 58%;
}

.daily-workspace__table th:nth-child(2),
.daily-workspace__table td:nth-child(2) {
  width: 92px;
}

.daily-workspace__table th:nth-child(3),
.daily-workspace__table td:nth-child(3) {
  width: 170px;
}

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

.daily-workspace__focus strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.daily-workspace__focus .meta {
  font-size: 12px;
  line-height: 1.4;
}

.daily-workspace__badge {
  min-width: 36px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  background: rgba(var(--role-accent-rgb), 0.24);
  border: 1px solid rgba(var(--role-accent-rgb), 0.34);
}

.daily-workspace__badge--empty {
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.daily-workspace__badge--clear {
  color: var(--success);
  background: rgba(81, 207, 102, 0.12);
  border-color: rgba(81, 207, 102, 0.34);
}

.daily-workspace__badge--needs-action {
  background: rgba(255, 77, 79, 0.18);
  border-color: rgba(255, 77, 79, 0.34);
}

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

.daily-workspace__btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  white-space: nowrap;
}

#view-calendar .form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#view-calendar .list-item .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: hidden;
  padding-bottom: 0;
}

.calendar-day {
  min-height: 220px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    radial-gradient(circle at top right, rgba(var(--role-accent-rgb), 0.16), transparent 52%),
    rgba(6, 13, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.calendar-day__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-day__items {
  display: grid;
  gap: 10px;
}

.calendar-chip {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.calendar-chip--empty {
  min-height: 86px;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.calendar-chip__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.calendar-chip__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.calendar-chip__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-action__icon {
  position: relative;
  overflow: hidden;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(246, 207, 110, 0.72);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 250, 215, 0.95), rgba(247, 213, 126, 0.88) 34%, rgba(201, 143, 42, 0.9) 72%, rgba(120, 72, 12, 0.92) 100%);
  color: #1f1404;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.42);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), 0 0 12px rgba(235, 176, 57, 0.28);
}

.quick-action__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.quick-action__icon svg path,
.quick-action__icon svg line,
.quick-action__icon svg polyline,
.quick-action__icon svg rect,
.quick-action__icon svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.quick-action__icon::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  opacity: 0.9;
}

.quick-action__label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.quick-action__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 77, 79, 0.24);
  color: #ffd7d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  justify-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.quick-action__badge--empty {
  background: rgba(255,255,255,0.1);
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
}

.list-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.2);
  background: linear-gradient(145deg, rgba(var(--surface-rgb), 0.72), rgba(var(--surface-rgb-strong), 0.82));
}

.list-pagination__info {
  min-width: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-pagination__btn {
  min-width: 72px;
  justify-content: center;
}

@media (max-width: 640px) {
  .list-pagination {
    grid-template-columns: 1fr;
  }

  .list-pagination__info {
    text-align: left;
    white-space: normal;
  }

  .list-pagination__btn {
    width: 100%;
  }
}

.pie-chart {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}

.pie-svg {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.pie-legend {
  display: grid;
  gap: 8px;
}

.legend-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

#profileSelectForm {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

#profileSelectForm .actions {
  justify-content: flex-start;
}

#profileList {
  margin-top: 8px;
}

#view-super-admin-endpoint .grid.wide {
  grid-template-columns: minmax(0, 1fr);
}

#view-super-admin-endpoint #superAdminEndpointForm .actions {
  margin-bottom: 4px;
}

#view-super-admin-endpoint #superAdminEndpointList {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

#view-super-admin-endpoint #superAdminEndpointList .super-admin-endpoint-item {
  display: block;
  min-height: 0;
  transform: none;
}

#view-super-admin-endpoint #superAdminEndpointList .super-admin-endpoint-item:hover,
#view-super-admin-endpoint #superAdminEndpointList .super-admin-endpoint-item:focus-within {
  transform: none;
}

#loginCredentialsForm .login-credentials-passkey-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

#loginCredentialsForm .login-credentials-passkey-grid .field {
  min-width: 0;
  margin-bottom: 0;
}

#loginCredentialsForm .login-credentials-passkey-grid .field input,
#loginCredentialsForm .login-credentials-passkey-grid .field select {
  min-height: 42px;
  padding: 10px 14px;
}

#loginCredentialsForm .passkey-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin: 8px 0;
}

#loginCredentialsForm .passkey-actions .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 560px) {
  #loginCredentialsForm .passkey-actions .btn {
    flex-basis: auto;
  }
}

#loginCredentialsForm .passkey-credentials-list {
  margin-top: 4px;
}

#loginCredentialsForm .passkey-credentials-status {
  margin-top: 8px;
  margin-bottom: 0;
}

.list-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 46%, rgba(255, 255, 255, 0.01) 100%),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.84), rgba(var(--surface-rgb-strong), 0.9));
  box-shadow:
    var(--elevation-1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition:
    transform var(--glass-motion-fast),
    border-color var(--glass-motion-fast),
    box-shadow var(--glass-motion-fast),
    background var(--glass-motion-fast);
  animation: card-rise 620ms var(--ease-spring) both;
}

.list-item > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.list-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 36%),
    radial-gradient(120% 90% at 10% 0%, rgba(var(--role-accent-rgb), 0.18), transparent 56%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.14),
    inset 0 0 20px rgba(var(--role-accent-rgb), 0.1);
  pointer-events: none;
  z-index: 0;
}

.list-item::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -26%;
  width: var(--glass-trace-width-list);
  height: 160%;
  border-radius: 999px;
  transform: translateX(0) skewX(-12deg);
  background: linear-gradient(
    180deg,
    rgba(var(--role-accent-rgb), 0) 0%,
    rgba(var(--role-accent-2-rgb), calc(var(--glass-trace-opacity) - 0.14)) 50%,
    rgba(var(--role-accent-rgb), 0) 100%
  );
  box-shadow: 0 0 8px rgba(var(--role-accent-rgb), 0.14);
  opacity: 0;
  transition: transform var(--glass-motion-main), opacity var(--glass-motion-fast);
  pointer-events: none;
  z-index: 0;
}

.list-item--selectable {
  cursor: pointer;
  transition:
    transform var(--glass-motion-fast),
    border-color var(--glass-motion-fast),
    box-shadow var(--glass-motion-fast),
    background var(--glass-motion-fast);
}

.list-item--selectable:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--role-accent-2-rgb), 0.52);
  background:
    linear-gradient(150deg, rgba(var(--role-accent-rgb), 0.2), rgba(var(--role-accent-2-rgb), 0.07)),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.88), rgba(var(--surface-rgb-strong), 0.92));
  box-shadow:
    0 14px 28px rgba(2, 8, 18, 0.48),
    0 0 0 1px rgba(var(--role-accent-rgb), 0.24),
    0 0 12px rgba(var(--role-accent-rgb), 0.12);
  animation: glass-pulse 260ms ease-out 1;
}

.list-item--selectable:hover::after,
.list-item--selectable:focus-visible::after {
  animation: glass-trace-pass 420ms var(--ease-spring) 1;
}

.list-item--selected {
  border-color: rgba(var(--role-accent-2-rgb), 0.6);
  background:
    linear-gradient(150deg, rgba(var(--role-accent-rgb), 0.22), rgba(var(--role-accent-2-rgb), 0.08)),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.9), rgba(var(--surface-rgb-strong), 0.94));
  box-shadow:
    0 0 0 1px rgba(var(--role-accent-rgb), 0.28),
    0 0 12px rgba(var(--role-accent-rgb), 0.12),
    0 12px 24px rgba(2, 8, 18, 0.42);
}

.list-item .meta {
  font-size: 12px;
  color: var(--muted);
}

[data-lead-folder-panel="lead-history"].lead-history-layout {
  grid-template-columns: minmax(300px, 0.88fr) minmax(520px, 1.12fr);
  align-items: start;
  gap: 22px;
}

.lead-history-card {
  padding: 24px;
}

.lead-history-card > h3 {
  margin-bottom: 10px;
}

.lead-history-card .list {
  gap: 12px;
}

#salesInboxList .list-item,
#leadsList > .list-item,
#leadsList .leads-list-rows .list-item {
  border-radius: 8px;
}

#salesInboxList .list-item {
  min-height: 52px;
}

#salesInboxList .sales-inbox-section-heading {
  align-items: flex-start;
}

#salesInboxList .sales-inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 14px;
}

#salesInboxList .sales-inbox-row__details {
  min-width: 0;
  display: grid;
  gap: 5px;
}

#salesInboxList .sales-inbox-row__details > strong {
  font-size: 16px;
  line-height: 1.3;
}

#salesInboxList .sales-inbox-row__details .meta {
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere !important;
}

#salesInboxList .sales-inbox-row__actions {
  width: 100%;
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  align-items: stretch;
}

#salesInboxList .sales-inbox-row__actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  line-height: 1.2;
  white-space: normal;
}

#leadsList .lead-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

#leadsList .lead-history-summary span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.2);
  background: rgba(var(--surface-rgb-strong), 0.34);
}

#leadsList .lead-history-summary strong {
  font-size: 22px;
  line-height: 1;
}

#leadsList .lead-history-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

#leadsList .leads-list-rows {
  gap: 10px;
}

#leadsList .leads-search-card {
  align-items: stretch;
  padding: 14px;
  background:
    linear-gradient(150deg, rgba(var(--role-accent-rgb), 0.1), rgba(var(--role-accent-2-rgb), 0.04)),
    rgba(var(--surface-rgb-strong), 0.54);
}

#leadsList .leads-search-card .actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px 14px;
}

#leadsList .leads-search-card .leads-search-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(96px, 118px));
  gap: 8px;
  align-items: end;
  justify-content: end;
  white-space: nowrap;
}

#leadsList .leads-search-card .leads-search-actions .btn {
  min-height: 40px;
  min-width: 0;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
}

#leadsList .leads-search-card .field {
  margin-bottom: 0;
  min-width: 0;
}

#leadsList .leads-search-card .field input {
  width: 100%;
}

#leadsList .leads-search-card .field span {
  min-height: 18px;
  white-space: nowrap;
}

#leadsList .leads-list-rows .list-item {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px;
}

#leadsList .leads-list-rows .lead-card-details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

#leadsList .leads-list-rows .lead-card-details > strong {
  grid-column: 1 / -1;
}

#leadsList .leads-list-rows .lead-card-details .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#leadsList .leads-list-rows .lead-card-details .lead-notes {
  grid-column: 1 / -1;
}

#leadsList .leads-list-rows .list-item .actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
}

.workout-plan-card {
  align-items: stretch;
  gap: 12px;
}

.workout-plan-card .workout-plan-card__content {
  min-width: 0;
  flex: 1 1 auto;
}

#workoutView .workout-template-card {
  align-items: flex-start;
}

#workoutView .workout-template-card .workout-template-content {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 48px;
}

#workoutView .workout-template-card .actions {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-left: 0;
  align-self: auto;
  z-index: 2;
}

#workoutView .workout-template-card .workout-template-icon-btn {
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
}

.workout-template-delete-dialog,
.groups-directory-delete-dialog,
.session-delete-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

.workout-template-delete-dialog,
.groups-directory-delete-dialog {
  z-index: 1100;
}

.workout-template-delete-dialog {
  z-index: 1100;
}

.workout-template-delete-dialog.hidden,
.groups-directory-delete-dialog.hidden,
.session-delete-dialog.hidden {
  display: none !important;
}

.workout-template-delete-dialog__panel,
.groups-directory-delete-dialog__panel,
.session-delete-dialog__panel {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.34);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 60%),
    linear-gradient(165deg, rgba(var(--surface-rgb), 0.96), rgba(var(--surface-rgb-strong), 0.98));
  box-shadow: var(--elevation-3);
}

.workout-template-delete-dialog__panel,
.groups-directory-delete-dialog__panel {
  width: min(420px, 100%);
}

.workout-template-delete-dialog__panel {
  width: min(420px, 100%);
}

.workout-template-delete-dialog__message,
.groups-directory-delete-dialog__message,
.session-delete-dialog__message {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.workout-template-delete-dialog__actions,
.groups-directory-delete-dialog__actions,
.session-delete-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.workout-template-delete-dialog__actions,
.groups-directory-delete-dialog__actions {
  gap: 10px;
}

.workout-template-delete-dialog__actions {
  gap: 10px;
}

.workout-template-delete-dialog__delete,
.groups-directory-delete-dialog__delete,
.session-delete-dialog__delete {
  border-color: rgba(255, 77, 79, 0.62);
  box-shadow:
    0 14px 28px rgba(255, 77, 79, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.workout-template-delete-dialog__delete,
.groups-directory-delete-dialog__delete {
  border-color: rgba(255, 77, 79, 0.62);
}

.app-exit-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

.app-exit-confirm-dialog.hidden {
  display: none !important;
}

.app-exit-confirm-dialog__panel {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.34);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 60%),
    linear-gradient(165deg, rgba(var(--surface-rgb), 0.96), rgba(var(--surface-rgb-strong), 0.98));
  box-shadow: var(--elevation-3);
}

.app-exit-confirm-dialog__title {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.app-exit-confirm-dialog__message {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.app-exit-confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.app-exit-confirm-dialog__exit {
  border-color: rgba(255, 77, 79, 0.62);
  box-shadow:
    0 14px 28px rgba(255, 77, 79, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

@media (max-width: 640px) {
  .workout-plan-card {
    flex-direction: column;
  }

  .workout-template-delete-dialog,
  .groups-directory-delete-dialog,
  .session-delete-dialog {
    align-items: end;
    padding: 14px;
  }

  .workout-template-delete-dialog,
  .groups-directory-delete-dialog {
    align-items: end;
  }

  .workout-template-delete-dialog__panel,
  .groups-directory-delete-dialog__panel,
  .session-delete-dialog__panel {
    padding: 18px;
  }

  .workout-template-delete-dialog__actions,
  .groups-directory-delete-dialog__actions,
  .session-delete-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workout-template-delete-dialog__actions,
  .groups-directory-delete-dialog__actions {
    display: grid;
  }

  .app-exit-confirm-dialog {
    align-items: end;
    padding: 14px;
  }

  .app-exit-confirm-dialog__panel {
    padding: 18px;
  }

  .app-exit-confirm-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

#view-membership .card,
#view-tasks .card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#membershipView,
#tasksList,
#tasksForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  min-width: 0;
}

#membershipView .list-item,
#tasksList .list-item,
#tasksForm .list-item {
  align-items: flex-start;
  flex-wrap: wrap;
}

#membershipView .list-item > div,
#tasksList .list-item > div,
#tasksForm .list-item > div {
  min-width: 0;
}

#membershipView .list-item .meta,
#tasksList .list-item .meta,
#tasksForm .list-item .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#membershipView .list-item .actions,
#tasksList .list-item .actions,
#tasksForm .list-item .actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
  align-items: end;
  gap: 10px;
}

#membershipView .list-item .tag,
#tasksList .list-item .tag,
#tasksForm .list-item .tag {
  align-self: flex-start;
}

#membershipView .list-item .membership-renewal-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

#membershipView .list-item .membership-renewal-tags .tag {
  align-self: flex-end;
}

#membershipView .membership-admin-expiry-results {
  display: block;
  min-width: 0;
}

#membershipView .membership-admin-expiry-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(var(--role-accent-rgb), 0.22);
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.36);
}

#membershipView .membership-admin-expiry-table {
  min-width: 760px;
}

#membershipView .membership-admin-expiry-table th:first-child,
#membershipView .membership-admin-expiry-table td:first-child {
  width: 44px;
}

#membershipView .membership-admin-expiry-table th:nth-child(2),
#membershipView .membership-admin-expiry-table td:nth-child(2) {
  width: 24%;
}

#membershipView .membership-admin-expiry-table th:nth-child(3),
#membershipView .membership-admin-expiry-table td:nth-child(3) {
  width: 120px;
}

#membershipView .membership-admin-expiry-table th:nth-child(5),
#membershipView .membership-admin-expiry-table td:nth-child(5) {
  width: 126px;
}

#membershipView .membership-admin-expiry-table th:last-child,
#membershipView .membership-admin-expiry-table td:last-child {
  width: 118px;
  white-space: nowrap;
}

#membershipView .former-winback-funnel {
  display: grid;
  gap: 12px;
}

#membershipView .former-winback-funnel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#membershipView .former-winback-funnel__stages {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}

#membershipView .former-winback-funnel__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  position: relative;
  padding-left: 18px;
  min-height: auto;
}

#membershipView .former-winback-funnel__stage--30day {
  width: 100%;
}

#membershipView .former-winback-funnel__stage--60day {
  width: 92%;
}

#membershipView .former-winback-funnel__stage--90day {
  width: 84%;
}

#membershipView .former-winback-funnel__stage::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--role-accent-rgb), 0.76), rgba(var(--role-accent-2-rgb), 0.34));
}

#membershipView .former-winback-funnel__stage-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#membershipView .former-winback-funnel__stage-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

#membershipView .former-winback-funnel__step {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--role-accent-rgb), 0.48);
  background: rgba(var(--role-accent-rgb), 0.16);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

#membershipView .former-winback-funnel__stage > .actions {
  width: auto;
  margin-left: 0;
  justify-content: flex-end;
  align-self: start;
}

@media (max-width: 700px) {
  #membershipView .former-winback-funnel__header,
  #membershipView .former-winback-funnel__stage-heading {
    align-items: flex-start;
  }

  #membershipView .former-winback-funnel__stage,
  #membershipView .former-winback-funnel__stage--30day,
  #membershipView .former-winback-funnel__stage--60day,
  #membershipView .former-winback-funnel__stage--90day {
    width: 100%;
  }

  #membershipView .former-winback-funnel__stage {
    grid-template-columns: minmax(0, 1fr);
  }

  #membershipView .former-winback-funnel__stage > .actions {
    width: 100%;
    justify-content: flex-start;
  }
}

#membershipView:not(.membership-view--trainer) .list-item {
  flex-wrap: nowrap;
}

#membershipView:not(.membership-view--trainer) .list-item > div {
  flex: 1 1 auto;
}

#membershipView:not(.membership-view--trainer) .list-item > .tag,
#membershipView:not(.membership-view--trainer) .list-item > .membership-renewal-tags {
  margin-left: auto;
  align-self: flex-start;
  flex-shrink: 0;
}

#membershipView.membership-view--trainer .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: auto;
}

#membershipView.membership-view--trainer .list-item > div {
  width: 100%;
  min-width: 0;
}

#membershipView.membership-view--trainer .list-item strong,
#membershipView.membership-view--trainer .list-item .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#membershipView.membership-view--trainer .list-item .tag {
  justify-self: start;
  align-self: start;
}

#membershipView.membership-view--trainer .list-item .actions {
  grid-column: 1 / -1;
}

#membershipView.membership-view--trainer .membership-trainer-details {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#view-tasks .grid.wide {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

#view-statistics .grid,
#view-statistics .grid.wide {
  align-items: start;
}

#view-statistics .grid > .card,
#view-statistics .grid.wide > .card {
  align-self: start;
  height: auto;
}

#view-statistics[data-client-insights-admin-table-mode='true'] .statistics-client-insight-table-grid {
  grid-template-columns: minmax(0, 1fr);
}

#view-statistics[data-client-insights-admin-table-mode='true'] .statistics-client-insight-table-card {
  grid-column: 1 / -1;
  padding: 18px;
}

#view-statistics[data-client-insights-admin-table-mode='true'] .statistics-client-insight-table-card h3 {
  margin-bottom: 12px;
}

#view-statistics[data-client-insights-admin-table-mode='true'] .statistics-client-insight-table-card .list {
  gap: 10px;
}

#view-statistics #statsPlanList .statistics-upsell-rows,
#view-statistics #statsTrendList .statistics-renewal-selected-rows {
  display: grid;
  gap: 12px;
}

#view-statistics #statsPlanList .statistics-upsell-row,
#view-statistics #statsTrendList .statistics-renewal-row,
#view-statistics #statsTrendList .statistics-renewal-selected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: auto;
}

#view-statistics #statsPlanList .statistics-upsell-row > div,
#view-statistics #statsTrendList .statistics-renewal-row > div,
#view-statistics #statsTrendList .statistics-renewal-selected-row > div {
  min-width: 0;
  width: 100%;
}

#view-statistics #statsPlanList .statistics-upsell-row .meta,
#view-statistics #statsTrendList .statistics-renewal-row .meta,
#view-statistics #statsTrendList .statistics-renewal-selected-row .meta {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

#view-statistics #statsPlanList .statistics-upsell-row .tag,
#view-statistics #statsTrendList .statistics-renewal-row .tag,
#view-statistics #statsTrendList .statistics-renewal-selected-row .tag {
  justify-self: end;
  align-self: start;
  white-space: nowrap;
}

#view-statistics #statsMembershipList .statistics-membership-highlight-item {
  align-items: flex-start;
}

#view-statistics #statsMembershipList .statistics-membership-highlight-item > div {
  flex: 1 1 auto;
  min-width: 0;
}

#view-statistics #statsMembershipList .statistics-membership-label {
  align-self: flex-start;
  min-width: 0;
  max-width: 220px;
  white-space: normal;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 12px;
}

#view-statistics #statsMembershipList .statistics-membership-label--overcrowded {
  max-width: 260px;
}

#profileTrackingList .list-item {
  display: block;
  position: relative;
  min-height: 58px;
  padding-right: 128px;
}

#profileTrackingList .list-item > div {
  width: 100%;
  min-width: 0;
}

#profileTrackingList .profile-tracking-profile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#profileTrackingList .profile-tracking-profile__photo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(var(--role-accent-rgb), 0.32);
  background: rgba(5, 10, 18, 0.82);
}

#profileTrackingList .profile-tracking-profile__details {
  min-width: 0;
  padding-top: 1px;
}

#profileTrackingList .profile-tracking-profile__details > strong {
  display: block;
  overflow-wrap: anywhere;
}

#profileTrackingList .list-item > .tag {
  position: absolute;
  top: 14px;
  right: 16px;
  min-width: 78px;
  min-height: 26px;
  padding: 6px 12px;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  white-space: nowrap;
}

#profileTrackingList .profile-tracking-activity-summary {
  color: var(--text);
}

#profileTrackingList .profile-tracking-heatmap-card {
  padding-right: 16px;
}

#profileTrackingList .profile-tracking-heatmap-card__body,
#profileTrackingList .profile-tracking-heatmap-card__header {
  width: 100%;
  min-width: 0;
}

#profileTrackingList .profile-tracking-heatmap-card__header > strong {
  display: block;
  margin-bottom: 4px;
}

#profileTrackingList .profile-tracking-heatmap {
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

#profileTrackingList .profile-tracking-heatmap__grid {
  min-width: 820px;
}

#profileTrackingList .profile-tracking-heatmap__header-row,
#profileTrackingList .profile-tracking-heatmap__row {
  display: grid;
  grid-template-columns: 86px repeat(24, minmax(24px, 1fr));
  gap: 3px;
  align-items: center;
}

#profileTrackingList .profile-tracking-heatmap__header-row {
  margin-bottom: 4px;
}

#profileTrackingList .profile-tracking-heatmap__row + .profile-tracking-heatmap__row {
  margin-top: 3px;
}

#profileTrackingList .profile-tracking-heatmap__date,
#profileTrackingList .profile-tracking-heatmap__hour {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

#profileTrackingList .profile-tracking-heatmap__date {
  justify-content: flex-start;
  padding: 0 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

#profileTrackingList .profile-tracking-heatmap__date--header,
#profileTrackingList .profile-tracking-heatmap__hour {
  color: var(--text);
  background: rgba(var(--role-accent-rgb), 0.14);
  font-weight: 700;
}

#profileTrackingList .profile-tracking-heatmap__cell {
  min-width: 24px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#profileTrackingList .profile-tracking-heatmap__cell--level-1 {
  background: rgba(56, 189, 248, 0.22);
}

#profileTrackingList .profile-tracking-heatmap__cell--level-2 {
  background: rgba(34, 197, 94, 0.34);
}

#profileTrackingList .profile-tracking-heatmap__cell--level-3 {
  background: rgba(245, 158, 11, 0.48);
}

#profileTrackingList .profile-tracking-heatmap__cell--level-4 {
  background: rgba(239, 68, 68, 0.68);
}

#blockList .list-item {
  align-items: flex-start;
}

#blockList .list-item > div:first-child {
  flex: 1 1 auto;
}

#blockList .list-item .actions {
  flex: 0 0 132px;
  justify-content: flex-end;
  align-items: center;
}

#blockForm .actions .btn,
#blockList .block-folder-action-btn {
  min-width: 124px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

#blockFolderShowBlockedBtn.is-active {
  border-color: rgba(var(--role-accent-2-rgb), 0.58);
  box-shadow:
    0 12px 24px rgba(var(--role-accent-rgb), 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
  #profileTrackingList .list-item {
    min-height: 56px;
    padding-right: 112px;
  }

  #profileTrackingList .profile-tracking-profile {
    gap: 10px;
  }

  #profileTrackingList .profile-tracking-profile__photo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  #profileTrackingList .list-item > .tag {
    top: 14px;
    right: 14px;
    min-width: 74px;
    min-height: 24px;
    padding: 6px 10px;
    font-size: 11.5px;
  }

  #profileTrackingList .profile-tracking-heatmap-card {
    padding-right: 14px;
  }

  #profileTrackingList .profile-tracking-heatmap__grid {
    min-width: 780px;
  }

  #profileTrackingList .profile-tracking-heatmap__header-row,
  #profileTrackingList .profile-tracking-heatmap__row {
    grid-template-columns: 78px repeat(24, minmax(22px, 1fr));
  }

  #profileTrackingList .profile-tracking-heatmap__date,
  #profileTrackingList .profile-tracking-heatmap__hour,
  #profileTrackingList .profile-tracking-heatmap__cell {
    min-height: 21px;
    font-size: 9.5px;
  }
}

@media (max-width: 640px) {
  #blockList .list-item {
    flex-direction: column;
    align-items: stretch;
  }

  #blockList .list-item .actions {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }

  #blockList .block-folder-action-btn {
    width: 100%;
  }
}

#view-statistics .stats-table-card {
  display: block;
  min-height: 0;
}

.stats-table-card {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.stats-table-card .matrix {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.stats-table-card .matrix table,
.stats-table-card .matrix table.stats-table {
  width: 100%;
  table-layout: fixed;
}

.stats-table-card[data-formal-split-part="1"] .matrix table,
.stats-table-card[data-formal-split-part="1"] .matrix table.stats-table {
  table-layout: auto;
}

.stats-table-card .matrix th,
.stats-table-card .matrix td {
  min-width: 0;
  vertical-align: top;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: clip;
}

.stats-table-card[data-formal-split-part="1"] strong,
.stats-table-card[data-formal-split-part="1"] h3 {
  display: block;
  margin-bottom: 8px;
}

#view-statistics .stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#view-statistics .stats-table th,
#view-statistics .stats-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

#view-statistics .stats-table th {
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
}

#view-statistics .stats-table .stats-table__cell--right {
  text-align: right;
}

#view-leads .stats-table-card strong {
  display: block;
  margin-bottom: 8px;
}

#view-leads .stats-table .stats-table__cell--right {
  text-align: right;
}

#salesContactProfileList .stats-table-card {
  align-items: stretch;
  padding: 12px;
}

#salesContactProfileList .sales-contact-profile-summary-table .stats-table {
  table-layout: fixed;
}

#salesContactProfileList .sales-contact-profile-summary-table th:first-child,
#salesContactProfileList .sales-contact-profile-summary-table td:first-child {
  width: 38%;
}

#salesContactProfileList .stats-table th,
#salesContactProfileList .stats-table td {
  white-space: normal;
  overflow-wrap: anywhere !important;
}

#view-ratings .stats-table,
#view-nps .stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#view-ratings .stats-table th,
#view-ratings .stats-table td,
#view-nps .stats-table th,
#view-nps .stats-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}

#view-ratings .stats-table th,
#view-nps .stats-table th {
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
}

#view-ratings .stats-table .stats-table__cell--right,
#view-nps .stats-table .stats-table__cell--right {
  text-align: right;
}

#view-statistics .stats-dependencies-factors-table,
#view-statistics .stats-dependencies-factors-monthly-table {
  display: block;
  min-height: 0;
}

#view-statistics .stats-dependencies-factors-table .stats-table,
#view-statistics .stats-dependencies-factors-monthly-table .stats-table {
  min-width: 0;
  table-layout: fixed;
}

#view-statistics .stats-dependencies-factors-table .stats-table th,
#view-statistics .stats-dependencies-factors-table .stats-table td,
#view-statistics .stats-dependencies-factors-monthly-table .stats-table th,
#view-statistics .stats-dependencies-factors-monthly-table .stats-table td {
  overflow-wrap: normal;
  word-break: normal;
}

#view-statistics .stats-dependencies-factors-table .stats-table th,
#view-statistics .stats-dependencies-factors-monthly-table .stats-table th {
  white-space: normal;
  letter-spacing: 0.2px;
}

#view-statistics .stats-dependencies-factors-table .stats-table td,
#view-statistics .stats-dependencies-factors-monthly-table .stats-table td {
  font-variant-numeric: tabular-nums;
}

#view-statistics .statistics-client-insights-date-range-list .statistics-client-insights-filter-card {
  display: block;
  min-height: 0;
}

#view-statistics .statistics-client-insights-date-range-card h3 {
  margin-bottom: 14px;
}

#view-statistics .statistics-client-insights-date-range-list .stats-client-insights-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

#view-statistics .statistics-client-insights-date-range-list .stats-client-insights-filter-form .field {
  margin-bottom: 0;
}

#view-statistics .statistics-client-insights-date-range-list .stats-client-insights-filter-form .actions {
  margin: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

#view-statistics .statistics-client-insights-date-range-list .statistics-client-insights-filter-card .form__message {
  margin: 8px 0 0;
}

#view-tasks .list {
  gap: 14px;
}

#view-tasks .card {
  position: relative;
  min-height: 0;
}

#tasksList .list-item,
#tasksForm .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: auto;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

#tasksList .list-item > div,
#tasksForm .list-item > div {
  width: 100%;
  min-width: 0;
}

#tasksList .list-item strong,
#tasksForm .list-item strong,
#tasksList .list-item .meta,
#tasksForm .list-item .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#tasksList .list-item .actions,
#tasksForm .list-item .actions {
  display: flex;
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: static;
}

#tasksList .list-item .tag,
#tasksForm .list-item .tag {
  justify-self: start;
  align-self: start;
}

#tasksList .list-item .btn,
#tasksForm .list-item .btn {
  max-width: 100%;
}

#tasksForm .task-notes-option-field {
  gap: 10px;
}

#tasksForm .task-notes-option-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  justify-content: start;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
}

#tasksForm .task-notes-option-choice {
  display: inline-grid;
  grid-template-columns: 18px minmax(0, max-content);
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  line-height: 1.3;
}

#tasksForm .task-notes-option-choice input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

#tasksForm .task-notes-option-choice span {
  min-width: 0;
  white-space: normal;
}

@media (max-width: 520px) {
  #tasksForm .task-notes-option-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

#tasksList .task-row--admin {
  padding-right: 112px;
}

#tasksList .task-row--admin .actions {
  width: auto;
  min-width: 0;
}

#tasksList .task-row--admin .task-status-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  min-width: 76px;
}

#tasksList .task-row--admin .task-status-tag.warn {
  border-color: rgba(245, 158, 11, 0.44);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(245, 158, 11, 0.12));
  color: #f59e0b;
}

#tasksList .task-row--admin .task-status-tag.success {
  border-color: rgba(16, 185, 129, 0.44);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.26), rgba(16, 185, 129, 0.12));
  color: #10b981;
}

#tasksList .task-row--admin .task-status-tag.danger {
  border-color: rgba(255, 77, 79, 0.46);
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.26), rgba(255, 77, 79, 0.1));
  color: var(--danger);
}

#tasksList .task-insights-table {
  display: block;
}

#tasksList .task-insights-table strong {
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  #view-tasks .grid.wide {
    grid-template-columns: 1fr;
  }
}

#view-trainers .grid.wide {
  align-items: start;
}

#view-trainers .card {
  min-width: 0;
  overflow: hidden;
}

#view-trainers .list {
  gap: 16px;
}

#trainerOverviewList .trainer-overview-summary-table {
  display: block;
  min-width: 0;
}

#trainerOverviewList .trainer-overview-summary-table .matrix {
  overflow-x: auto;
}

#view-trainers .list-item {
  align-items: flex-start;
  flex-wrap: wrap;
}

#view-trainers .list-item > div {
  min-width: 0;
}

#view-trainers .list-item .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#view-trainers .list-item .actions {
  width: 100%;
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  justify-content: flex-start;
}

#view-trainers .list-item .field {
  margin-bottom: 0;
  min-width: 0;
}

#view-trainers .list-item .field select,
#view-trainers .list-item .field input {
  width: 100%;
}

#view-trainers .list-item .tag {
  align-self: flex-start;
}

#scheduleSessionsList .schedule-sessions-filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

#scheduleSessionsList .schedule-sessions-filter-card > div {
  min-width: 0;
  width: 100%;
}

#scheduleSessionsList .schedule-sessions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: auto;
}

#scheduleSessionsList .schedule-sessions-row > div {
  min-width: 0;
}

#scheduleSessionsList .schedule-sessions-row strong,
#scheduleSessionsList .schedule-sessions-row .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

#scheduleSessionsList .schedule-sessions-row .actions {
  width: 100%;
  margin-top: 10px;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#scheduleSessionsList .schedule-sessions-row .tag {
  align-self: start;
  justify-self: end;
}

#scheduleSessionsList .schedule-sessions-row__controls {
  align-self: start;
  justify-self: end;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}

#scheduleSessionsList .schedule-sessions-row__menu-toggle {
  margin-top: 2px;
}

#scheduleSessionsList .schedule-sessions-row__menu {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 4;
  min-width: 128px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.26);
  background: rgba(10, 20, 34, 0.96);
  box-shadow:
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#scheduleSessionsList .schedule-sessions-row__menu .employee-manage-card__action {
  width: 100%;
  text-align: left;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
}

#scheduleSessionsList.schedule-sessions-list--upcoming .schedule-sessions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

#scheduleSessionsList.schedule-sessions-list--upcoming .schedule-sessions-row .tag {
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

#scheduleSessionsList.schedule-sessions-list--upcoming .schedule-sessions-row__controls .tag {
  align-self: start;
  justify-self: auto;
}

#scheduleSessionsList.schedule-sessions-list--upcoming > .schedule-sessions-filter-card,
#scheduleSessionsList.schedule-sessions-list--upcoming > .list,
#scheduleSessionsList.schedule-sessions-list--upcoming > .schedule-sessions-rows {
  width: 100%;
  min-width: 0;
}

#scheduleSessionsList.schedule-sessions-list--upcoming > .schedule-sessions-filter-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#scheduleSessionsList.schedule-sessions-list--upcoming > .schedule-sessions-filter-card .form {
  margin-top: 10px;
}

#scheduleSessionsList.schedule-sessions-list--upcoming > .list,
#scheduleSessionsList.schedule-sessions-list--upcoming > .schedule-sessions-rows {
  display: grid;
  gap: 12px;
}

#scheduleSessionsList.schedule-sessions-list--upcoming > .list > .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-width: 0;
}

.schedule-sessions-rows {
  display: grid;
  gap: 12px;
}

.schedule-sessions-empty {
  margin: 0;
  padding: 12px 2px 2px;
  color: var(--muted);
  font-size: 14px;
}

#trainerScheduleSessionsList .list-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: auto;
}

#trainerScheduleSessionsList .list-item > div {
  min-width: 0;
}

#trainerScheduleSessionsList .list-item strong,
#trainerScheduleSessionsList .list-item .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

#trainerScheduleSessionsList .list-item .actions {
  width: 100%;
  margin-top: 10px;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#trainerScheduleSessionsList .list-item .actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

#trainerScheduleSessionsList .list-item .tag {
  align-self: start;
  justify-self: start;
  white-space: nowrap;
}

#trainerScheduleSessionsList .trainer-scheduled-session-row {
  position: relative;
  padding-right: 132px;
}

#trainerScheduleSessionsList .trainer-scheduled-session-row > .tag {
  position: absolute;
  top: 14px;
  right: 16px;
  align-self: auto;
  justify-self: auto;
}

#scheduleSessionsTimetable .list-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: auto;
}

#scheduleSessionsTimetable .timetable-filter-row {
  position: relative;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01) 50%),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.72), rgba(var(--surface-rgb-strong), 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

body[data-role='super-admin'] #scheduleSessionsTimetable .timetable-filter-row,
body[data-role='admin'] #scheduleSessionsTimetable .timetable-filter-row,
body[data-role='front-office'] #scheduleSessionsTimetable .timetable-filter-row,
#scheduleSessionsTimetable .timetable-filter-row--unframed {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#scheduleSessionsTimetable .timetable-filter-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#scheduleSessionsTimetable .timetable-filter-row > .tag {
  justify-self: end;
  align-self: start;
}

#scheduleSessionsTimetable .timetable-filter-row strong,
#scheduleSessionsTimetable .timetable-filter-row .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#scheduleSessionsTimetable .timetable-filter-row .actions {
  width: 100%;
  margin-top: 10px;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#scheduleSessionsTimetable .timetable-filter-row .field {
  margin-bottom: 0;
  min-width: 0;
}

#scheduleSessionsTimetable .timetable-filter-row .field select,
#scheduleSessionsTimetable .timetable-filter-row .field input {
  width: 100%;
}

#scheduleSessionsTimetable .timetable-staff-row {
  grid-template-columns: minmax(0, 1fr);
}

#scheduleSessionsTimetable .list-item > div {
  min-width: 0;
}

#scheduleSessionsTimetable .list-item strong,
#scheduleSessionsTimetable .list-item .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

#scheduleSessionsTimetable .list-item .actions {
  width: 100%;
  margin-top: 10px;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#scheduleSessionsTimetable .list-item .tag {
  align-self: start;
  justify-self: start;
  white-space: nowrap;
}

#scheduleSessionsTimetable .timetable-member-summary-row,
#scheduleSessionsTimetable .timetable-member-session-row {
  position: relative;
  padding-right: 144px;
  min-height: 88px;
}

#scheduleSessionsTimetable .timetable-member-summary-row > .tag,
#scheduleSessionsTimetable .timetable-member-session-row > .tag {
  position: absolute;
  top: 14px;
  right: 16px;
  align-self: auto;
  justify-self: auto;
  max-width: 116px;
  text-align: center;
}

#scheduleSessionsTimetable .timetable-member-session-actions {
  width: auto;
  margin-top: 12px;
}

#scheduleSessionsTimetable .timetable-staff-row__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#scheduleSessionsTimetable .timetable-staff-row .meta {
  line-height: 1.45;
}

#view-assigned-members .card {
  min-width: 0;
  overflow: hidden;
}

#assignedMembersView {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  min-width: 0;
}

#assignedMembersView .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

#assignedMembersView .list-item > div {
  min-width: 0;
}

#assignedMembersView .list-item .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#assignedMembersView .list-item .actions {
  width: 100%;
  grid-column: 1 / -1;
  margin-left: 0;
  justify-content: flex-start;
}

#assignedMembersView .list-item .tag {
  justify-self: start;
  align-self: start;
}

#assignedMembersView .assigned-members-row {
  position: relative;
  padding-right: 112px;
}

#assignedMembersView .assigned-members-row > .tag {
  position: absolute;
  top: 14px;
  right: 16px;
  justify-self: auto;
  align-self: auto;
}

#assignedMembersView .assigned-members-row > .tag:not(.warn):not(.danger) {
  color: var(--success);
}

#assignedMembersView select[name="assignedMembersStatusFilter"],
#assignedMembersView select[name="assignedMembersStatusFilter"].assigned-members-status-filter--active,
#assignedMembersView select[name="assignedMembersStatusFilter"] option {
  color: #fff;
}

#assignedMembersView .assigned-members-row > .tag:not(.warn):not(.danger) {
  border-color: rgba(81, 207, 102, 0.4);
  background: linear-gradient(135deg, rgba(81, 207, 102, 0.24), rgba(81, 207, 102, 0.12));
}

#assignedMembersView select[name="assignedMembersStatusFilter"].assigned-members-status-filter--active {
  border-color: rgba(81, 207, 102, 0.46);
}

#assignedMembersView .assigned-members-filter-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#assignedMembersView .assigned-members-filter-panel__actions {
  width: 100%;
  margin-left: 0;
  align-items: flex-end;
}

#assignedMembersView .assigned-members-filter-panel .field {
  margin-bottom: 0;
  min-width: 180px;
}

#assignedMembersView .assigned-members-filter-panel .field select {
  width: 100%;
}

#assignedMembersView .list {
  display: grid;
  gap: 12px;
}

#assignedWorkoutsList > .list-item:first-child .actions {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(240px, 1fr) minmax(84px, auto);
  align-items: start;
  gap: 14px;
}

#assignedWorkoutsList > .list-item:first-child .field {
  margin-bottom: 0;
  min-width: 0;
}

#assignedWorkoutsList button[name="assaignWorkoutSend"] {
  align-self: flex-start;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.1;
}

#assignedWorkoutsList .assigned-workouts-submit {
  display: grid;
  align-content: start;
  justify-self: end;
  justify-items: end;
  gap: 6px;
  min-width: 84px;
  padding-top: 26px;
}

#assignedWorkoutsList .assigned-workouts-submit .form__message {
  margin: 0;
  max-width: 240px;
}

#trainerRiskClientsList .list-item {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

#trainerRiskClientsList .trainer-risk-rows,
#attendanceFlaggedMembersList .risk-band-results {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

#trainerRiskClientsList .trainer-risk-row,
#attendanceFlaggedMembersList .risk-band-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.risk-band-card {
  align-items: stretch;
}

.risk-band-card > .risk-band-card__body {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.risk-band-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.risk-band-card__header strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.risk-band-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.risk-band-card__sep {
  opacity: 0.58;
  font-size: 12px;
  line-height: 1;
}

.risk-band-card__badge {
  min-width: 92px;
  padding: 6px 12px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.2px;
  font-weight: 700;
  align-self: flex-start;
}

#trainerRiskClientsList .trainer-risk-filter-card > .actions,
#attendanceFlaggedMembersList .risk-band-filter-card > .actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

#attendanceFlaggedMembersList .risk-band-filter-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#attendanceFlaggedMembersList .risk-band-filter-card > .actions {
  grid-template-columns: minmax(0, 280px);
}

#trainerRiskClientsList .trainer-risk-filter-card .field,
#attendanceFlaggedMembersList .risk-band-filter-card .field {
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
}

#trainerRiskClientsList .trainer-risk-filter-card .field select,
#trainerRiskClientsList .trainer-risk-filter-card .field input,
#attendanceFlaggedMembersList .risk-band-filter-card .field select,
#attendanceFlaggedMembersList .risk-band-filter-card .field input {
  width: 100%;
}

#trainerRiskClientsList .trainer-risk-row .tag,
#attendanceFlaggedMembersList .risk-band-card .tag {
  align-self: flex-start;
}

@media (max-width: 900px) {
  #scheduleSessionsTimetable .list-item {
    grid-template-columns: minmax(0, 1fr);
  }

  #scheduleSessionsTimetable .timetable-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #scheduleSessionsTimetable .timetable-filter-row > .tag {
    justify-self: start;
  }

  #scheduleSessionsTimetable .list-item .tag {
    justify-self: start;
  }

  #assignedMembersView .list-item {
    grid-template-columns: minmax(0, 1fr);
  }

  #assignedMembersView .assigned-members-filter-panel__actions {
    align-items: stretch;
  }

  #assignedMembersView .assigned-members-filter-panel .field {
    min-width: 0;
    width: 100%;
  }

  #assignedWorkoutsList > .list-item:first-child .actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  #assignedWorkoutsList .assigned-workouts-submit {
    justify-self: start;
    justify-items: start;
    padding-top: 0;
  }

  #assignedWorkoutsList button[name="assaignWorkoutSend"] {
    align-self: flex-start;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
  }

  #trainerRiskClientsList .trainer-risk-filter-card > .actions,
  #attendanceFlaggedMembersList .risk-band-filter-card > .actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .risk-band-card__badge {
    min-width: 82px;
    padding: 5px 10px;
  }
}

#trainerPTInsightsList {
  gap: 14px;
}

#trainerPTInsightsList .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  overflow: hidden;
}

#trainerPTInsightsList .list-item > div {
  min-width: 0;
  width: 100%;
}

#trainerPTInsightsList .list-item .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#trainerPTInsightsList .list-item .actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  justify-content: flex-start;
  align-items: end;
  margin-left: 0;
}

#trainerPTInsightsList .list-item .field {
  margin-bottom: 0;
  min-width: 0;
}

#trainerPTInsightsList .list-item .field select,
#trainerPTInsightsList .list-item .field input {
  width: 100%;
  max-width: 100%;
}

#trainerPTInsightsList .list-item .tag {
  justify-self: start;
  align-self: start;
}

#trainerPTInsightsList .list-item strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  #trainerPTInsightsList .list-item .actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

#trainerAttendanceList {
  display: grid;
  gap: 14px;
}

#trainerAttendanceList .trainer-attendance-filter {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#trainerAttendanceList .trainer-attendance-filter__head {
  min-width: 0;
}

#trainerAttendanceList .trainer-attendance-filter .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#trainerAttendanceList .trainer-attendance-filter .actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
}

#trainerAttendanceList .trainer-attendance-filter .field {
  margin-bottom: 0;
  min-width: 0;
}

#trainerAttendanceList .trainer-attendance-filter .field select,
#trainerAttendanceList .trainer-attendance-filter .field input {
  width: 100%;
}

#trainerAttendanceList [data-trainer-attendance-custom-range] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#trainerAttendanceList .trainer-attendance-results {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#trainerAttendanceList .trainer-attendance-notice {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

#trainerAttendanceList .trainer-attendance-notice--strong {
  color: var(--text);
  font-weight: 700;
}

#trainerAttendanceList .trainer-attendance-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

#trainerAttendanceList .trainer-attendance-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
}

#trainerAttendanceList .trainer-attendance-table th,
#trainerAttendanceList .trainer-attendance-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(var(--role-accent-rgb), 0.22);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

#trainerAttendanceList .trainer-attendance-table th {
  color: var(--accent-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

#trainerAttendanceList .trainer-attendance-table tbody tr:last-child td {
  border-bottom: 0;
}

#trainerAttendanceList .trainer-attendance-table__cell--right {
  text-align: right;
}

#attendanceList .attendance-record-card {
  display: block;
  position: relative;
  align-items: stretch;
  gap: 8px;
  min-height: 78px;
  padding-right: 128px;
}

#attendanceList .attendance-record-card > .attendance-record-card__body {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 6px;
}

#attendanceList .attendance-record-card__header {
  display: block;
}

#attendanceList .attendance-record-card__header strong {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#attendanceList .attendance-record-card .meta {
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#attendanceList .attendance-record-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

#attendanceList .attendance-record-card__meta-row--identity {
  color: var(--text);
}

#attendanceList .attendance-record-card__meta-row--details {
  color: var(--text);
}

#attendanceList .attendance-record-card__meta-row--timeline {
  color: var(--muted);
}

#attendanceList .attendance-record-card__sep {
  opacity: 0.58;
  font-size: 12px;
  line-height: 1;
}

#attendanceList .attendance-record-card__status {
  position: absolute;
  top: 14px;
  right: 16px;
  min-width: 88px;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.2px;
  text-transform: none;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#attendanceList .attendance-record-card__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

#attendanceList .attendance-record-card__status--present {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.14));
  color: #34d399;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .list-item {
  align-items: stretch;
  gap: 10px;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .list-item strong,
#attendanceMySessionsList.attendance-my-sessions-list--pt-member .list-item .meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table-card {
  display: block;
  align-items: stretch;
  padding: 0;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 14px;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table th,
#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table td span,
#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table td a {
  display: block;
  margin-top: 3px;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table .tag {
  display: inline-flex;
  margin-top: 0;
  white-space: nowrap;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table__actions {
  gap: 6px;
  flex-wrap: nowrap;
}

#attendanceMySessionsList.attendance-my-sessions-list--pt-member .attendance-my-sessions-table__actions .btn {
  width: auto;
  min-width: 0;
  padding: 8px 10px;
  white-space: nowrap;
}

#attendanceList .attendance-record-card__status--absent {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0.13));
  color: #fbbf24;
}

@media (max-width: 600px) {
  #attendanceList .attendance-record-card {
    min-height: 74px;
    padding-right: 112px;
  }

  #attendanceList .attendance-record-card__status {
    top: 12px;
    right: 14px;
    min-width: 78px;
    padding: 5px 10px;
  }
}

@media (max-width: 900px) {
  #trainerAttendanceList [data-trainer-attendance-custom-range] {
    grid-template-columns: 1fr;
  }
}

#view-notifications .grid.wide {
  align-items: start;
}

#view-notifications .card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#view-notifications .list {
  gap: 14px;
  min-width: 0;
}

#view-notifications .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

#view-notifications .list-item > div {
  min-width: 0;
  width: 100%;
}

#view-notifications .list-item .meta {
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#view-notifications .list-item .notification-message {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#view-notifications .list-item .actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#view-notifications .list-item .tag {
  justify-self: start;
  align-self: start;
}

#view-notifications .list-item .btn {
  max-width: 100%;
}

#view-notifications #notificationsSeenList .notification-seen-card {
  align-items: stretch;
  gap: 8px;
}

#view-notifications #notificationsSeenList .notification-seen-card .actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#view-notifications #notificationsSeenList .notification-seen-toggle {
  min-width: 148px;
  padding: 8px 12px;
  font-size: 12px;
}

#view-notifications #notificationsSeenList .notification-seen-recipients {
  width: 100%;
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--role-accent-rgb), 0.24);
}

#view-notifications #notificationsSeenList .notification-seen-recipient-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.2);
  background: linear-gradient(
    145deg,
    rgba(var(--surface-rgb), 0.78),
    rgba(var(--surface-rgb-strong), 0.82)
  );
}

#view-notifications #notificationsSeenList .notification-seen-recipient-main {
  min-width: 0;
}

#view-notifications #notificationsSentFolderList .notification-history-seen-summary {
  margin-top: 6px;
}

#view-notifications #notificationsSentFolderList .notification-history-seen-toggle {
  min-width: 168px;
  padding: 8px 12px;
  font-size: 12px;
}

#view-notifications #notificationsSentFolderList .notification-history-recipients {
  width: 100%;
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--role-accent-rgb), 0.24);
}

#view-notifications #notificationsSentFolderList .notification-history-recipient-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.2);
  background: linear-gradient(
    145deg,
    rgba(var(--surface-rgb), 0.78),
    rgba(var(--surface-rgb-strong), 0.82)
  );
}

#view-notifications #notificationsSentFolderList .notification-history-recipient-main {
  min-width: 0;
}

#view-notifications #notificationsForm .actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
}

#view-notifications #notificationsForm .actions + .actions {
  margin-top: 10px;
}

#view-notifications #notificationsForm .actions .btn {
  width: auto;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

#view-notifications #notificationsForm .notifications-primary-actions .btn {
  width: auto;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

#view-notifications #notificationsForm .notifications-day-actions .btn {
  min-width: 150px;
  padding: 8px 12px;
  font-size: 13px;
}

@media (max-width: 700px) {
  #view-notifications #notificationsForm .notifications-primary-actions .btn {
    width: auto;
    min-width: 0;
  }

  #view-notifications #notificationsForm .notifications-day-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

#view-diet .grid.wide {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

#view-diet .card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#dietView,
#dietForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  min-width: 0;
}

#dietView .list-item,
#dietForm .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: auto;
  overflow: hidden;
}

#dietView .list-item > div,
#dietForm .list-item > div {
  width: 100%;
  min-width: 0;
}

#dietView .list-item strong,
#dietForm .list-item strong,
#dietView .list-item .meta,
#dietForm .list-item .meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

#dietView .list-item .actions,
#dietForm .list-item .actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#dietView .list-item .tag,
#dietForm .list-item .tag {
  justify-self: start;
  align-self: start;
}

#dietView .list-item .btn,
#dietForm .list-item .btn {
  max-width: 100%;
}

#gymPlanView {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
  align-content: start;
}

#gymPlanView .gym-plan-card-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: stretch;
}

#gymPlanView .list-item {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  padding: 10px 12px;
  height: auto;
}

#gymPlanView .gym-plan-card {
  position: relative;
  box-sizing: border-box;
  min-height: 162px;
  height: 100%;
}

#gymPlanView .gym-plan-card--current {
  padding-top: 34px;
}

#gymPlanView .gym-plan-current-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  margin: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dfffe8;
  border-color: var(--success);
  background:
    linear-gradient(140deg, rgba(var(--role-accent-rgb), 0.36), rgba(10, 18, 30, 0.92)),
    rgba(10, 18, 30, 0.92);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#gymPlanView .gym-plan-price-tag {
  margin-left: auto;
}

#gymPlanView .gym-plan-price-stack {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

#gymPlanView .gym-plan-price-stack .tag {
  margin-left: 0;
}

#gymPlanView .gym-plan-price-tag--old {
  opacity: 0.78;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

#gymPlanView .gym-plan-price-tag--new {
  border-color: var(--success);
  color: #dfffe8;
  font-weight: 700;
}

#gymPlanView .list-item strong {
  line-height: 1.18;
  margin: 0;
}

#gymPlanView .list-item .meta {
  margin: 0;
  line-height: 1.25;
}

#gymPlanView .gym-plan-features-label {
  font-weight: 700;
}

#gymPlanView .gym-plan-features-label--strong {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #eef7ff;
  text-shadow: 0 0 10px rgba(var(--role-accent-rgb), 0.45);
}

body[data-role='front-office'] #gymPlanView .gym-plan-features-label,
body[data-role='support-staff'] #gymPlanView .gym-plan-features-label {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 2px 9px;
  margin-top: 2px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #e9f6ff;
  background:
    linear-gradient(145deg, rgba(var(--role-accent-rgb), 0.22), rgba(var(--role-accent-2-rgb), 0.08)),
    rgba(8, 14, 24, 0.88);
  border: 1px solid rgba(var(--role-accent-2-rgb), 0.38);
  box-shadow: 0 4px 10px rgba(var(--role-accent-rgb), 0.18);
}

body[data-role='trainer'] #gymPlanView .gym-plan-features-label,
body[data-role='member'] #gymPlanView .gym-plan-features-label {
  display: block;
  width: auto;
  padding: 0;
  margin-top: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

#gymPlanView .gym-plan-current-message {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
}

#gymPlanView .gym-plan-current-name {
  white-space: nowrap;
}

#gymPlanView .actions {
  width: 100%;
  margin-top: auto;
  gap: 4px 10px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

#gymPlanView .actions .tag {
  margin-left: auto;
}

#gymPlanForm .field__checkbox-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
}

#gymPlanForm .field__checkbox-label input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
}

#gymPlanForm .field__checkbox-label span {
  line-height: 1.35;
  white-space: normal;
}

.payment-summary-card {
  width: 100%;
  min-width: 0;
}

.payment-summary-card--balance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 2px;
}

.payment-summary-card__metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.2);
  background: rgba(var(--surface-rgb), 0.58);
}

.payment-summary-card__metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.payment-summary-card__metric strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.payment-summary-card__actions {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

#paymentsView,
#paymentsForm,
#profileForm,
#profileSelectForm,
#view-payments .list,
#view-payments .list-item,
#view-payments .list-item > div {
  min-width: 0;
}

#paymentsForm,
#profileForm,
#profileSelectForm {
  align-items: start;
}

#paymentsForm .field,
#profileForm .field,
#profileSelectForm .field {
  min-width: 0;
}

#view-payments .list-item {
  gap: 12px;
  overflow: hidden;
}

#view-payments .list-item .meta {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

#view-payments .payments-view--gateway {
  display: grid;
  gap: 14px;
}

#view-payments .payment-gateway-summary {
  align-items: flex-start;
}

#view-payments .payment-gateway-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

#view-payments .payment-gateway-provider-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top, rgba(var(--role-accent-rgb), 0.16), transparent 58%),
    rgba(6, 12, 24, 0.92);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#view-payments .payment-gateway-provider-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#view-payments .payment-gateway-provider-card strong {
  font-size: 14px;
}

#view-payments .payment-gateway-provider-card .meta {
  font-size: 12px;
  line-height: 1.55;
}

#view-payments .payment-gateway-provider-card__links {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

#view-payments .payment-gateway-provider-card__links .btn {
  padding: 6px 10px;
  font-size: 11px;
  min-height: 30px;
}

#view-payments .payment-gateway-checklist__rows {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

#view-payments .payment-gateway-checklist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#view-payments .payments-form--gateway {
  gap: 12px;
}

#view-payments .payment-gateway-form-note {
  margin: -2px 0 4px;
}

#view-payments .list-item > .tag {
  flex: 0 0 auto;
  white-space: nowrap;
}

#view-payments .list-item > .actions {
  flex: 0 0 auto;
  align-items: center;
}

#view-payments .list-item .payment-invoice-btn {
  flex: 0 0 auto;
  min-width: 84px;
  white-space: nowrap;
}

#view-payments .payments-followup-action {
  align-items: center;
  gap: 16px;
}

#view-payments .payments-followup-action__content {
  flex: 1 1 320px;
  min-width: 220px;
}

#view-payments .payments-followup-action__content strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: normal;
  word-break: normal;
}

#view-payments .payments-followup-action__controls {
  flex: 0 1 auto;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#view-payments .payments-followup-action__channel {
  min-width: 220px;
  max-width: 100%;
}

@media (max-width: 960px) {
  #view-payments .payments-followup-action {
    flex-direction: column;
    align-items: stretch;
  }

  #view-payments .payments-followup-action__content {
    min-width: 0;
  }

  #view-payments .payments-followup-action__controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  #view-payments .payments-followup-action__channel,
  #view-payments .payments-followup-action__run {
    flex: 1 1 220px;
  }
}

@media (max-width: 600px) {
  .payment-summary-card--balance {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-payments .list-item {
    flex-direction: column;
    align-items: stretch;
  }

  #view-payments .list-item > .tag {
    align-self: flex-start;
    margin-left: 0;
  }

  #view-payments .list-item > .actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  #view-payments .list-item > .actions .btn,
  #view-payments .payment-summary-card__actions {
    width: 100%;
    min-width: 0;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.32);
  background: linear-gradient(
    135deg,
    rgba(var(--role-accent-rgb), 0.24),
    rgba(var(--role-accent-2-rgb), 0.1)
  );
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.tag.warn {
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0.12));
  color: #f59e0b;
}

.tag.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.12));
  color: #10b981;
}

.tag.today {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0.12));
  color: #f59e0b;
}

.tag.danger {
  border-color: rgba(255, 77, 79, 0.42);
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.24), rgba(255, 77, 79, 0.1));
  color: var(--danger);
}

#view-referral-coupon .referral-coupon-label-tag {
  width: 132px;
  min-width: 132px;
  height: 32px;
  padding: 0 10px;
  flex: 0 0 132px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.matrix {
  width: 100%;
  overflow-x: hidden;
}

.diversion-new-members-table-wrap,
.diversion-new-members-peak-table-wrap {
  overflow-x: auto;
}

.diversion-new-members-table-wrap .stats-table,
.diversion-new-members-peak-table-wrap .stats-table {
  min-width: 760px;
}

.diversion-new-members-table .stats-table__cell--right,
.diversion-new-members-peak-table .stats-table__cell--right {
  text-align: right;
}

.matrix table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.matrix th,
.matrix td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.matrix th {
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
  white-space: normal;
}

.matrix select {
  width: 100%;
}

.card .matrix + .actions {
  margin-top: 16px;
}

#statsAgeList .stats-age-groups-table {
  display: block;
}

#statsAgeList .stats-age-groups-table .matrix th:nth-child(2),
#statsAgeList .stats-age-groups-table .matrix th:nth-child(3),
#statsAgeList .stats-age-groups-table .matrix td:nth-child(2),
#statsAgeList .stats-age-groups-table .matrix td:nth-child(3) {
  text-align: right;
}

#statsAgeList .stats-age-groups-table .matrix tfoot th {
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

@media (max-width: 1024px) {
  .matrix table,
  #view-statistics .stats-table {
    table-layout: fixed;
    font-size: 13px;
  }

  .matrix th,
  .matrix td,
  #view-statistics .stats-table th,
  #view-statistics .stats-table td {
    padding: 9px 6px;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
  }

  .stats-table-card .matrix th,
  .stats-table-card .matrix td {
    line-height: 1.3;
  }

  .matrix th,
  #view-statistics .stats-table th {
    font-size: 12px;
    letter-spacing: 0.2px;
  }

  #view-statistics .stats-dependencies-factors-table .stats-table,
  #view-statistics .stats-dependencies-factors-monthly-table .stats-table {
    min-width: 0;
    table-layout: fixed;
  }

  #view-statistics .stats-dependencies-factors-table .stats-table th,
  #view-statistics .stats-dependencies-factors-table .stats-table td,
  #view-statistics .stats-dependencies-factors-monthly-table .stats-table th,
  #view-statistics .stats-dependencies-factors-monthly-table .stats-table td {
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .stats-table-card .matrix th,
  .stats-table-card .matrix td {
    padding: 8px 6px;
    font-size: 11.5px;
    line-height: 1.3;
  }

  .stats-table-card .matrix th {
    font-size: 11px;
    letter-spacing: 0.1px;
  }

  .stats-table-card[data-formal-split-part="1"] .matrix th,
  .stats-table-card[data-formal-split-part="1"] .matrix td {
    padding: 7px 5px;
    font-size: 11px;
    line-height: 1.24;
  }

  .stats-table-card[data-formal-split-part="1"] .matrix th {
    letter-spacing: 0.1px;
  }
}

:where(
  .grid,
  .grid.wide,
  .splash__grid,
  .list,
  #membershipView,
  #tasksList,
  #tasksForm,
  #assignedMembersView,
  #trainerPTInsightsList,
  #dietView,
  #dietForm,
  #view-notifications .list,
  #view-trainers .list,
  #gymPlanView
) {
  align-items: stretch;
  align-content: start;
}

:where(
  .grid > *,
  .grid.wide > *,
  .splash__grid > *,
  .list > *,
  #membershipView > *,
  #tasksList > *,
  #tasksForm > *,
  #assignedMembersView > *,
  #trainerPTInsightsList > *,
  #dietView > *,
  #dietForm > *,
  #view-notifications .list > *,
  #view-trainers .list > *,
  #gymPlanView > *
) {
  min-width: 0;
  max-width: 100%;
}

:where(
  .card .meta,
  .list-item .meta,
  .card p,
  .list-item p,
  .card strong,
  .list-item strong
) {
  overflow-wrap: normal;
  word-break: normal;
}

/* Global no-word-split rule across all views/profiles/devices */
.view :where(
  p,
  strong,
  span,
  label,
  a,
  button,
  th,
  td,
  li,
  div
) {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: manual;
}

:where(.card .actions, .list-item .actions) {
  min-width: 0;
  row-gap: 10px;
}

:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
) {
  --stagger-step: 0;
  animation: card-rise 700ms var(--ease-spring) both;
  animation-delay: calc(var(--stagger-step) * 55ms);
}

:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(1) { --stagger-step: 1; }
:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(2) { --stagger-step: 2; }
:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(3) { --stagger-step: 3; }
:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(4) { --stagger-step: 4; }
:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(5) { --stagger-step: 5; }
:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(6) { --stagger-step: 6; }
:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(7) { --stagger-step: 7; }
:where(
  .grid > .card,
  .grid.wide > .card,
  .list > .list-item,
  #membershipView > .list-item,
  #tasksList > .list-item,
  #tasksForm > .list-item,
  #assignedMembersView > .list-item,
  #trainerPTInsightsList > .list-item,
  #dietView > .list-item,
  #dietForm > .list-item,
  #view-notifications .list > .list-item,
  #view-trainers .list > .list-item,
  #gymPlanView > .list-item
):nth-child(8) { --stagger-step: 8; }

#assignedMembersView .list-item {
  grid-template-columns: minmax(0, 1fr);
}

.view {
  overflow-x: clip;
  animation: fadeUp 460ms var(--ease-spring);
}

@supports (content-visibility: auto) {
  .view {
    content-visibility: auto;
    contain-intrinsic-size: 1px 860px;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .splash__header {
    grid-template-columns: 1fr;
  }
  .splash__badges {
    justify-content: flex-start;
  }
  .splash__hero {
    grid-template-columns: 1fr;
  }
  #view-super-admin .super-admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #view-super-admin-telemetry > .grid:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .nav {
    position: fixed;
    top: var(--safe-top);
    left: 0;
    bottom: var(--safe-bottom);
    width: min(82vw, 320px);
    z-index: 4;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
  }
  .nav__links {
    flex-direction: column;
  }
  .nav__link {
    white-space: normal;
  }
  .nav__link::after {
    display: none;
  }
  .shell.nav-open .nav {
    transform: translateX(0);
  }
  .icon-btn {
    display: inline-flex;
  }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3;
    border: none;
  }
  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  #leadsList .leads-list-rows .list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  #leadsList .leads-list-rows .list-item .actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  #leadsList .leads-list-rows .lead-card-details {
    grid-template-columns: 1fr;
  }
  #leadsList .leads-search-card .actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  #leadsList .leads-search-card .leads-search-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #leadsList .lead-history-summary {
    grid-template-columns: 1fr;
  }
}

@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 1100px) {
  [data-lead-folder-panel="lead-history"].lead-history-layout {
    grid-template-columns: 1fr;
  }
  #view-diet .grid.wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #view-leads .lead-history-card {
    padding: 16px;
  }

  #salesInboxList .sales-inbox-row {
    padding: 12px;
  }

  #salesInboxList .sales-inbox-row__actions {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 10px;
  }
  .topbar__status {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    position: relative;
  }
  .topbar__status:not(:has(> :not(.hidden))) {
    display: none;
  }
  .topbar__notifications {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }
  .topbar__notify {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0;
  }
  .topbar__notify-menu {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 28px));
    max-height: min(64vh, 480px);
  }
  .topbar__notify-menu-list {
    max-height: calc(min(64vh, 480px) - 64px);
  }
  .hero-card__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .pie-chart {
    grid-template-columns: 1fr;
  }
  .pie-svg {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .grid,
  .grid.wide,
  .splash__grid,
  #view-diet .grid.wide,
  #view-tasks .grid.wide,
  #view-trainers .grid.wide,
  #gymPlanView {
    grid-template-columns: 1fr;
  }

  #view-dashboard > .dashboard-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-workspace-card {
    padding: 14px;
  }

  .daily-workspace__table {
    min-width: 0;
  }

  .daily-workspace__table thead {
    display: none;
  }

  .daily-workspace__table,
  .daily-workspace__table tbody,
  .daily-workspace__table tr,
  .daily-workspace__table td {
    display: block;
    width: 100%;
  }

  .daily-workspace__table tr {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .daily-workspace__table tbody tr:last-child {
    border-bottom: 0;
  }

  .daily-workspace__table td {
    padding: 0;
    border-bottom: 0;
  }

  .daily-workspace__value,
  .daily-workspace__action {
    margin-top: 10px;
  }

  .daily-workspace__value::before,
  .daily-workspace__action::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .daily-workspace__action {
    text-align: left;
  }

  .daily-workspace__btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  #view-super-admin .super-admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-super-admin-telemetry > .grid:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-statistics #statsMembershipList .statistics-membership-highlight-item {
    flex-direction: column;
    align-items: flex-start;
  }

  #view-statistics #statsMembershipList .statistics-membership-label,
  #view-statistics #statsMembershipList .statistics-membership-label--overcrowded {
    max-width: 100%;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  #quickActions.actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #quickActions.actions-grid .quick-action-btn {
    min-height: 48px;
    padding: 10px;
    gap: 8px;
  }

  #paymentsForm,
  #profileForm,
  #profileSelectForm {
    gap: 12px;
  }

  #paymentsForm .field,
  #profileForm .field,
  #profileSelectForm .field {
    grid-column: 1 / -1;
  }

  #paymentsForm input,
  #paymentsForm select,
  #paymentsForm textarea,
  #profileForm input,
  #profileForm select,
  #profileForm textarea,
  #profileSelectForm input,
  #profileSelectForm select,
  #profileSelectForm textarea {
    min-height: 44px;
  }

  #memberPaymentPreview,
  #profileAdminStatus {
    line-height: 1.45;
  }

  .calendar-board {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }

  .list-item {
    padding: 11px 12px;
  }

  #viewTitle {
    font-size: 18px;
    letter-spacing: 0.4px;
  }

  .card h3 {
    font-size: 16px;
    letter-spacing: 0.25px;
  }

  .quick-action__label {
    font-size: 13px;
    line-height: 1.2;
  }

  .quick-action__badge {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .list-item strong,
  .list-item .meta,
  .muted {
    font-size: 12px;
    line-height: 1.35;
  }

  #assignedMembersView .list-item,
  #scheduleSessionsTimetable .list-item,
  #trainerScheduleSessionsList .list-item,
  #trainerRiskClientsList .trainer-risk-row,
  #trainerAttendanceList [data-trainer-attendance-custom-range] {
    grid-template-columns: minmax(0, 1fr);
  }

  #attendanceMySessionsList.attendance-my-sessions-list--pt-member .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  #attendanceMySessionsList.attendance-my-sessions-list--pt-member .list-item > .tag {
    align-self: flex-start;
  }

  #scheduleSessionsTimetable .timetable-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #scheduleSessionsTimetable .list-item .tag,
  #trainerScheduleSessionsList .list-item .tag {
    justify-self: start;
  }

}

@media (hover: none) and (pointer: coarse) {
  body::before,
  body::after,
  .ambient {
    display: none;
  }

  .card,
  .list-item,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
  }

  .card,
  .list-item {
    contain: layout paint style;
    box-shadow: var(--elevation-1) !important;
  }

  .card::after,
  .list-item::after,
  .btn::after {
    display: none !important;
  }

  .topbar__notify--animated .topbar__notify-icon,
  .topbar__notify--ringing .topbar__notify-icon,
  .topbar__notify--ringing::before,
  .topbar__notify--ringing .topbar__notify-count {
    animation: none !important;
  }
}

body.perf-lite::before,
body.perf-lite::after,
body.perf-lite .ambient {
  display: none !important;
}

body.perf-lite .card,
body.perf-lite .list-item,
body.perf-lite .btn {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

body.perf-lite .card::after,
body.perf-lite .list-item::after,
body.perf-lite .btn::after {
  display: none !important;
}

body.perf-lite .view {
  animation: none !important;
}

.dashboard-member-consumer > .dashboard-metrics-grid {
  display: none;
}

.member-home-surface {
  --member-accent: var(--accent);
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.member-home-hero,
.member-booking-hero,
.products-member-hero {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 24, 32, 0.94);
  box-shadow: var(--elevation-1);
}

.member-home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.member-home-hero__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.member-home-hero__brand img,
.member-home-hero__brand > span {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  object-fit: cover;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--member-accent) 36%, #111827);
  font-weight: 800;
  color: #ffffff;
}

.member-home-hero h2,
.member-booking-hero h3,
.products-member-hero h3 {
  margin: 2px 0 4px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.member-home-hero p,
.member-booking-hero p,
.products-member-hero p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.member-home-card,
.member-booking-card,
.products-member-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(13, 19, 27, 0.92);
  min-width: 0;
}

.member-home-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 170px;
  padding: 16px;
}

.member-home-card strong,
.member-booking-card strong,
.products-member-card strong {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.member-home-card p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
}

.member-home-card .btn,
.member-home-actions .btn,
.member-booking-card__actions .btn,
.products-member-checkout .btn {
  min-height: 44px;
}

.member-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-booking-list {
  gap: 12px;
}

.member-booking-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.member-booking-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 8px;
  min-width: min(100%, 310px);
}

.member-booking-hero__stats span {
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-align: center;
}

.member-booking-hero__stats strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.member-booking-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.member-booking-card__main,
.member-booking-card__capacity,
.member-booking-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-booking-card__main {
  justify-content: space-between;
}

.member-booking-card__capacity {
  flex-wrap: wrap;
  color: var(--muted);
}

.member-booking-card__capacity span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
}

.member-booking-card__actions {
  flex-wrap: wrap;
}

.member-booking-card.is-booked {
  border-color: rgba(81, 207, 102, 0.34);
}

.member-booking-card.is-waitlisted,
.member-booking-card.is-pending {
  border-color: rgba(255, 196, 87, 0.34);
}

.member-bottom-tabs {
  z-index: 90;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(11, 17, 24, 0.94);
  box-shadow: var(--elevation-2);
  backdrop-filter: blur(16px);
}

.member-bottom-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.member-bottom-tabs__item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-bottom-tabs__item.is-active {
  background: rgba(var(--role-accent-rgb), 0.18);
  color: var(--text);
}

.products-member-storefront {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.products-member-hero {
  grid-column: 1 / -1;
  padding: 16px;
}

.products-member-card {
  min-height: 156px;
  cursor: pointer;
  transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
}

.products-member-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--role-accent-rgb), 0.38);
}

.products-member-card.is-unavailable {
  cursor: default;
  opacity: 0.66;
}

.products-member-card__body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.products-member-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.products-member-card__price span {
  font-size: 22px;
  font-weight: 800;
}

.products-member-card__price small {
  color: var(--success);
}

.products-member-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

#view-saas-maturity .operations-milestone {
  align-items: flex-start;
}

#view-saas-maturity .operations-center-metrics-grid {
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#view-saas-maturity .operations-center-metrics-grid .metric {
  min-width: 0;
}

#view-saas-maturity .operations-center-metrics-grid .metric__value {
  font-size: clamp(24px, 4.8vw, 42px);
  line-height: 1;
  min-width: 0;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

#view-saas-maturity .operations-plan-limits-card {
  min-width: 0;
  overflow: hidden;
}

#view-saas-maturity .operations-plan-limits-list {
  min-width: 0;
  overflow: hidden;
}

#view-saas-maturity .operations-plan-limits-list .matrix {
  width: 100%;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

#view-saas-maturity .operations-plan-limits-list .stats-table {
  min-width: 420px;
  table-layout: fixed;
}

#view-saas-maturity .operations-plan-limits-list .stats-table th,
#view-saas-maturity .operations-plan-limits-list .stats-table td {
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

#view-saas-maturity .operations-plan-limits-list .stats-table th:nth-child(1),
#view-saas-maturity .operations-plan-limits-list .stats-table td:nth-child(1) {
  width: 28%;
}

#view-saas-maturity .operations-plan-limits-list .stats-table th:nth-child(2),
#view-saas-maturity .operations-plan-limits-list .stats-table td:nth-child(2),
#view-saas-maturity .operations-plan-limits-list .stats-table th:nth-child(3),
#view-saas-maturity .operations-plan-limits-list .stats-table td:nth-child(3) {
  width: 25%;
}

#view-saas-maturity .operations-plan-limits-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  align-items: stretch;
}

#view-saas-maturity .operations-plan-limits-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 14px;
  line-height: 1.2;
  white-space: normal;
}

#view-saas-maturity .market-polish-list {
  gap: 10px;
}

#view-saas-maturity .market-polish-summary {
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.18), rgba(255, 255, 255, 0.04));
}

#view-saas-maturity .market-polish-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.38);
  background: rgba(var(--surface-rgb-strong), 0.78);
  color: var(--accent-3);
  font-family: 'Bebas Neue', 'Sora', sans-serif;
  font-size: 28px;
  line-height: 1;
}

#view-saas-maturity .market-polish-row {
  align-items: flex-start;
  gap: 14px;
}

#view-saas-maturity .market-polish-row > div:first-child {
  min-width: 0;
}

#view-saas-maturity .market-polish-row .actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

#view-saas-maturity .platform-maturity-list {
  gap: 12px;
}

#view-saas-maturity .platform-maturity-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background: rgba(var(--surface-rgb-strong), 0.54);
}

#view-saas-maturity .platform-maturity-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#view-saas-maturity .platform-maturity-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.38);
  background: rgba(var(--surface-rgb), 0.82);
  color: var(--accent-3);
  font-family: 'Bebas Neue', 'Sora', sans-serif;
  font-size: 25px;
  line-height: 1;
}

#view-saas-maturity .platform-maturity-rows {
  display: grid;
  gap: 8px;
}

#view-saas-maturity .platform-maturity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(var(--surface-rgb), 0.42);
}

#view-saas-maturity .platform-maturity-row > div:first-child {
  min-width: 0;
}

#view-saas-maturity .platform-maturity-row .actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

#view-saas-maturity .readiness-scorecard-list {
  gap: 10px;
}

#view-saas-maturity .readiness-scorecard-summary {
  align-items: center;
  background: rgba(var(--surface-rgb-strong), 0.62);
}

#view-saas-maturity .readiness-scorecard-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.34);
  background: rgba(var(--surface-rgb), 0.8);
  color: var(--accent-3);
  font-family: 'Bebas Neue', 'Sora', sans-serif;
  font-size: 25px;
  line-height: 1;
}

#view-saas-maturity .readiness-scorecard-row {
  align-items: flex-start;
  gap: 12px;
}

#view-saas-maturity .readiness-scorecard-row > div:first-child {
  min-width: 0;
}

#view-saas-maturity .readiness-scorecard-row .actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  #view-saas-maturity .operations-center-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-saas-maturity .market-polish-row,
  #view-saas-maturity .market-polish-summary,
  #view-saas-maturity .platform-maturity-card__header,
  #view-saas-maturity .platform-maturity-row,
  #view-saas-maturity .readiness-scorecard-summary,
  #view-saas-maturity .readiness-scorecard-row {
    flex-direction: column;
    align-items: stretch;
  }

  #view-saas-maturity .market-polish-row .actions,
  #view-saas-maturity .platform-maturity-row .actions,
  #view-saas-maturity .readiness-scorecard-row .actions {
    width: 100%;
    justify-content: space-between;
  }
}

#view-saas-maturity .operations-milestone__actions,
#view-saas-maturity #opsIntegrationHealthList .actions,
#view-saas-maturity #saasMarketPolishList .actions,
#view-saas-maturity #saasPlatformMaturityList .actions,
#view-saas-maturity .readiness-scorecard-list .actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#view-saas-maturity .operations-import-mapping__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  align-items: center;
}

#view-saas-maturity .operations-import-mapping__row select {
  width: 100%;
  min-width: 0;
}

.operations-status--healthy,
.operations-status--complete,
.operations-status--ready {
  border-color: rgba(81, 207, 102, 0.42);
  color: var(--success);
}

.operations-status--failed,
.operations-status--blocked,
.operations-status--needs-setup {
  border-color: rgba(255, 107, 107, 0.48);
  color: var(--danger);
}

.operations-status--stale,
.operations-status--needs-review,
.operations-status--in-progress,
.operations-status--not-certified {
  border-color: rgba(255, 212, 59, 0.42);
}

.operations-trust-entry .list {
  min-height: 0;
}

body[data-role='member'] {
  padding-bottom: calc(var(--safe-bottom) + 76px);
}

@media (min-width: 761px) {
  .member-bottom-tabs {
    position: fixed;
    right: calc(20px + var(--safe-right));
    bottom: calc(20px + var(--safe-bottom));
    display: flex;
    gap: 4px;
    padding: 6px;
  }
}

@media (max-width: 760px) {
  .member-home-hero,
  .member-booking-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .member-home-grid {
    grid-template-columns: 1fr;
  }

  .member-booking-card__main,
  .member-booking-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .member-booking-card__actions .btn,
  .member-booking-card__actions a.btn,
  .member-home-actions .btn,
  .products-member-checkout .btn {
    width: 100%;
  }

  .member-bottom-tabs {
    position: fixed;
    left: calc(10px + var(--safe-left));
    right: calc(10px + var(--safe-right));
    bottom: calc(10px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 5px;
  }

  .member-bottom-tabs__item {
    min-width: 0;
  }

  .member-bottom-tabs__item[data-view-target='payments'] span {
    font-size: 0;
  }

  .member-bottom-tabs__item[data-view-target='payments'] span::before {
    content: 'Pay';
    font-size: 11.5px;
  }

  .products-member-checkout {
    grid-template-columns: 1fr;
  }

  #view-saas-maturity .operations-center-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-saas-maturity .operations-plan-limits-list .stats-table {
    min-width: 360px;
  }

  #view-saas-maturity .operations-plan-limits-actions {
    grid-template-columns: 1fr;
  }

  #view-saas-maturity .operations-import-mapping__row {
    grid-template-columns: 1fr;
  }

}

.view.hidden {
  content-visibility: hidden;
  contain: layout style paint;
}

body.perf-lite .topbar__notify--animated .topbar__notify-icon,
body.perf-lite .topbar__notify--ringing .topbar__notify-icon,
body.perf-lite .topbar__notify--ringing::before,
body.perf-lite .topbar__notify--ringing .topbar__notify-count {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card,
  .list-item,
  .btn {
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }

  .card::after,
  .list-item::after,
  .btn::after {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Statistics — Admin & Super-Admin premium styling
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Card entrance animation ──────────────────────────────────────────────── */

@keyframes stats-card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#view-statistics:not(.hidden) .card {
  animation: stats-card-enter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#view-statistics:not(.hidden) > .grid:nth-child(1) .card { animation-delay:   0ms; }
#view-statistics:not(.hidden) > .grid:nth-child(2) .card { animation-delay:  40ms; }
#view-statistics:not(.hidden) > .grid:nth-child(3) .card { animation-delay:  75ms; }
#view-statistics:not(.hidden) > .grid:nth-child(4) .card { animation-delay: 110ms; }
#view-statistics:not(.hidden) > .grid:nth-child(5) .card { animation-delay: 140ms; }
#view-statistics:not(.hidden) > .grid:nth-child(6) .card { animation-delay: 168ms; }
#view-statistics:not(.hidden) > .grid:nth-child(7) .card { animation-delay: 194ms; }
#view-statistics:not(.hidden) > .grid:nth-child(8) .card { animation-delay: 218ms; }

/* ── Section card header ──────────────────────────────────────────────────── */

#view-statistics .card > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.15px;
  color: var(--text);
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(var(--role-accent-rgb), 0.15);
}

#view-statistics .card > h3::before {
  content: '';
  display: inline-flex;
  flex-shrink: 0;
  width: 3px;
  height: 17px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(var(--role-accent-rgb), 1) 0%,
    rgba(var(--role-accent-rgb), 0.35) 100%
  );
}

/* Override for date-range card which has its own h3 margin */
#view-statistics .statistics-client-insights-date-range-card h3 {
  margin-bottom: 14px;
}

/* ── Card base enhancement ────────────────────────────────────────────────── */

#view-statistics .card {
  border-top: 1px solid rgba(var(--role-accent-rgb), 0.28);
}

/* ── Advanced insight cards (admin-only) ─────────────────────────────────── */

#view-statistics [data-stats-advanced-card="true"] {
  background:
    linear-gradient(
      155deg,
      rgba(var(--role-accent-rgb), 0.07) 0%,
      rgba(var(--role-accent-rgb), 0.02) 45%,
      rgba(255, 255, 255, 0.01) 100%
    ),
    linear-gradient(
      145deg,
      rgba(var(--surface-rgb), 0.95),
      rgba(var(--surface-rgb-strong), 0.93)
    );
  border-color: rgba(var(--role-accent-rgb), 0.32);
  border-top: 2px solid rgba(var(--role-accent-rgb), 0.5);
  box-shadow:
    0 4px 28px rgba(var(--role-accent-rgb), 0.08),
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 0 0 1px rgba(var(--role-accent-rgb), 0.12);
}

#view-statistics [data-stats-advanced-card="true"] > h3 {
  color: rgba(var(--role-accent-rgb), 0.95);
  border-bottom-color: rgba(var(--role-accent-rgb), 0.22);
}

#view-statistics [data-stats-advanced-card="true"] > h3::before {
  height: 19px;
  background: linear-gradient(
    180deg,
    rgba(var(--role-accent-rgb), 1) 0%,
    rgba(var(--role-accent-rgb), 0.5) 100%
  );
}

/* ── Analytics Trust entry (top section) ────────────────────────────────── */

.operations-trust-entry > .card {
  border-top: 2px solid rgba(var(--role-accent-rgb), 0.55);
}

/* ── Stats table: header ─────────────────────────────────────────────────── */

#view-statistics .stats-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: rgba(var(--role-accent-rgb), 0.78);
  background: linear-gradient(
    90deg,
    rgba(var(--role-accent-rgb), 0.1) 0%,
    rgba(var(--role-accent-rgb), 0.03) 100%
  );
  border-bottom: 1px solid rgba(var(--role-accent-rgb), 0.2);
  padding: 10px 10px;
}

/* ── Stats table: body rows ──────────────────────────────────────────────── */

#view-statistics .stats-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

#view-statistics .stats-table tbody tr {
  transition: background 0.14s ease;
}

#view-statistics .stats-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

#view-statistics .stats-table tbody tr:hover td {
  background: rgba(var(--role-accent-rgb), 0.065);
}

#view-statistics .stats-table tbody tr:nth-child(even):hover td {
  background: rgba(var(--role-accent-rgb), 0.075);
}

#view-statistics .stats-table tbody tr:last-child td {
  border-bottom: none;
}

/* First column — label weight */
#view-statistics .stats-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

/* Right-aligned value columns */
#view-statistics .stats-table .stats-table__cell--right {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ── Stats table card container ──────────────────────────────────────────── */

#view-statistics .stats-table-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(var(--role-accent-rgb), 0.14);
  background: rgba(var(--role-accent-rgb), 0.025);
  margin-top: 2px;
}

/* ── AI intelligence tables — extra premium ──────────────────────────────── */

#view-statistics .stats-ai-intelligence-table {
  border-color: rgba(var(--role-accent-rgb), 0.24);
  background: rgba(var(--role-accent-rgb), 0.04);
}

#view-statistics .stats-ai-intelligence-table th {
  background: linear-gradient(
    90deg,
    rgba(var(--role-accent-rgb), 0.18) 0%,
    rgba(var(--role-accent-rgb), 0.06) 100%
  );
  color: rgba(var(--role-accent-rgb), 0.9);
  border-bottom-color: rgba(var(--role-accent-rgb), 0.3);
}

/* ── Tags inside stats ───────────────────────────────────────────────────── */

#view-statistics .list-item > .tag,
#view-statistics .list-item .tag {
  background: rgba(var(--role-accent-rgb), 0.14);
  color: rgba(var(--role-accent-rgb), 1);
  border: 1px solid rgba(var(--role-accent-rgb), 0.3);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}

/* ── List items in statistics ────────────────────────────────────────────── */

#view-statistics .list-item {
  transition:
    background var(--glass-motion-fast),
    border-color var(--glass-motion-fast);
}

#view-statistics .list-item:hover {
  border-color: rgba(var(--role-accent-rgb), 0.3);
  background:
    linear-gradient(145deg, rgba(var(--role-accent-rgb), 0.07), rgba(var(--role-accent-rgb), 0.02)),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.97), rgba(var(--surface-rgb-strong), 0.95));
}

#view-statistics .list-item .meta {
  font-size: 12.5px;
  line-height: 1.5;
}

#view-statistics .list-item strong {
  font-size: 13.5px;
  letter-spacing: -0.1px;
}

/* ── Admin role: blue glow ───────────────────────────────────────────────── */

body[data-role='admin'] #view-statistics .card {
  box-shadow:
    0 2px 18px rgba(63, 140, 255, 0.07),
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(63, 140, 255, 0.09);
}

body[data-role='admin'] #view-statistics [data-stats-advanced-card="true"] {
  box-shadow:
    0 6px 36px rgba(63, 140, 255, 0.13),
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 0 0 1px rgba(63, 140, 255, 0.18);
}

body[data-role='admin'] #view-statistics .stats-ai-intelligence-table th {
  background: linear-gradient(90deg, rgba(63, 140, 255, 0.2), rgba(63, 140, 255, 0.06));
  color: rgba(63, 140, 255, 0.92);
}

/* ── Super-admin role: purple glow ───────────────────────────────────────── */

body[data-role='super-admin'] #view-statistics .card {
  box-shadow:
    0 2px 18px rgba(107, 63, 231, 0.08),
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(107, 63, 231, 0.11);
}

body[data-role='super-admin'] #view-statistics [data-stats-advanced-card="true"] {
  box-shadow:
    0 6px 36px rgba(107, 63, 231, 0.15),
    var(--elevation-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 0 0 1px rgba(107, 63, 231, 0.22);
}

body[data-role='super-admin'] #view-statistics .stats-ai-intelligence-table th {
  background: linear-gradient(90deg, rgba(107, 63, 231, 0.22), rgba(107, 63, 231, 0.07));
  color: rgba(107, 63, 231, 0.95);
}

/* ── Responsive: tighten table padding on mobile ─────────────────────────── */

@media (max-width: 600px) {
  #view-statistics .stats-table th,
  #view-statistics .stats-table td {
    padding: 8px 7px;
    font-size: 12px;
  }

  #view-statistics .stats-table th {
    font-size: 10px;
    letter-spacing: 0.4px;
  }

  #view-statistics .card > h3 {
    font-size: 13px;
    padding-bottom: 11px;
    margin-bottom: 12px;
  }
}

/* Fast SaaS polish pass: calmer hierarchy, cleaner scan paths, and console-first super-admin navigation. */
:root {
  --saas-card-border: rgba(255, 255, 255, 0.1);
  --saas-card-border-strong: rgba(var(--role-accent-2-rgb), 0.3);
  --saas-card-bg: linear-gradient(180deg, rgba(20, 27, 38, 0.94), rgba(12, 17, 25, 0.92));
  --saas-card-bg-soft: rgba(255, 255, 255, 0.035);
  --saas-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  --saas-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.36);
}

body::after {
  opacity: 0.1;
}

.orb {
  opacity: 0.22;
}

.main {
  padding-top: clamp(22px, 3vw, 38px);
}

.topbar {
  margin-bottom: clamp(18px, 3vw, 30px);
  padding-bottom: 14px;
}

.topbar__left {
  min-width: 0;
}

#viewTitle {
  margin-bottom: 4px;
  font-size: clamp(21px, 2.2vw, 28px);
}

.topbar #viewSubtitle,
#viewSubtitle {
  max-width: 760px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.nav {
  width: auto;
  padding-inline: 14px;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(7, 10, 15, 0.98)),
    rgba(8, 10, 14, 0.98);
}

.nav__brand {
  --nav-brand-logo-slot: 40px;
  column-gap: 9px;
  min-height: 48px;
  padding: 4px;
}

.nav__title {
  font-size: 20px;
}

.nav__subtitle {
  font-size: 10.5px;
  line-height: 1.18;
  -webkit-line-clamp: 2;
}

.nav__profile {
  gap: 8px;
  margin-top: 2px;
  padding: 8px;
}

.nav__profile-photo-btn,
.nav__profile-photo {
  width: 38px;
  height: 38px;
}

.nav__profile-photo-btn {
  flex-basis: 38px;
}

.nav__profile-photo-edit {
  width: 16px;
  height: 16px;
  font-size: 12px;
}

.nav__profile-name {
  font-size: 13px;
}

.nav__profile-role {
  font-size: 11px;
}

.nav__links {
  gap: 3px;
  padding-right: 4px;
}

.nav__section-label {
  display: none;
  padding: 14px 10px 5px;
  color: rgba(226, 232, 240, 0.52);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.nav__link,
.nav__sublink {
  min-height: 34px;
  border: 1px solid transparent;
}

.nav__link {
  padding: 8px 9px;
  padding-right: 44px;
  border-radius: 9px;
  color: rgba(241, 245, 249, 0.88);
  font-size: 12.5px;
}

.nav__link--group {
  padding-right: 9px;
}

.nav__sublink {
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 11.75px;
  font-weight: 600;
}

.nav__submenu {
  gap: 3px;
  margin-left: 5px;
  padding-left: 7px;
  border-left-color: rgba(var(--role-accent-2-rgb), 0.18);
}

.nav__link.active,
.nav__group--active > .nav__link--group,
.nav__sublink.active {
  border-color: rgba(var(--role-accent-2-rgb), 0.45);
  background: rgba(var(--role-accent-rgb), 0.18);
  color: #ffffff;
  box-shadow: inset 3px 0 0 rgba(var(--role-accent-3-rgb), 0.9);
}

.nav__link:hover,
.nav__sublink:hover {
  background: rgba(var(--role-accent-rgb), 0.11);
  color: #ffffff;
}

body[data-role='super-admin'] .nav__section-label {
  display: block;
}

body[data-role='super-admin'] .nav__link[data-view='dashboard'],
body[data-role='super-admin'] .nav__link[data-view='gym-profile'],
body[data-role='super-admin'] .nav__link[data-view='profile'],
body[data-role='super-admin'] .nav__link[data-view='my-profile'],
body[data-role='super-admin'] .nav__link[data-view='profile-tracking'],
body[data-role='super-admin'] .nav__link[data-view='block'],
body[data-role='super-admin'] .nav__link[data-view='reports'],
body[data-role='super-admin'] .nav__link[data-view='membership'],
body[data-role='super-admin'] .nav__link[data-view='leave'],
body[data-role='super-admin'] .nav__link[data-view='session-time-table'],
body[data-role='super-admin'] .nav__link[data-view='groups'],
body[data-role='super-admin'] .nav__link[data-view='tasks'],
body[data-role='super-admin'] .nav__link[data-view='products'],
body[data-role='super-admin'] .nav__link[data-view='workout'],
body[data-role='super-admin'] .nav__link[data-view='assigned-workouts-admin'],
body[data-role='super-admin'] .nav__link[data-view='notes'],
body[data-role='super-admin'] .nav__link[data-view='personal-training'],
body[data-role='super-admin'] .nav__link[data-view='assigned-members'],
body[data-role='super-admin'] .nav__link[data-view='referral-coupon'],
body[data-role='super-admin'] .nav__link[data-view='gym-plan'],
body[data-role='super-admin'] .nav__group[data-nav-group='statistics'],
body[data-role='super-admin'] .nav__group[data-nav-group='attendance'],
body[data-role='super-admin'] .nav__group[data-nav-group='login'],
body[data-role='super-admin'] .nav__group[data-nav-group='sessions'],
body[data-role='super-admin'] .nav__group[data-nav-group='leads'],
body[data-role='super-admin'] .nav__group[data-nav-group='notifications'],
body[data-role='super-admin'] .nav__group[data-nav-group='nutrition'],
body[data-role='super-admin'] .nav__group[data-nav-group='ratings'],
body[data-role='super-admin'] .nav__group[data-nav-group='payments'],
body[data-role='super-admin'] .nav__group[data-nav-group='trainers'],
body[data-role='super-admin'] .nav__group[data-nav-group='diversion'] {
  display: none !important;
}

body[data-role='super-admin'] .nav__group[data-nav-group='gym-insights'] {
  margin-top: 2px;
  padding: 7px;
  border: 1px solid rgba(var(--role-accent-2-rgb), 0.18);
  border-radius: 15px;
  background: rgba(var(--role-accent-rgb), 0.08);
}

body[data-role='super-admin'] .nav__group[data-nav-group='gym-insights'] .nav__link--group {
  background: rgba(255, 255, 255, 0.035);
}

body[data-role='super-admin'] .nav__group[data-nav-group='gym-insights'].nav__group--expanded .nav__submenu.nav__submenu--scroll {
  max-height: min(58vh, 620px);
  overflow-y: auto;
  padding-right: 4px;
}

.card,
.hero-card,
.glow-card,
.prism-card,
.access-card,
.stats-table-card,
.list-item,
.payment-gateway-provider-card,
.payments-followup-action {
  border-color: var(--saas-card-border);
  background: var(--saas-card-bg);
  box-shadow: var(--saas-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card {
  padding: clamp(18px, 2vw, 24px);
}

.card::before,
.list-item::before {
  opacity: 0.58;
  box-shadow: inset 0 0 0 1px rgba(var(--role-accent-2-rgb), 0.1);
}

.card::after,
.list-item::after {
  display: none;
}

.card:hover,
.list-item--selectable:hover {
  transform: translateY(-2px);
  border-color: var(--saas-card-border-strong);
  box-shadow: var(--saas-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: none;
}

.card h3,
.stats-table-card strong,
.list-item strong {
  letter-spacing: -0.01em;
}

.grid,
.grid.wide,
.splash__grid,
.dashboard-metrics-grid {
  gap: clamp(14px, 1.8vw, 20px);
}

.metric__value {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 13px 14px;
  gap: 12px;
  border-radius: 14px;
}

.list-item .meta {
  color: rgba(203, 213, 225, 0.76);
  font-size: 12.5px;
  line-height: 1.55;
}

.form {
  gap: 14px;
}

.form .field input,
.form .field select,
.form .field textarea {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.52);
}

.field > label,
.field > span,
.field legend,
.field__checkbox-label {
  color: rgba(226, 232, 240, 0.72);
}

.btn {
  min-height: 40px;
  border-radius: 12px;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

[data-lead-folder-panel="lead-insights"] .lead-insights-compact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
  width: 100%;
  font-size: 12.5px;
}

[data-lead-folder-panel="lead-insights"] .lead-insights-compact-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

[data-lead-folder-panel="lead-insights"] .lead-insights-compact-form label span {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(226, 232, 240, 0.72);
}

[data-lead-folder-panel="lead-insights"] .lead-insights-compact-form input,
[data-lead-folder-panel="lead-insights"] .lead-insights-compact-form select,
[data-lead-folder-panel="lead-insights"] .lead-insights-compact-form textarea {
  width: 100%;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.35;
}

[data-lead-folder-panel="lead-insights"] .lead-insights-compact-form .btn {
  justify-self: start;
  align-self: end;
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

[data-lead-folder-panel="lead-insights"] .lead-insights-automation-form label:last-of-type {
  grid-column: 1 / -1;
}

#leadAutomationTemplatesList .list-item strong {
  font-size: 13px;
  line-height: 1.35;
}

#leadAutomationTemplatesList .list-item .meta {
  font-size: 12px;
  line-height: 1.4;
}

.status-pill,
.status-chip,
.tag {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.stats-table-card {
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.matrix,
.stats-table-card .matrix {
  overflow-x: auto;
  border-radius: 12px;
}

.matrix table,
.stats-table {
  border-collapse: separate;
  border-spacing: 0;
}

.matrix th,
.matrix td,
.stats-table th,
.stats-table td {
  padding: 10px 12px;
  line-height: 1.45;
  vertical-align: top;
}

.matrix th,
.stats-table th {
  background: rgba(var(--role-accent-rgb), 0.1);
  color: rgba(241, 245, 249, 0.9);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Admin statistics folders use the same compact reading scale as PT Insights. */
body[data-role='admin'] #view-statistics {
  font-size: 13px;
}

body[data-role='admin'] #view-statistics .card > h3 {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body[data-role='admin'] #view-statistics .stats-card__sub {
  margin: -6px 0 12px;
  color: rgba(203, 213, 225, 0.76);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}

body[data-role='admin'] #view-statistics .list {
  gap: 10px;
}

body[data-role='admin'] #view-statistics .list-item {
  gap: 10px;
  min-height: auto;
  overflow: hidden;
}

body[data-role='admin'] #view-statistics .list-item > div {
  min-width: 0;
  width: 100%;
}

body[data-role='admin'] #view-statistics .list-item strong,
body[data-role='admin'] #view-statistics .stats-table-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body[data-role='admin'] #view-statistics .list-item .meta {
  color: rgba(203, 213, 225, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

body[data-role='admin'] #view-statistics .stats-table-card {
  padding: 16px;
  border-radius: 16px;
}

body[data-role='admin'] #view-statistics .matrix,
body[data-role='admin'] #view-statistics .stats-table-card .matrix {
  overflow-x: auto;
  border-radius: 12px;
}

body[data-role='admin'] #view-statistics .stats-table {
  font-size: 12.5px;
}

body[data-role='admin'] #view-statistics .stats-table th {
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
}

body[data-role='admin'] #view-statistics .stats-table td {
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

#view-dashboard .dashboard-metrics-grid,
#view-super-admin > .grid:first-child,
#view-payments > .grid:first-child,
#view-statistics > .grid:first-child,
#view-profile > .grid:first-child,
#view-trainers > .grid:first-child {
  align-items: stretch;
}

#view-dashboard .card--metric,
#view-super-admin .card--metric,
#view-payments .card--metric {
  min-height: 126px;
}

#view-payments .list-item,
#view-trainers .list-item,
#view-profile .list-item,
#view-statistics .list-item {
  align-items: flex-start;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .nav {
    width: min(74vw, 248px);
    padding-inline: 12px;
    gap: 10px;
  }

  .main {
    padding: 20px 14px calc(92px + var(--safe-bottom));
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 10px;
  }

  .topbar__left {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .topbar__status {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .topbar__status:not(:has(> :not(.hidden))) {
    display: none;
  }

  .topbar__notifications {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }

  .topbar__notify {
    position: relative;
    inset: auto;
    margin-left: 0;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .grid,
  .grid.wide {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .list-item {
    border-radius: 13px;
  }

  .actions,
  .actions-grid {
    gap: 10px;
  }

  .btn {
    min-height: 42px;
  }
}

@media (max-width: 640px) {
  .dashboard-metrics-grid {
    grid-template-columns: 1fr;
  }

  #viewTitle {
    font-size: 21px;
  }

  .metric__value {
    font-size: 30px;
  }

  .form .field input,
  .form .field select,
  .form .field textarea {
    font-size: 16px;
  }
}

/* Admin and front-office profile management actions */
body:is([data-role='admin'], [data-role='front-office']) #view-profile #profileForm [data-contact-verification] {
  padding: 16px;
  border: 1px solid rgba(var(--role-accent-2-rgb), 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--role-accent-rgb), 0.16), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 11, 20, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile #profileForm [data-contact-verification] > .field > span {
  color: rgba(241, 245, 249, 0.94);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .contact-verification-list {
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  align-items: start;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .contact-verification-item {
  display: grid;
  grid-template-columns: minmax(0, 190px) 18px;
  align-items: center;
  gap: 6px;
  width: min(100%, 214px);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-verification-btn {
  --profile-action-rgb: var(--role-accent-rgb);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  padding: 5px 10px 5px 34px;
  border-color: rgba(var(--profile-action-rgb), 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(var(--profile-action-rgb), 0.18), rgba(var(--profile-action-rgb), 0.045) 58%),
    rgba(8, 16, 28, 0.9);
  color: rgba(248, 250, 252, 0.96);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-verification-btn::before {
  position: absolute;
  inset: auto auto auto 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(var(--profile-action-rgb, var(--role-accent-rgb)), 0.2);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn::before,
body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn::before {
  position: absolute;
  inset: auto auto auto 11px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(var(--profile-action-rgb, var(--role-accent-rgb)), 0.2);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile [data-verify-mobile-btn] {
  --profile-action-rgb: 59, 130, 246;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile [data-verify-mobile-btn]::before {
  content: '\260E';
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile [data-verify-whatsapp-btn] {
  --profile-action-rgb: 34, 197, 94;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile [data-verify-whatsapp-btn]::before {
  content: 'WA';
  font-size: 7px;
  letter-spacing: -0.02em;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile [data-verify-email-btn] {
  --profile-action-rgb: 168, 85, 247;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile [data-verify-email-btn]::before {
  content: '@';
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-verification-btn:hover {
  border-color: rgba(var(--profile-action-rgb), 0.76);
  background:
    linear-gradient(135deg, rgba(var(--profile-action-rgb), 0.27), rgba(var(--profile-action-rgb), 0.08) 62%),
    rgba(9, 18, 31, 0.94);
  box-shadow:
    0 12px 24px rgba(var(--profile-action-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .contact-verification-item .profile-verification-btn.is-verified {
  --profile-action-rgb: 34, 197, 94;
  color: #c9fbd6;
  border-color: rgba(74, 222, 128, 0.7);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.075) 62%),
    rgba(7, 21, 18, 0.94);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .contact-verification-tick {
  width: 16px;
  height: 16px;
  border-color: rgba(74, 222, 128, 0.68);
  background: rgba(34, 197, 94, 0.2);
  font-size: 10px;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.16);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .actions--admin-profile {
  width: 100%;
  padding-top: 4px;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .actions--admin-profile .actions__primary {
  width: 100%;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn,
body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn {
  --profile-action-rgb: var(--role-accent-rgb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 52px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn {
  border-color: rgba(var(--role-accent-2-rgb), 0.72);
  background:
    linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.84), rgba(var(--role-accent-2-rgb), 0.5)),
    rgba(11, 25, 44, 0.96);
  box-shadow:
    0 14px 30px rgba(var(--role-accent-rgb), 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn::before {
  content: '\2713';
  background: rgba(255, 255, 255, 0.15);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile #profileSelectForm .actions {
  width: 100%;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn {
  border-color: rgba(var(--role-accent-2-rgb), 0.5);
  background:
    linear-gradient(135deg, rgba(var(--role-accent-rgb), 0.22), rgba(var(--role-accent-2-rgb), 0.08)),
    rgba(8, 16, 28, 0.92);
  color: rgba(248, 250, 252, 0.96);
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn::before {
  content: '\21BB';
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn:hover,
body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--role-accent-2-rgb), 0.86);
  box-shadow:
    0 16px 32px rgba(var(--role-accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
  body:is([data-role='admin'], [data-role='front-office']) #view-profile #profileForm [data-contact-verification] {
    padding: 13px;
  }

  body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-verification-btn,
  body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn,
  body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn {
    min-height: 48px;
    font-size: 13px;
  }

  body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-verification-btn {
    min-height: 32px;
    font-size: 11px;
  }
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn,
body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn,
body:is([data-role='admin'], [data-role='front-office']) #view-profile #cancelEditBtn,
body:is([data-role='admin'], [data-role='front-office']) #view-gym-profile #brandingSaveBtn,
body:is([data-role='admin'], [data-role='front-office']) #view-login #loginCredentialsForm .profile-action-btn {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-save-btn::before,
body:is([data-role='admin'], [data-role='front-office']) #view-profile .profile-load-btn::before {
  display: none;
  content: none;
}

body:is([data-role='admin'], [data-role='front-office']) #view-profile .actions--admin-profile,
body:is([data-role='admin'], [data-role='front-office']) #view-profile .actions--admin-profile .actions__primary,
body:is([data-role='admin'], [data-role='front-office']) #view-profile #profileSelectForm .actions,
body:is([data-role='admin'], [data-role='front-office']) #view-gym-profile #brandingForm .actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

/* Reports workspace */
#view-reports > .reports-grid {
  align-items: start;
}

#view-reports > .reports-grid--primary,
#view-reports > .reports-grid--secondary {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

#view-reports > .reports-grid--branches {
  grid-template-columns: minmax(0, 1fr);
}

#view-reports .reports-card {
  align-self: start;
  width: 100%;
  padding: 20px;
  border-radius: 16px;
}

#view-reports .reports-card > h3 {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.35;
}

#view-reports .reports-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

#view-reports .reports-form-grid .field {
  min-width: 0;
  margin: 0;
}

#view-reports .reports-form-grid :is(input, select),
#view-reports #reportsExportForm select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

#view-reports select,
#view-reports select option,
#view-reports select optgroup {
  color-scheme: dark;
  background-color: #0b1320;
  color: rgba(241, 245, 249, 0.94);
}

#view-reports select optgroup {
  color: rgba(191, 219, 254, 0.92);
  font-weight: 700;
}

#view-reports .reports-form-actions {
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

#view-reports .reports-form-actions .btn {
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 9px 16px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

#view-reports #reportsPreviewList {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

#view-reports #reportsScheduleList,
#view-reports #reportsBranchList {
  margin-top: 16px;
}

#view-reports .reports-card--export {
  max-width: 100%;
}

@media (max-width: 980px) {
  #view-reports > .reports-grid--primary,
  #view-reports > .reports-grid--secondary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  #view-reports .reports-card {
    padding: 16px;
  }

  #view-reports .reports-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-reports .reports-form-actions .btn {
    max-width: 100%;
    white-space: normal;
  }
}
