﻿:root {
  color-scheme: light;
  --bg: #eef6f7;
  --panel: #ffffff;
  --surface: #f8fbfc;
  --line: #d5e2e7;
  --text: #14313d;
  --muted: #5d7079;
  --brand: #4268b2;
  --brand-dark: #203f78;
  --accent: #4268b2;
  --success: #168260;
  --warning: #a86a16;
  --danger: #b84634;
  --shadow: 0 18px 45px rgba(20, 49, 61, 0.08);
  --shadow-soft: 0 8px 22px rgba(20, 49, 61, 0.06);
}

html {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f8fbfc 0, var(--bg) 420px, #f6f9fa 100%);
  color: var(--text);
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(8, 116, 127, 0.22);
  outline-offset: 2px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.shell.dashboard-shell-wide {
  width: calc(100% - 16px);
  max-width: none;
  padding-top: 10px;
  padding-bottom: 36px;
}

.shell.public-form-shell,
.shell.public-home-shell {
  width: calc(100% - 16px);
  max-width: none;
  padding-top: 18px;
  padding-bottom: 24px;
}

.public-form-shell > .stack {
  gap: 0;
}

.public-form-shell .public-form-panel {
  border-radius: 8px;
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 70;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: rgba(248, 251, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 226, 231, 0.78);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  min-width: 172px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
}

.topbar.is-public .brand img {
  width: 70px;
  height: 70px;
}

.topbar.is-public .brand {
  align-items: center;
}

.brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.topbar.is-public .brand-copy {
  justify-content: center;
}

.brand strong {
  font-size: 1.34rem;
  line-height: 1.12;
}

.topbar.is-public .brand strong {
  font-size: 1.48rem;
}

.brand-motto {
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.12;
}

.brand span,
.muted {
  color: var(--muted);
}

.pool-switcher {
  margin: 0;
  min-width: 0;
}

.pool-switcher label,
.pool-switcher-static {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 63, 120, 0.06);
}

.pool-switcher-static span {
  max-width: min(220px, 36vw);
  overflow: hidden;
  color: var(--brand-dark);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-switcher select {
  min-width: 136px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 950;
  cursor: pointer;
}

.pool-access-list {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
}

.pool-access-row {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(66, 104, 178, 0.16);
  border-radius: 8px;
  background: #fff;
}

.pool-access-row.is-muted {
  background: rgba(248, 251, 252, 0.82);
}

.pool-access-summary {
  display: grid;
  gap: 4px;
}

.pool-access-summary strong {
  color: var(--brand-dark);
  font-size: 0.94rem;
}

.pool-access-summary span,
.pool-access-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pool-access-summary em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(66, 104, 178, 0.1);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.pool-access-form label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pool-access-form button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.8rem;
}

.public-home-shell {
  min-height: 100vh;
  display: block;
}

.public-home-panel {
  width: min(780px, 100%);
  margin: clamp(42px, 8vh, 96px) auto 0;
  text-align: center;
  padding: clamp(34px, 8vw, 86px) clamp(18px, 6vw, 72px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.panel.public-home-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.public-home-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.public-home-brand img {
  width: clamp(150px, 16vw, 220px);
  height: clamp(150px, 16vw, 220px);
  object-fit: contain;
}

.public-home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(66, 104, 178, 0.2);
}

.public-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.topbar-icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.topbar-public-home-button .ui-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.topbar-client-search {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.topbar-client-search[open] {
  z-index: 170;
}

.topbar-client-search > summary {
  list-style: none;
}

.topbar-client-search > summary::-webkit-details-marker {
  display: none;
}

.topbar-client-search-panel {
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
  z-index: 180;
  width: min(690px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(20, 49, 61, 0.16);
}

.topbar-client-search[open] .topbar-client-search-panel {
  position: fixed;
  top: var(--topbar-client-search-top, 16px);
  right: var(--topbar-client-search-right, 16px);
  width: var(--topbar-client-search-width, min(690px, calc(100vw - 32px)));
  max-height: calc(100vh - var(--topbar-client-search-top, 16px) - 16px);
  overflow-y: auto;
}

.topbar-client-search:not([open]) .topbar-client-search-panel {
  display: none;
}

.topbar-client-search-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.topbar-client-search-results {
  max-height: min(58vh, calc(100vh - var(--topbar-client-search-top, 16px) - 132px));
  overflow-y: auto;
}

.topbar-client-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.95fr);
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  text-align: left;
}

.topbar-client-result-main,
.topbar-client-result-status {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.topbar-client-result-main {
  justify-items: start;
  text-align: left;
}

.topbar-client-result-main strong,
.topbar-client-result-main span,
.topbar-client-result-status span {
  overflow-wrap: anywhere;
}

.topbar-client-result-main strong {
  display: block;
  width: 100%;
  text-align: left;
}

.topbar-client-result .topbar-client-result-main span {
  text-align: left;
}

.topbar-client-result .topbar-client-result-status span {
  text-align: left;
}

.topbar-client-result .topbar-client-guardian,
.topbar-client-result .topbar-client-contact,
.topbar-client-result .topbar-client-result-status > span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.topbar-client-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.topbar-client-result-status {
  justify-items: start;
  text-align: left;
}

.topbar-client-session-ledger {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  max-width: 100%;
}

.topbar-client-session-box {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 116, 127, 0.28);
  border-radius: 4px;
  background: #ffffff;
  color: transparent;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
}

.topbar-client-session-box.is-completed {
  border-color: #168260;
  background: #168260;
  color: #ffffff;
}

.topbar-client-membership-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.28;
}

.topbar-client-membership-label,
.topbar-client-membership-sessions,
.topbar-client-membership-empty {
  min-width: 0;
}

.topbar-client-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(22, 130, 96, 0.24);
  border-radius: 999px;
  background: #edf9f4;
  color: #106d50;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.topbar-client-status-badge.is-inactive {
  border-color: rgba(184, 70, 52, 0.22);
  background: #fff0ed;
  color: #963927;
}

.topbar-client-expiry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(22, 130, 96, 0.24);
  border-radius: 999px;
  background: #edf9f4;
  color: #106d50;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.topbar-client-expiry-badge.is-expired {
  border-color: rgba(184, 70, 52, 0.28);
  background: #fff0ed;
  color: #963927;
}

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

.owner-return-button {
  border-color: rgba(196, 124, 42, 0.42);
  background: #fff8eb;
  color: #7a4a09;
}

.owner-return-button:hover {
  border-color: rgba(196, 124, 42, 0.62);
  background: #fff1d5;
}

.button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button:hover,
button:hover {
  border-color: rgba(8, 116, 127, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 116, 127, 0.18);
}

.button.primary:hover,
button.primary:hover {
  background: var(--brand-dark);
}

.button.success,
button.success {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 130, 96, 0.18);
}

.button.success:hover,
button.success:hover {
  border-color: #10664b;
  background: #10664b;
}

.button.danger,
button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 22px rgba(190, 77, 64, 0.18);
}

.button.danger:hover,
button.danger:hover {
  border-color: #963927;
  background: #963927;
}

.hero,
.panel,
.card,
.notice,
.error {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(32, 63, 120, 0.94), rgba(16, 24, 32, 0.78)),
    url("aquaswim-ramada.webp") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero h1,
.title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dbe7ff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

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

.operations-grid {
  grid-template-columns: 1fr;
}

.panel,
.card {
  padding: 22px;
}

.panel {
  overflow: hidden;
}

.dashboard-hero {
  border-color: rgba(8, 116, 127, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 247, 0.96)),
    linear-gradient(135deg, rgba(8, 116, 127, 0.12), rgba(66, 104, 178, 0.1));
}

.client-hero {
  border-color: rgba(8, 116, 127, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(238, 248, 248, 0.97)),
    linear-gradient(135deg, rgba(8, 116, 127, 0.1), rgba(22, 130, 96, 0.08));
}

.client-next-session-metric {
  border-color: rgba(66, 104, 178, 0.32);
  background:
    linear-gradient(180deg, #f8faff, #eef4ff),
    linear-gradient(135deg, rgba(66, 104, 178, 0.12), rgba(8, 116, 127, 0.06));
}

.client-next-session-metric strong {
  color: var(--brand-dark);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.15;
}

.client-portal-profile-switch {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-color: rgba(8, 116, 127, 0.2);
  background: #f7fcfb;
}

.client-portal-profile-switch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-portal-profile-switch-head h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.client-portal-profile-switch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-portal-profile-switch-option {
  display: grid;
  min-width: min(220px, 100%);
  flex: 1 1 220px;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.24);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
}

.client-portal-profile-switch-option strong,
.client-portal-profile-switch-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-portal-profile-switch-option strong {
  color: var(--brand-dark);
  font-size: 0.96rem;
}

.client-portal-profile-switch-option span {
  color: var(--muted);
  font-size: 0.82rem;
}

.client-portal-profile-switch-option.is-active {
  border-color: rgba(19, 142, 103, 0.62);
  background: #eaf8f2;
  box-shadow: inset 0 0 0 1px rgba(19, 142, 103, 0.2);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(252px, 286px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.dashboard-content,
.dashboard-view,
.dashboard-view > *,
.dashboard-content .panel,
.table-wrap,
.intake-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.dashboard-content .panel,
.dashboard-content .card {
  border-color: rgba(8, 116, 127, 0.15);
}

.dashboard-shell-wide .dashboard-shell {
  grid-template-columns: minmax(244px, 274px) minmax(0, 1fr);
  gap: 10px;
}

.dashboard-shell-wide .dashboard-shell.client-dashboard-shell {
  grid-template-columns: minmax(288px, 320px) minmax(0, 1fr);
  gap: 12px;
}

.client-dashboard-shell .dashboard-menu-text {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 821px) {
  .client-dashboard-shell .dashboard-menu-text {
    white-space: nowrap;
  }
}

.dashboard-shell-wide .panel,
.dashboard-shell-wide .card {
  padding: 14px;
}

.dashboard-shell-wide .panel.stack {
  gap: 14px;
}

.dashboard-shell-wide .topbar {
  margin-bottom: 10px;
}

.dashboard-sidebar {
  position: sticky;
  top: 92px;
  z-index: 20;
  align-self: start;
}

.dashboard-sidebar-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  max-height: calc(100vh - 108px);
  max-height: calc(100dvh - 108px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.dashboard-sidebar-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #f1faf9, #ffffff);
}

.dashboard-sidebar-head strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.18;
  color: var(--text);
}

.dashboard-sidebar-user {
  display: flex;
  min-width: 0;
  gap: 9px;
  align-items: center;
}

.dashboard-sidebar-user-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.dashboard-sidebar-user > div {
  min-width: 0;
}

.dashboard-sidebar-role {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-menu {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 3px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.dashboard-menu::-webkit-scrollbar {
  width: 8px;
}

.dashboard-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(66, 104, 178, 0.28);
}

.dashboard-menu-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  font-weight: 800;
}

.dashboard-menu-link:hover,
.dashboard-menu-link.is-active {
  border-color: rgba(8, 116, 127, 0.32);
  background: linear-gradient(135deg, #eaf8f7, #f6fbfb);
  color: var(--brand-dark);
}

.dashboard-menu-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef8f7;
  color: var(--brand-dark);
  font-size: 11px;
  letter-spacing: 0;
}

.dashboard-menu-icon .ui-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.dashboard-menu-count {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e7f3f1;
  color: var(--brand-dark);
  font-size: 12px;
  text-align: center;
}

.dashboard-view {
  display: none;
}

.dashboard-view.is-active {
  display: grid;
  gap: 18px;
}

.dashboard-info-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-info-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(8, 116, 127, 0.28);
  background: #f4faf9;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.dashboard-info-button:hover,
.dashboard-info-button[aria-expanded="true"] {
  background: #e6f5f2;
  color: var(--brand);
  transform: none;
  box-shadow: none;
}

.dashboard-info-popover {
  max-width: 620px;
  margin: -4px 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-info-popover[hidden] {
  display: none;
}

.inline-info-popover {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-items: start;
  min-width: 24px;
  vertical-align: middle;
}

.inline-info-popover summary {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid rgba(8, 116, 127, 0.28);
  border-radius: 999px;
  background: #f4faf9;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.inline-info-popover summary::-webkit-details-marker {
  display: none;
}

.inline-info-popover[open] summary,
.inline-info-popover summary:hover {
  background: #e6f5f2;
  color: var(--brand);
}

.inline-info-popover > div {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 14px 34px rgba(13, 48, 60, 0.14);
}

.section-title-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.section-title-line h2,
.section-title-line h3,
.section-title-line h4 {
  margin: 0;
}

.dashboard-mobile-toggle,
.dashboard-menu-close,
.dashboard-sidebar-collapse {
  min-height: 38px;
}

.dashboard-mobile-toggle,
.dashboard-menu-close {
  display: none;
}

.dashboard-sidebar-collapse {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
}

.dashboard-collapse-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eef8f8;
  color: var(--brand-dark);
}

.dashboard-collapse-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-collapse-icon-expand {
  display: none;
}

.dashboard-collapse-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-shell.is-sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.dashboard-shell-wide .dashboard-shell.is-sidebar-collapsed {
  grid-template-columns: 74px minmax(0, 1fr);
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-panel {
  padding: 10px;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-head div,
.dashboard-shell.is-sidebar-collapsed .dashboard-menu-text,
.dashboard-shell.is-sidebar-collapsed .dashboard-menu-count {
  display: none;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-menu-link {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 6px;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-collapse {
  flex-direction: column;
  gap: 0;
  padding: 7px 4px;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-collapse-icon-contract,
.dashboard-shell.is-sidebar-collapsed .dashboard-collapse-label {
  display: none;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-collapse-icon-expand {
  display: inline-grid;
}

.dashboard-sidebar-backdrop {
  display: none;
}

.login-panel {
  max-width: 560px;
  margin: clamp(24px, 7vw, 56px) auto;
  border-color: rgba(64, 104, 176, 0.2);
  box-shadow: 0 24px 70px rgba(32, 63, 120, 0.14);
}

.password-reset-box {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.password-reset-box summary {
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.password-reset-box form {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.compact-stack {
  gap: 10px;
}

.public-form-panel {
  border-color: rgba(8, 116, 127, 0.18);
}

.intake-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.step-pill {
  justify-content: flex-start;
  min-height: 54px;
  padding: 8px 10px;
  text-align: left;
}

.step-pill strong {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #eef6f7;
  color: var(--brand-dark);
}

.step-pill.is-active,
.step-pill.is-complete {
  border-color: rgba(8, 116, 127, 0.4);
  background: #effaf6;
  color: var(--brand-dark);
}

.step-pill.is-active strong,
.step-pill.is-complete strong {
  background: var(--brand);
  color: #fff;
}

.panel.stack {
  gap: 18px;
}

.panel h1,
.panel h2,
.card h2,
.card h3 {
  margin-top: 0;
}

.panel h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.18rem;
  line-height: 1.2;
}

.panel > h2,
.stack > h2 {
  margin-bottom: 0;
}

.panel > .muted {
  max-width: 820px;
}

.stack {
  display: grid;
  gap: 16px;
}

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

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

.form-grid > button {
  align-self: end;
}

.form-section {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.form-section legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}

.form-section .form-section-heading {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.multi-step-form.is-enhanced .form-step {
  display: none;
}

.multi-step-form.is-enhanced .form-step.is-active {
  display: grid;
}

.form-step-actions,
.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

[data-public-enrollment-form] .form-step-actions {
  flex-wrap: nowrap;
  justify-content: space-between;
}

[data-public-enrollment-form] .form-step-actions [data-step-next],
[data-public-enrollment-form] .form-step-actions [data-step-submit] {
  margin-left: auto;
}

.form-submit-row p {
  margin: 0;
}

.multi-step-form.is-enhanced .form-submit-row {
  display: none;
}

.multi-step-form.is-enhanced.is-last-step .form-submit-row {
  display: flex;
}

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

.summary-grid div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.field-warning {
  margin: 0;
  color: var(--warning);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-validation-summary {
  flex: 1 1 100%;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(184, 70, 52, 0.32);
  border-radius: 8px;
  background: #fff3f1;
  color: #963927;
  font-weight: 850;
}

.check-row.has-validation-error,
.quick-client-search.has-validation-error,
.membership-package-choice.has-validation-error,
.membership-location-choice.has-validation-error,
.membership-weekday-field.has-validation-error {
  outline: 1px solid rgba(184, 70, 52, 0.42);
  outline-offset: 2px;
  border-color: rgba(184, 70, 52, 0.5);
  border-radius: 8px;
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(184, 70, 52, 0.08);
}

.field.has-validation-error .input,
.field.has-validation-error .select,
.field.has-validation-error textarea,
.quick-client-search.has-validation-error .input,
.membership-schedule-fields .field.has-validation-error .input,
.membership-schedule-fields .field.has-validation-error .select,
.appointment-time-field.has-validation-error .appointment-time-control {
  border-color: var(--danger);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(184, 70, 52, 0.08);
}

.membership-package-choice.has-validation-error .membership-package-card,
.membership-location-choice.has-validation-error .membership-location-card > span,
.membership-weekday-field.has-validation-error .weekday-choice {
  border-color: rgba(184, 70, 52, 0.44);
}

button.is-validation-pending {
  opacity: 1;
}

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

.choice-grid label,
.check-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.choice-grid label:has(input:checked),
.check-row:has(input:checked) {
  border-color: rgba(8, 116, 127, 0.48);
  background: #eef8f8;
  box-shadow: inset 0 0 0 1px rgba(8, 116, 127, 0.1);
}

.check-row {
  grid-column: 1 / -1;
  align-items: flex-start;
  line-height: 1.45;
}

.public-form-panel .check-row[data-validation-label="Termenii si Conditiile si Regulamentul bazinului"] {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: start;
  padding: 10px 118px 10px 12px;
}

.public-form-panel .check-row[data-validation-label="Termenii si Conditiile si Regulamentul bazinului"] input[type="checkbox"] {
  margin-top: 4px;
}

.public-form-panel .check-row[data-validation-label="Termenii si Conditiile si Regulamentul bazinului"] > .required-pill {
  position: absolute;
  top: 10px;
  right: 12px;
}

.remember-row {
  padding: 10px 12px;
}

.remember-copy {
  display: grid;
  gap: 2px;
}

.remember-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full,
.form-section.full,
.form-grid > .full {
  grid-column: 1 / -1;
}

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

.is-required-field .label,
.is-required-field legend,
.is-required-field .quick-client-search-title {
  color: var(--text);
  font-weight: 900;
}

.has-required-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.required-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(66, 104, 178, 0.32);
  border-radius: 999px;
  background: #fff0ea;
  color: #9f3f2d;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.field.is-required-field .input,
.field.is-required-field .select,
.field.is-required-field textarea,
.quick-client-search.is-required-field .input,
.appointment-time-field.is-required-field .appointment-time-control {
  border-color: rgba(8, 116, 127, 0.34);
  background: #fbfffe;
  box-shadow: inset 0 0 0 1px rgba(8, 116, 127, 0.05);
}

.membership-package-choice.is-required-field,
.membership-location-choice.is-required-field,
.membership-weekday-field.is-required-field {
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 8px;
  background: #fbfffe;
}

.field.is-required-field.has-validation-error .input,
.field.is-required-field.has-validation-error .select,
.field.is-required-field.has-validation-error textarea,
.quick-client-search.is-required-field.has-validation-error .input,
.appointment-time-field.is-required-field.has-validation-error .appointment-time-control {
  border-color: var(--danger);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(184, 70, 52, 0.08);
}

.input,
.select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: auto;
}

.select option {
  background: #fff;
  color: var(--text);
}

.select option.trainer-status-green {
  background: #ecfdf3;
  color: #0f5132;
}

.select option.trainer-status-yellow {
  background: #fff8d9;
  color: #7a4f00;
}

.select option.trainer-status-red {
  background: #fff0f0;
  color: #9f2a1f;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 116, 127, 0.1);
  outline: 0;
}

.input-with-unit {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-with-unit:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 116, 127, 0.1);
}

.input-with-unit .input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-with-unit .input:focus {
  box-shadow: none;
}

.input-unit {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  background: #f8fbfc;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.appointment-window-preview {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: #eef8f8;
  color: var(--brand-dark);
  font-weight: 800;
}

.reschedule-date-badge {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.reschedule-date-badge span {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reschedule-date-badge strong {
  min-width: 0;
  font-size: 0.96rem;
  font-weight: 950;
}

.reschedule-date-badge.is-old {
  border-color: #14a86f;
  background: #e8fff5;
  color: #087047;
  box-shadow: inset 0 0 0 1px rgba(20, 168, 111, 0.18);
}

.reschedule-date-badge.is-new {
  border-color: #d93624;
  background: #c54434;
  color: #fff;
  box-shadow: 0 10px 24px rgba(197, 68, 52, 0.22);
}

.reschedule-date-badge.is-new span {
  color: rgba(255, 255, 255, 0.86);
}

.appointment-reschedule-form.form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.appointment-reschedule-form .has-required-pill {
  align-items: flex-start;
  justify-content: flex-start;
}

.appointment-reschedule-form .appointment-window-preview {
  display: grid;
  grid-column: 1 / -1;
  justify-items: start;
  width: 100%;
  line-height: 1.3;
  white-space: normal;
}

.appointment-reschedule-form > button {
  justify-self: start;
}

.appointment-time-field {
  min-width: 0;
}

.appointment-time-control {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) 38px minmax(62px, auto) 38px;
  gap: 8px;
  align-items: center;
}

.appointment-time-control.is-fixed-duration {
  grid-template-columns: minmax(140px, 1fr);
}

.appointment-time-control .select {
  min-width: 0;
}

.membership-location-package-selector {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.membership-location-choice {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.membership-location-choice legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.membership-location-card {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.membership-location-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.membership-location-card > span {
  position: relative;
  display: grid;
  grid-template-columns: minmax(128px, 35%) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding-right: 66px;
  overflow: hidden;
  border: 1px solid rgba(213, 226, 231, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 63, 120, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.membership-location-card img {
  grid-row: 1 / 4;
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: var(--surface);
}

.membership-location-card strong,
.membership-location-card small,
.membership-location-card em {
  min-width: 0;
  padding: 0;
}

.membership-location-card strong {
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1.15;
}

.membership-location-card small {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.membership-location-card em {
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.25;
}

.membership-location-card:hover > span {
  border-color: rgba(66, 104, 178, 0.48);
  transform: translateY(-1px);
}

.membership-location-card input:focus-visible + span {
  outline: 3px solid rgba(66, 104, 178, 0.22);
  outline-offset: 2px;
}

.membership-location-card input:checked + span {
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(32, 63, 120, 0.14);
}

.membership-location-card input:checked + span::after {
  content: "Ales";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.is-location-hidden {
  display: none !important;
}

.membership-package-choice {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.public-intake-package-choice {
  min-width: 0;
}

.public-intake-package-choice .membership-package-choice {
  row-gap: 12px;
}

.membership-session-choice .membership-bundle-price-note {
  display: block;
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  justify-self: start;
}

.public-sibling-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(58, 97, 177, 0.28);
  border-radius: 8px;
  background: #f4f8ff;
}

.public-sibling-summary[hidden],
.public-sibling-modal[hidden] {
  display: none;
}

.public-sibling-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.public-sibling-summary span,
.public-sibling-summary small {
  color: var(--muted);
}

.public-sibling-summary strong {
  overflow-wrap: anywhere;
}

.public-sibling-modal {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-sibling-modal.is-enhanced {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: rgba(19, 42, 53, 0.54);
}

.public-sibling-dialog {
  display: grid;
  align-content: start;
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  gap: 14px;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(19, 42, 53, 0.28);
}

.public-sibling-dialog > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: start;
}

.public-sibling-dialog h3,
.public-sibling-dialog p {
  margin: 0;
}

.public-sibling-dialog h3 {
  margin-top: 3px;
  font-size: 1.2rem;
}

.public-sibling-dialog header p {
  margin-top: 5px;
  color: var(--muted);
}

.public-sibling-close {
  display: none;
}

.public-sibling-modal.is-enhanced .public-sibling-close {
  display: inline-grid;
}

.public-sibling-fields {
  gap: 12px;
}

.public-sibling-fields[hidden] {
  display: none;
}

.public-sibling-account-picker {
  display: grid;
  gap: 12px;
}

.public-sibling-primary-client {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
}

.public-sibling-primary-client span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.public-sibling-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.public-form-panel .form-step-membership {
  gap: 12px;
}

.membership-package-choice legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.membership-package-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(213, 226, 231, 0.95);
  border-radius: 8px;
  background: #fff;
}

.membership-package-card.is-summer,
.membership-package-card.is-group {
  border-color: rgba(66, 104, 178, 0.26);
  background: #f6f9ff;
  color: var(--brand-dark);
}

.membership-package-card.is-personal,
.membership-package-card.is-individual {
  border-color: rgba(66, 104, 178, 0.26);
  background: #f6f9ff;
  color: var(--brand-dark);
}

.membership-package-card.is-recovery {
  border-color: rgba(66, 104, 178, 0.26);
  background: #f6f9ff;
  color: var(--brand-dark);
}

.membership-package-card.is-performance {
  border-color: rgba(194, 159, 34, 0.42);
  background: #fff8cf;
}

.membership-package-card.is-leisure {
  border-color: #087d43;
  background: #159957;
  color: #fff;
}

.membership-package-card.is-empty {
  opacity: 0.72;
}

.membership-package-card.is-custom-membership {
  border-color: rgba(8, 116, 127, 0.28);
  background: #f8fcfc;
}

.membership-package-card-head {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  justify-content: space-between;
}

.membership-package-card-head strong {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 900;
}

.membership-package-card-head span {
  color: currentColor;
  opacity: 0.82;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.membership-session-options {
  display: grid;
  gap: 6px;
}

.membership-custom-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  text-align: left;
  cursor: pointer;
}

.membership-custom-trigger span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.membership-custom-trigger b {
  font-size: 1.02rem;
  font-weight: 950;
}

.membership-custom-trigger small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.membership-custom-trigger .ui-icon {
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.membership-custom-trigger[aria-expanded="true"] .ui-icon {
  transform: rotate(180deg);
}

.membership-custom-package-panel {
  display: grid;
  gap: 8px;
}

.membership-session-options.is-custom-options {
  gap: 8px;
}

.membership-session-choice.is-custom-choice > span {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 12px 42px 12px 12px;
}

.membership-session-choice.is-custom-choice .membership-session-type {
  grid-column: 1;
  font-size: 0.9rem;
}

.membership-session-choice.is-custom-choice small {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: normal;
}

.membership-custom-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.membership-custom-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.membership-custom-fields .field {
  min-width: 0;
}

.membership-category-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 116px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.membership-category-intro p {
  margin: 0;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.membership-category-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: currentColor;
}

.membership-category-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.membership-category-details {
  display: grid;
  gap: 8px;
}

.membership-category-details summary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

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

.membership-category-details summary .ui-icon {
  width: 18px;
  height: 18px;
}

.membership-category-details summary .ui-icon:last-child {
  margin-left: auto;
  transition: transform 0.18s ease;
}

.membership-category-details[open] summary .ui-icon:last-child {
  transform: rotate(180deg);
}

.membership-package-card.is-summer .membership-category-details summary,
.membership-package-card.is-group .membership-category-details summary {
  color: var(--brand);
}

.membership-package-card.is-personal .membership-category-details summary,
.membership-package-card.is-individual .membership-category-details summary,
.membership-package-card.is-recovery .membership-category-details summary {
  color: var(--brand);
}

.membership-package-card.is-leisure .membership-category-details summary {
  color: #159957;
}

.membership-package-card.is-performance .membership-category-details summary {
  color: #8a720c;
}

.membership-session-choice {
  position: relative;
  min-width: 0;
}

.membership-session-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.membership-session-choice > span {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  min-height: 74px;
  padding: 9px 34px 9px 10px;
  border: 1px solid rgba(213, 226, 231, 0.95);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.membership-package-card.is-summer .membership-session-choice > span,
.membership-package-card.is-group .membership-session-choice > span,
.membership-package-card.is-personal .membership-session-choice > span,
.membership-package-card.is-individual .membership-session-choice > span,
.membership-package-card.is-recovery .membership-session-choice > span,
.membership-package-card.is-leisure .membership-session-choice > span {
  border-color: rgba(66, 104, 178, 0.2);
  background: #fff;
  color: var(--brand-dark);
}

.membership-session-choice input:checked + span {
  border-color: var(--brand);
  background: #eef4ff;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.membership-session-choice input:focus-visible + span {
  outline: 3px solid rgba(8, 116, 127, 0.22);
  outline-offset: 2px;
}

.membership-session-choice input:disabled + span {
  cursor: not-allowed;
  opacity: 0.54;
}

.membership-selected-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.membership-selected-badge .ui-icon {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.membership-session-choice input:checked + span .membership-selected-badge {
  opacity: 1;
  transform: scale(1);
}

.membership-package-card.is-summer .membership-selected-badge,
.membership-package-card.is-group .membership-selected-badge {
  color: var(--brand);
}

.membership-package-card.is-personal .membership-selected-badge,
.membership-package-card.is-individual .membership-selected-badge,
.membership-package-card.is-recovery .membership-selected-badge {
  color: var(--brand);
}

.membership-package-card.is-leisure .membership-selected-badge {
  color: #159957;
}

.membership-package-card.is-performance .membership-selected-badge {
  color: #8a720c;
}

.membership-package-card.is-performance .membership-session-choice input:checked + span {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  box-shadow: inset 0 0 0 3px #fff;
}

.membership-package-card.is-other .membership-session-choice input:checked + span {
  border-color: transparent;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 3px var(--brand);
}

.membership-session-type {
  display: block;
  grid-column: 1 / -1;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.25;
}

.membership-session-choice strong {
  color: inherit;
  font-size: 0.98rem;
  line-height: 1.1;
}

.membership-session-choice small {
  color: inherit;
  opacity: 0.86;
  justify-self: end;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.membership-session-choice .membership-package-schedule-note {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
}

.membership-session-choice input:not(:checked) + span .membership-package-schedule-note {
  display: none;
}

.membership-session-boxes {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 3px;
}

.membership-session-boxes i,
.membership-session-boxes em {
  display: inline-flex;
  width: 7px;
  height: 7px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: currentColor;
  color: var(--brand);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 900;
}

.membership-session-boxes em {
  width: auto;
  min-width: 15px;
  padding: 0 3px;
  background: rgba(8, 116, 127, 0.12);
  color: var(--brand-dark);
}

.membership-package-card.is-summer .membership-session-boxes i,
.membership-package-card.is-group .membership-session-boxes i,
.membership-package-card.is-personal .membership-session-boxes i,
.membership-package-card.is-individual .membership-session-boxes i,
.membership-package-card.is-recovery .membership-session-boxes i,
.membership-package-card.is-leisure .membership-session-boxes i {
  color: var(--brand);
}

.membership-package-card.is-summer .membership-session-choice input:checked + span .membership-session-boxes i,
.membership-package-card.is-group .membership-session-choice input:checked + span .membership-session-boxes i {
  color: var(--brand);
}

.membership-package-card.is-personal .membership-session-choice input:checked + span .membership-session-boxes i,
.membership-package-card.is-individual .membership-session-choice input:checked + span .membership-session-boxes i,
.membership-package-card.is-recovery .membership-session-choice input:checked + span .membership-session-boxes i {
  color: var(--brand);
}

.membership-package-card.is-leisure .membership-session-choice input:checked + span .membership-session-boxes i {
  color: var(--brand);
}

.membership-package-card.is-performance .membership-session-boxes i {
  color: #c29f22;
}

.membership-package-empty {
  margin: 0;
}

.membership-client-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.membership-client-picker .section-header {
  margin-bottom: 0;
}

.membership-client-picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 12px;
  min-width: 0;
}

.membership-client-search {
  min-height: 100%;
}

.membership-add-client-card {
  display: grid;
  min-width: 0;
  min-height: 170px;
  place-items: center;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border: 1px dashed rgba(8, 116, 127, 0.46);
  border-radius: 8px;
  background: #f2fbfb;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
}

.membership-add-client-card:hover {
  border-style: solid;
  background: #e8f7f7;
}

.membership-add-client-card .ui-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.membership-add-client-card span {
  color: var(--brand-dark);
  font-size: 1.02rem;
  font-weight: 900;
}

.membership-add-client-card small {
  max-width: 22ch;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.membership-add-client-card-wide {
  width: 100%;
  min-height: 132px;
}

.membership-inline-client-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #f8fbfb;
}

.membership-inline-client-form[hidden] {
  display: none;
}

.membership-inline-client-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.membership-inline-client-head h3 {
  margin: 0;
}

.membership-client-create-form {
  min-width: 0;
}

.membership-schedule-fields {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(280px, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.membership-schedule-builder-head {
  grid-column: 1 / -1;
  min-width: 0;
}

.membership-schedule-builder-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.membership-schedule-policy-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.membership-schedule-policy-note[hidden] {
  display: none;
}

.membership-schedule-fields.is-schedule-builder .membership-weekday-field {
  grid-column: 2;
}

.membership-schedule-fields.is-schedule-builder .membership-start-field {
  grid-column: 1;
}

.membership-schedule-fields.is-schedule-builder .membership-day-time-panel {
  margin-top: 2px;
}

.membership-schedule-fields.is-schedule-builder .membership-day-time-list {
  gap: 10px;
}

.membership-weekday-field,
.membership-window-preview,
.membership-day-time-panel,
.membership-calendar-preview,
.membership-trainer-field,
.membership-schedule-note {
  grid-column: 1 / -1;
}

.membership-time-field {
  min-width: 0;
}

.membership-trainer-label-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  position: relative;
}

.membership-trainer-label-row .label {
  margin: 0;
}

.membership-trainer-info.inline-info-popover {
  position: static;
}

.membership-trainer-info.inline-info-popover > div {
  left: 0;
  right: auto;
  width: min(340px, 100%, calc(100vw - 32px));
}

.membership-trainer-info.is-warning summary {
  border-color: rgba(168, 106, 22, 0.46);
  background: #fff8eb;
  color: #7a4a09;
}

.membership-trainer-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.membership-trainer-picker {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.membership-trainer-picker-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.membership-trainer-picker-button span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: left;
}

.membership-trainer-picker-button:focus-visible {
  outline: 3px solid rgba(8, 116, 127, 0.18);
  outline-offset: 2px;
}

.membership-trainer-picker-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.membership-trainer-picker[data-status-level="green"] .membership-trainer-picker-button {
  border-color: rgba(25, 135, 84, 0.35);
  background: #f0fbf5;
}

.membership-trainer-picker[data-status-level="yellow"] .membership-trainer-picker-button {
  border-color: rgba(184, 134, 11, 0.35);
  background: #fff9df;
}

.membership-trainer-picker[data-status-level="red"] .membership-trainer-picker-button {
  border-color: rgba(198, 57, 43, 0.38);
  background: #fff2f1;
}

body.membership-trainer-sheet-open {
  overflow: hidden;
}

.membership-trainer-picker-menu {
  position: fixed;
  z-index: 190;
  inset: 0;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.membership-trainer-sheet-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(15, 48, 61, 0.22);
}

.membership-trainer-empty {
  display: none;
}

.membership-trainer-sheet-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  width: 50vw;
  min-width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  overflow: hidden;
  border-left: 1px solid rgba(213, 226, 231, 0.95);
  background: #fff;
  box-shadow: -18px 0 42px rgba(15, 48, 61, 0.2);
}

.membership-trainer-sheet-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.membership-trainer-sheet-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.membership-trainer-sheet-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(8, 116, 127, 0.18);
  background: #f8fbfc;
  color: var(--brand-dark);
  font-size: 0.82rem;
  box-shadow: none;
}

.membership-trainer-search {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.membership-trainer-search span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.membership-trainer-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}

.membership-trainer-choice-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 3px 1px 1px;
  overscroll-behavior: contain;
}

.membership-trainer-empty:not([hidden]) {
  display: block;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(15, 48, 61, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.membership-trainer-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-items: stretch;
  justify-content: stretch;
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.membership-trainer-choice:hover,
.membership-trainer-choice.is-selected {
  box-shadow: inset 0 0 0 1px rgba(8, 116, 127, 0.18);
}

.membership-trainer-choice-main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.membership-trainer-choice-main strong,
.membership-trainer-choice-main em,
.membership-trainer-choice small {
  min-width: 0;
}

.membership-trainer-choice-main strong {
  flex: 0 1 auto;
  width: auto;
  max-width: 65%;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  text-align: left;
  overflow-wrap: anywhere;
  line-height: 1.22;
}

.membership-trainer-choice-main em {
  display: inline-flex;
  max-width: 45%;
  align-items: center;
  flex: 0 1 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 48, 61, 0.08);
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.membership-trainer-choice small {
  display: block;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15, 48, 61, 0.06);
  color: var(--muted);
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.membership-trainer-choice.is-green {
  border-color: rgba(25, 135, 84, 0.28);
  background: #f0fbf5;
}

.membership-trainer-choice.is-green .membership-trainer-choice-main em {
  background: #198754;
  color: #fff;
}

.membership-trainer-choice.is-yellow {
  border-color: rgba(184, 134, 11, 0.32);
  background: #fff9df;
}

.membership-trainer-choice.is-yellow .membership-trainer-choice-main em {
  background: #f0b429;
  color: #533300;
}

.membership-trainer-choice.is-red {
  border-color: rgba(198, 57, 43, 0.34);
  background: #fff2f1;
}

.membership-trainer-choice.is-red .membership-trainer-choice-main em {
  background: #c0392b;
  color: #fff;
}

@media (max-width: 640px) {
  body.membership-trainer-sheet-open {
    overflow: hidden;
  }

  .membership-trainer-picker-button {
    min-height: 50px;
    align-items: flex-start;
  }

  .membership-trainer-picker-menu {
    position: fixed;
    z-index: 190;
    inset: 0;
    display: block;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .membership-trainer-sheet-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(15, 48, 61, 0.34);
  }

  .membership-trainer-sheet-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    max-height: min(78vh, 640px);
    max-height: min(78dvh, 640px);
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
    overflow: hidden;
    border: 1px solid rgba(213, 226, 231, 0.95);
    border-left: 1px solid rgba(213, 226, 231, 0.95);
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 48, 61, 0.22);
  }

  .membership-trainer-sheet-head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .membership-trainer-sheet-head strong {
    min-width: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
  }

  .membership-trainer-sheet-close {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border-color: rgba(8, 116, 127, 0.18);
    background: #f8fbfc;
    color: var(--brand-dark);
    font-size: 0.82rem;
    box-shadow: none;
  }

  .membership-trainer-search {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .membership-trainer-search span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
  }

  .membership-trainer-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 16px;
  }

  .membership-trainer-choice-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    grid-auto-rows: max-content;
    gap: 8px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 2px 2px 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .membership-trainer-choice {
    display: block;
    align-self: start;
    height: auto;
    min-height: 0;
    padding: 11px 12px;
    overflow: visible;
    text-align: left;
  }

  .membership-trainer-choice-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 7px;
    align-items: start;
  }

  .membership-trainer-choice-main strong {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
  }

  .membership-trainer-choice-main em {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    line-height: 1.25;
  }

  .membership-trainer-choice small {
    padding: 8px;
    margin-top: 7px;
  }

  .membership-trainer-empty {
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(15, 48, 61, 0.06);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
  }

  .membership-trainer-empty:not([hidden]) {
    display: block;
  }
}

.membership-past-session-option > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.membership-past-session-option small {
  color: var(--muted);
  font-weight: 600;
}

.weekday-choice-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 6px;
}

.weekday-choice {
  position: relative;
  min-width: 0;
}

.weekday-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.weekday-choice span {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.weekday-choice input:focus-visible + span {
  outline: 3px solid rgba(8, 116, 127, 0.22);
  outline-offset: 2px;
}

.weekday-choice input:checked + span {
  border-color: rgba(8, 116, 127, 0.58);
  background: rgba(8, 116, 127, 0.1);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(8, 116, 127, 0.16);
}

.membership-day-time-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.membership-day-time-toggle {
  align-items: center;
  justify-self: start;
  max-width: 100%;
  margin: 0;
}

.membership-day-time-toggle input {
  flex: 0 0 auto;
}

.membership-day-time-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.membership-day-time-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.membership-day-time-row-head,
.membership-day-time-slot {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
}

.membership-day-time-row-head > span {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.membership-day-time-slots {
  display: grid;
  gap: 8px;
}

.membership-day-time-slot {
  grid-template-columns: minmax(180px, 260px) minmax(120px, 1fr) auto;
}

.membership-day-time-slot .select {
  width: 100%;
  min-width: 0;
}

.membership-day-time-slot small {
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
}

.membership-schedule-info {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

.membership-day-time-add,
.membership-day-time-remove {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 0.86rem;
}

.membership-day-time-add {
  justify-self: start;
}

.membership-calendar-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid rgba(213, 226, 231, 0.9);
  border-radius: 8px;
  background: #fff;
}

.membership-schedule-fields.is-public-schedule-builder .membership-calendar-preview.is-placeholder {
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.membership-schedule-fields.is-public-schedule-builder .membership-calendar-placeholder {
  display: block;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
}

.public-pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 24, 36, 0.62);
}

.public-pdf-modal-backdrop[hidden] {
  display: none;
}

.public-pdf-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(940px, 100%);
  height: min(88vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(185, 214, 222, 0.9);
  border-radius: 10px;
  background: #f4f8fb;
  box-shadow: 0 26px 70px rgba(8, 24, 36, 0.28);
}

.public-pdf-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(213, 226, 231, 0.95);
  background: #f8fbfd;
}

.public-pdf-modal-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.public-pdf-modal-brand img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.public-pdf-modal-brand p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-pdf-modal-brand h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.12;
}

.public-pdf-modal-brand span {
  display: block;
  margin-top: 3px;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.public-pdf-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.public-pdf-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 16px;
  background: #eef5f7;
}

.public-pdf-page-shell {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: calc(var(--public-pdf-page-width, 100%) + 16px);
  min-height: calc(var(--public-pdf-page-height, 120px) + 16px);
  padding: 8px;
  border: 1px solid rgba(185, 214, 222, 0.86);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.public-pdf-page {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.public-pdf-message {
  align-self: start;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(185, 214, 222, 0.9);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 1.35;
}

.public-pdf-message.is-error {
  border-color: rgba(210, 70, 45, 0.35);
  background: #fff4ef;
  color: #9c2f1f;
}

.membership-preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(8, 116, 127, 0.08);
  color: var(--brand-dark);
}

.membership-preview-summary strong {
  font-size: 0.95rem;
}

.membership-preview-summary span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.membership-preview-note {
  flex: 1 1 100%;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.membership-preview-summary.is-error {
  background: rgba(184, 70, 52, 0.1);
  color: var(--danger);
}

.membership-expiry-highlight {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 116, 127, 0.28);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf8f7, #ffffff);
  color: var(--brand-dark);
}

.membership-expiry-highlight span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.membership-expiry-highlight strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.membership-expiry-highlight small {
  color: var(--muted);
  font-weight: 750;
}

.membership-expiry-highlight.is-pending {
  border-color: rgba(168, 106, 22, 0.28);
  border-left-color: var(--warning);
  background: #fff8eb;
  color: #7a4a09;
}

.membership-calendar-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

@media (max-width: 1220px) {
  .membership-calendar-months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.membership-calendar-month {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.membership-calendar-month h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.94rem;
}

.membership-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  gap: 4px;
}

.membership-calendar-weekdays {
  margin-bottom: 5px;
}

.membership-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.membership-calendar-day {
  position: relative;
  display: grid;
  min-height: 46px;
  align-content: start;
  gap: 1px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
}

button.membership-calendar-day {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: help;
}

.membership-calendar-day.has-tooltip:focus-visible {
  outline: 3px solid rgba(66, 104, 178, 0.28);
  outline-offset: 2px;
}

.membership-calendar-day strong {
  color: var(--text);
  font-size: 0.82rem;
}

.membership-calendar-day em {
  max-width: 100%;
  overflow: hidden;
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-calendar-day small {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

.membership-calendar-day.has-session {
  border-color: rgba(8, 116, 127, 0.44);
  background: rgba(8, 116, 127, 0.09);
}

.membership-calendar-day.is-completed {
  border-color: rgba(20, 109, 80, 0.5);
  background: rgba(20, 109, 80, 0.12);
}

.membership-calendar-day.is-completed small {
  background: #146d50;
}

.membership-calendar-day.is-completed strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(20, 109, 80, 0.72);
}

.membership-calendar-day.is-absent-consumed {
  border-color: rgba(184, 70, 52, 0.62);
  background: #fff3f1;
}

.membership-calendar-day.is-absent-consumed small {
  background: var(--danger);
}

.membership-calendar-day.is-absent-consumed strong {
  color: #963927;
  text-decoration: none;
}

.membership-calendar-day.is-rescheduled {
  border-color: rgba(185, 74, 48, 0.54);
  background: #fff1ed;
}

.membership-calendar-day.is-rescheduled small {
  background: var(--danger);
}

.membership-calendar-day.is-rescheduled-target {
  border-color: rgba(20, 128, 88, 0.62);
  background: #eafbf2;
}

.membership-calendar-day.is-rescheduled-target small {
  background: #16845c;
}

.membership-calendar-day.is-postponed-source {
  border-color: rgba(168, 106, 22, 0.58);
  background: #fff4e4;
}

.membership-calendar-day.is-postponed-target {
  border-color: rgba(168, 106, 22, 0.62);
  background: #fff8eb;
}

.membership-calendar-day.is-postponed small {
  background: var(--warning);
}

.membership-calendar-day.is-appointment {
  border-color: rgba(66, 104, 178, 0.4);
  background: rgba(66, 104, 178, 0.09);
}

.membership-calendar-day.is-appointment small {
  background: var(--brand);
}

.membership-calendar-day.is-exception {
  border-color: rgba(185, 74, 48, 0.42);
  background: #fff4f1;
}

.membership-calendar-day.is-exception small {
  background: var(--danger);
}

.membership-calendar-day.has-extra-activity {
  box-shadow: inset 0 0 0 1px rgba(8, 116, 127, 0.18);
}

.membership-calendar-day.is-empty {
  visibility: hidden;
}

.client-membership-cards {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.client-membership-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fbfb);
}

.client-membership-profile-summary {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(58, 97, 177, 0.42);
  border-radius: 8px;
  overflow: hidden;
}

.client-membership-profile-summary .section-header {
  margin: 0;
}

.client-membership-profile-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.18;
}

.client-membership-profile-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-membership-profile-summary .membership-payment-summary {
  margin-top: 8px;
}

.client-membership-profile-summary .membership-session-ledger {
  margin-top: 8px;
}

.client-membership-profile-summary .client-guardian-meta {
  color: rgba(255, 255, 255, 0.88);
}

.client-membership-profile-summary .membership-session-ledger-extra {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.client-membership-actions {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 8px;
  background: #fbfefe;
}

.client-membership-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
}

.client-membership-session-request > summary::-webkit-details-marker {
  display: none;
}

.client-membership-action-button {
  min-height: 36px;
}

.client-membership-action-button .ui-icon {
  width: 16px;
  height: 16px;
}

.client-membership-action-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1305;
  display: flex;
  justify-content: flex-end;
  background: rgba(12, 31, 44, 0.3);
  backdrop-filter: blur(4px);
}

.client-membership-action-backdrop[hidden] {
  display: none;
}

.client-membership-action-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: clamp(640px, 46vw, 920px);
  max-width: calc(100vw - 48px);
  min-width: 0;
  height: 100vh;
  max-height: 100vh;
  padding: 26px;
  overflow-y: auto;
  border-left: 1px solid rgba(124, 160, 177, 0.34);
  background: var(--panel);
  box-shadow: -24px 0 60px rgba(25, 57, 72, 0.2);
}

.client-membership-action-drawer-head {
  display: grid;
  gap: 8px;
  padding-right: 62px;
}

.client-membership-action-drawer-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.client-membership-action-drawer-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.client-membership-action-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.client-membership-action-form {
  min-width: 0;
}

.client-membership-session-list {
  display: grid;
  gap: 8px;
}

.client-membership-session-request {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(124, 160, 177, 0.24);
  border-radius: 8px;
  background: #fff;
}

.client-membership-session-request > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
}

.client-membership-session-request > summary span,
.client-membership-session-request > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-membership-session-request .attendance-reschedule-form {
  margin-top: 10px;
}

.client-membership-calendar {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.client-membership-card .client-membership-calendar .membership-calendar-months {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
}

.client-membership-card .client-membership-calendar .membership-calendar-month {
  width: 100%;
}

.client-membership-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.client-membership-calendar-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.client-membership-calendar-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(8, 116, 127, 0.32);
}

.client-membership-calendar-legend .legend-planned {
  background: var(--brand);
}

.client-membership-calendar-legend .legend-completed {
  background: #146d50;
}

.client-membership-calendar-legend .legend-absent-consumed {
  background: var(--danger);
}

.client-membership-calendar-legend .legend-appointment {
  background: var(--brand);
}

.client-membership-calendar-legend .legend-exception {
  background: var(--danger);
}

.client-membership-calendar-legend .legend-rescheduled {
  background: var(--danger);
}

.client-membership-calendar-legend .legend-rescheduled-target {
  background: #16845c;
}

.client-membership-calendar-legend .legend-postponed {
  background: var(--warning);
}

.client-membership-calendar-legend .legend-open {
  border: 1px solid rgba(20, 128, 88, 0.85);
  border-radius: 3px;
  background: #effcf6;
}

.client-membership-upcoming {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(66, 104, 178, 0.16);
  border-radius: 8px;
  background: #f7faff;
}

.client-membership-upcoming-title {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-membership-upcoming-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 8px;
}

.client-membership-upcoming-item {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(8, 116, 127, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.client-membership-upcoming-item time,
.client-membership-upcoming-item > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.client-membership-upcoming-item time {
  padding-right: 8px;
  border-right: 1px solid #e4edf5;
}

.client-membership-upcoming-item time span,
.client-membership-upcoming-item > div span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-membership-upcoming-item time strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
  line-height: 1.2;
}

.client-membership-upcoming-item > div strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .client-membership-upcoming-list,
  .client-membership-upcoming-item {
    grid-template-columns: 1fr;
  }

  .client-membership-upcoming-item time {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding-right: 0;
    padding-bottom: 6px;
    border-right: 0;
    border-bottom: 1px solid #e4edf5;
  }
}

.membership-profile-session-calendar {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.membership-profile-session-calendar .membership-calendar-months {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (max-width: 980px) {
  .membership-profile-session-calendar .membership-calendar-months {
    grid-template-columns: 1fr;
  }
}

.membership-calendar-preview.membership-profile-session-map {
  background: #f8fcfb;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-planned-open {
  border-color: rgba(20, 128, 88, 0.58);
  background: #f2fff8;
  box-shadow: inset 0 0 0 1px rgba(20, 128, 88, 0.18);
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-planned-open strong {
  color: #0d6d4c;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-completed {
  border-color: rgba(185, 74, 48, 0.58);
  background: #fff2ee;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-completed small {
  background: var(--danger);
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-completed strong {
  color: #803021;
  text-decoration: none;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-absent-consumed {
  border-color: rgba(185, 74, 48, 0.72);
  background: #ffe9e3;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-absent-consumed small {
  background: var(--danger);
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-absent-consumed strong {
  color: #8f2f21;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-rescheduled-source {
  border-color: rgba(185, 74, 48, 0.72);
  background: #ffe9e3;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-rescheduled-source small {
  background: var(--danger);
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-rescheduled-source strong {
  color: #8f2f21;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-rescheduled-target {
  border-color: rgba(20, 128, 88, 0.72);
  background: #e6fbf1;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-rescheduled-target small {
  background: #16845c;
}

.membership-calendar-preview.membership-profile-session-map .membership-calendar-day.is-rescheduled-target strong {
  color: #0d6d4c;
}

.membership-calendar-preview.membership-profile-session-map .client-membership-calendar-legend .legend-completed {
  background: var(--danger);
}

.membership-calendar-day *,
.membership-preview-summary *,
.weekday-choice span {
  min-width: 0;
}

.membership-calendar-floating-tooltip {
  position: fixed;
  z-index: 3200;
  display: grid;
  gap: 5px;
  width: max-content;
  max-width: min(340px, calc(100vw - 24px));
  padding: 11px 12px;
  border: 1px solid rgba(17, 52, 89, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 42px rgba(11, 30, 48, 0.22);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
  pointer-events: none;
}

.membership-calendar-floating-tooltip[hidden] {
  display: none;
}

.membership-calendar-floating-tooltip span {
  display: block;
}

.membership-calendar-floating-tooltip span:first-child {
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.membership-schedule-note {
  margin: 0;
  font-size: 0.88rem;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.field-help.is-warning {
  color: var(--warning);
  font-weight: 800;
}

.password-input {
  position: relative;
  display: block;
}

.password-input .input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: #effaf6;
  color: var(--brand-dark);
  box-shadow: none;
  transform: translateY(-50%);
}

.password-toggle:focus-visible {
  outline-offset: 0;
}

.password-icon {
  width: 20px;
  height: 20px;
}

.password-icon-eye-off,
.password-toggle[aria-pressed="true"] .password-icon-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-icon-eye-off {
  display: block;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.audit-log-table {
  min-width: 1080px;
  table-layout: fixed;
}

.audit-col-time {
  width: 138px;
}

.audit-col-action {
  width: 190px;
}

.audit-col-device {
  width: 170px;
}

.audit-col-user {
  width: 215px;
}

.audit-col-entity {
  width: 310px;
}

.audit-col-club {
  width: 125px;
}

.activity-log-table {
  min-width: 900px;
}

.activity-log-table .audit-col-user {
  width: 245px;
}

.audit-log-table th,
.audit-log-table td {
  padding-inline: 8px;
}

.audit-time-cell,
.audit-action-cell,
.audit-device-cell,
.audit-user-cell,
.audit-entity-cell,
.audit-club-cell {
  overflow-wrap: anywhere;
}

.audit-device-cell strong {
  color: var(--brand-dark);
  font-weight: 900;
}

.audit-action-stack {
  display: grid;
  gap: 5px;
  align-items: start;
}

.audit-financial-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.audit-financial-badge.is-risk {
  border-color: rgba(184, 70, 52, 0.34);
  background: #fff1ef;
  color: #963927;
}

.audit-financial-badge.is-gain {
  border-color: rgba(16, 132, 89, 0.32);
  background: #eaf9f2;
  color: #0b7a54;
}

.audit-financial-badge.is-neutral {
  border-color: rgba(59, 107, 182, 0.32);
  background: #eef5ff;
  color: #254f91;
}

.activity-user-moment-cell {
  display: grid;
  gap: 5px;
}

.activity-user-moment-time {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.activity-entity-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.activity-entity-primary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--brand-dark);
  font-weight: 900;
}

.activity-entity-id {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.activity-entity-title {
  color: var(--text);
  font-weight: 900;
  line-height: 1.28;
}

.activity-entity-title-link {
  display: inline;
}

.activity-entity-meta {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.activity-entity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-entity-links a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 8px;
  text-decoration: none;
}

.activity-card-list {
  display: grid;
  gap: 12px;
}

.activity-log-card {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(420px, 1.5fr) minmax(300px, 0.95fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fcfd 100%);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.activity-log-card::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 24px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(66, 104, 178, 0.28);
}

.activity-log-card.is-risk {
  border-left-color: var(--danger);
}

.activity-log-card.is-risk::before {
  background: var(--danger);
}

.activity-log-card.is-gain {
  border-left-color: var(--success);
}

.activity-log-card.is-gain::before {
  background: var(--success);
}

.activity-log-card.is-neutral {
  border-left-color: var(--muted);
}

.activity-log-card.is-neutral::before {
  background: var(--muted);
}

.activity-log-card.is-bulk {
  border-color: rgba(184, 70, 52, 0.34);
  border-left-color: var(--danger);
  background:
    linear-gradient(135deg, rgba(184, 70, 52, 0.13), rgba(255, 247, 231, 0.72)),
    #fff;
}

.activity-log-card.is-bulk::before {
  background: var(--danger);
  box-shadow:
    0 0 0 5px rgba(184, 70, 52, 0.12),
    0 0 0 1px rgba(184, 70, 52, 0.34);
}

.activity-card-actor,
.activity-card-change,
.activity-card-entity {
  min-width: 0;
  border: 1px solid rgba(186, 213, 223, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

.activity-log-card.is-bulk .activity-card-actor,
.activity-log-card.is-bulk .activity-card-change,
.activity-log-card.is-bulk .activity-card-entity {
  border-color: rgba(184, 70, 52, 0.26);
}

.activity-card-actor {
  display: grid;
  align-content: start;
  gap: 8px;
  background: rgba(247, 252, 253, 0.88);
}

.activity-card-actor .badge {
  width: fit-content;
}

.activity-actor-role-row {
  position: relative;
  display: flex;
  max-width: 100%;
  width: fit-content;
  align-items: center;
  gap: 6px;
}

.activity-context-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.activity-context-info {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  cursor: help;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  padding: 0;
}

.activity-context-tooltip {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: max-content;
  max-width: min(300px, calc(100vw - 42px));
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.28;
  opacity: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  pointer-events: none;
  transform: translateY(-3px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
}

.activity-context-tooltip-wrap:hover .activity-context-tooltip,
.activity-context-tooltip-wrap:focus-within .activity-context-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.activity-context-tooltip span {
  white-space: normal;
}

.activity-card-actor strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.18;
}

.activity-actor-email {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.activity-card-change {
  display: grid;
  align-content: start;
  gap: 10px;
}

.activity-card-action-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.activity-card-action-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.activity-card-action-title .ui-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--brand-dark);
  stroke-width: 2.6;
}

.activity-card-action-title strong {
  display: block;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.18;
}

.activity-card-action-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.activity-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.activity-change-list {
  display: grid;
  gap: 8px;
}

.activity-change-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 8px;
}

.activity-change-row.is-summary {
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
}

.activity-change-label {
  display: grid;
  align-content: center;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.16;
  text-transform: uppercase;
}

.activity-change-summary {
  min-width: 0;
  border: 1px solid rgba(66, 104, 178, 0.18);
  border-radius: 8px;
  background: #f4f9fc;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
  padding: 9px 10px;
}

.activity-change-value {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.activity-change-value.has-detail {
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 6px;
  align-items: center;
  padding-right: 7px;
}

.activity-change-value span {
  grid-column: 1 / -1;
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.activity-change-main {
  min-width: 0;
  color: inherit;
  font: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-change-info {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(66, 104, 178, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  padding: 0;
}

.activity-change-info:hover,
.activity-change-info:focus-visible {
  border-color: rgba(66, 104, 178, 0.52);
  background: #eef6ff;
  outline: 0;
}

.activity-change-value.is-before {
  border: 1px solid rgba(93, 112, 121, 0.20);
  background: #f5f8fa;
  color: #405765;
}

.activity-change-value.is-after {
  border: 1px solid rgba(66, 104, 178, 0.24);
  background: #eef6ff;
  color: var(--brand-dark);
}

.activity-change-arrow {
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 950;
}

.activity-card-entity {
  display: grid;
  align-content: start;
}

.activity-card-entity .activity-entity-meta {
  margin-top: 4px;
}

.activity-empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

@media (max-width: 1280px) {
  .activity-log-card {
    grid-template-columns: 235px minmax(340px, 1fr);
  }

  .activity-card-entity {
    grid-column: 1 / -1;
  }
}

th {
  background: #f6fafb;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f9fcfd;
}

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

.metric {
  display: grid;
  gap: 5px;
  position: relative;
  min-height: 94px;
  align-content: center;
  border-color: rgba(8, 116, 127, 0.16);
  background:
    linear-gradient(180deg, #ffffff, #f8fcfc);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.metric strong {
  color: var(--brand-dark);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1;
}

.calendar-board {
  display: grid;
  gap: 12px;
}

.calendar-summary,
.availability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calendar-summary > div,
.availability-strip > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.calendar-summary strong {
  color: var(--brand-dark);
  font-size: 1.35rem;
  line-height: 1.1;
}

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

.availability-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.availability-strip strong {
  overflow-wrap: anywhere;
}

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

.calendar-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
}

.calendar-item time {
  display: grid;
  grid-template-columns: 18px auto;
  column-gap: 7px;
  align-content: center;
  align-items: center;
  justify-items: center;
  min-height: 70px;
  border-radius: 8px;
  background: #eef8f8;
  color: var(--brand-dark);
  font-weight: 900;
}

.calendar-item time span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.calendar-item-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.calendar-item p {
  margin: 4px 0 0;
}

.status-confirmed {
  border-color: rgba(22, 130, 96, 0.35);
  background: #effaf6;
  color: #0f6549;
}

.status-scheduled {
  border-color: rgba(8, 116, 127, 0.26);
}

.status-cancelled {
  border-color: rgba(184, 70, 52, 0.32);
  background: #fff3f1;
  color: #963927;
}

.status-completed {
  border-color: rgba(40, 80, 111, 0.28);
  background: #eef4f7;
  color: #1d3e57;
}

.status-absent-consumed {
  border-color: rgba(184, 70, 52, 0.36);
  background: #fff3f1;
  color: #963927;
}

.badge.status-scheduled {
  border: 1px solid rgba(66, 104, 178, 0.32);
  background: #eef4ff;
  color: var(--brand-dark);
}

.badge.status-confirmed {
  border: 1px solid rgba(22, 130, 96, 0.38);
  background: #effaf6;
  color: #0f6549;
}

.badge.status-completed {
  border: 1px solid rgba(22, 130, 96, 0.38);
  background: #15885f;
  color: #fff;
}

.badge.status-absent-consumed {
  border: 1px solid rgba(184, 70, 52, 0.42);
  background: var(--danger);
  color: #fff;
}

.status-corrected {
  border-color: rgba(8, 116, 127, 0.28);
  background: #eef8fa;
  color: #0a5560;
}

.status-rescheduled {
  border-color: rgba(184, 70, 52, 0.34);
  background: #fff3f1;
  color: #963927;
}

.badge.status-cancelled,
.badge.status-rescheduled {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #fff;
}

.badge.status-corrected {
  border: 1px solid rgba(8, 116, 127, 0.32);
  background: #eef8fa;
  color: #0a5560;
}

.appointment-status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.appointment-status-stack .status-rescheduled {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.appointment-status-detail {
  display: grid;
  gap: 2px;
  color: #5f707a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.appointment-status-detail span {
  display: block;
}

.status-pending {
  border-color: rgba(66, 104, 178, 0.26);
  background: #f3f7ff;
  color: var(--brand-dark);
}

.attendance-viewer-status-badge {
  border-width: 1px;
  font-weight: 900;
}

.attendance-viewer-status-badge.is-bifat {
  border-color: rgba(22, 130, 96, 0.38);
  background: #15885f;
  color: #fff;
}

.attendance-viewer-status-badge.is-asteptare {
  border-color: rgba(179, 126, 14, 0.38);
  background: #fff3c4;
  color: #7a5207;
}

.client-request-table td {
  vertical-align: top;
}

.client-request-table {
  table-layout: fixed;
  width: 100%;
}

.client-request-table-col-request {
  width: 30%;
}

.client-request-table-col-details {
  width: 50%;
}

.client-request-table-col-parties {
  width: 20%;
}

.client-request-summary {
  display: grid;
  gap: 7px;
  min-width: 230px;
}

.client-request-summary-title {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.client-request-summary-badges,
.client-request-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.client-request-summary-line {
  color: var(--muted);
  font-weight: 700;
}

.client-request-summary-route {
  color: var(--brand-dark);
}

.client-request-summary-route a,
.client-request-summary-route strong {
  color: inherit;
  font-weight: 900;
}

.client-request-affected-person {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(124, 160, 177, 0.2);
}

.client-request-affected-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.client-request-affected-name {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
}

.client-request-affected-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.client-request-phone-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.client-request-phone-badge .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.client-request-table-details {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.client-request-detail-meta {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-request-document-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 8px;
  background: #f7faff;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.client-request-document-link .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.client-request-document-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-request-document-link small {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.client-request-table-details .client-request-brief {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 0;
}

.client-request-table-details .client-request-brief-person {
  grid-column: 1 / -1;
}

.client-request-table-details .client-request-manager-trigger {
  padding-top: 2px;
}

.client-request-detail-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-request-type-badge,
.client-request-date-badge,
.client-request-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
}

.client-request-type-badge {
  border: 1px solid rgba(66, 104, 178, 0.22);
  background: #eef4ff;
  color: var(--brand-dark);
}

.client-request-date-badge {
  border: 1px solid rgba(124, 160, 177, 0.28);
  background: #f4f8fb;
  color: var(--ink);
}

.client-request-status-approved {
  border-color: rgba(17, 126, 82, 0.28);
  background: #eefaf3;
  color: #0d6b46;
}

.client-request-status-rejected {
  border-color: rgba(190, 77, 64, 0.3);
  background: #fff1ef;
  color: #a0392d;
}

.client-request-status-resolved {
  border-color: rgba(17, 126, 82, 0.28);
  background: #eefaf3;
  color: #0d6b46;
}

.client-request-status-review {
  border-color: rgba(221, 170, 45, 0.42);
  background: #fff7dd;
  color: #7a5200;
}

.client-request-status-open {
  border-color: rgba(221, 170, 45, 0.42);
  background: #fff7dd;
  color: #7a5200;
}

.client-request-party-list {
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.client-request-party-list.is-large {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.client-request-party-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 3px;
  align-items: center;
  align-content: start;
  padding: 8px 10px;
  border: 1px solid rgba(124, 160, 177, 0.26);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--ink);
}

.client-request-party-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-request-party-card strong,
.client-request-party-card small {
  overflow-wrap: anywhere;
}

.client-request-party-role {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-request-party-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
}

.client-request-party-card.is-pending,
.client-request-party-badge.is-pending {
  background: #fff8e8;
  color: #775011;
  border-color: rgba(199, 142, 34, 0.28);
}

.client-request-party-card.is-accepted,
.client-request-party-badge.is-accepted {
  background: #eefaf3;
  color: #0d6b46;
  border-color: rgba(17, 126, 82, 0.26);
}

.client-request-party-card.is-declined,
.client-request-party-badge.is-declined {
  background: #fff1ef;
  color: #a0392d;
  border-color: rgba(190, 77, 64, 0.28);
}

.client-request-party-card.is-initiator,
.client-request-party-badge.is-initiator {
  background: #eef4ff;
  color: var(--brand-dark);
  border-color: rgba(66, 104, 178, 0.28);
}

.client-request-party-badge.is-muted {
  background: #f3f6f8;
  color: var(--muted);
}

.client-request-party-state-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #fff;
  font-size: 0;
  line-height: 1;
}

.client-request-party-state-icon::before,
.client-request-party-state-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.client-request-party-state-icon.is-pending {
  color: #d9c38e;
  border-color: #ead8a8;
  background: #fff9eb;
}

.client-request-party-state-icon.is-pending::before,
.client-request-party-state-icon.is-pending::after,
.client-request-party-state-icon.is-declined::before,
.client-request-party-state-icon.is-declined::after {
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.client-request-party-state-icon.is-pending::before,
.client-request-party-state-icon.is-declined::before {
  transform: rotate(45deg);
}

.client-request-party-state-icon.is-pending::after,
.client-request-party-state-icon.is-declined::after {
  transform: rotate(-45deg);
}

.client-request-party-state-icon.is-approved {
  color: #0d6b46;
  border-color: rgba(17, 126, 82, 0.4);
  background: #eefaf3;
}

.client-request-party-state-icon.is-approved::before {
  width: 13px;
  height: 7px;
  margin-top: -2px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(-45deg);
}

.client-request-party-state-icon.is-declined {
  color: #a0392d;
  border-color: rgba(190, 77, 64, 0.45);
  background: #fff1ef;
}

.client-request-party-response {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.client-request-party-response details {
  display: grid;
  gap: 8px;
}

.client-request-party-response summary {
  cursor: pointer;
}

.client-request-response-action summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(66, 104, 178, 0.32);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  list-style: none;
  box-shadow: 0 12px 28px rgba(66, 104, 178, 0.2);
}

.client-request-response-action summary::-webkit-details-marker {
  display: none;
}

.client-request-response-action summary::marker {
  content: "";
}

.client-request-response-action summary .ui-icon {
  width: 16px;
  height: 16px;
}

.client-request-manager-trigger {
  display: grid;
  gap: 7px;
  min-width: 150px;
  padding-top: 8px;
}

.client-request-manager-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 40px;
}

.client-request-manager-open .ui-icon {
  width: 17px;
  height: 17px;
}

.client-request-manager-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  background: rgba(12, 31, 44, 0.28);
}

.client-request-manager-backdrop[hidden] {
  display: none;
}

.client-request-manager-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: clamp(720px, 50vw, 1040px);
  max-width: calc(100vw - 48px);
  min-width: 0;
  height: 100vh;
  max-height: 100vh;
  padding: 26px;
  overflow-y: auto;
  border-left: 1px solid rgba(124, 160, 177, 0.34);
  background: var(--panel);
  box-shadow: -24px 0 60px rgba(25, 57, 72, 0.18);
}

.client-request-manager-head {
  display: grid;
  gap: 14px;
  padding-right: 62px;
}

.client-request-manager-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.client-request-manager-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.client-request-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.client-request-brief-person,
.client-request-brief-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-request-brief-card.is-long {
  grid-column: 1 / -1;
}

.client-request-brief-person {
  grid-column: 1 / -1;
}

.client-request-brief-person > span,
.client-request-brief-card > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.client-request-brief-name,
.client-request-brief-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-request-brief-name {
  font-weight: 900;
}

.client-request-brief-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(124, 160, 177, 0.28);
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1.25;
}

.client-request-brief-badge.is-long {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-request-brief-badge.is-green {
  border-color: rgba(17, 126, 82, 0.28);
  background: #eefaf3;
  color: #0d6b46;
}

.client-request-brief-badge.is-red {
  border-color: rgba(190, 77, 64, 0.3);
  background: #fff1ef;
  color: #a0392d;
}

.client-request-brief-badge.is-blue {
  border-color: rgba(66, 104, 178, 0.22);
  background: #eef4ff;
  color: var(--brand-dark);
}

.client-request-brief-badge.is-blue.is-long,
.client-request-brief-badge.is-green.is-long {
  background: transparent;
}

.client-request-brief-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.client-request-brief-list > div {
  display: grid;
  grid-template-columns: minmax(82px, max-content) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f5f9fc;
}

.client-request-brief-list dt,
.client-request-brief-list dd {
  min-width: 0;
  margin: 0;
  line-height: 1.28;
}

.client-request-brief-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.client-request-brief-list dd {
  color: var(--brand-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.client-request-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-request-progress-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
}

.client-request-progress-step strong,
.client-request-progress-step small {
  display: block;
  overflow-wrap: anywhere;
}

.client-request-progress-step strong {
  line-height: 1.18;
}

.client-request-progress-step small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.28;
}

.client-request-progress-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.client-request-progress-step.is-ok .client-request-progress-mark {
  background: #16865e;
}

.client-request-progress-step.is-pending .client-request-progress-mark {
  background: #c34d3f;
}

.client-request-progress-step.is-warning .client-request-progress-mark {
  background: #b7790f;
}

.client-request-progress-step.is-danger .client-request-progress-mark {
  background: #9f3328;
}

.client-request-manager-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.client-request-manager-section h3 {
  margin: 0;
  font-size: 1rem;
}

.appointment-correction-trigger {
  display: flex;
  justify-content: center;
  width: 100%;
}

.attendance-actions .appointment-correction-trigger {
  width: var(--attendance-action-width);
  margin-right: auto;
  margin-left: auto;
}

.appointment-correction-open {
  width: min(100%, 220px);
  min-height: 38px;
}

.attendance-actions .appointment-correction-open {
  width: 100%;
}

.appointment-correction-open .ui-icon {
  width: 16px;
  height: 16px;
}

.appointment-correction-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1320;
  display: flex;
  justify-content: flex-end;
  background: rgba(12, 31, 44, 0.3);
}

.appointment-correction-backdrop[hidden] {
  display: none;
}

.appointment-correction-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(52vw, 760px);
  min-width: 520px;
  height: 100vh;
  max-height: 100vh;
  padding: 22px;
  overflow-y: auto;
  border-left: 1px solid rgba(124, 160, 177, 0.34);
  background: var(--panel);
  box-shadow: -24px 0 60px rgba(25, 57, 72, 0.2);
}

.appointment-correction-head {
  display: grid;
  gap: 8px;
  padding-right: 60px;
}

.appointment-correction-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.appointment-correction-summary-card > span:first-child {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.appointment-correction-kicker,
.appointment-correction-card-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.appointment-correction-kicker {
  justify-content: flex-start;
}

.badge.badge-info {
  border: 1px solid rgba(66, 104, 178, 0.24);
  background: #eef4ff;
  color: var(--brand-dark);
}

.appointment-correction-info {
  display: inline-grid;
  align-items: center;
  flex: 0 0 auto;
}

.appointment-correction-info .inline-info-popover {
  min-width: 24px;
}

.appointment-correction-info .inline-info-popover > div {
  right: 0;
  left: auto;
  width: min(320px, calc(100vw - 32px));
  color: var(--muted);
}

.appointment-correction-kicker .appointment-correction-info .inline-info-popover > div {
  right: auto;
  left: 0;
}

.appointment-correction-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.appointment-correction-summary > div,
.appointment-correction-card,
.appointment-correction-relation,
.appointment-correction-warning {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.appointment-correction-summary > div {
  display: grid;
  gap: 5px;
}

.appointment-correction-summary > .appointment-correction-summary-card-primary {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #315fae, #1d4f97);
  color: #fff;
}

.appointment-correction-summary-card-primary > span:first-child,
.appointment-correction-summary-card-primary strong {
  color: #fff;
}

.appointment-correction-summary-card-primary > span:first-child {
  opacity: 0.78;
}

.appointment-correction-panel .badge.status-completed {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.appointment-correction-panel .badge.status-confirmed {
  border-color: rgba(22, 130, 96, 0.35);
  background: #effaf6;
  color: #0f6549;
}

.appointment-correction-panel .badge.status-scheduled {
  border-color: rgba(179, 126, 14, 0.34);
  background: #fff3c4;
  color: #7a5207;
}

.appointment-correction-panel .badge.status-cancelled,
.appointment-correction-panel .badge.status-rescheduled {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.appointment-correction-panel .badge.status-corrected {
  border-color: rgba(8, 116, 127, 0.34);
  background: #eef8fa;
  color: #0a5560;
}

.appointment-correction-interval-badge {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand-dark);
  line-height: 1.2;
}

.appointment-correction-summary strong,
.appointment-correction-card strong {
  overflow-wrap: anywhere;
}

.appointment-correction-relation {
  border-color: rgba(66, 104, 178, 0.24);
  background: #eef4ff;
  color: var(--brand-dark);
  font-weight: 900;
}

.appointment-correction-warning {
  border-color: rgba(183, 121, 15, 0.32);
  background: #fff8e8;
  color: #7d560d;
  font-weight: 900;
}

.appointment-correction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.appointment-correction-card {
  --correction-bg: #fff;
  --correction-border: var(--line);
  --correction-title: var(--brand-dark);
  --correction-text: var(--muted);
  display: grid;
  gap: 10px;
  align-content: start;
  border-color: var(--correction-border);
  background: var(--correction-bg);
}

.appointment-correction-card-title strong {
  flex: 1 1 auto;
}

.appointment-correction-card strong {
  color: var(--correction-title);
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.15;
}

.appointment-correction-card > span {
  color: var(--correction-text);
  font-weight: 800;
  line-height: 1.35;
}

.appointment-correction-card-consume {
  --correction-bg: #ecfdf3;
  --correction-border: rgba(25, 135, 84, 0.34);
  --correction-title: #10764b;
  --correction-text: #315f4b;
}

.appointment-correction-card-restore {
  --correction-bg: #fff8df;
  --correction-border: rgba(221, 166, 40, 0.5);
  --correction-title: #815b08;
  --correction-text: #725e25;
}

.appointment-correction-card-cancel {
  --correction-bg: #fff0ed;
  --correction-border: rgba(191, 65, 50, 0.34);
  --correction-title: #b33a2d;
  --correction-text: #7b4a43;
}

.appointment-correction-card-unconsumed {
  --correction-bg: #eef5ff;
  --correction-border: rgba(66, 104, 178, 0.34);
  --correction-title: #264f9a;
  --correction-text: #536785;
}

.appointment-correction-card-move {
  --correction-bg: #eef9fb;
  --correction-border: rgba(72, 169, 181, 0.38);
  --correction-title: #0b6875;
  --correction-text: #4d6b72;
}

.appointment-correction-card-time {
  --correction-bg: #f5f1ff;
  --correction-border: rgba(116, 87, 196, 0.34);
  --correction-title: #4c3d99;
  --correction-text: #645b82;
}

.appointment-correction-card-link {
  --correction-bg: #f5faf8;
  --correction-border: rgba(48, 129, 108, 0.28);
  --correction-title: #235f52;
  --correction-text: #566c67;
}

.appointment-correction-card-wide {
  grid-column: 1 / -1;
}

.appointment-correction-card .field,
.appointment-correction-card textarea,
.appointment-correction-card .input,
.appointment-correction-card .select,
.appointment-correction-card button {
  width: 100%;
}

.appointment-correction-card .crm-date-picker,
.appointment-correction-card .appointment-window-preview,
.appointment-correction-card .reschedule-date-badge {
  max-width: 100%;
}

.appointment-correction-card textarea[name="correction_note"] {
  min-height: 78px;
  max-height: 96px;
  resize: vertical;
}

.client-request-actions {
  display: grid;
  gap: 8px;
}

.client-request-actions textarea {
  min-height: 112px;
}

.trainer-request-time-grid.form-grid.compact {
  grid-template-columns: 1fr;
}

.trainer-request-time-grid .appointment-window-preview {
  width: 100%;
}

.client-request-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-request-action-buttons button {
  min-height: 40px;
  padding: 9px 12px;
}

.client-request-action-buttons .is-selected {
  border-color: rgba(66, 104, 178, 0.48);
  background: #eef4ff;
  color: var(--brand-dark);
}

.client-request-action-buttons .is-status-warning {
  border-color: #e3bd4d;
  background: #fff2c6;
  color: #7a5200;
  box-shadow: 0 8px 18px rgba(160, 111, 0, 0.14);
}

.client-request-action-buttons .is-status-warning:hover {
  border-color: #c9931f;
  background: #ffe7a3;
}

.client-request-action-buttons .is-status-danger {
  border-color: #c34839;
  background: #c34839;
  color: #fff;
  box-shadow: 0 8px 18px rgba(179, 58, 44, 0.16);
}

.client-request-action-buttons .is-status-danger:hover {
  border-color: #a93429;
  background: #a93429;
}

.client-request-action-buttons .is-status-warning.is-selected {
  box-shadow: 0 0 0 3px rgba(227, 189, 77, 0.24), 0 8px 18px rgba(160, 111, 0, 0.14);
}

.client-request-operational-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.client-request-direct-approve-form {
  display: inline-flex;
  margin: 0;
}

.client-request-payment-panel {
  width: 100%;
}

.client-request-manager-panel .intake-payment-panel {
  gap: 14px;
  padding: 16px 18px;
}

.client-request-manager-panel .intake-payment-list {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.client-request-manager-panel .intake-payment-list div {
  min-width: 0;
}

.client-request-manager-panel .intake-payment-actions {
  gap: 10px 12px;
}

.client-request-manager-panel .intake-payment-actions form.bank-payment-reference-form {
  flex: 1 1 620px;
  min-width: min(100%, 620px);
  grid-template-columns: minmax(320px, 1fr) max-content;
}

.client-request-membership-approve-form {
  display: grid;
  width: 100%;
  gap: 12px;
  align-items: start;
}

.client-request-membership-approve-form button {
  width: fit-content;
  max-width: 100%;
}

.client-request-operational-note {
  display: block;
  max-width: none;
  padding: 9px 11px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 8px;
  background: #f5fafc;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.client-request-operational-note.is-warning {
  border-color: rgba(183, 121, 15, 0.28);
  background: #fff8e8;
  color: #7d560d;
}

.client-request-operational-actions .attendance-more-actions {
  margin: 0;
}

.reminder-actions {
  align-items: center;
  padding-top: 4px;
}

.section-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-left: 4px solid rgba(8, 116, 127, 0.44);
  border-radius: 8px;
  background: linear-gradient(135deg, #f3fbfa, #ffffff);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.section-header h2,
.section-header h3,
.section-header p {
  margin: 0;
}

.section-header h2,
.section-header h3 {
  color: var(--text);
  line-height: 1.18;
}

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

.notification-health-card {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  border-color: rgba(8, 116, 127, 0.16);
  background: #fbfefe;
}

.notification-health-card span,
.notification-health-card small,
.notification-diagnostic {
  color: var(--muted);
}

.notification-health-card span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-health-card strong {
  color: var(--brand-dark);
  font-size: 1.3rem;
  line-height: 1;
}

.notification-health-card small,
.notification-diagnostic {
  font-size: 0.84rem;
}

.notification-diagnostic {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.app-notifications-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  border-color: rgba(22, 130, 96, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 250, 247, 0.97)),
    linear-gradient(135deg, rgba(22, 130, 96, 0.12), rgba(66, 104, 178, 0.08));
}

.app-notifications-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.app-notifications-icon {
  flex: 0 0 auto;
  background: var(--success);
  color: #fff;
}

.app-notifications-main h2 {
  margin: 2px 0 4px;
  color: var(--brand-dark);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.15;
}

.app-notifications-main .muted {
  margin: 0;
}

.app-notifications-side {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  justify-items: end;
}

.app-notifications-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.app-notifications-actions .button,
.app-notifications-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.app-notifications-state[data-state="activ"] {
  background: rgba(22, 130, 96, 0.14);
  color: #126b50;
}

.app-notifications-state[data-state="oprit"],
.app-notifications-state[data-state="blocat"] {
  background: rgba(190, 77, 64, 0.12);
  color: #963927;
}

.app-notifications-home-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-color: rgba(22, 130, 96, 0.24);
  background: linear-gradient(135deg, #f8fffd 0%, #eef9f7 100%);
}

.app-notifications-home-prompt[hidden] {
  display: none;
}

.app-notifications-home-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.app-notifications-home-main h2 {
  margin: 2px 0 4px;
  color: var(--brand-dark);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.15;
}

.app-notifications-home-main .muted {
  margin: 0;
}

.app-notifications-home-prompt .button {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

.system-notifications-details {
  margin-top: 10px;
}

.system-notifications-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.system-notifications-details > summary::-webkit-details-marker {
  display: none;
}

.system-notifications-details > summary strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.02rem;
  line-height: 1.2;
}

.system-notifications-details > summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.system-notifications-details-body {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.strong-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 7px;
  background: rgba(8, 116, 127, 0.07);
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
  line-height: 1.25;
}

.strong-link:hover {
  border-color: rgba(8, 116, 127, 0.28);
  background: rgba(8, 116, 127, 0.11);
  color: var(--brand);
  text-decoration: underline;
}

.client-guardian-meta {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-name-stack .client-guardian-meta,
.attendance-main .client-guardian-meta,
.trainer-appointment-main .client-guardian-meta,
.club-session-event-main .client-guardian-meta {
  margin-top: -1px;
}

.trainer-profile-page {
  gap: 16px;
}

.trainer-profile-page h3 {
  margin: 8px 0 0;
}

.trainer-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  min-width: min(100%, 460px);
}

.trainer-profile-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 251, 0.98)),
    linear-gradient(135deg, rgba(66, 104, 178, 0.1), rgba(8, 116, 127, 0.08));
}

.trainer-profile-summary-grid {
  align-items: stretch;
}

.trainer-profile-summary-grid .client-profile-summary-card {
  grid-column: 1 / -1;
}

.trainer-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trainer-profile-facts div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.trainer-profile-facts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trainer-profile-facts strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.trainer-profile-notes {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.12);
  border-radius: 8px;
  background: rgba(248, 251, 252, 0.9);
  overflow-wrap: anywhere;
}

.trainer-profile-calendar-wrap .membership-calendar-preview {
  padding: 10px;
}

.trainer-profile-calendar-wrap .membership-calendar-months {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trainer-profile-calendar .membership-calendar-day {
  min-height: 42px;
}

.trainer-calendar-day-button {
  appearance: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.trainer-calendar-day-button:hover,
.trainer-calendar-day-button:focus-visible,
.trainer-calendar-day-button.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(66, 104, 178, 0.2);
  outline: none;
}

.trainer-profile-calendar .membership-calendar-day.has-session.is-appointment {
  background: linear-gradient(135deg, rgba(66, 104, 178, 0.12), rgba(66, 104, 178, 0.1));
}

.trainer-profile-calendar .membership-calendar-day.has-completed {
  box-shadow: inset 0 -3px 0 rgba(20, 109, 80, 0.55);
}

.trainer-profile-calendar .membership-calendar-day.has-exception {
  box-shadow: inset 0 -3px 0 rgba(185, 74, 48, 0.5);
}

.trainer-profile-calendar .membership-calendar-day.has-completed.has-exception {
  box-shadow: inset 0 -3px 0 rgba(185, 74, 48, 0.5), inset 0 -6px 0 rgba(20, 109, 80, 0.45);
}

.trainer-calendar-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.trainer-profile-calendar .trainer-calendar-counts small {
  position: static;
  width: auto;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 18px;
}

.trainer-calendar-count-sessions {
  background: var(--brand);
}

.trainer-calendar-count-appointments {
  background: var(--brand);
}

.trainer-calendar-day-detail-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 8px;
  background: rgba(248, 251, 252, 0.94);
}

.trainer-calendar-day-detail-panel.is-active {
  border-color: rgba(66, 104, 178, 0.34);
  background: #fff;
}

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

.trainer-calendar-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.trainer-calendar-detail-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.trainer-calendar-detail-group {
  display: grid;
  gap: 6px;
}

.trainer-calendar-detail-group h5 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.trainer-calendar-detail-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(8, 116, 127, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.trainer-calendar-detail-row time {
  color: var(--text);
  font-weight: 900;
}

.trainer-calendar-detail-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trainer-calendar-detail-row em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.club-sessions-workspace {
  min-width: 0;
}

.trainer-summary-sessions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.trainer-summary-session-filter {
  grid-template-columns: minmax(160px, 220px) auto minmax(180px, 1fr);
}

.trainer-summary-session-stats {
  margin-top: 2px;
}

.trainer-summary-sessions .club-sessions-calendar {
  margin-top: 0;
}

.trainer-summary-sessions-day-card {
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.13);
  border-radius: 8px;
  background: #fff;
}

.club-sessions-filter-bar {
  align-items: end;
}

.session-visibility-filter-field {
  max-width: 96px;
}

.session-visibility-filter-button {
  position: relative;
  min-width: 48px;
  justify-content: center;
  padding-inline: 12px;
}

.session-visibility-filter-button .ui-icon {
  margin: 0;
}

.session-visibility-filter-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.session-visibility-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 32, 45, 0.42);
  backdrop-filter: blur(5px);
}

.session-visibility-modal-backdrop[hidden] {
  display: none;
}

.session-visibility-modal {
  position: relative;
  display: grid;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 32, 45, 0.22);
}

.session-visibility-modal-head {
  display: grid;
  gap: 4px;
  padding-right: 76px;
}

.session-visibility-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.session-visibility-form,
.session-visibility-options {
  display: grid;
  gap: 12px;
}

.session-visibility-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.session-visibility-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.session-visibility-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.session-visibility-option strong {
  color: var(--text);
  font-size: 0.95rem;
}

.session-visibility-option em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.4;
}

.session-visibility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.trainer-directory-pool-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 8px;
  background: #f3fafb;
}

.trainer-directory-pool-context .muted {
  flex: 1 1 320px;
  line-height: 1.4;
}

.trainer-pool-status-trigger {
  max-width: 100%;
  border: 1px solid rgba(8, 116, 127, 0.24);
  font: inherit;
  line-height: 1.2;
}

.trainer-pool-status-modal {
  width: min(620px, 100%);
}

.trainer-pool-status-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.trainer-pool-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trainer-pool-impact-card {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid rgba(22, 130, 96, 0.22);
  border-radius: 8px;
  background: #f3fbf7;
}

.trainer-pool-impact-card.is-blocking {
  border-color: rgba(184, 70, 52, 0.28);
  background: #fff5f2;
}

.trainer-pool-impact-card strong {
  color: var(--brand-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.trainer-pool-impact-card.is-blocking strong {
  color: #963927;
}

.trainer-pool-impact-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.trainer-pool-scope-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 8px;
  background: #f3fafb;
}

.trainer-pool-scope-note.is-warning {
  border-color: rgba(181, 117, 25, 0.3);
  background: #fff8e6;
}

.trainer-pool-scope-note.is-danger {
  border-color: rgba(184, 70, 52, 0.28);
  background: #fff3f1;
}

.trainer-pool-scope-note span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.trainer-pool-status-actions form {
  display: inline-flex;
  margin: 0;
}

@media (max-width: 640px) {
  .trainer-directory-pool-context .muted {
    flex-basis: 100%;
  }

  .trainer-pool-status-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .trainer-pool-status-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }

  .trainer-pool-impact-grid {
    grid-template-columns: 1fr;
  }

  .trainer-pool-status-actions,
  .trainer-pool-status-actions form,
  .trainer-pool-status-actions .button,
  .trainer-pool-status-actions button {
    width: 100%;
  }
}

.club-sessions-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.club-sessions-calendar {
  overflow-x: visible;
}

.club-sessions-months {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.club-sessions-day {
  color: var(--text);
  text-decoration: none;
}

a.club-sessions-day {
  cursor: pointer;
}

.club-sessions-day:hover,
.club-sessions-day:focus-visible,
.club-sessions-day.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(66, 104, 178, 0.2);
  outline: none;
}

.club-sessions-day.is-quiet {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.club-sessions-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.club-sessions-day-meta b {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(8, 116, 127, 0.14);
  color: var(--brand-dark);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 17px;
}

.club-sessions-day-card {
  position: relative;
}

.club-sessions-day-card.is-loading {
  opacity: 0.72;
}

.club-sessions-day-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.club-sessions-day-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.club-sessions-day-stats span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(8, 116, 127, 0.15);
  border-radius: 999px;
  background: #f8fcfb;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.club-sessions-day-stats strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.club-sessions-hour-load,
.club-sessions-event-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.club-sessions-hour-load h4,
.club-sessions-event-list h4 {
  margin: 0;
  color: var(--text);
}

.club-sessions-load-table table {
  min-width: 620px;
}

.club-sessions-load-table th,
.club-sessions-load-table td {
  text-align: center;
}

.club-sessions-load-table tbody th {
  min-width: 160px;
  text-align: left;
}

.club-session-load-count {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
}

.club-sessions-event-list {
  gap: 8px;
}

.club-session-event-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.42fr) minmax(190px, 1.25fr) minmax(150px, 0.9fr) minmax(170px, 1.05fr) minmax(180px, 0.9fr);
  gap: 12px;
  align-items: start;
  justify-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.13);
  border-radius: 8px;
  background: #fff;
}

.club-session-event-row.is-calculated {
  background: linear-gradient(135deg, rgba(8, 116, 127, 0.07), #fff);
}

.club-session-event-row.is-completed {
  border-color: rgba(20, 109, 80, 0.34);
  background: #eaf9f2;
}

.club-session-event-row.is-cancelled {
  border-color: rgba(185, 74, 48, 0.34);
  background: #fff1ef;
}

.club-session-event-row time {
  display: grid;
  grid-template-columns: 18px auto;
  column-gap: 7px;
  row-gap: 2px;
  align-items: center;
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.club-session-event-row time span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.club-session-event-main,
.club-session-event-row > div {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
  text-align: left;
}

.club-session-event-row strong,
.club-session-event-row a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.club-session-event-row em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.club-session-event-status {
  justify-items: start;
}

.club-session-event-status > .badge.status-completed,
.club-session-event-status .appointment-status-stack > .badge.status-completed {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.club-session-action-detail {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: left;
}

.trainer-profile-grid .card {
  min-width: 0;
}

.compact-table-wrap table {
  min-width: 420px;
}

.trainer-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trainer-directory-wrap table {
  min-width: 760px;
}

.status-toggle {
  position: relative;
  display: inline-grid;
}

.status-toggle-summary {
  cursor: pointer;
  list-style: none;
}

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

.status-toggle-summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.72;
}

.status-toggle-summary.is-inactive {
  border-color: rgba(184, 70, 52, 0.32);
  background: #fff3f1;
  color: #963927;
}

.status-toggle-summary.is-warning,
.badge.is-warning {
  border-color: rgba(181, 117, 25, 0.34);
  background: #fff8e6;
  color: #8a5d12;
}

.badge.is-inactive {
  border-color: rgba(184, 70, 52, 0.32);
  background: #fff3f1;
  color: #963927;
}

.status-toggle-menu {
  margin-top: 6px;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.status-toggle-menu button {
  width: 100%;
  min-height: 34px;
  justify-content: center;
  white-space: nowrap;
}

.role-toggle-menu {
  display: grid;
  gap: 6px;
}

.delete-toggle-summary {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(184, 70, 52, 0.34);
  color: var(--danger);
}

.delete-toggle-menu button {
  border-color: rgba(184, 70, 52, 0.34);
  color: var(--danger);
}

.membership-registry-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(213, 226, 231, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 49, 61, 0.05);
}

.membership-registry-card.is-summer,
.membership-registry-card.is-group {
  border-color: rgba(66, 104, 178, 0.46);
  background: #eef4ff;
}

.membership-registry-card.is-personal,
.membership-registry-card.is-individual {
  border-color: rgba(66, 104, 178, 0.34);
  background: #eaf3ff;
}

.membership-registry-card.is-recovery {
  border-color: rgba(66, 104, 178, 0.34);
  background: #eaf3ff;
}

.membership-registry-card.is-performance {
  border-color: rgba(194, 159, 34, 0.42);
  background: #fff8cf;
}

.membership-registry-card.is-leisure {
  border-color: rgba(21, 153, 87, 0.36);
  background: #e7f8ee;
}

.membership-registry-card.is-other {
  border-color: rgba(8, 116, 127, 0.2);
  background: #f7fbfb;
}

.membership-registry-head-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.membership-client-line {
  display: flex;
  max-width: min(100%, 580px);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.membership-client-identity {
  display: grid;
  max-width: 100%;
  min-width: 0;
  gap: 3px;
  justify-items: start;
}

.membership-client-button {
  display: inline-flex;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(20, 49, 61, 0.08);
}

.membership-client-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-client-button:hover {
  transform: translateY(-1px);
  color: #fff;
}

.membership-client-identity .client-guardian-meta {
  padding-left: 7px;
}

.membership-registry-card.is-summer .membership-client-button,
.membership-registry-card.is-group .membership-client-button {
  border-color: rgba(190, 98, 15, 0.28);
  background: var(--brand);
  color: #fff;
}

.membership-registry-card.is-personal .membership-client-button,
.membership-registry-card.is-individual .membership-client-button,
.membership-registry-card.is-recovery .membership-client-button {
  border-color: rgba(66, 104, 178, 0.28);
  background: var(--brand);
  color: #fff;
}

.membership-registry-card.is-leisure .membership-client-button {
  border-color: rgba(21, 153, 87, 0.28);
  background: #159957;
  color: #fff;
}

.membership-registry-card.is-performance .membership-client-button {
  border-color: rgba(194, 159, 34, 0.35);
  background: #f1d85b;
  color: #17313d;
}

.membership-registry-contact-stack {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 7px;
}

.membership-registry-pill-row {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.membership-registry-card.membership-registry-compact-card {
  position: relative;
  overflow: hidden;
  gap: 10px;
  padding: 12px 14px;
  border-color: rgba(47, 103, 177, 0.2);
  background:
    linear-gradient(135deg, rgba(47, 103, 177, 0.07), rgba(15, 138, 141, 0.06) 36%, rgba(255, 255, 255, 0) 68%),
    #fff;
  box-shadow: 0 8px 24px rgba(19, 48, 60, 0.08);
}

.membership-registry-card.membership-registry-compact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.membership-registry-card.membership-registry-compact-card.is-performance::before {
  background: linear-gradient(180deg, #b58b12, #d6a222);
}

.membership-registry-card.membership-registry-compact-card.is-leisure::before {
  background: linear-gradient(180deg, #159957, #0c848f);
}

.membership-registry-compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.membership-registry-compact-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.membership-registry-identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.membership-registry-card.membership-registry-compact-card .membership-client-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.12;
  box-shadow: none;
}

.membership-registry-card.membership-registry-compact-card .membership-client-button .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-dark);
}

.membership-registry-card.membership-registry-compact-card .membership-client-button:hover {
  color: var(--brand-dark);
  transform: none;
}

.membership-registry-card.membership-registry-compact-card .membership-phone-icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border-color: rgba(47, 103, 177, 0.28);
  border-radius: 999px;
  background: #f3f8fb;
  color: var(--brand-dark);
  box-shadow: 0 8px 16px rgba(47, 103, 177, 0.12);
}

.membership-registry-card.membership-registry-compact-card .membership-phone-icon-button .ui-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.8;
}

.membership-registry-card.membership-registry-compact-card .membership-phone-icon-button:hover {
  border-color: rgba(47, 103, 177, 0.42);
  background: #e7f1fb;
  color: var(--brand-dark);
}

.membership-registry-compact-main .client-guardian-meta {
  width: fit-content;
  max-width: 100%;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.membership-registry-meta-row,
.membership-registry-subline,
.membership-registry-compact-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.membership-registry-subline {
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.membership-registry-subline strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.membership-registry-compact-side {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.membership-registry-trainer-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(47, 103, 177, 0.14);
  border-radius: 8px;
  background: #f8fbfc;
}

.membership-registry-trainer-card span,
.membership-registry-trainer-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-registry-trainer-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.membership-registry-trainer-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.18;
}

.membership-registry-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.membership-registry-edit-button,
.membership-registry-actions .membership-renew-icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  justify-content: center;
  padding: 0;
}

.membership-registry-actions .membership-renew-icon-button .ui-icon {
  width: 19px;
  height: 19px;
}

.membership-registry-edit-button.is-loading {
  opacity: 0.68;
}

.membership-registry-compact-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.membership-registry-compact-mini-panel {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(47, 103, 177, 0.14);
  border-radius: 8px;
  background: #f8fbfc;
}

.membership-registry-compact-card .membership-session-ledger {
  gap: 4px;
}

.membership-registry-compact-card .membership-session-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 0.62rem;
}

.membership-registry-session-summary {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.membership-price-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(15, 138, 141, 0.2);
  border-radius: 999px;
  background: #edf8f7;
  color: var(--accent);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.membership-price-badge.has-discount {
  flex-wrap: wrap;
  gap: 4px 7px;
  border-color: rgba(22, 130, 96, 0.28);
  color: var(--success);
  line-height: 1.2;
}

.membership-price-badge.has-discount s {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.membership-price-badge.has-discount small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.membership-price-badge.is-inline {
  margin-top: 4px;
}

.membership-schedule-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 103, 177, 0.16);
  border-radius: 999px;
  background: #f3f8fb;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.membership-schedule-pill .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 2.4;
}

.membership-schedule-badge-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .membership-registry-compact-head,
  .membership-registry-compact-side {
    grid-template-columns: 1fr;
  }

  .membership-registry-actions {
    justify-content: flex-start;
  }
}

.membership-renew-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-color: rgba(66, 104, 178, 0.38);
  color: var(--brand-dark);
  background: #f4f7ff;
  font-weight: 800;
}

.membership-renew-button .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.membership-renew-icon-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  justify-content: center;
  padding: 0;
}

.membership-renew-icon-button .ui-icon {
  width: 20px;
  height: 20px;
}

.membership-renewal-panel {
  border: 1px solid rgba(66, 104, 178, 0.34);
  background:
    linear-gradient(135deg, rgba(66, 104, 178, 0.08), rgba(255, 255, 255, 0.94) 38%),
    #fff;
}

.membership-renewal-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  justify-content: flex-end;
  padding: 0;
  background: rgba(10, 31, 48, 0.34);
}

.membership-renewal-drawer {
  width: min(820px, 58vw);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  padding: 22px;
  border-block: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: -22px 0 50px rgba(9, 28, 62, 0.28);
}

.membership-renewal-drawer > .section-header {
  position: sticky;
  top: -22px;
  z-index: 2;
  margin: -22px -22px 14px;
  padding: 18px 22px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.membership-renewal-source-card {
  gap: 12px;
  margin: 0;
  padding: 14px;
  box-shadow: none;
}

.membership-renewal-source-card .membership-client-button {
  pointer-events: none;
}

.membership-renewal-source-card .membership-client-button:hover {
  transform: none;
}

.membership-renewal-source-stats {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
}

.membership-renewal-source-stats small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.membership-renewal-drawer .membership-calendar-months {
  grid-template-columns: 1fr;
  max-height: min(620px, 58dvh);
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.membership-renewal-drawer .membership-calendar-month {
  background: rgba(255, 255, 255, 0.96);
}

.membership-renewal-drawer .membership-calendar-day {
  min-height: 42px;
}

.membership-renewal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.membership-renewal-summary > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.membership-renewal-summary span,
.membership-carryover-choice small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.membership-renewal-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  word-break: break-word;
}

.membership-carryover-choice {
  padding: 12px;
  border: 1px solid rgba(66, 104, 178, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(66, 104, 178, 0.08);
}

.renewal-request-source-notice,
.renewal-request-commercial-change {
  min-width: 0;
}

.renewal-request-commercial-change .check-row {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(181, 126, 22, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.toggle-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.toggle-line input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.membership-renewal-form .membership-package-choice {
  margin-top: 2px;
}

.client-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.client-card-head h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.18;
}

.client-card-stats {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 0.8fr) minmax(210px, 1.2fr);
  gap: 10px;
  min-width: 0;
}

.client-card-stats > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(213, 226, 231, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.client-card-stats > div > span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-renewal-relation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.membership-renewal-relation > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.membership-renewal-relation strong {
  color: var(--brand-dark);
  line-height: 1.25;
}

.membership-renewal-relation .button {
  justify-self: end;
}

.membership-phone-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 116, 127, 0.16);
}

.membership-phone-button:hover {
  background: var(--brand-dark);
  color: #fff;
}

.membership-phone-icon-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
  justify-content: center;
}

.membership-phone-icon-button .ui-icon {
  width: 19px;
  height: 19px;
}

.membership-trainer-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(8, 116, 127, 0.72);
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(8, 116, 127, 0.1);
}

.membership-trainer-button:hover {
  border-color: var(--brand);
  background: #eefafa;
  color: var(--brand-dark);
}

.membership-trainer-button.is-unassigned {
  border-color: rgba(93, 113, 128, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  pointer-events: none;
}

.membership-trainer-assignment {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.membership-trainer-assignment .membership-trainer-button {
  min-width: 0;
  max-width: 100%;
}

.membership-trainer-assignment .membership-trainer-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-trainer-reassign {
  position: relative;
  display: inline-flex;
}

.membership-trainer-reassign summary::-webkit-details-marker {
  display: none;
}

.membership-trainer-menu-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  justify-content: center;
  padding: 0;
  border-color: rgba(8, 116, 127, 0.32);
  background: #fff;
  color: var(--brand-dark);
}

.membership-trainer-menu-button .ui-icon {
  width: 18px;
  height: 18px;
}

.membership-trainer-reassign[open] .membership-trainer-menu-button,
.membership-trainer-menu-button:hover {
  border-color: var(--brand);
  background: #eefafa;
  color: var(--brand-dark);
}

.membership-trainer-reassign-form {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 48px));
  text-align: left;
}

.membership-registry .membership-trainer-reassign[open] {
  z-index: 70;
}

.membership-registry .membership-trainer-reassign-form {
  top: 0;
  right: auto;
  left: calc(100% + 8px);
  z-index: 70;
  width: min(340px, calc(100vw - 48px));
}

.membership-trainer-reassign-note {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.membership-trainer-reassign-note.is-warning {
  color: #9a6918;
}

.membership-trainer-reassign-note.is-error {
  color: var(--danger);
}

.membership-code-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(8, 116, 127, 0.25);
  border-radius: 999px;
  background: #eefafa;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.membership-code-badge.is-missing {
  border-color: rgba(184, 70, 52, 0.26);
  background: #fff6f4;
  color: var(--danger);
}

.membership-code-control {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
}

.membership-code-link {
  text-decoration: none;
}

.membership-code-link:hover {
  border-color: rgba(66, 104, 178, 0.44);
  background: #f4f7ff;
  color: var(--brand);
}

.membership-code-edit {
  position: relative;
  max-width: 190px;
}

.membership-edit.membership-code-edit .membership-code-edit-summary {
  display: inline-grid;
  max-width: none;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.membership-edit.membership-code-edit .membership-code-edit-summary:hover {
  border-color: rgba(66, 104, 178, 0.42);
  background: #fff;
}

.membership-code-edit-summary .ui-icon {
  width: 15px;
  height: 15px;
}

.membership-registry-value {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.membership-registry-value > span,
.membership-registry-value .membership-edit > summary span {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.membership-registry-value > .muted,
.membership-registry-value .membership-edit > summary .muted {
  color: var(--muted);
  font-weight: 700;
}

.membership-session-progress {
  display: grid;
  width: min(230px, 100%);
  gap: 5px;
}

.membership-session-stack {
  display: grid;
  width: min(230px, 100%);
  gap: 6px;
  justify-items: start;
}

.membership-session-stack .membership-session-progress {
  display: grid;
  width: 100%;
}

.membership-session-progress-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
}

.membership-session-progress-text span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.membership-session-bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f2f2;
}

.membership-session-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.membership-session-progress.is-medium .membership-session-bar span {
  background: #d69b2f;
}

.membership-session-progress.is-low .membership-session-bar span {
  background: var(--danger);
}

.membership-session-ledger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.membership-session-box {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 116, 127, 0.28);
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 0.63rem;
  font-weight: 950;
  line-height: 1;
}

.membership-session-box.is-completed {
  border-color: #168260;
  background: #168260;
  color: #fff;
}

.membership-session-box.is-absent-consumed {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.membership-session-ledger-extra {
  display: inline-flex;
  min-width: 18px;
  height: 15px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(8, 116, 127, 0.12);
  color: var(--brand-dark);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.membership-session-ledger-list {
  display: grid;
  gap: 4px;
  margin-top: 3px;
}

.membership-session-ledger-item {
  display: block;
  min-width: 0;
}

.client-registry-fact .membership-session-ledger-list {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.client-registry-fact .membership-session-ledger-item {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.client-registry-fact .membership-session-ledger {
  display: flex;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.client-registry-fact .membership-session-box,
.client-registry-fact .membership-session-ledger-extra {
  display: inline-flex;
  color: transparent;
  font-size: 0.63rem;
  font-weight: 950;
  text-transform: none;
}

.client-registry-fact .membership-session-box.is-completed,
.client-registry-fact .membership-session-box.is-absent-consumed {
  color: #fff;
}

.membership-registry-value > .membership-session-stack,
.membership-registry-value .membership-edit > summary .membership-session-stack {
  display: grid;
  width: min(230px, 100%);
  gap: 6px;
  justify-items: start;
}

.membership-registry-value > .membership-session-stack .membership-session-progress,
.membership-registry-value .membership-edit > summary .membership-session-stack .membership-session-progress {
  display: grid;
  width: 100%;
  gap: 5px;
}

.membership-registry-value > .membership-session-stack .membership-session-progress-text,
.membership-registry-value .membership-edit > summary .membership-session-stack .membership-session-progress-text {
  display: inline-flex;
}

.membership-registry-value > .membership-session-stack .membership-session-bar,
.membership-registry-value .membership-edit > summary .membership-session-stack .membership-session-bar {
  display: block;
}

.membership-registry-value > .membership-session-stack .membership-session-ledger,
.membership-registry-value .membership-edit > summary .membership-session-stack .membership-session-ledger {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.membership-registry-value > .membership-session-stack .membership-session-box,
.membership-registry-value .membership-edit > summary .membership-session-stack .membership-session-box {
  display: inline-flex;
}

.membership-registry-value > .membership-session-stack .membership-session-ledger-extra,
.membership-registry-value .membership-edit > summary .membership-session-stack .membership-session-ledger-extra {
  display: inline-flex;
}

.membership-registry .membership-edit {
  width: 100%;
  max-width: 100%;
}

.membership-registry .membership-edit summary {
  width: 100%;
}

.membership-registry .membership-code-edit,
.membership-registry .membership-code-edit summary,
.membership-registry .membership-code-control {
  width: fit-content;
  max-width: 100%;
}

.membership-registry .membership-code-edit[open] {
  width: min(310px, 100%);
  max-width: 100%;
  z-index: 45;
}

.membership-registry .membership-code-edit[open] .membership-edit-form {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(310px, calc(100vw - 32px));
  z-index: 50;
}

.membership-registry-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.membership-registry-pill-row .membership-code-badge,
.membership-registry-status .badge,
.membership-registry-status .status-toggle-summary {
  min-height: 28px;
  padding: 3px 10px;
  font-size: 0.92rem;
  line-height: 1;
}

.membership-registry-status .membership-edit {
  width: auto;
  max-width: none;
}

.membership-registry-status .membership-status-summary,
.membership-status-summary {
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid rgba(8, 116, 127, 0.22);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.membership-status-summary.membership-status-active {
  border-color: #168260;
  background: #168260;
  color: #fff;
}

.membership-status-summary.membership-status-expired {
  border-color: #b84634;
  background: #b84634;
  color: #fff;
}

.membership-status-summary.membership-status-used {
  border-color: rgba(8, 116, 127, 0.2);
  background: #eef6f7;
  color: var(--brand-dark);
}

.membership-status-summary.membership-status-cancelled {
  border-color: rgba(184, 70, 52, 0.32);
  background: #fff3f1;
  color: #963927;
}

.membership-edit {
  position: relative;
  display: inline-grid;
  gap: 6px;
  max-width: 280px;
}

.membership-edit summary {
  display: inline-grid;
  gap: 2px;
  cursor: pointer;
  list-style: none;
}

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

.membership-edit summary strong,
.membership-edit summary span {
  overflow-wrap: anywhere;
}

.membership-edit summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-top: 4px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.58;
}

.membership-edit-form {
  z-index: 20;
  display: grid;
  width: min(270px, calc(100vw - 48px));
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.membership-edit-form .field {
  min-width: 0;
}

.membership-edit-form button {
  min-height: 34px;
}

.membership-schedule-edit-form {
  width: min(640px, calc(100vw - 48px));
  max-height: min(76vh, 720px);
  overflow: auto;
}

.membership-schedule-edit-heading {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 8px;
  background: #f4fbfb;
}

.membership-schedule-edit-heading strong {
  color: var(--ink);
  font-weight: 950;
}

.membership-schedule-edit-heading span,
.membership-schedule-edit-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
}

.membership-schedule-edit-weekdays,
.membership-schedule-edit-times {
  min-width: 0;
}

.membership-schedule-edit-form .membership-day-time-row {
  padding: 8px;
}

.membership-schedule-edit-form .membership-day-time-slot {
  grid-template-columns: minmax(150px, 190px) minmax(120px, 1fr) auto;
}

.membership-schedule-edit-form .membership-day-time-add {
  justify-self: start;
}

.membership-profile-schedule-edit {
  display: block;
  width: 100%;
  max-width: 100%;
}

.membership-profile-schedule-edit > summary {
  width: fit-content;
  max-width: 100%;
}

.membership-profile-schedule-edit .membership-schedule-edit-form {
  width: min(1040px, 100%);
  max-height: none;
  overflow: visible;
}

.membership-profile-schedule-edit .membership-schedule-edit-heading {
  overflow-wrap: anywhere;
}

.membership-profile-edit-panel {
  display: block;
  width: 100%;
  max-width: 1120px;
}

.membership-profile-workspace {
  border-color: rgba(58, 97, 177, 0.42);
  background: linear-gradient(135deg, #2f61b8 0%, #1f4b96 56%, #173a78 100%);
  color: #fff;
}

.membership-profile-workspace .section-header {
  border-color: rgba(255, 255, 255, 0.24);
  border-left-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.1);
}

.membership-profile-workspace .section-header h2,
.membership-profile-workspace .section-header h3,
.membership-profile-workspace .eyebrow,
.membership-profile-workspace .membership-profile-plan-head strong {
  color: #fff;
}

.membership-profile-workspace .section-header h2 {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.membership-profile-workspace .section-header .button,
.membership-profile-workspace .membership-profile-mini-summary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.96);
  color: #173a78;
}

.membership-profile-workspace .membership-profile-field-card {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.membership-profile-workspace .membership-profile-field-card > span,
.membership-profile-workspace .membership-profile-field-card > strong,
.membership-profile-workspace .membership-profile-field-card > .muted,
.membership-profile-workspace .membership-profile-plan-head span {
  color: rgba(255, 255, 255, 0.9);
}

.membership-profile-workspace .membership-profile-field-card > strong {
  color: #fff;
}

.membership-profile-workspace .membership-profile-plan-head {
  color: #fff;
}

.membership-profile-workspace .membership-profile-plan-head .icon {
  color: rgba(255, 255, 255, 0.94);
}

.membership-profile-workspace .membership-profile-mini-form,
.membership-profile-workspace .membership-profile-plan-body {
  color: var(--text);
}

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

.membership-edit-open-button .ui-icon,
.membership-edit-open-icon-button .ui-icon {
  width: 16px;
  height: 16px;
}

.membership-edit-open-icon-button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
}

.membership-profile-stats {
  align-items: start;
}

.membership-profile-field-card {
  position: relative;
  display: block;
  padding-right: 16px;
  gap: 5px;
}

.membership-profile-field-card > span,
.membership-profile-field-card > strong,
.membership-profile-field-card > .muted,
.membership-profile-field-card > .membership-session-ledger {
  display: block;
  overflow-wrap: anywhere;
}

.membership-profile-field-card > .membership-session-ledger {
  margin-top: 7px;
}

.membership-payment-summary {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  justify-items: start;
}

.membership-payment-badge-row {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.membership-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(213, 226, 231, 0.72);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
}

.membership-payment-badge .ui-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke-width: 3;
}

.membership-payment-badge > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.membership-payment-op-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(20, 49, 61, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.membership-registry-payment-badge {
  min-height: 27px;
  padding-inline: 9px;
  font-size: 0.73rem;
}

.membership-payment-amount,
.membership-payment-note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.membership-payment-amount {
  display: grid;
  gap: 2px;
}

.membership-payment-amount small {
  color: inherit;
  font-size: 0.65rem;
  font-weight: 700;
}

.membership-payment-note {
  font-weight: 700;
}

.membership-profile-mini-editor {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
}

.membership-profile-mini-editor > summary {
  list-style: none;
}

.membership-profile-mini-editor > summary::-webkit-details-marker {
  display: none;
}

.membership-profile-mini-summary {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  max-width: 100%;
  height: 34px;
  min-height: 32px;
  padding: 0;
  justify-content: center;
  border-color: rgba(58, 97, 177, 0.26);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.membership-profile-mini-summary .icon {
  width: 16px;
  height: 16px;
}

.membership-profile-mini-form {
  width: min(420px, calc(100% + 48px));
  max-width: calc(100% + 48px);
  margin-top: 10px;
  margin-right: -48px;
  border: 0;
  background: #fff;
  box-shadow: 0 12px 28px rgba(58, 97, 177, 0.1);
}

.membership-profile-assignment-form {
  width: min(460px, calc(100% + 48px));
  max-width: calc(100% + 48px);
}

.membership-edit-warning {
  margin: 0;
  padding: 8px 9px;
  border: 1px solid rgba(241, 181, 58, 0.4);
  border-radius: 8px;
  background: #fff8e8;
  color: #7b5420;
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1.35;
}

.membership-profile-plan-form {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.membership-profile-plan-disclosure {
  width: 100%;
}

.membership-profile-plan-disclosure > summary {
  list-style: none;
}

.membership-profile-plan-disclosure > summary::-webkit-details-marker {
  display: none;
}

.membership-profile-plan-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
  color: var(--ink);
}

.membership-profile-plan-head .icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.membership-profile-plan-head .icon:last-child {
  transition: transform 0.18s ease;
}

.membership-profile-plan-disclosure[open] .membership-profile-plan-head .icon:last-child {
  transform: rotate(180deg);
}

.membership-profile-plan-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.membership-profile-plan-head strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.membership-profile-plan-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.35;
}

.membership-profile-plan-body {
  display: grid;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(58, 97, 177, 0.28);
  border-radius: 8px;
  background: #eef5ff;
}

.membership-profile-plan-form .membership-schedule-fields {
  margin: 0;
}

.membership-plan-future-scope {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.membership-plan-future-scope legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-plan-future-scope label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(58, 97, 177, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.membership-plan-future-scope input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.membership-plan-future-scope strong,
.membership-plan-future-scope small {
  display: block;
}

.membership-plan-future-scope strong {
  color: var(--ink);
  line-height: 1.25;
}

.membership-plan-future-scope small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.membership-plan-future-scope label:has(input:checked) {
  border-color: rgba(58, 97, 177, 0.62);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(58, 97, 177, 0.18);
}

.membership-profile-program-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.membership-profile-program-link {
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
}

.membership-edit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1340;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 31, 44, 0.42);
  backdrop-filter: blur(6px);
}

.membership-edit-modal-backdrop[hidden] {
  display: none;
}

.membership-edit-modal-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(1080px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(124, 160, 177, 0.34);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 26px 70px rgba(12, 31, 44, 0.28);
}

.membership-edit-modal-head {
  display: grid;
  gap: 4px;
  margin: -22px -22px 0;
  padding: 18px 96px 18px 22px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.membership-edit-modal-head .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.membership-edit-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.15;
}

.membership-edit-modal-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(58, 97, 177, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(58, 97, 177, 0.08), rgba(12, 132, 145, 0.08)), #fff;
}

.membership-edit-modal-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.membership-edit-modal-person {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.membership-edit-modal-person strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.2;
}

.membership-edit-modal-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.membership-edit-modal-preview-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.membership-edit-modal-preview-grid > .wide {
  grid-column: span 2;
}

.membership-edit-modal-preview-grid > div > span:first-child,
.membership-edit-modal-section h3 {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-edit-modal-preview-grid strong,
.membership-edit-modal-preview-grid small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.membership-edit-modal-preview-grid small {
  margin-top: 3px;
  color: var(--brand-dark);
  font-weight: 850;
}

.membership-edit-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.membership-edit-modal-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.membership-edit-modal-section h3 {
  margin: 0;
}

.membership-edit-modal-section .membership-profile-mini-form,
.membership-edit-modal-section .membership-profile-assignment-form {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.membership-edit-modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.membership-edit-modal-form .field:first-of-type:last-of-type,
.membership-edit-modal-form .membership-edit-warning,
.membership-edit-modal-form button,
.membership-edit-modal-form .membership-inline-message {
  grid-column: 1 / -1;
}

.membership-edit-modal-plan-section {
  background: #f7fbff;
}

.membership-edit-modal-plan-section .membership-profile-plan-head {
  padding: 0;
}

.membership-edit-modal-plan-section .membership-profile-plan-body {
  border-color: rgba(58, 97, 177, 0.18);
  background: #eef5ff;
}

.membership-profile-plan-disclosure > summary.membership-profile-plan-head {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: #2f61b8;
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 62, 132, 0.16);
}

.membership-profile-plan-disclosure > summary.membership-profile-plan-head:hover,
.membership-profile-plan-disclosure[open] > summary.membership-profile-plan-head {
  background: #244f9f;
}

.membership-profile-plan-disclosure > summary.membership-profile-plan-head:focus-visible {
  outline: 3px solid rgba(47, 97, 184, 0.24);
  outline-offset: 3px;
}

.membership-profile-plan-disclosure > summary.membership-profile-plan-head strong,
.membership-profile-plan-disclosure > summary.membership-profile-plan-head .icon {
  color: #fff;
}

.membership-profile-plan-disclosure > summary.membership-profile-plan-head .membership-profile-plan-copy > span {
  color: rgba(255, 255, 255, 0.9);
}

.membership-profile-plan-disclosure[open] > .membership-profile-plan-body {
  margin-top: 10px;
}

.membership-edit-modal-plan-section .membership-calendar-months.is-two-months {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.membership-edit-modal-plan-section .membership-calendar-months.is-two-months .membership-calendar-month {
  padding: 12px;
}

.membership-edit-modal-plan-section .membership-calendar-months.is-two-months .membership-calendar-grid {
  gap: 6px;
}

.membership-edit-modal-plan-section .membership-calendar-months.is-two-months .membership-calendar-day {
  min-height: 58px;
  padding: 7px;
}

@media (min-width: 1180px) {
  .membership-edit-modal-panel {
    width: min(1500px, calc(100vw - 52px));
  }

  .membership-edit-modal-plan-section .membership-calendar-months {
    gap: 16px;
  }

  .membership-edit-modal-plan-section .membership-calendar-month {
    padding: 14px;
  }

  .membership-edit-modal-plan-section .membership-calendar-grid {
    gap: 6px;
  }

  .membership-edit-modal-plan-section .membership-calendar-day {
    min-height: 60px;
    padding: 7px;
  }
}

.membership-inline-message {
  padding: 8px 10px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #eefafa;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.membership-inline-message.is-error {
  border-color: rgba(184, 70, 52, 0.26);
  background: #fff6f4;
  color: var(--danger);
}

.membership-inline-message[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .membership-profile-field-card {
    padding-right: 16px;
  }

  .membership-profile-mini-summary {
    width: 34px;
  }

  .membership-profile-mini-form,
  .membership-profile-assignment-form {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .membership-edit-modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .membership-edit-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .membership-edit-modal-head {
    margin: -16px -16px 0;
    padding: 16px 74px 16px 16px;
  }

  .membership-edit-modal-preview-head,
  .membership-edit-modal-preview-grid,
  .membership-edit-modal-grid,
  .membership-edit-modal-form {
    grid-template-columns: 1fr;
  }

  .membership-edit-modal-plan-section .membership-calendar-months.is-two-months {
    grid-template-columns: 1fr;
  }

  .membership-edit-modal-preview-grid > .wide {
    grid-column: auto;
  }
}

.membership-status-edit {
  max-width: none;
}

.membership-status-edit summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.membership-status-edit summary::after {
  margin-top: 0;
}

.membership-status-menu button {
  min-height: 34px;
}

.trainer-public-form,
.trainer-onboarding-form {
  align-items: start;
}

.trainer-onboarding-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.trainer-onboarding-summary,
.trainer-onboarding-selected-trainer,
.trainer-onboarding-form-card,
.trainer-onboarding-picker {
  min-width: 0;
}

.trainer-onboarding-compact-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.trainer-onboarding-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.trainer-onboarding-facts span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.trainer-onboarding-selected-trainer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-color: rgba(8, 116, 127, 0.2);
  background: #f2fbfa;
}

.trainer-onboarding-selected-trainer h3 {
  margin: 2px 0 0;
}

.trainer-form-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(185, 74, 48, 0.28);
  border-radius: 8px;
  background: #fff4f1;
  color: #993d2b;
  font-weight: 800;
}

.trainer-availability-matrix {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.trainer-availability-matrix.has-validation-warning {
  border-color: rgba(185, 74, 48, 0.44);
  box-shadow: 0 0 0 3px rgba(185, 74, 48, 0.08);
}

.trainer-availability-matrix-head {
  display: grid;
  gap: 3px;
  margin-bottom: 2px;
}

.trainer-availability-matrix-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.trainer-availability-matrix-compact .trainer-availability-matrix-head,
.trainer-availability-matrix-compact .trainer-availability-warning {
  grid-column: 1 / -1;
}

.trainer-availability-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.95fr) minmax(120px, 0.55fr) minmax(120px, 0.55fr);
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(168, 199, 204, 0.6);
  border-radius: 8px;
  background: #fff;
}

.trainer-availability-matrix-compact .trainer-availability-row {
  grid-template-columns: minmax(116px, 1fr) minmax(82px, 0.7fr) minmax(82px, 0.7fr);
  gap: 6px;
  padding: 6px;
}

.trainer-availability-matrix-compact .trainer-day-check {
  min-height: 38px;
  padding: 7px 8px;
}

.trainer-availability-matrix-compact .trainer-day-check .remember-copy span {
  display: none;
}

.trainer-availability-matrix-compact .field .label {
  margin-bottom: 2px;
  font-size: 0.72rem;
}

.trainer-availability-matrix-compact .select {
  min-height: 38px;
  padding: 0 8px;
}

.trainer-availability-row.has-validation-error {
  border-color: rgba(185, 74, 48, 0.42);
  background: #fff8f6;
}

.trainer-availability-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(185, 74, 48, 0.28);
  border-radius: 8px;
  background: #fff4f1;
  color: #993d2b;
  font-weight: 800;
}

.trainer-day-check {
  min-height: 46px;
  margin: 0;
}

.trainer-availability-card {
  align-content: start;
}

.trainer-availability-form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.availability-add-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.trainer-client-intake-panel {
  width: 100%;
}

.availability-inline-message {
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.22);
  border-radius: 8px;
  background: rgba(8, 116, 127, 0.08);
  color: var(--brand-strong);
  font-weight: 800;
}

.availability-inline-message.is-error {
  border-color: rgba(184, 70, 52, 0.28);
  background: #fff3f1;
  color: #963927;
}

.availability-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.availability-edit-row td {
  background: var(--surface);
}

.availability-edit-form {
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.trainer-schedule-table {
  min-width: 760px;
}

.trainer-schedule-table th:nth-child(2),
.trainer-schedule-table td:nth-child(2) {
  width: 52%;
}

.trainer-schedule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.trainer-schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: #eef8f7;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.1;
}

.trainer-group-schedule-chip {
  border-color: rgba(66, 104, 178, 0.26);
  background: #eef4ff;
  color: #244c93;
}

.trainer-group-schedule-chip.is-empty {
  border-color: rgba(188, 65, 55, 0.24);
  background: #fff1ef;
  color: #9b342d;
}

.trainer-group-schedule-chip.is-general {
  border-color: rgba(96, 111, 122, 0.24);
  background: #f3f6f7;
  color: #445866;
}

.trainer-leave-chip {
  border-color: rgba(180, 112, 26, 0.28);
  background: #fff7e8;
  color: #8b5b12;
}

.trainer-leave-chip .ui-icon {
  width: 15px;
  height: 15px;
}

.trainer-schedule-editor {
  display: grid;
  gap: 12px;
}

.trainer-program-overview,
.trainer-profile-program-management,
.trainer-individual-schedule-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.trainer-program-overview-head,
.trainer-group-proposal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trainer-program-overview-head > strong,
.trainer-group-proposal-head > div > strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 900;
}

.trainer-program-overview-head > span,
.trainer-group-proposal-head > div > span {
  display: block;
  max-width: 760px;
  font-size: 0.84rem;
}

.trainer-group-proposal-head > div {
  display: grid;
  gap: 3px;
}

.trainer-program-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.trainer-program-day {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 78px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-program-day.is-empty {
  background: #f7f9fa;
}

.trainer-program-day-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trainer-program-day-slots {
  display: grid;
  gap: 5px;
}

.trainer-program-slot {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 6px;
  background: #eef8f7;
  color: var(--brand-dark);
  line-height: 1.15;
}

.trainer-program-slot strong {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.trainer-program-slot small {
  color: inherit;
  font-size: 0.7rem;
  font-weight: 850;
}

.trainer-program-slot.is-group {
  border-color: rgba(66, 104, 178, 0.3);
  background: #eef4ff;
  color: #244c93;
}

.trainer-program-slot.is-combined {
  border-color: rgba(75, 96, 112, 0.25);
  background: #f1f5f7;
  color: #304957;
}

.trainer-program-overview.is-compact {
  width: 100%;
}

.trainer-program-week.is-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trainer-program-week.is-compact .trainer-program-day {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  background: #f8fafb;
}

.trainer-program-week.is-compact .trainer-program-day-slots {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trainer-program-week.is-compact .trainer-program-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}

.trainer-program-week.is-compact .trainer-program-slot strong,
.trainer-program-week.is-compact .trainer-program-slot small {
  font-size: 0.72rem;
}

.trainer-individual-schedule-editor,
.trainer-group-schedule-editor {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.trainer-individual-schedule-head h4,
.trainer-group-schedule-head h4 {
  margin: 0;
  font-size: 1rem;
}

.trainer-individual-schedule-head p,
.trainer-group-schedule-head p {
  margin: 3px 0 0;
}

.trainer-schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.trainer-schedule-week > div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-schedule-week span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trainer-schedule-week strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
}

.trainer-schedule-add-form {
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-group-schedule-editor {
  display: grid;
  gap: 10px;
}

.trainer-group-schedule-general-note {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fa;
}

.trainer-group-schedule-add-form {
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-group-schedule-list {
  background: #fff;
}

.trainer-group-schedule-list .availability-table {
  min-width: 620px;
}

.trainer-group-schedule-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.trainer-group-schedule-state.is-active {
  border-color: rgba(26, 127, 90, 0.26);
  background: #eefaf3;
  color: #15724e;
}

.trainer-group-proposal {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-group-proposal-rows {
  display: grid;
  gap: 8px;
}

.trainer-group-proposal-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(130px, auto) 42px;
  gap: 8px;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(66, 104, 178, 0.2);
  border-radius: 8px;
  background: #f8faff;
}

.trainer-group-proposal-row.has-validation-error {
  border-color: rgba(184, 70, 52, 0.55);
  background: #fff3f1;
}

.trainer-group-proposal-window {
  display: grid;
  gap: 3px;
  min-height: 42px;
  align-content: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.trainer-group-proposal-window span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trainer-group-proposal-window strong {
  font-size: 0.84rem;
}

.trainer-leave-admin-panel {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.trainer-leave-admin-panel.is-compact {
  margin-top: 2px;
}

.trainer-leave-admin-head h3 {
  margin: 0;
}

.trainer-leave-admin-form,
.trainer-leave-edit-form {
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-leave-reason-field {
  min-width: 0;
}

.trainer-leave-list-wrap {
  background: #fff;
}

.trainer-leave-table {
  min-width: 860px;
}

.trainer-leave-table td {
  vertical-align: middle;
}

.trainer-leave-table td:nth-child(4) {
  min-width: 240px;
  overflow-wrap: anywhere;
}

.trainer-leave-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(180, 112, 26, 0.28);
  border-radius: 999px;
  background: #fff7e8;
  color: #8b5b12;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.trainer-leave-state.is-current {
  border-color: rgba(26, 127, 90, 0.28);
  background: #eefaf3;
  color: #15724e;
}

.trainer-applications-wrap {
  background: #fff;
}

.trainer-applications-table {
  min-width: 1080px;
}

.trainer-applications-table th,
.trainer-applications-table td {
  vertical-align: middle;
}

.trainer-application-name-cell {
  min-width: 250px;
}

.trainer-application-name-button {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trainer-application-action-cell {
  min-width: 250px;
}

.trainer-application-actions {
  gap: 8px;
  align-items: center;
}

.trainer-application-actions form {
  margin: 0;
}

.trainer-application-actions .button,
.trainer-application-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.trainer-application-actions .trainer-application-delete-button {
  flex: 0 0 38px;
  min-width: 38px;
  padding: 0;
}

.trainer-application-expanded-row td {
  background: #f8fbfb;
}

.trainer-application-profile-panel {
  gap: 12px;
}

.trainer-application-profile-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trainer-application-panel-actions {
  padding-top: 2px;
}

.trainer-review-button {
  min-height: 34px;
  padding: 0 12px;
}

.team-users-panel {
  gap: 16px;
  overflow: hidden;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.team-users-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(66, 104, 178, 0.1), rgba(8, 116, 127, 0.08)),
    #fff;
}

.team-users-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.team-users-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.team-users-hero-actions button {
  gap: 8px;
}

.team-users-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px;
}

.team-users-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.team-users-metric strong {
  color: var(--brand-dark);
  font-size: 1.7rem;
  line-height: 1;
}

.team-users-metric span {
  color: var(--muted);
  font-weight: 850;
}

.team-users-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 0 24px;
}

.team-users-role-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 24px;
}

.team-users-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 950;
}

.team-users-chip.is-active {
  border-color: var(--brand-dark);
  background: #eef5ff;
}

.team-users-chip strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #e5f3f5;
  color: var(--brand-dark);
  font-size: 0.82rem;
}

.team-user-create-card {
  margin: 0 24px;
  overflow: hidden;
  border: 1px solid #b9d6df;
  border-radius: 8px;
  background: #f8fcfd;
}

.team-user-create-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.team-user-create-card summary::-webkit-details-marker {
  display: none;
}

.team-user-create-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #fff;
}

.team-user-create-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.team-user-create-title strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.18;
}

.team-user-create-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.team-user-create-form .wide {
  grid-column: span 2;
}

.team-user-create-form button {
  align-self: end;
}

.team-user-empty-filter {
  margin: 0 24px;
}

.team-user-list {
  display: grid;
  gap: 12px;
  padding: 0 24px 24px;
}

.team-user-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr) 300px;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #f8fcfd 100%);
  box-shadow: var(--shadow-soft);
}

.team-user-card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -11px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(66, 104, 178, 0.26);
}

.team-user-card.is-inactive {
  border-left-color: var(--danger);
  background:
    linear-gradient(135deg, rgba(184, 70, 52, 0.07), #fff 55%),
    #fff;
}

.team-user-card.is-inactive::before {
  background: var(--danger);
}

.team-user-badge-row .badge.is-active,
.team-user-status-row .badge.is-active,
.badge.is-active {
  border-color: rgba(17, 135, 102, 0.24);
  background: var(--success);
  color: #fff;
}

.badge.is-warning {
  border-color: rgba(168, 106, 22, 0.28);
  background: #fff8eb;
  color: #7a4a09;
}

.badge.is-soft {
  background: #eef7f8;
  color: var(--brand-dark);
}

.team-user-identity,
.team-user-access,
.team-user-controls {
  display: grid;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(186, 213, 223, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.team-user-identity {
  align-content: start;
  gap: 8px;
  background: #f7fcfd;
}

.team-user-badge-row,
.team-user-status-row,
.team-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.team-user-name {
  display: block;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-decoration: none;
}

a.team-user-name:hover {
  color: var(--brand);
}

.team-user-email {
  color: var(--muted);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.team-user-activity {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.28;
}

.team-user-access {
  gap: 10px;
  align-content: start;
}

.team-user-access-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.team-user-access-head strong,
.team-user-controls-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.2;
}

.team-user-pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-user-pool-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.team-user-pool-card.is-muted {
  opacity: 0.68;
  background: #f7f9fa;
}

.team-user-pool-card strong {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.15;
}

.team-user-pool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.team-user-mini-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf6f8;
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 930;
}

.team-user-mini-tag.is-muted {
  background: #eef1f3;
  color: var(--muted);
}

.team-user-controls {
  align-content: start;
  gap: 10px;
}

.team-user-control-group {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.team-user-actions {
  gap: 6px;
}

.team-user-action-form,
.team-user-actions form {
  margin: 0;
}

.team-user-secondary-action,
.team-user-icon-button,
.team-user-actions .delete-toggle-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 8px;
}

.team-user-secondary-action {
  gap: 8px;
  padding: 0 12px;
}

.team-user-icon-button {
  border-color: rgba(66, 104, 178, 0.26);
  background: #f7faff;
  color: var(--brand-dark);
}

.team-user-icon-button.is-loading .ui-icon {
  animation: spin 0.8s linear infinite;
}

.team-user-actions .delete-toggle-summary {
  border-color: rgba(184, 70, 52, 0.28);
  color: var(--danger);
}

.team-user-actions .owner-login-action span,
.team-user-actions .delete-toggle-summary span {
  display: none;
}

.user-access-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1346;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 31, 44, 0.46);
  backdrop-filter: blur(6px);
}

.user-access-modal-backdrop[hidden] {
  display: none;
}

.user-access-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 31, 44, 0.34);
  backdrop-filter: blur(3px);
}

.user-access-confirm-modal {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(66, 104, 178, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 31, 44, 0.34);
}

.user-access-confirm-modal.is-success {
  border-color: rgba(22, 130, 96, 0.34);
}

.user-access-confirm-modal.is-error {
  border-color: rgba(194, 79, 61, 0.34);
}

.user-access-confirm-modal h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.user-access-confirm-modal p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.user-access-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.user-access-modal {
  position: relative;
  display: grid;
  gap: 0;
  width: min(1040px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(124, 160, 177, 0.34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(12, 31, 44, 0.26);
}

.user-access-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.user-access-modal-head .eyebrow,
.user-access-modal-head h2 {
  color: #fff;
}

.user-access-modal-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.user-access-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.user-access-head-badges .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.user-access-modal-close {
  flex: 0 0 auto;
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.user-access-modal-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8fbfc;
}

.user-access-modal-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(124, 160, 177, 0.24);
  border-radius: 8px;
  background: #fff;
}

.user-access-modal-section h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.02rem;
}

.user-access-field-grid,
.user-access-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.user-access-form,
.user-access-note,
.user-access-password-details {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(124, 160, 177, 0.22);
  border-radius: 8px;
  background: #f8fbfc;
}

.user-access-form-wide {
  grid-column: span 1;
}

.user-access-form .field,
.user-access-password-details .form-grid {
  margin: 0;
}

.user-access-form button,
.user-access-password-details button {
  width: fit-content;
}

.user-access-scope-help {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.user-access-note span {
  color: var(--muted);
  font-weight: 700;
}

.user-access-pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-access-pool-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(12, 128, 143, 0.22);
  border-radius: 8px;
  background: #f4fbfb;
}

.user-access-pool-card.is-muted {
  border-color: rgba(124, 160, 177, 0.22);
  background: #f9fbfb;
}

.user-access-pool-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.user-access-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.user-access-checks label,
.user-access-password-details summary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.user-access-password-details summary {
  cursor: pointer;
  color: var(--brand-dark);
  list-style: none;
}

.user-access-password-details summary::-webkit-details-marker {
  display: none;
}

.user-access-password-details .form-grid {
  padding-top: 10px;
}

.user-access-inline-actions,
.user-access-inline-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

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

.access-actions form {
  margin: 0;
}

.owner-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.owner-login-action {
  border-color: rgba(12, 128, 143, 0.28);
  background: #eefafa;
  color: #075d68;
}

.owner-login-action:hover {
  border-color: rgba(12, 128, 143, 0.48);
  background: #dff5f5;
}

.trainer-review-modal-backdrop,
.user-password-modal-backdrop,
.user-delete-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 49, 61, 0.48);
  backdrop-filter: blur(5px);
}

.trainer-review-modal-backdrop[hidden],
.user-password-modal-backdrop[hidden],
.user-delete-modal-backdrop[hidden] {
  display: none;
}

.trainer-review-modal,
.user-password-modal,
.user-delete-modal {
  position: relative;
  display: grid;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  gap: 16px;
  overflow: auto;
  padding: 28px;
  border: 1px solid #b8ded4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 49, 61, 0.24);
}

.trainer-review-modal h2,
.user-password-modal h2,
.user-delete-modal h2 {
  margin: 0;
  padding-right: 80px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.user-password-modal .form-grid {
  margin-top: 0;
}

.delete-warning {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(184, 70, 52, 0.22);
  border-radius: 8px;
  background: #fff8f6;
  color: #7b3225;
}

.delete-warning strong {
  color: var(--danger);
}

.delete-confirm-actions {
  justify-content: flex-end;
}

.danger-action {
  border-color: rgba(184, 70, 52, 0.34);
  color: var(--danger);
}

.danger-action:hover {
  border-color: rgba(184, 70, 52, 0.52);
  background: #fff3f1;
}

.trainer-review-summary,
.trainer-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trainer-review-summary {
  color: var(--muted);
  font-weight: 800;
}

.trainer-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trainer-review-grid div,
.trainer-review-section {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trainer-review-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trainer-review-grid strong,
.trainer-review-section .detail-text {
  overflow-wrap: anywhere;
}

.trainer-review-section > strong {
  color: var(--text);
}

.has-modal-open {
  overflow: hidden;
}

.trainer-appointments-card > .section-header {
  align-items: center;
}

.trainer-memberships-card {
  width: 100%;
}

.trainer-memberships-card .client-inline-tool,
.trainer-memberships-card .inline-details {
  width: 100%;
  max-width: none;
}

.trainer-memberships-card .inline-details .form-grid {
  width: 100%;
}

.trainer-membership-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.trainer-membership-actions .crm-disclosure-action.inline-details {
  width: auto;
}

.trainer-membership-card-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.trainer-profile-membership-card {
  min-width: 0;
}

.trainer-profile-package-title {
  align-self: start;
}

.trainer-profile-membership-facts {
  grid-template-columns: minmax(130px, 0.7fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(150px, 0.9fr);
}

.trainer-profile-membership-meta {
  padding-top: 2px;
}

.trainer-appointment-list {
  display: grid;
  gap: 8px;
}

.trainer-appointment-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(190px, 1.2fr) minmax(150px, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(8, 116, 127, 0.26);
  border-radius: 8px;
  background: #fff;
}

.trainer-appointment-row time,
.trainer-appointment-main,
.trainer-appointment-service,
.trainer-appointment-state {
  min-width: 0;
}

.trainer-appointment-row time,
.trainer-appointment-main,
.trainer-appointment-service {
  display: grid;
  gap: 3px;
}

.trainer-appointment-row time {
  color: var(--text);
  font-weight: 850;
}

.trainer-appointment-row time span,
.trainer-appointment-main span,
.trainer-appointment-service span,
.trainer-appointment-service em {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
}

.trainer-appointment-main strong,
.trainer-appointment-service strong {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(8, 116, 127, 0.12);
  border-radius: 7px;
  background: rgba(8, 116, 127, 0.06);
  overflow-wrap: anywhere;
}

.trainer-appointment-state,
.trainer-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.trainer-appointment-row.trainer-row-status-confirmed {
  border-left-color: #168260;
}

.trainer-appointment-row.trainer-row-status-cancelled {
  border-left-color: #b84634;
}

.trainer-appointment-row.trainer-row-status-completed {
  border-left-color: #28506f;
}

.intake-icon-button.is-danger {
  border-color: rgba(184, 70, 52, 0.32);
  color: #963927;
}

.intake-icon-button.is-danger:hover {
  background: #fff3f1;
}

.intake-inbox {
  display: grid;
  gap: 12px;
}

.operations-grid .intake-workspace {
  grid-column: 1 / -1;
}

.intake-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-nav {
  margin-bottom: 10px;
}

.intake-filter-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.intake-filter-chip:hover {
  border-color: rgba(8, 116, 127, 0.42);
  box-shadow: var(--shadow-soft);
}

.intake-filter-chip.is-active {
  border-color: var(--brand);
  background: #e9f7f6;
  color: var(--brand-dark);
}

.intake-filter-chip.workspace-add-chip {
  min-width: 52px;
  min-height: 44px;
  justify-content: center;
  padding: 0 12px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 49, 61, 0.14);
}

.intake-filter-chip.workspace-add-chip:hover,
.intake-filter-chip.workspace-add-chip.is-active {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.intake-filter-chip strong {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
}

.intake-filter-chip.workspace-add-chip strong {
  min-width: 32px;
  min-height: 32px;
  background: transparent;
  color: #fff;
  font-weight: 950;
}

.intake-filter-chip strong .ui-icon {
  width: 16px;
  height: 16px;
}

.intake-filter-chip.workspace-add-chip strong .ui-icon {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

.workspace-add-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.intake-filter-chip em {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(8, 116, 127, 0.11);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.home-workspace-nav {
  margin-bottom: 8px;
}

.pwa-install-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-color: rgba(32, 86, 168, 0.22);
  background: linear-gradient(135deg, #f8fbff 0%, #eef9f7 100%);
}

.pwa-install-panel[hidden] {
  display: none;
}

.pwa-install-panel.is-installed {
  display: none;
}

.pwa-install-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.pwa-install-icon {
  flex: 0 0 auto;
  background: #2056a8;
  color: #fff;
}

.pwa-install-main h2 {
  margin: 2px 0 4px;
  color: var(--brand-dark);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.15;
}

.pwa-install-main .muted {
  margin: 0;
}

.pwa-install-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pwa-install-actions .button,
.pwa-install-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.role-home-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.role-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.role-home-actions .button {
  min-width: 0;
}

.role-home-actions .button span,
.evidence-viewer-home .title {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .app-notifications-panel {
    display: grid;
    gap: 12px;
  }

  .app-notifications-home-prompt {
    display: grid;
    gap: 12px;
  }

  .app-notifications-home-main {
    align-items: flex-start;
  }

  .app-notifications-home-prompt .button {
    width: 100%;
    justify-content: center;
  }

  .app-notifications-main {
    align-items: flex-start;
  }

  .app-notifications-side {
    width: 100%;
    justify-items: stretch;
  }

  .app-notifications-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .app-notifications-actions .button,
  .app-notifications-actions button {
    width: 100%;
    justify-content: center;
  }

  .pwa-install-panel {
    display: grid;
    gap: 12px;
  }

  .pwa-install-main {
    align-items: flex-start;
  }

  .pwa-install-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .pwa-install-actions .button,
  .pwa-install-actions button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .app-notifications-actions {
    grid-template-columns: 1fr;
  }

  .pwa-install-actions {
    grid-template-columns: 1fr;
  }

  .role-home-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .role-home-actions .button {
    width: 100%;
  }
}

.intake-list-meta,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

[data-intake-live-body] {
  display: grid;
  gap: 18px;
}

.intake-live-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 8px;
  background: #edf9f7;
  color: var(--brand-dark);
  font-weight: 850;
}

.intake-live-status .button {
  min-height: 34px;
  padding: 0 12px;
}

.intake-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.intake-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.intake-table th,
.intake-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.intake-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intake-table tr:last-child td {
  border-bottom: 0;
}

.intake-client-cell {
  min-width: 220px;
}

.intake-client-cell > strong,
.compact-note {
  display: block;
}

.intake-client-profile-details {
  position: relative;
}

.intake-client-profile-details summary {
  list-style: none;
}

.intake-client-profile-details summary::-webkit-details-marker {
  display: none;
}

.intake-client-profile-details:not([open]) > :not(summary),
.intake-row-details:not([open]) > :not(summary),
.inline-details:not([open]) > :not(summary) {
  display: none;
}

.intake-client-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.intake-client-toggle-icon {
  display: inline-flex;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(8, 116, 127, 0.26);
  border-radius: 8px;
  background: #f4faf9;
  color: var(--brand-dark);
  box-shadow: none;
  cursor: pointer;
}

.intake-client-toggle-icon:hover,
.intake-client-toggle-icon:focus-visible {
  border-color: var(--brand);
  background: #eaf7f5;
  color: var(--brand);
  box-shadow: none;
  transform: none;
}

.intake-client-toggle-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.intake-client-toggle-icon .is-closed {
  display: inline-flex;
}

.intake-client-toggle-icon .is-open {
  display: none;
}

.intake-client-toggle-icon[aria-expanded="true"] .is-closed {
  display: none;
}

.intake-client-toggle-icon[aria-expanded="true"] .is-open {
  display: inline-flex;
}

.intake-client-name-button {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 7px;
  background: rgba(8, 116, 127, 0.07);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.intake-client-name-button:hover {
  border-color: rgba(8, 116, 127, 0.28);
  background: rgba(8, 116, 127, 0.11);
  color: var(--brand);
  box-shadow: none;
  transform: none;
}

.intake-expanded-row[hidden] {
  display: none;
}

.intake-mobile-expanded {
  display: none;
}

.intake-expanded-row td {
  background: #f8fbfb;
}

.intake-expanded-cell {
  padding: 0 !important;
}

.intake-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1288;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 31, 44, 0.44);
  backdrop-filter: blur(6px);
}

.intake-detail-modal-backdrop[hidden] {
  display: none;
}

.intake-detail-modal {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(1180px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(124, 160, 177, 0.34);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 26px 70px rgba(12, 31, 44, 0.28);
}

.intake-detail-modal-head {
  display: grid;
  gap: 8px;
  margin: -22px -22px 0;
  padding: 18px 96px 18px 22px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.intake-detail-modal-head .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.intake-detail-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.15;
}

.intake-detail-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.intake-detail-modal-badges .badge {
  background: rgba(255, 255, 255, 0.92);
}

.intake-detail-modal .intake-client-profile-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.intake-client-profile-panel {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #fbfdfd;
}

.intake-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-profile-actions .button {
  min-height: 36px;
  padding: 0 10px;
}

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

.intake-profile-warning {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(168, 106, 22, 0.25);
  border-radius: 8px;
  background: #f4f7ff;
}

.intake-panel-actions {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.intake-payment-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #f7fcfb;
}

.intake-payment-heading,
.intake-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-payment-heading {
  align-items: center;
  justify-content: space-between;
}

.intake-payment-actions {
  align-items: flex-end;
}

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

.intake-payment-actions form {
  display: inline-flex;
}

.intake-payment-actions form.bank-payment-reference-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  flex: 1 1 560px;
  min-width: min(100%, 560px);
  align-items: end;
  gap: 8px 10px;
}

.bank-payment-reference-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.bank-payment-reference-fields label {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.bank-payment-reference-fields span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bank-payment-reference-fields input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-sizing: border-box;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.bank-payment-reference-fields input:focus {
  border-color: rgba(66, 104, 178, 0.72);
  box-shadow: 0 0 0 3px rgba(66, 104, 178, 0.12);
  outline: none;
}

.intake-payment-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.intake-payment-actions form.bank-payment-reference-form .intake-payment-action {
  width: auto;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .intake-payment-actions form.bank-payment-reference-form {
    grid-template-columns: 1fr;
    flex-basis: 100%;
    min-width: 0;
  }

  .intake-payment-actions form.bank-payment-reference-form .intake-payment-action {
    width: 100%;
  }
}

.intake-payment-action-state.is-paid {
  border-color: rgba(13, 107, 70, 0.42);
  background: #0d6b46;
  color: #fff;
}

.intake-payment-action-state.is-paid:hover {
  border-color: #095538;
  background: #095538;
  color: #fff;
}

.intake-payment-action-state.is-unpaid {
  border-color: rgba(190, 55, 42, 0.45);
  background: #c43b31;
  color: #fff;
}

.intake-payment-action-state.is-unpaid:hover {
  border-color: #a62f27;
  background: #a62f27;
  color: #fff;
}

.intake-payment-action-request {
  border-color: rgba(66, 104, 178, 0.42);
  background: var(--brand);
  color: #fff;
}

.intake-payment-action-request:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.membership-payment-edit-panel {
  margin-top: 12px;
  margin-bottom: 12px;
}

.membership-payment-edit-panel .profile-list {
  margin: 0;
}

.membership-payment-edit-badge {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 0.82rem;
}

.membership-payment-edit-actions {
  padding-top: 2px;
}

.intake-modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.intake-modal-continue {
  min-height: 42px;
  padding: 0 16px;
}

.status-warning {
  border-color: rgba(168, 106, 22, 0.28);
  background: #fff8eb;
  color: #7a4a09;
}

.status-success {
  border-color: rgba(20, 109, 80, 0.25);
  background: #eaf8f0;
  color: #146d50;
}

.status-danger {
  border-color: rgba(190, 55, 42, 0.28);
  background: #fff0ee;
  color: #a62f27;
}

.status-neutral {
  border-color: rgba(82, 97, 108, 0.2);
  background: #eef4f5;
  color: #52616c;
}

.intake-panel-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-panel-action-grid form {
  display: inline-flex;
}

.intake-panel-action-grid button {
  min-height: 36px;
  padding: 0 12px;
}

.intake-panel-details {
  display: grid;
  gap: 10px;
}

.intake-panel-details summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
}

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

.intake-panel-details:not([open]) > :not(summary) {
  display: none;
}

.intake-panel-details form {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  box-shadow: none;
}

.compact-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.intake-clamp {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intake-duplicate {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f7ff;
  color: #7a4b08;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.intake-action-cell {
  min-width: 190px;
}

.intake-action-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.intake-row-transfer-form {
  display: grid;
  min-width: 0;
}

.intake-continue-button,
.intake-row-transfer-button {
  width: 100%;
  min-width: 150px;
  justify-content: center;
  white-space: nowrap;
}

.intake-row-transfer-button {
  min-height: 36px;
  padding: 0 10px;
}

.intake-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.intake-icon-form {
  display: inline-flex;
}

.intake-icon-button {
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.intake-icon-button:hover {
  border-color: rgba(8, 116, 127, 0.42);
  background: var(--surface);
  box-shadow: none;
  transform: none;
}

.intake-icon-button.is-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.ui-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intake-row-details {
  position: relative;
}

.intake-row-details summary {
  list-style: none;
}

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

.intake-detail-panel,
.intake-row-details .mini-form,
.intake-schedule-details form {
  width: 340px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.intake-detail-panel {
  display: grid;
  gap: 8px;
}

.intake-panel-details form,
.intake-panel-details .mini-form,
.intake-panel-details.intake-schedule-details form {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  box-shadow: none;
}

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

.status-intake-new {
  background: #e9f7f6;
  color: var(--brand-dark);
}

.status-intake-contacted,
.status-intake-in-review {
  background: #eef4ff;
  color: #28506f;
}

.status-intake-converted {
  background: #effaf6;
  color: var(--success);
}

.status-intake-rejected {
  background: #fff0ed;
  color: var(--danger);
}

.status-intake-archived {
  background: #eef2f4;
  color: var(--muted);
}

.quick-client-workspace {
  border-color: rgba(8, 116, 127, 0.18);
}

.quick-client-form {
  align-items: end;
}

.quick-client-form textarea {
  min-height: 86px;
}

.quick-source-intake {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.22);
  border-radius: 8px;
  background: #eefafa;
}

.quick-source-intake div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-source-intake strong,
.quick-source-intake span {
  overflow-wrap: anywhere;
}

.quick-source-payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(66, 104, 178, 0.28);
  border-radius: 8px;
  background: #f5f8ff;
}

.quick-source-payment.is-paid {
  border-color: rgba(177, 112, 24, 0.34);
  background: #fff9ed;
}

.quick-source-payment > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-source-payment strong,
.quick-source-payment span {
  overflow-wrap: anywhere;
}

.quick-source-payment-confirm,
.quick-client-reactivation-confirm,
.quick-client-conflict-confirm,
.quick-exact-override-confirm {
  border-color: rgba(177, 112, 24, 0.34);
  background: #fffdf7;
}

.quick-source-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.quick-source-cancel {
  border-color: rgba(184, 70, 52, 0.68);
  background: #d73522;
  color: #fff;
}

.quick-source-cancel:hover {
  border-color: rgba(184, 70, 52, 0.82);
  background: #b92f20;
  color: #fff;
}

.appointment-reschedule-invite-form {
  display: inline-flex;
  margin-top: 8px;
}

.client-request-reschedule-invite .attendance-reschedule-form {
  width: 100%;
}

.quick-client-search,
.quick-new-client-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.quick-client-search {
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.quick-sibling-participant {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(58, 97, 177, 0.24);
  border-radius: 8px;
  background: #f6f9ff;
}

.quick-sibling-participant .section-header {
  margin: 0;
}

.quick-sibling-participant [data-second-client-fields].is-disabled {
  opacity: 0.58;
}

.quick-client-search .compact-note,
.quick-client-results,
.quick-selected-client {
  grid-column: 1 / -1;
}

.quick-client-results {
  display: grid;
  gap: 8px;
}

.live-search-results {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
}

.quick-client-results[hidden],
.quick-selected-client[hidden],
.live-search-results[hidden] {
  display: none;
}

.live-search-result {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.live-search-result:hover,
.live-search-result:focus-visible {
  border-color: rgba(8, 116, 127, 0.35);
  background: #eefafa;
  color: var(--text);
}

.live-search-result span {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.quick-client-results button {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.quick-client-results button:hover {
  border-color: rgba(8, 116, 127, 0.35);
  background: #eefafa;
}

.quick-client-results button span {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.quick-selected-client {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.24);
  border-radius: 8px;
  background: #eefafa;
}

.quick-selected-client div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-selected-client span {
  overflow-wrap: anywhere;
}

.membership-postponement-workspace,
.membership-postponement-workspace input,
.membership-postponement-workspace select,
.membership-postponement-workspace textarea,
.membership-postponement-workspace button {
  font-family: inherit;
}

.membership-postponement-form {
  gap: 18px;
}

.membership-postponement-pool-field {
  max-width: 480px;
}

.membership-postponement-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.membership-postponement-scope-options,
.membership-postponement-session-options {
  display: grid;
  gap: 10px;
}

.membership-postponement-scope-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.membership-postponement-session-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.membership-postponement-scope-card,
.membership-postponement-session-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.membership-postponement-session-card {
  min-height: 56px;
  align-content: center;
}

.membership-postponement-scope-card input,
.membership-postponement-session-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.membership-postponement-scope-card strong,
.membership-postponement-session-card strong {
  color: var(--brand-dark);
  font-size: 1.06rem;
  font-weight: 950;
  line-height: 1.18;
}

.membership-postponement-scope-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.3;
}

.membership-postponement-scope-card:hover,
.membership-postponement-scope-card:focus-within,
.membership-postponement-session-card:hover,
.membership-postponement-session-card:focus-within {
  border-color: rgba(8, 116, 127, 0.36);
  background: #eefafa;
}

.membership-postponement-scope-card.is-selected,
.membership-postponement-session-card.is-selected {
  border-color: rgba(48, 91, 178, 0.58);
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(48, 91, 178, 0.16);
}

.membership-postponement-scope-panel[hidden] {
  display: none;
}

.membership-postponement-entity-search {
  grid-template-columns: 1fr;
}

.membership-postponement-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.membership-postponement-reason textarea {
  min-height: 116px;
}

.membership-postponement-timing-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
}

.membership-postponement-duration-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: #f8fbfb;
}

.membership-postponement-duration-panel > strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 950;
}

.membership-postponement-week-control {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.membership-postponement-week-control .input {
  flex: 1 1 96px;
  min-width: 76px;
  max-width: 132px;
  text-align: center;
  font-weight: 950;
}

.membership-postponement-week-step {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
}

.membership-postponement-week-step .ui-icon {
  width: 17px;
  height: 17px;
}

.membership-postponement-date-field .crm-date-picker.is-simple {
  width: 100%;
}

.membership-postponement-date-field .crm-date-calendar-toggle summary {
  min-height: 38px;
}

.membership-postponement-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.membership-postponement-action-row .primary,
.membership-postponement-action-row .button {
  min-width: min(240px, 100%);
  justify-content: center;
}

.membership-postponement-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 49, 61, 0.5);
  backdrop-filter: blur(5px);
}

.membership-postponement-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1280px, 100%);
  height: min(940px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid #b8ded4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 49, 61, 0.24);
}

.membership-postponement-modal-head,
.membership-postponement-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

.membership-postponement-modal-head {
  border-bottom: 1px solid var(--line);
}

.membership-postponement-modal-head h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.membership-postponement-modal-body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
}

.membership-postponement-preview-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.membership-postponement-preview-table-wrap {
  max-height: none;
  overflow: auto;
}

.membership-postponement-preview-table {
  min-width: 1040px;
}

.membership-postponement-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbfb;
}

.membership-postponement-preview-table td {
  vertical-align: top;
}

.membership-postponement-preview-table td > .muted,
.membership-postponement-preview-table td strong + .muted {
  display: block;
  margin-top: 4px;
}

.membership-postponement-modal-footer {
  border-top: 1px solid var(--line);
  background: #f8fbfb;
}

.membership-postponement-modal-footer .check-row {
  flex: 1 1 auto;
  margin: 0;
}

.membership-postponement-modal-footer .primary {
  flex: 0 0 auto;
  min-width: 220px;
  justify-content: center;
}

@media (max-width: 860px) {
  .membership-postponement-pool-field {
    max-width: none;
  }

  .membership-postponement-scope-options,
  .membership-postponement-session-options,
  .membership-postponement-main-grid,
  .membership-postponement-timing-grid,
  .membership-postponement-preview-stats {
    grid-template-columns: 1fr;
  }

  .membership-postponement-week-control {
    width: 100%;
  }

  .membership-postponement-week-control .input {
    max-width: none;
  }

  .membership-postponement-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-postponement-action-row .primary,
  .membership-postponement-action-row .button {
    min-width: 0;
  }

  .membership-postponement-modal-backdrop {
    padding: 8px;
  }

  .membership-postponement-modal {
    height: calc(100vh - 16px);
  }

  .membership-postponement-modal-head,
  .membership-postponement-modal-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .membership-postponement-modal-head .button,
  .membership-postponement-modal-footer .primary {
    width: 100%;
    min-width: 0;
  }

  .membership-postponement-modal-body {
    padding: 14px;
  }
}

.client-duplicate-warning {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(213, 132, 34, 0.38);
  border-radius: 8px;
  background: #fff8ec;
}

.client-duplicate-warning[hidden] {
  display: none;
}

.client-duplicate-warning.is-blocking {
  border-color: rgba(184, 70, 52, 0.42);
  background: #fff5f2;
}

.client-duplicate-warning-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-duplicate-warning p {
  margin: 3px 0 0;
}

.client-duplicate-list {
  display: grid;
  gap: 8px;
}

.client-duplicate-candidate {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.client-duplicate-candidate div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.client-duplicate-candidate strong,
.client-duplicate-candidate span,
.client-duplicate-candidate small {
  overflow-wrap: anywhere;
}

.client-duplicate-candidate span,
.client-duplicate-candidate small {
  color: var(--muted);
}

.client-duplicate-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.client-duplicate-actions .badge.danger {
  background: #ffe6df;
  color: var(--danger);
}

.client-duplicate-confirm,
.client-duplicate-shared {
  align-self: start;
  background: rgba(255, 255, 255, 0.6);
}

.client-duplicate-confirm[hidden],
.client-duplicate-shared[hidden] {
  display: none;
}

.client-duplicate-shared {
  border-color: rgba(66, 104, 178, 0.28);
  background: #f5f8ff;
}

.quick-new-client-fields.is-disabled {
  opacity: 0.58;
}

.quick-membership-block,
.quick-appointment-block {
  display: grid;
  gap: 12px;
  align-self: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.appointment-kind-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.appointment-kind-choice legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.appointment-kind-choice label {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.appointment-kind-choice label:has(input:checked) {
  border-color: rgba(66, 104, 178, 0.5);
  background: #edf4ff;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(66, 104, 178, 0.12);
}

.appointment-client-section,
.appointment-collective-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.appointment-client-section > .full,
.appointment-collective-section > .full {
  grid-column: 1 / -1;
}

.appointment-client-section[hidden],
.appointment-collective-section[hidden] {
  display: none;
}

.quick-membership-toggle {
  justify-self: start;
}

.quick-enrollment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quick-enrollment-actions[hidden] {
  display: none;
}

.quick-enrollment-actions .quick-membership-toggle {
  min-height: 48px;
}

.quick-membership-panel,
.quick-appointment-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.quick-appointment-panel.form-grid {
  margin: 0;
}

.appointment-standalone-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: start;
}

.appointment-standalone-fields[hidden] {
  display: none;
}

.section-header.compact {
  gap: 10px;
  margin-bottom: 0;
  padding: 10px 12px;
  border-left-width: 3px;
  background: linear-gradient(135deg, #f6fbfb, #ffffff);
}

.section-header.compact h3 {
  margin: 0;
  font-size: 1.02rem;
}

.section-header.compact p {
  margin: 3px 0 0;
}

.quick-client-submit {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(260px, 1fr);
  gap: 14px 18px;
  align-items: center;
  justify-content: start;
  padding-top: 14px;
}

.quick-client-submit .form-validation-summary {
  grid-column: 1 / -1;
}

.quick-client-submit button {
  justify-self: start;
  min-width: 220px;
  min-height: 52px;
  padding-inline: 22px;
  white-space: nowrap;
}

.quick-client-submit p {
  max-width: 760px;
  margin: 0;
  line-height: 1.4;
}

.quick-client-submit .inline-info-popover > div {
  top: auto;
  bottom: calc(100% + 8px);
}

.client-directory {
  display: grid;
  gap: 8px;
}

.client-registry-panel {
  max-width: none;
}

.client-registry-filter {
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
}

.client-registry-focus {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.client-registry-focus::-webkit-scrollbar {
  height: 7px;
}

.client-registry-focus::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(8, 116, 127, 0.22);
}

.client-filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.client-filter-chip:hover,
.client-filter-chip.is-active {
  border-color: rgba(8, 116, 127, 0.38);
  background: rgba(232, 247, 244, 0.95);
  color: var(--brand);
}

.client-registry-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.25fr) minmax(120px, 0.7fr) minmax(190px, 1fr) minmax(82px, 0.45fr) minmax(145px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #fff;
}

.client-registry-row:hover {
  border-color: rgba(8, 116, 127, 0.25);
  background: #fbfdfd;
}

.client-registry-primary {
  display: flex;
  gap: 8px;
  min-width: 0;
  align-items: center;
}

.client-name-stack {
  display: inline-grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.client-registry-primary .client-name-stack {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
}

.client-registry-primary .client-name-stack::before {
  content: "";
  grid-row: 1 / span 3;
  grid-column: 1;
  display: inline-block;
  width: 19px;
  height: 19px;
  align-self: center;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.client-registry-primary .client-name-stack > .client-membership-indicators,
.client-registry-primary .client-name-stack > .strong-link,
.client-registry-primary .client-name-stack > .client-guardian-meta,
.client-registry-primary .client-name-stack > strong {
  grid-column: 2;
}

.client-membership-indicators {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 3px;
  min-height: 14px;
  align-items: center;
}

.client-membership-indicator {
  display: inline-flex;
  min-width: 24px;
  height: 14px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid rgba(8, 116, 127, 0.12);
  border-radius: 4px;
  background: #edf6f6;
  color: var(--brand-dark);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.client-membership-indicator.is-summer,
.client-membership-indicator.is-group {
  border-color: rgba(216, 93, 18, 0.55);
  background: var(--brand);
  color: #fff;
}

.client-membership-indicator.is-personal,
.client-membership-indicator.is-individual,
.client-membership-indicator.is-recovery {
  border-color: rgba(6, 79, 186, 0.48);
  background: var(--brand);
  color: #fff;
}

.client-membership-indicator.is-performance {
  border-color: rgba(194, 159, 34, 0.48);
  background: #f1d85b;
  color: #17313d;
}

.client-membership-indicator.is-leisure {
  border-color: rgba(8, 125, 67, 0.5);
  background: #159957;
  color: #fff;
}

.client-registry-primary .strong-link,
.client-registry-fact strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-stack,
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-badges {
  margin-top: 8px;
}

.client-profile-membership-indicators {
  margin: 4px 0 2px;
}

.client-registry-fact {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.client-registry-fact span,
.client-registry-fact small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-registry-fact small {
  text-transform: none;
}

.client-registry-fact strong {
  color: var(--text);
  font-size: 0.94rem;
}

.client-registry-membership strong {
  white-space: normal;
  line-height: 1.25;
}

.client-registry-profile {
  min-width: 88px;
}

.client-registry-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 6px;
}

.is-progressive-hidden {
  display: none !important;
}

.progressive-list-separator,
.progressive-list-separator-row span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 116, 127, 0.22), transparent);
}

.progressive-list-separator {
  margin: 6px 0;
}

.progressive-list-separator-row td {
  padding: 10px 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.progressive-load-more {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.progressive-load-more .button {
  min-width: min(100%, 230px);
  justify-content: center;
}

.button.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.client-profile-page {
  overflow: visible;
}

.client-profile-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 247, 0.98)),
    linear-gradient(135deg, rgba(8, 116, 127, 0.1), rgba(66, 104, 178, 0.08));
}

.client-profile-hero h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.client-profile-hero > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.client-profile-hero > div > :not(.client-profile-actions) {
  grid-column: 1;
}

.client-profile-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  grid-row: 2 / span 5;
  align-self: start;
  justify-self: end;
  gap: 8px;
  justify-content: flex-end;
  max-width: min(430px, 44vw);
  margin: 0;
}

.client-profile-actions form {
  display: inline-flex;
  margin: 0;
}

.client-profile-actions .profile-action-phone {
  border-color: rgba(22, 130, 96, 0.26);
  background: #e9f7f1;
  color: #116747;
}

.client-profile-actions .profile-action-mail {
  border-color: rgba(66, 104, 178, 0.24);
  background: #eef4ff;
  color: var(--brand-dark);
}

.client-profile-actions .profile-action-calendar,
.client-profile-actions .profile-action-account,
.client-profile-actions .profile-action-history-report,
.client-profile-actions .owner-login-action {
  border-color: rgba(66, 104, 178, 0.34);
  background: #eef4ff;
  color: var(--brand-dark);
}

.client-profile-actions .profile-action-history-report {
  border-color: rgba(8, 116, 127, 0.24);
  background: #f0fbfb;
  color: #0f5d68;
}

.field small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.client-profile-edit-form .field {
  position: relative;
}

.profile-edit-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.profile-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  box-shadow: none;
}

.profile-edit-button:hover,
.profile-edit-button.is-active {
  border-color: rgba(8, 116, 127, 0.34);
  background: rgba(232, 247, 244, 0.95);
}

.profile-edit-button .ui-icon {
  width: 15px;
  height: 15px;
}

.profile-edit-control.is-locked {
  background: rgba(248, 251, 252, 0.88);
  color: var(--text);
  box-shadow: none;
  cursor: default;
}

select.profile-edit-control.is-locked {
  pointer-events: none;
}

textarea.profile-edit-control.is-locked {
  resize: none;
}

.profile-edit-field.is-editing .profile-edit-control {
  background: #fff;
}

.client-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-profile-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.client-profile-tabs::-webkit-scrollbar {
  height: 7px;
}

.client-profile-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(8, 116, 127, 0.24);
}

.client-profile-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
  font-weight: 900;
  white-space: nowrap;
}

.client-profile-tab:hover,
.client-profile-tab.is-active {
  border-color: rgba(8, 116, 127, 0.42);
  background: rgba(232, 247, 244, 0.95);
  color: var(--brand);
}

.client-profile-tab strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(8, 116, 127, 0.1);
  color: var(--brand-dark);
  font-size: 0.78rem;
}

.client-profile-panels,
.client-profile-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.client-profile-panel[hidden] {
  display: none;
}

.client-profile-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.client-profile-layout > *,
.client-profile-page .card,
.client-profile-table-block,
.membership-quick-edit {
  min-width: 0;
}

.client-profile-page h3,
.client-profile-page h4 {
  margin: 0;
}

.client-profile-table-block {
  display: grid;
  gap: 8px;
}

.client-profile-table-block + .client-profile-table-block {
  margin-top: 8px;
}

.client-inline-tool {
  margin-bottom: 10px;
}

.membership-quick-edit {
  display: grid;
  gap: 10px;
}

.membership-quick-edit form {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.membership-quick-edit form:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.client-profile-page.is-compact {
  gap: 12px;
}

.client-profile-page.is-compact .client-profile-hero {
  padding: 12px;
}

.client-profile-page.is-compact .client-profile-hero h2 {
  margin: 6px 0 4px;
}

.profile-nav-button {
  width: fit-content;
  margin: 0 0 14px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(66, 104, 178, 0.2);
}

.profile-nav-button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.client-profile-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 12px;
  align-items: stretch;
}

.client-profile-summary-card {
  min-width: 0;
  background: linear-gradient(135deg, #ffffff, #f6fbfb);
}

.client-profile-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.client-profile-summary-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.client-profile-summary-list strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.client-profile-alert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.client-profile-alert-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(184, 70, 52, 0.22);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8f5, #fffefe);
  box-shadow: 0 10px 22px rgba(69, 31, 23, 0.06);
}

.client-profile-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(184, 70, 52, 0.1);
  color: var(--danger);
}

.client-profile-alert-icon .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.client-profile-alert-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.client-profile-alert-copy strong {
  color: var(--danger);
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.client-profile-alert-copy span {
  color: #6f2a1d;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.client-profile-main-membership {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.client-profile-membership-preview-card {
  width: 100%;
}

.client-profile-summary-card .client-profile-membership-preview-card .membership-registry-compact-head,
.client-profile-summary-card .client-profile-membership-preview-card .membership-registry-compact-side {
  grid-template-columns: 1fr;
}

.client-profile-summary-card .client-profile-membership-preview-card .membership-registry-actions {
  justify-content: flex-start;
}

.client-profile-summary-card .client-profile-membership-preview-card .membership-registry-compact-detail-grid {
  grid-template-columns: 1fr;
}

.client-profile-summary-membership-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.client-profile-summary-membership-facts div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(213, 226, 231, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.client-profile-summary-membership-facts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-profile-summary-membership-facts strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-profile-summary-membership-facts .membership-session-ledger {
  display: flex;
  margin-top: 3px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.client-profile-summary-membership-facts .membership-session-box,
.client-profile-summary-membership-facts .membership-session-ledger-extra {
  display: inline-flex;
  color: transparent;
  font-size: 0.63rem;
  font-weight: 950;
  text-transform: none;
}

.client-profile-summary-membership-facts .membership-session-box.is-completed,
.client-profile-summary-membership-facts .membership-session-box.is-absent-consumed {
  color: #fff;
}

.client-profile-summary-membership-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.client-profile-summary-membership-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-profile-summary-membership-meta strong {
  color: var(--brand-dark);
}

.client-profile-calendar-card {
  background: #fff;
}

.client-profile-calendar-compact {
  min-width: 0;
}

.client-profile-calendar-compact .membership-calendar-preview {
  padding: 10px;
}

.client-profile-calendar-compact .membership-calendar-months {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.client-profile-calendar-compact .membership-calendar-day {
  min-height: 42px;
}

.client-profile-membership-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.client-profile-membership-list-item {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.client-profile-membership-card {
  gap: 14px;
}

.client-profile-membership-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.client-profile-membership-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.client-profile-membership-title {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(20, 49, 61, 0.08);
}

.client-profile-membership-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-profile-membership-card.is-summer .client-profile-membership-title,
.client-profile-membership-card.is-group .client-profile-membership-title {
  border-color: rgba(190, 98, 15, 0.28);
  background: var(--brand);
}

.client-profile-membership-card.is-personal .client-profile-membership-title,
.client-profile-membership-card.is-individual .client-profile-membership-title,
.client-profile-membership-card.is-recovery .client-profile-membership-title {
  border-color: rgba(66, 104, 178, 0.28);
  background: var(--brand);
}

.client-profile-membership-card.is-leisure .client-profile-membership-title {
  border-color: rgba(21, 153, 87, 0.28);
  background: #159957;
}

.client-profile-membership-card.is-performance .client-profile-membership-title {
  border-color: rgba(194, 159, 34, 0.35);
  background: #f1d85b;
  color: #17313d;
}

.client-profile-membership-tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.client-profile-membership-tool-row .crm-disclosure-action.inline-details {
  width: auto;
}

.client-profile-membership-tool-row .membership-renew-button {
  min-height: 46px;
  padding: 0 16px;
  border-color: rgba(66, 104, 178, 0.76);
  background: #f4f7ff;
  color: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(66, 104, 178, 0.12);
}

.client-profile-membership-tool-row .membership-renew-button:hover {
  border-color: var(--brand);
  background: #eef4ff;
  color: var(--brand-dark);
}

.crm-disclosure-action.inline-details,
.crm-disclosure-action.inline-details[open] {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.crm-disclosure-action > summary.crm-disclosure-action-summary {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(66, 104, 178, 0.2);
  list-style: none;
  font-weight: 950;
}

.crm-disclosure-action > summary.crm-disclosure-action-summary::-webkit-details-marker {
  display: none;
}

.crm-disclosure-action > summary.crm-disclosure-action-summary:hover,
.crm-disclosure-action[open] > summary.crm-disclosure-action-summary {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.crm-disclosure-action-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.crm-disclosure-action-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-disclosure-action > summary.crm-disclosure-action-summary .ui-icon {
  flex: 0 0 auto;
  stroke-width: 2.6;
}

.crm-disclosure-action > summary.crm-disclosure-action-summary > .ui-icon:last-child {
  transition: transform 0.18s ease;
}

.crm-disclosure-action[open] > summary.crm-disclosure-action-summary > .ui-icon:last-child {
  transform: rotate(180deg);
}

.crm-disclosure-action[open] > :not(summary) {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}

.crm-disclosure-action > .membership-quick-edit,
.crm-disclosure-action > form {
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: #f8fcfb;
}

.client-profile-membership-stats {
  grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1fr) minmax(170px, 1fr) minmax(190px, 1.1fr);
}

.client-profile-membership-calendar-wide {
  display: grid;
  min-width: 0;
}

.client-profile-membership-calendar-wide .membership-calendar-preview {
  width: 100%;
  overflow-x: auto;
  padding: 12px;
}

.client-profile-membership-calendar-wide .membership-calendar-months {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.client-profile-membership-calendar-wide .membership-calendar-day {
  min-height: 54px;
}

@media (max-width: 980px) {
  .client-profile-membership-calendar-wide .membership-calendar-months {
    grid-template-columns: 1fr;
  }
}

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

.ops-alert-column {
  display: grid;
  gap: 10px;
}

.ops-alert-column h3 {
  margin: 0;
  font-size: 1rem;
}

.ops-alert-list {
  display: grid;
  gap: 10px;
}

.ops-alert-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(168, 106, 22, 0.24);
  border-radius: 8px;
  background: #f4f7ff;
}

.ops-alert-card div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.ops-alert-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ops-alert-card p {
  margin: 0;
  color: #634211;
}

.empty-state.compact {
  padding: 12px;
}

.ops-command-center {
  border-color: rgba(8, 116, 127, 0.22);
  background: linear-gradient(180deg, #ffffff, #f3faf9);
}

.ops-command-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 14px;
}

.ops-command-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ops-command-card h3 {
  margin: 0;
  font-size: 1rem;
}

.priority-list,
.today-list,
.quick-action-list {
  display: grid;
  gap: 10px;
}

.priority-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.priority-item:hover {
  border-color: rgba(8, 116, 127, 0.42);
}

.priority-item strong {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e9f7f6;
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.priority-item span {
  font-weight: 800;
  line-height: 1.25;
}

.priority-warning strong {
  background: #fff0e7;
  color: var(--danger);
}

.today-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.today-item:last-child {
  border-bottom: 0;
}

.today-item time {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef6f7;
  color: var(--brand-dark);
  font-weight: 800;
}

.today-item strong,
.today-item span {
  display: block;
  overflow-wrap: anywhere;
}

.today-item span {
  color: var(--muted);
}

.quick-action-list .button,
.quick-action-list button {
  width: 100%;
}

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

.registry-hub-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.registry-hub-card:hover {
  border-color: rgba(8, 116, 127, 0.42);
  box-shadow: 0 12px 28px rgba(8, 116, 127, 0.12);
  transform: translateY(-1px);
}

.registry-hub-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef8f6;
  color: var(--brand-dark);
}

.registry-hub-icon .ui-icon {
  width: 23px;
  height: 23px;
}

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

.registry-hub-copy strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.registry-hub-copy small {
  color: var(--muted);
  line-height: 1.35;
}

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

.useful-link-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.useful-link-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.useful-link-icon {
  background: rgba(66, 104, 178, 0.12);
  color: var(--brand);
}

.useful-link-url {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.useful-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.useful-link-actions .button,
.useful-link-actions button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.9rem;
}

.useful-link-share .ui-icon {
  width: 18px;
  height: 18px;
}

.notice,
.error {
  padding: 13px 15px;
}

.notice {
  border-color: #b8ded4;
  background: #effaf6;
  color: #125f49;
}

.error {
  border-color: #efc1b8;
  background: #fff3f0;
  color: #8a3122;
}

.flash-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 49, 61, 0.46);
  backdrop-filter: blur(5px);
}

.flash-modal-backdrop[data-membership-confirmation-modal] {
  z-index: 1500;
}

.flash-modal-backdrop[data-client-request-confirm-modal] {
  z-index: 1700;
}

.flash-modal-backdrop[data-intake-payment-flash],
.flash-modal-backdrop[data-membership-payment-flash] {
  z-index: 1520;
}

.flash-modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #b8ded4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(20, 49, 61, 0.24);
}

.flash-modal-warning {
  border-color: rgba(183, 121, 15, 0.35);
  background: #fffaf0;
}

.flash-modal-warning h2 {
  color: #7d560d;
}

.flash-modal h2 {
  margin: 6px 0 10px;
  font-size: 1.65rem;
  line-height: 1.15;
}

.flash-modal p {
  margin: 0;
}

.flash-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(8, 116, 127, 0.24);
  background: #f8fbfc;
  color: var(--brand-dark);
}

.flash-modal-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.flash-modal-list li::marker {
  color: var(--success);
}

.flash-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.flash-modal-actions .button {
  min-height: 38px;
}

.client-history-report-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1510;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 49, 61, 0.46);
  backdrop-filter: blur(5px);
}

.client-history-report-modal-backdrop[hidden] {
  display: none;
}

.client-history-report-modal {
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #b8ded4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(20, 49, 61, 0.24);
}

.client-history-report-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: #f7fbfc;
}

.client-history-report-head h2 {
  margin: 2px 0 4px;
  font-size: 1.55rem;
}

.client-history-report-head > div:first-child span {
  color: var(--muted);
  font-weight: 800;
}

.client-history-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.client-history-report-body {
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 20px 24px 24px;
}

.client-history-report-section {
  display: grid;
  gap: 14px;
}

.client-history-report-acceptance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.client-history-report-acceptance {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #f9fdfd;
}

.client-history-report-acceptance-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.client-history-report-acceptance-title strong {
  color: var(--brand-dark);
}

.client-history-report-acceptance-title span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.client-history-report-kv {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 7px 12px;
  font-size: 0.9rem;
}

.client-history-report-kv span {
  color: var(--muted);
  font-weight: 800;
}

.client-history-report-kv strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.client-history-report-user-agent {
  display: block;
  padding: 10px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--brand-dark);
  font-size: 0.78rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.client-history-report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-history-report-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 8px;
  background: #eef4ff;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.client-history-report-timeline {
  display: grid;
  gap: 10px;
}

.client-history-report-event {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.client-history-report-event time {
  color: var(--brand-dark);
  font-weight: 900;
}

.client-history-report-event > div {
  min-width: 0;
}

.client-history-report-event span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-history-report-event strong {
  display: block;
  color: var(--ink);
}

.client-history-report-event ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.flash-payment-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(66, 104, 178, 0.2);
  border-radius: 8px;
  background: #f6f9ff;
  color: var(--brand-dark);
}

.flash-payment-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.flash-payment-head strong,
.flash-payment-head span {
  display: block;
}

.flash-payment-head strong {
  font-size: 1rem;
  font-weight: 950;
}

.flash-payment-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.flash-payment-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #244b90;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.flash-payment-icon .ui-icon {
  width: 19px;
  height: 19px;
  color: #fff;
  stroke: #fff;
  stroke-width: 2.7;
}

.flash-payment-total {
  display: grid;
  gap: 3px;
  margin-top: 2px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(66, 104, 178, 0.14);
}

.flash-payment-total span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flash-payment-total strong {
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
}

.flash-payment-total small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.flash-payment-row {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(66, 104, 178, 0.14);
}

.flash-payment-row > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flash-payment-row code {
  display: inline-block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  font-size: 0.94rem;
  font-weight: 950;
}

.flash-payment-row strong {
  min-width: 0;
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.flash-payment-copy {
  min-height: 32px;
  gap: 6px;
  padding: 0 9px;
  border-color: rgba(66, 104, 178, 0.26);
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.8rem;
}

.flash-payment-copy .ui-icon {
  width: 15px;
  height: 15px;
}

.flash-payment-note {
  margin: 2px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 850;
  line-height: 1.35;
}

.flash-payment-copy-all {
  justify-self: start;
}

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

.actions button {
  min-height: 38px;
}

button[name="status"][value="CONFIRMED"],
button[name="status"][value="APPROVED"] {
  border-color: rgba(22, 130, 96, 0.34);
  color: #126b50;
}

button[name="status"][value="COMPLETED"],
button[name="status"][value="IN_REVIEW"] {
  border-color: rgba(8, 116, 127, 0.34);
  color: var(--brand-dark);
}

button.primary[name="status"][value="COMPLETED"],
button.primary[name="status"][value="IN_REVIEW"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

button.primary[name="status"][value="COMPLETED"]:hover,
button.primary[name="status"][value="IN_REVIEW"]:hover {
  background: var(--brand-dark);
  color: #fff;
}

button[name="status"][value="CANCELLED"],
button[name="status"][value="REJECTED"] {
  border-color: rgba(184, 70, 52, 0.34);
  color: var(--danger);
}

.row-actions {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.intake-actions {
  min-width: 330px;
}

.mini-form {
  margin-top: 10px;
}

.mini-form textarea {
  min-height: 84px;
}

.appointment-highlight {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(8, 116, 127, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, #f0faf8);
}

.appointment-highlight h3 {
  margin: 10px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

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

.appointment-detail-grid div,
.empty-state {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.appointment-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.appointment-detail-grid strong {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-appointment-actions {
  max-width: 520px;
}

.attendance-panel {
  gap: 14px;
}

.attendance-ajax-message {
  margin: 0;
}

.attendance-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.attendance-row.is-updating {
  opacity: 0.66;
  pointer-events: none;
}

.attendance-row.is-selected {
  border-color: var(--brand);
  background: #f6f8ff;
  box-shadow: 0 0 0 3px rgba(66, 104, 178, 0.18), 0 14px 34px rgba(20, 49, 61, 0.08);
}

.attendance-date-nav {
  align-items: center;
  gap: 6px;
}

.attendance-date-picker {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-height: 44px;
  margin: 0;
}

.attendance-date-step {
  width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0;
}

.attendance-date-step .ui-icon,
.attendance-date-trigger > .ui-icon {
  width: 18px;
  height: 18px;
}

.attendance-date-trigger {
  min-height: 44px;
  border-color: var(--brand);
  background: #e9f7f6;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
}

.attendance-date-trigger span {
  font-weight: 950;
}

.attendance-date-trigger:hover {
  border-color: var(--brand-dark);
  box-shadow: var(--shadow-soft);
}

.attendance-date-input {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.attendance-search-tool {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(66, 104, 178, 0.26);
  border-radius: 8px;
  background: #f6f8ff;
}

.attendance-toolbar .attendance-date-nav {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.attendance-toolbar .attendance-search-tool {
  flex: 1 1 auto;
  align-self: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.attendance-search-tool .field {
  margin: 0;
}

.attendance-search-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.attendance-search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.attendance-search-field .input {
  min-height: 44px;
}

.attendance-export-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
}

.attendance-export-mobile {
  display: none;
}

.attendance-search-results {
  max-height: 520px;
  overflow: auto;
  padding: 6px 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.attendance-history-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: var(--surface);
}

.attendance-history-list {
  display: grid;
  gap: 8px;
}

.attendance-history-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(130px, 0.7fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: #fff;
}

.attendance-history-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.attendance-list {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.42fr) minmax(190px, 1.25fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(220px, 1.05fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.18);
  border-radius: 8px;
  background: #fff;
}

.attendance-row-expected {
  background: #f8fcfb;
  border-color: rgba(8, 116, 127, 0.18);
}

.attendance-row.has-trainer-leave {
  border-color: rgba(183, 113, 12, 0.38);
  background: linear-gradient(90deg, rgba(255, 246, 221, 0.92), #fff 48%);
}

.attendance-row time,
.attendance-main,
.attendance-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.attendance-row time {
  grid-template-columns: 18px auto;
  column-gap: 7px;
  align-items: center;
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.calendar-item time::before,
.club-session-event-row time::before,
.attendance-row time::before {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 1;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.attendance-row time span,
.attendance-main span,
.attendance-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.attendance-expiry-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(215, 156, 0, 0.34);
  border-radius: 999px;
  background: #fff3bc;
  color: #704800;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.attendance-expiry-badge.is-expired {
  border-color: rgba(184, 70, 52, 0.36);
  background: #fff3f1;
  color: #963927;
}

.attendance-membership-visual {
  display: grid;
  width: min(230px, 100%);
  gap: 6px;
  margin-top: 7px;
}

.attendance-session-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.attendance-session-box {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 116, 127, 0.28);
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 0.63rem;
  font-weight: 950;
  line-height: 1;
}

.attendance-session-box.is-completed {
  border-color: #168260;
  background: #168260;
  color: #fff;
}

.attendance-main strong,
.attendance-meta strong {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(8, 116, 127, 0.12);
  border-radius: 7px;
  background: rgba(8, 116, 127, 0.06);
  overflow-wrap: anywhere;
}

.attendance-main .attendance-client-link {
  padding: 4px 10px;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.15;
}

.attendance-trainer-line {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.attendance-trainer-load-badge {
  display: inline-flex;
  min-width: 22px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  background: rgba(8, 116, 127, 0.07);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 20px;
  white-space: nowrap;
}

.attendance-trainer-load-badge.is-balanced {
  border-color: #168260;
  background: #168260;
  color: #fff;
}

.attendance-trainer-load-badge.is-overloaded {
  border-color: #b84634;
  background: #b84634;
  color: #fff;
}

.attendance-trainer-leave-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid rgba(183, 113, 12, 0.34);
  border-radius: 999px;
  background: #fff3bc;
  color: #704800;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.attendance-main .client-membership-indicators,
.calendar-item-head .client-membership-indicators {
  min-height: 14px;
}

.attendance-main .client-membership-indicator,
.calendar-item-head .client-membership-indicator {
  color: var(--brand-dark);
  font-size: 0.66rem;
  font-weight: 950;
}

.attendance-main .client-membership-indicator.is-summer,
.attendance-main .client-membership-indicator.is-group,
.attendance-main .client-membership-indicator.is-personal,
.attendance-main .client-membership-indicator.is-individual,
.attendance-main .client-membership-indicator.is-recovery,
.attendance-main .client-membership-indicator.is-leisure,
.calendar-item-head .client-membership-indicator.is-summer,
.calendar-item-head .client-membership-indicator.is-group,
.calendar-item-head .client-membership-indicator.is-personal,
.calendar-item-head .client-membership-indicator.is-individual,
.calendar-item-head .client-membership-indicator.is-recovery,
.calendar-item-head .client-membership-indicator.is-leisure {
  color: #fff;
}

.attendance-main .client-membership-indicator.is-performance,
.calendar-item-head .client-membership-indicator.is-performance {
  color: #17313d;
}

.attendance-actions {
  --attendance-action-width: min(100%, 220px);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.attendance-actions form {
  margin: 0;
}

.attendance-actions > form {
  width: var(--attendance-action-width);
  margin-right: auto;
  margin-left: auto;
}

.attendance-actions > form .primary {
  width: 100%;
  min-width: 0;
}

.appointment-check-button {
  font-weight: 950;
  text-transform: uppercase;
}

.attendance-secondary-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  width: var(--attendance-action-width);
  margin-right: auto;
  margin-left: auto;
  align-items: start;
}

.attendance-secondary-actions .attendance-more-actions,
.attendance-secondary-actions .attendance-reschedule-action {
  min-width: 0;
}

.attendance-secondary-actions .attendance-more-actions summary {
  width: 44px;
  min-height: 40px;
  padding: 0;
}

.attendance-secondary-actions .attendance-reschedule-action summary {
  width: 100%;
  min-height: 40px;
  padding: 0 7px;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.attendance-secondary-actions .attendance-more-actions summary .ui-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.5;
}

.attendance-warning {
  flex: 1 1 100%;
  width: var(--attendance-action-width);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(184, 70, 52, 0.22);
  border-radius: 8px;
  background: #fff3f1;
  color: #963927;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
}

.attendance-warning.is-trainer-leave {
  border-color: rgba(183, 113, 12, 0.34);
  background: #fff8df;
  color: #704800;
}

.appointment-check-state {
  display: inline-flex;
  width: var(--attendance-action-width, min(100%, 220px));
  margin-right: auto;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.appointment-checked-pill {
  display: inline-flex;
  flex: 1 1 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(22, 130, 96, 0.45);
  border-radius: 8px;
  background: var(--success);
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
}

.appointment-checked-pill .ui-icon {
  width: 17px;
  height: 17px;
  stroke-width: 3;
}

.appointment-uncheck-form {
  flex: 0 0 auto;
  margin: 0;
}

.appointment-uncheck-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(184, 70, 52, 0.45);
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.appointment-uncheck-button:hover {
  background: #963927;
  color: #fff;
}

.attendance-more-actions {
  position: relative;
}

.attendance-more-actions summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.attendance-more-actions summary::-webkit-details-marker {
  display: none;
}

.attendance-more-actions[open] summary {
  border-color: rgba(8, 116, 127, 0.35);
  box-shadow: var(--shadow-soft);
}

.attendance-more-actions:not([open]) > :not(summary) {
  display: none;
}

.attendance-more-actions > div {
  position: absolute;
  right: 0;
  z-index: 30;
  display: grid;
  width: min(220px, calc(100vw - 32px));
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.attendance-reschedule-action > div {
  width: min(336px, calc(100vw - 32px));
}

.club-session-event-status .portal-request-action {
  width: 100%;
  max-width: 240px;
}

.club-session-event-status .portal-request-action summary {
  width: 100%;
  justify-content: center;
  font-weight: 950;
  text-transform: uppercase;
}

.club-session-event-status .portal-request-action > div {
  right: 0;
  width: min(360px, calc(100vw - 32px));
}

.attendance-reschedule-form {
  display: grid;
  gap: 10px;
}

.crm-date-picker {
  display: grid;
  gap: 9px;
}

.crm-date-display {
  cursor: pointer;
}

.crm-date-display-wrap {
  position: relative;
  display: block;
}

.crm-date-display-wrap .ui-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--brand-dark);
  pointer-events: none;
  transform: translateY(-50%);
}

.crm-date-display-wrap .crm-date-display {
  padding-left: 40px;
  color: var(--brand-dark);
  font-weight: 850;
}

.crm-date-calendar {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: #f8fcfb;
}

.crm-date-calendar-toggle {
  display: grid;
  gap: 8px;
}

.crm-date-picker.is-simple .crm-date-calendar-toggle summary {
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-color: rgba(8, 116, 127, 0.18);
  background: #eef8f7;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.crm-date-picker.is-simple .crm-date-calendar-toggle[open] summary {
  border-color: rgba(8, 116, 127, 0.35);
}

.attendance-more-actions .crm-date-calendar-toggle summary {
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-color: rgba(8, 116, 127, 0.18);
  background: #eef8f7;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.attendance-reschedule-action .crm-date-calendar-toggle > summary {
  display: none;
}

.attendance-more-actions .crm-date-calendar-toggle[open] summary {
  border-color: rgba(8, 116, 127, 0.35);
}

.crm-date-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.crm-date-calendar-head strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.crm-date-nav-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  font-weight: 950;
}

.crm-date-weekdays,
.crm-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.crm-date-weekdays span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
}

.crm-date-day {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: none;
}

.crm-date-day.is-outside-month {
  opacity: 0.58;
}

.crm-date-day.is-valid {
  border-color: rgba(8, 116, 127, 0.52);
  background: #d7f3ee;
  color: #063d45;
  box-shadow: inset 0 0 0 1px rgba(8, 116, 127, 0.14);
}

.crm-date-day.is-recommended {
  border-color: var(--brand);
  background: #eef4ff;
  color: var(--brand-dark);
}

.crm-date-day.is-source-date {
  border-color: #05894f;
  background: #16a66a;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34), 0 0 0 2px rgba(5, 137, 79, 0.14);
}

.crm-date-day.is-source-date.is-recommended {
  border-color: #047848;
  background: #12a066;
  color: #fff;
}

.crm-date-day.is-source-date.is-selected,
.crm-date-day.is-source-date.is-selected:hover {
  border-color: #05894f;
  background: #c54434;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.44), 0 0 0 3px rgba(5, 137, 79, 0.22);
}

.crm-date-day.is-selected,
.crm-date-day.is-selected:hover {
  border-color: #a83125;
  background: #c54434;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 0 0 2px rgba(197, 68, 52, 0.16);
}

.crm-date-day:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: #edf2f4;
  color: #788891;
}

.crm-date-day.is-source-date:disabled {
  opacity: 1;
  border-color: #05894f;
  background: #16a66a;
  color: #fff;
}

.crm-date-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.crm-date-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.crm-date-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.crm-date-legend i.is-valid {
  background: #d7f3ee;
  border-color: rgba(8, 116, 127, 0.52);
}

.crm-date-legend i.is-source {
  background: #16a66a;
  border-color: #05894f;
}

.crm-date-legend i.is-recommended {
  background: #eef4ff;
  border-color: var(--brand);
}

.crm-date-legend i.is-selected {
  background: #c54434;
  border-color: #a83125;
}

.crm-date-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.crm-date-help.is-warning {
  color: var(--danger);
}

.attendance-more-actions button {
  width: 100%;
  justify-content: center;
}

.attendance-more-actions .crm-date-day {
  width: auto;
}

.attendance-more-actions .crm-date-nav-button {
  width: 34px;
}

@media (min-width: 761px) {
  .attendance-reschedule-action[open] {
    position: relative;
    z-index: 1560;
  }

  .attendance-reschedule-action[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1558;
    background: rgba(12, 31, 44, 0.2);
  }

  .attendance-reschedule-action[open] > summary {
    position: fixed !important;
    top: 18px;
    right: 24px;
    z-index: 1562;
    width: auto !important;
    min-width: 96px;
    min-height: 42px;
    padding: 0 14px !important;
    border-color: rgba(8, 116, 127, 0.34);
    background: #fff;
    color: var(--brand-dark);
    font-size: 0 !important;
    line-height: 1;
    text-transform: none;
    box-shadow: var(--shadow-soft);
  }

  .attendance-reschedule-action[open] > summary::after {
    content: "Inchide";
    font-size: 0.94rem;
    font-weight: 950;
  }

  .attendance-reschedule-action[open] > div {
    position: fixed !important;
    top: 70px;
    right: 20px;
    bottom: 20px;
    z-index: 1561;
    display: block;
    width: min(440px, calc(100vw - 40px)) !important;
    max-width: none !important;
    max-height: none;
    margin: 0 !important;
    padding: 14px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(25, 57, 72, 0.28);
  }

  .attendance-reschedule-action[open] .attendance-reschedule-form,
  .attendance-reschedule-action[open] .crm-date-picker,
  .attendance-reschedule-action[open] .field,
  .attendance-reschedule-action[open] .appointment-time-control,
  .attendance-reschedule-action[open] .appointment-window-preview,
  .attendance-reschedule-action[open] .reschedule-date-badge,
  .attendance-reschedule-action[open] button:not(.crm-date-day):not(.crm-date-nav-button) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .attendance-reschedule-action[open] .crm-date-calendar-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
  }

  .attendance-reschedule-action[open] .crm-date-nav-button {
    width: 34px;
    min-width: 34px;
  }

  .attendance-reschedule-action[open] .crm-date-day {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .attendance-reschedule-action[open] {
    position: relative;
    z-index: 1560;
    display: block !important;
  }

  .attendance-reschedule-action[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1558;
    background: rgba(12, 31, 44, 0.34);
  }

  .attendance-reschedule-action[open] > summary {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 12px;
    z-index: 1562;
    width: auto !important;
    min-width: 86px;
    max-width: calc(100vw - 24px);
    min-height: 38px;
    padding: 0 12px !important;
    border-color: rgba(8, 116, 127, 0.34);
    background: #fff;
    color: var(--brand-dark);
    font-size: 0 !important;
    line-height: 1;
    text-transform: none;
    box-shadow: var(--shadow-soft);
  }

  .attendance-reschedule-action[open] > summary::after {
    content: "Inchide";
    font-size: 0.9rem;
    font-weight: 950;
  }

  .attendance-reschedule-action[open] > div {
    position: fixed !important;
    inset: calc(env(safe-area-inset-top, 0px) + 58px) 10px calc(env(safe-area-inset-bottom, 0px) + 10px) 10px !important;
    z-index: 1561;
    display: block;
    width: auto !important;
    max-width: none !important;
    max-height: none;
    margin: 0 !important;
    padding: 12px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(25, 57, 72, 0.28);
  }

  .attendance-reschedule-action[open] .attendance-reschedule-form,
  .attendance-reschedule-action[open] .crm-date-picker,
  .attendance-reschedule-action[open] .field,
  .attendance-reschedule-action[open] .appointment-time-control,
  .attendance-reschedule-action[open] .appointment-window-preview,
  .attendance-reschedule-action[open] .reschedule-date-badge,
  .attendance-reschedule-action[open] button:not(.crm-date-day):not(.crm-date-nav-button) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .attendance-reschedule-action[open] .appointment-window-preview {
    overflow-wrap: anywhere;
  }

  .attendance-reschedule-action[open] .reschedule-date-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 10px;
  }

  .attendance-reschedule-action[open] .crm-date-calendar {
    display: grid !important;
    padding: 8px;
  }

  .attendance-reschedule-action[open] .crm-date-calendar-toggle {
    display: grid !important;
    width: 100%;
  }

  .attendance-reschedule-action[open] .crm-date-calendar-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
  }

  .attendance-reschedule-action[open] .crm-date-weekdays,
  .attendance-reschedule-action[open] .crm-date-grid {
    gap: 3px;
  }

  .attendance-reschedule-action[open] .crm-date-nav-button {
    width: 34px;
    min-width: 34px;
  }

  .attendance-reschedule-action[open] .crm-date-day {
    width: 100%;
    min-height: 36px;
    font-size: 0.82rem;
  }
}

.attendance-walkin-tool {
  max-width: none;
}

.walkin-membership-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.16);
  border-radius: 8px;
  background: #f8fcfb;
}

.walkin-membership-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.walkin-membership-option {
  display: grid;
  gap: 5px;
  min-height: 82px;
  align-content: start;
  justify-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.walkin-membership-option:hover,
.walkin-membership-option.is-active {
  border-color: var(--brand);
  background: #eaf7f5;
  color: var(--brand-dark);
  box-shadow: none;
  transform: none;
}

.walkin-membership-option span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.trainer-checkin-permissions {
  margin-top: 12px;
}

.trainer-checkin-permissions > summary {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.trainer-checkin-permissions > summary span {
  font-weight: 900;
}

.trainer-checkin-permissions > summary small {
  color: var(--muted);
}

.trainer-checkin-list {
  display: grid;
  gap: 8px;
}

.trainer-checkin-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-checkin-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trainer-checkin-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.inline-details {
  max-width: 520px;
}

.inline-details[open] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.inline-details summary {
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.inline-details .form-grid {
  margin-top: 10px;
}

.trainer-availability-request-details {
  width: 100%;
  max-width: none;
}

.trainer-availability-request-details summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.trainer-availability-request-details summary::-webkit-details-marker {
  display: none;
}

.trainer-availability-request-details[open] summary {
  border-color: rgba(8, 116, 127, 0.35);
  box-shadow: var(--shadow-soft);
}

.trainer-availability-request-details summary .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.trainer-availability-request-panel {
  margin-top: 10px;
}

.trainer-availability-request-form.form-grid {
  margin-top: 0;
}

.trainer-leave-request-form.form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trainer-leave-request-form .crm-date-picker-field {
  min-width: 0;
}

.trainer-leave-request-form .crm-date-picker.is-simple {
  min-width: 0;
}

.trainer-leave-request-form textarea {
  min-height: 112px;
  resize: vertical;
}

.trainer-leave-request-form .availability-add-button {
  grid-column: 1 / -1;
  width: min(360px, 100%);
}

.trainer-availability-request-form .trainer-availability-matrix {
  padding: 0;
  border: 0;
  background: transparent;
}

.trainer-availability-request-form .trainer-availability-matrix-head {
  padding: 0 2px 2px;
}

.trainer-availability-approval-form .trainer-availability-matrix {
  min-width: 0;
}

.attendance-walkin-tool.inline-details,
.attendance-walkin-tool.inline-details[open] {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.attendance-walkin-tool > summary.attendance-walkin-summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(66, 104, 178, 0.2);
  list-style: none;
}

.attendance-walkin-tool > summary.attendance-walkin-summary::-webkit-details-marker {
  display: none;
}

.attendance-walkin-tool > summary.attendance-walkin-summary:hover,
.attendance-walkin-tool[open] > summary.attendance-walkin-summary {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.attendance-walkin-summary-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.attendance-walkin-tool > summary.attendance-walkin-summary .ui-icon {
  flex: 0 0 auto;
  stroke-width: 2.6;
}

.attendance-walkin-tool > summary.attendance-walkin-summary > .ui-icon:last-child {
  transition: transform 0.18s ease;
}

.attendance-walkin-tool[open] > summary.attendance-walkin-summary > .ui-icon:last-child {
  transform: rotate(180deg);
}

.attendance-walkin-tool .attendance-walkin-form,
.attendance-walkin-tool .attendance-walkin-empty {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(66, 104, 178, 0.28);
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 32px rgba(8, 116, 127, 0.08);
}

.attendance-walkin-tool .attendance-walkin-form.form-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.detail-text {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.settings-menu summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
}

.settings-menu summary small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.settings-form {
  padding-top: 4px;
}

.filter-bar {
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.appointment-range-field {
  grid-column: span 2;
}

.appointment-range-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.appointment-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.appointment-range-display {
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.appointment-range-display span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
}

.appointment-range-display strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-range-separator {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 900;
}

.appointment-range-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: min(420px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(8, 25, 44, 0.16);
}

.appointment-range-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.appointment-range-head strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
}

.appointment-range-nav {
  min-height: 40px;
  padding: 0;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.appointment-range-weekdays,
.appointment-range-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.appointment-range-weekdays {
  margin-bottom: 5px;
}

.appointment-range-weekdays span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.appointment-range-day {
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: none;
}

.appointment-range-day.is-outside-month {
  color: #a1acb2;
}

.appointment-range-day.is-in-range {
  border-radius: 0;
  background: #e4efff;
}

.appointment-range-day.is-range-start,
.appointment-range-day.is-range-end {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.appointment-range-day.is-single-day {
  border-radius: 999px;
}

.appointment-range-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .appointment-range-field {
    grid-column: 1 / -1;
  }

  .appointment-range-inputs {
    grid-template-columns: minmax(0, 1fr);
  }

  .appointment-range-separator {
    display: none;
  }

  .appointment-range-popover {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .appointment-range-day {
    min-height: 38px;
    font-size: 0.84rem;
  }
}

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

.info-list div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.info-list span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.info-list p {
  margin: 0;
}

.client-useful-info {
  gap: 14px;
}

.client-document-acceptance-panel {
  border-color: rgba(66, 104, 178, 0.18);
  background: #fbfdff;
}

.client-document-actions,
.client-document-acceptance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.client-document-acceptance-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(8, 116, 127, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.client-document-acceptance-form .check-row {
  margin: 0;
}

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

.profile-list div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-list strong {
  overflow-wrap: anywhere;
}

.inline-details strong {
  display: block;
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6f7;
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
}

.badge.client-document-acceptance-badge {
  max-width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.badge.client-document-acceptance-badge.is-missing {
  border: 1px solid rgba(183, 121, 15, 0.28);
  background: #fff3d8;
  color: #7d560d;
}

.badge.badge-risk {
  border: 1px solid rgba(183, 121, 15, 0.28);
  background: #fff3d8;
  color: #7d560d;
}

.appointment-origin-stack {
  display: inline-grid;
  gap: 6px;
  align-items: start;
  max-width: 100%;
}

.appointment-origin-stack > span:not(.appointment-origin-badge) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.appointment-origin-badge {
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(66, 104, 178, 0.2);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.15;
  white-space: normal;
}

.appointment-origin-manual {
  border-color: rgba(66, 104, 178, 0.28);
  background: #eef4ff;
  color: #244c93;
}

.appointment-origin-collective {
  border-color: rgba(116, 87, 196, 0.32);
  background: #f4efff;
  color: #523b97;
}

@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .shell.dashboard-shell-wide,
  .shell.public-form-shell,
  .shell.public-home-shell {
    width: calc(100% - 10px);
    max-width: calc(100vw - 10px);
    overflow-x: hidden;
    overflow-x: clip;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .stack,
  .panel.stack,
  .dashboard-view {
    gap: 10px;
  }

  .form-grid,
  .form-section {
    gap: 10px;
  }

  .grid,
  .grid.two,
  .form-grid,
  .form-grid.compact,
  .trainer-leave-request-form.form-grid.compact,
  .appointment-reschedule-form.form-grid.compact,
  .appointment-kind-choice,
  .appointment-client-section,
  .appointment-collective-section,
  .choice-grid,
  .summary-grid,
  .client-registry-filter,
  .client-profile-summary-grid,
  .client-profile-layout,
  .client-profile-metrics,
  .ops-alert-grid,
  .ops-command-grid,
  .appointment-detail-grid,
  .calendar-summary,
  .availability-strip,
  .notification-health-grid,
  .intake-profile-list,
  .registry-hub-grid,
  .useful-links-grid,
  .trainer-profile-stats,
  .trainer-profile-facts,
  .trainer-profile-membership-facts,
  .trainer-search-form,
  .trainer-onboarding-grid,
  .trainer-review-grid,
  .trainer-appointment-row {
    grid-template-columns: 1fr;
  }

  .client-request-party-list.is-large {
    grid-template-columns: 1fr;
  }

  .client-request-manager-backdrop {
    justify-content: stretch;
    background: rgba(12, 31, 44, 0.36);
  }

  .client-request-manager-panel {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px 14px 24px;
    border-left: 0;
    border-radius: 0;
  }

  .client-request-manager-section {
    padding: 10px;
  }

  .client-request-manager-panel .intake-payment-list,
  .client-request-manager-panel .intake-payment-actions form.bank-payment-reference-form {
    grid-template-columns: 1fr;
  }

  .client-request-manager-panel .intake-payment-actions form.bank-payment-reference-form {
    flex-basis: 100%;
    min-width: 0;
  }

  .client-request-manager-head {
    padding-right: 46px;
  }

  .profile-badges .client-document-acceptance-badge {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .client-request-brief,
  .client-request-progress {
    grid-template-columns: 1fr;
  }

  .client-request-table-details .client-request-brief {
    grid-template-columns: 1fr;
  }

  .client-request-brief-person {
    grid-column: auto;
  }

  .client-request-brief-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .client-request-brief-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .client-request-progress-step {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .client-request-actions {
    min-width: 0;
  }

  .client-request-action-buttons button {
    flex: 1 1 120px;
  }

  .client-request-table-wrap {
    overflow: visible;
  }

  .client-request-table {
    min-width: 0;
  }

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

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

  .trainer-program-week.is-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .trainer-program-week.is-compact .trainer-program-day {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
  }

  .trainer-program-week.is-compact .trainer-program-day-slots {
    display: flex;
  }

  .trainer-program-overview-head,
  .trainer-group-proposal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .trainer-group-proposal-head .button {
    width: 100%;
  }

  .trainer-group-proposal-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
  }

  .trainer-group-proposal-window {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .trainer-group-proposal-row > [data-group-schedule-remove] {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .trainer-group-schedule-add-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .trainer-group-schedule-add-form .availability-add-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .trainer-group-schedule-list .availability-table {
    min-width: 0;
  }

  .client-request-table,
  .client-request-table thead,
  .client-request-table tbody,
  .client-request-table tr,
  .client-request-table td {
    display: block;
    width: 100%;
  }

  .client-request-table thead {
    display: none;
  }

  .client-request-table colgroup {
    display: none;
  }

  .client-request-table tr {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
  }

  .client-request-table td {
    display: block;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .client-request-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .client-request-table td[data-label="Solicitare"] {
    padding-top: 0;
  }

  .client-request-table td[data-label="Solicitare"]::before {
    display: none;
  }

  .client-request-table td + td {
    border-top: 1px solid rgba(124, 160, 177, 0.18);
  }

  .client-request-summary,
  .client-request-table-details,
  .client-request-party-list,
  .client-request-manager-trigger {
    min-width: 0;
  }

  .client-request-summary-line,
  .client-request-summary-badges {
    align-items: flex-start;
  }

  .client-request-summary-line > span,
  .client-request-type-badge,
  .client-request-date-badge,
  .client-request-status-badge,
  .client-request-party-badge {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .client-request-manager-open {
    width: 100%;
  }

  .client-request-table .button {
    max-width: 100%;
    white-space: normal;
  }

  .trainer-availability-matrix:not(.trainer-availability-matrix-compact) .trainer-availability-row {
    grid-template-columns: 1fr;
  }

  .trainer-availability-matrix-compact {
    grid-template-columns: 1fr;
  }

  .trainer-availability-matrix-compact .trainer-availability-row {
    grid-template-columns: minmax(112px, 1fr) minmax(82px, 0.75fr) minmax(82px, 0.75fr);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    position: static;
    margin-bottom: 8px;
    padding: 10px 12px;
  }

  .brand-area {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .topbar.is-public .brand img {
    width: 62px;
    height: 62px;
  }

  .brand strong {
    font-size: 1.18rem;
    line-height: 1.1;
  }

  .topbar.is-public .brand strong {
    font-size: 1.3rem;
  }

  .brand-motto {
    font-size: 0.84rem;
  }

  .pool-switcher label,
  .pool-switcher-static {
    min-height: 42px;
    padding: 5px 8px;
  }

  .pool-switcher-static span {
    max-width: 42vw;
  }

  .pool-switcher select {
    min-width: 112px;
    max-width: 42vw;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1px 12px;
    margin-bottom: 2px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .form-grid > button,
  .form-section > button,
  .trainer-search-form > button,
  .trainer-search-form > .button {
    width: 100%;
  }

  [data-availability-panel] > form[data-availability-create-form] {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 7px;
  }

  [data-availability-panel] > form[data-availability-create-form] .field.full {
    grid-column: 1 / -1;
  }

  [data-availability-panel] > form[data-availability-create-form] .availability-add-button {
    width: auto;
    min-width: 42px;
    padding-inline: 10px;
  }

  .trainer-workspace,
  [data-availability-panel],
  [data-availability-panel] > *,
  .trainer-checkin-permissions,
  .trainer-checkin-list,
  .trainer-checkin-row {
    min-width: 0;
    max-width: 100%;
  }

  [data-availability-panel] {
    overflow-x: hidden;
    overflow-x: clip;
  }

  [data-availability-panel] .availability-list-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  [data-availability-panel] .availability-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  [data-availability-panel] .availability-table thead {
    display: none;
  }

  [data-availability-panel] .availability-table tbody {
    display: grid;
    gap: 8px;
  }

  [data-availability-panel] .availability-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  [data-availability-panel] .availability-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  [data-availability-panel] .availability-table tr:not(.availability-edit-row) td:first-child {
    font-weight: 800;
  }

  [data-availability-panel] .availability-table tr:not(.availability-edit-row) td:last-child {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  [data-availability-panel] .availability-edit-row {
    grid-template-columns: 1fr;
    padding: 8px;
    background: var(--surface);
  }

  [data-availability-panel] .availability-edit-row td {
    grid-column: 1 / -1;
  }

  [data-availability-panel] .availability-actions {
    justify-content: flex-end;
    width: auto;
  }

  [data-availability-panel] .trainer-leave-admin-panel,
  [data-availability-panel] .trainer-leave-admin-panel > *,
  [data-availability-panel] .trainer-leave-admin-form,
  [data-availability-panel] .trainer-leave-edit-form {
    min-width: 0;
    max-width: 100%;
  }

  [data-availability-panel] .trainer-leave-admin-form,
  [data-availability-panel] .trainer-leave-edit-form {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-availability-panel] .trainer-leave-table {
    min-width: 0;
  }

  [data-availability-panel] .trainer-leave-table tr:not(.trainer-leave-edit-row) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  [data-availability-panel] .trainer-leave-table tr:not(.trainer-leave-edit-row) td:nth-child(4) {
    grid-column: 1 / -1;
    min-width: 0;
  }

  [data-availability-panel] .trainer-leave-state {
    white-space: normal;
    text-align: center;
  }

  .trainer-checkin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .trainer-checkin-row button {
    max-width: 42vw;
    white-space: normal;
  }

  .nav .button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.9rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .nav .topbar-icon-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .nav .topbar-client-search {
    flex: 0 0 auto;
  }

  .topbar-client-search[open] .topbar-client-search-panel {
    position: fixed;
    top: 82px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 10px;
  }

  .topbar-client-search-results {
    max-height: calc(100vh - 190px);
  }

  .topbar-client-result {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar-client-result-status {
    flex: 1 1 auto;
    justify-items: start;
    text-align: left;
  }

  .topbar-client-result .topbar-client-result-status span {
    text-align: left;
  }

  .topbar-client-session-ledger {
    justify-content: flex-start;
    max-width: 100%;
  }

  .topbar-client-email,
  .topbar-client-contact-separator {
    display: none;
  }

  .trainer-appointment-state,
  .trainer-appointment-actions {
    justify-content: flex-start;
  }

  .membership-schedule-fields {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  .membership-schedule-fields.is-schedule-builder .membership-weekday-field {
    grid-column: 1 / -1;
  }

  .membership-schedule-fields.is-schedule-builder .membership-start-field {
    grid-column: 1 / -1;
  }

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

  .membership-custom-fields {
    grid-template-columns: 1fr;
  }

  .membership-location-grid {
    grid-template-columns: 1fr;
  }

  .membership-client-picker-grid {
    grid-template-columns: 1fr;
  }

  .membership-inline-client-head {
    align-items: stretch;
    flex-direction: column;
  }

  .membership-calendar-months {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav .button:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .dashboard-shell,
  .dashboard-shell.is-sidebar-collapsed {
    display: block;
  }

  .dashboard-mobile-toggle {
    display: inline-flex;
    width: auto;
    margin-bottom: 8px;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 18px;
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(20, 49, 61, 0.16);
  }

  .dashboard-mobile-toggle > span {
    font-size: 0.9rem;
    line-height: 1;
  }

  .dashboard-mobile-toggle:hover,
  .dashboard-mobile-toggle:active {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
  }

  .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 130;
    width: min(338px, 92vw);
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .dashboard-shell.is-menu-open .dashboard-sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .dashboard-sidebar-panel {
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    gap: 10px;
    overflow: hidden;
    padding: 12px;
    border-radius: 0 8px 8px 0;
  }

  .dashboard-sidebar-head {
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
  }

  .dashboard-sidebar-user {
    gap: 9px;
  }

  .dashboard-sidebar-user-logo {
    width: 44px;
    height: 44px;
  }

  .dashboard-sidebar-head .eyebrow {
    font-size: 0.76rem;
  }

  .dashboard-sidebar-head strong {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .dashboard-sidebar-role {
    font-size: 0.92rem;
  }

  .dashboard-menu {
    gap: 6px;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 4px 14px 0;
    touch-action: pan-y;
  }

  .dashboard-menu-link {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.22;
  }

  .dashboard-menu-text {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .client-dashboard-shell .dashboard-menu-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dashboard-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 11px;
  }

  .dashboard-menu-icon .ui-icon {
    width: 18px;
    height: 18px;
  }

  .dashboard-menu-count {
    min-width: 26px;
    padding: 3px 8px;
    font-size: 12px;
  }

  .dashboard-menu-close {
    display: inline-flex;
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.98rem;
  }

  .dashboard-sidebar-collapse {
    display: none;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-head div,
  .dashboard-shell.is-sidebar-collapsed .dashboard-menu-text,
  .dashboard-shell.is-sidebar-collapsed .dashboard-menu-count {
    display: initial;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-menu-link {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 9px 10px;
  }

  .dashboard-shell.is-menu-open .dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    background: rgba(20, 49, 61, 0.44);
    backdrop-filter: blur(3px);
  }

  .intake-filter-bar {
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1px 12px;
    margin-bottom: 2px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .intake-filter-chip {
    flex: 0 0 auto;
    min-height: 34px;
    max-width: 78vw;
    padding: 0 9px;
    white-space: nowrap;
  }

  .intake-filter-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .activity-scope-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;
    align-items: center;
  }

  .activity-scope-nav .intake-filter-chip {
    margin: 0;
  }

  .activity-card-list {
    gap: 10px;
  }

  .activity-log-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .activity-card-actor {
    gap: 8px;
  }

  .activity-card-actor strong {
    margin-top: 7px;
  }

  .activity-card-entity {
    grid-column: auto;
  }

  .activity-change-row {
    grid-template-columns: 1fr;
  }

  .activity-change-row.is-summary {
    grid-template-columns: 1fr;
  }

  .activity-change-arrow {
    place-items: start;
    min-height: 14px;
  }

  .intake-table-wrap {
    overflow-x: visible;
  }

  .intake-table,
  .trainer-applications-table {
    display: block;
    min-width: 0;
  }

  .intake-table thead,
  .trainer-applications-table thead {
    display: none;
  }

  .intake-table tbody,
  .intake-table tr,
  .intake-table td,
  .trainer-applications-table tbody,
  .trainer-applications-table tr,
  .trainer-applications-table td {
    display: block;
    width: 100%;
  }

  .intake-table tr,
  .trainer-applications-table tr {
    padding: 10px;
    border-bottom: 1px solid var(--line);
  }

  .intake-table tr:last-child,
  .trainer-applications-table tr:last-child {
    border-bottom: 0;
  }

  .intake-table td,
  .trainer-applications-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .intake-table td:not(.intake-client-cell):not(.intake-action-cell):not(.intake-expanded-cell)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .intake-table td:nth-child(2)::before {
    content: "Abonament";
  }

  .intake-table td:nth-child(3)::before {
    content: "Primita";
  }

  .intake-table td:nth-child(4)::before {
    content: "Status";
  }

  .trainer-applications-table td:not(.intake-client-cell):not(.trainer-application-action-cell):not(.intake-expanded-cell)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .trainer-applications-table td:nth-child(2)::before {
    content: "Profil";
  }

  .trainer-applications-table td:nth-child(3)::before {
    content: "Colaborare";
  }

  .trainer-applications-table td:nth-child(4)::before {
    content: "Disponibilitate";
  }

  .trainer-applications-table td:nth-child(5)::before {
    content: "Primita";
  }

  .trainer-applications-table td:nth-child(6)::before {
    content: "Status";
  }

  .intake-client-cell,
  .intake-action-cell,
  .intake-expanded-cell,
  .trainer-application-name-cell,
  .trainer-application-action-cell {
    min-width: 0;
  }

  .trainer-application-name-button {
    max-width: calc(100vw - 96px);
  }

  .intake-clamp {
    max-width: none;
    white-space: normal;
  }

  .intake-row-actions {
    align-items: flex-start;
  }

  .intake-expanded-row,
  .trainer-application-expanded-row {
    display: none !important;
  }

  .intake-expanded-row[hidden] {
    display: none;
  }

  .intake-mobile-expanded:not([hidden]) {
    display: block;
    margin-top: 9px;
  }

  .intake-detail-modal-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .intake-detail-modal {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    padding: 16px;
    border-radius: 0;
    border-inline: 0;
  }

  .intake-detail-modal-head {
    margin: -16px -16px 0;
    padding: 16px 74px 16px 16px;
    border-radius: 0;
  }

  .intake-detail-modal-head h2 {
    font-size: 1.18rem;
  }

  .intake-client-profile-panel {
    padding: 10px;
  }

  .intake-detail-modal .intake-client-profile-panel {
    padding: 0;
  }

  .trainer-application-profile-list,
  .intake-payment-list {
    grid-template-columns: 1fr;
  }

  .intake-payment-actions,
  .intake-payment-actions form,
  .intake-payment-actions button {
    width: 100%;
    justify-content: center;
  }

  .bank-payment-reference-fields {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .trainer-application-actions,
  .trainer-application-actions form {
    width: 100%;
  }

  .trainer-application-actions .button,
  .trainer-application-actions button {
    flex: 1 1 120px;
    justify-content: center;
  }

  .trainer-application-actions .trainer-application-delete-button {
    flex: 0 0 44px;
    min-width: 44px;
  }

  .intake-panel-action-grid,
  .intake-panel-action-grid form,
  .intake-panel-action-grid button,
  .intake-panel-details summary,
  .intake-modal-footer-actions,
  .intake-modal-continue {
    width: 100%;
  }

  .intake-modal-footer-actions {
    justify-content: stretch;
  }

  .intake-client-profile-panel,
  .intake-detail-panel,
  .intake-row-details .mini-form,
  .intake-schedule-details form {
    width: 100%;
    max-width: 100%;
  }

  .actions button {
    flex: 1 1 132px;
  }

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

  .section-header,
  .section-actions,
  .client-profile-hero,
  .calendar-item-head {
    flex-direction: column;
  }

  .section-header > div {
    width: 100%;
    min-width: 0;
  }

  .section-title-line {
    width: 100%;
  }

  .section-title-line .inline-info-popover {
    position: static;
  }

  .section-title-line .inline-info-popover > div {
    left: 0;
    right: 0;
    width: min(100%, calc(100vw - 32px));
    max-width: 100%;
  }

  .section-actions {
    width: 100%;
  }

  .section-actions form,
  .section-actions button {
    width: 100%;
  }

  .client-profile-hero > div {
    display: block;
  }

  .row-actions {
    min-width: 0;
  }

  .row-actions form,
  .inline-details {
    width: 100%;
  }

  .attendance-walkin-tool > summary.attendance-walkin-summary {
    width: 100%;
  }

  .attendance-walkin-tool .attendance-walkin-form.form-grid.compact {
    grid-template-columns: 1fr;
  }

  .client-profile-actions {
    display: flex;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    justify-self: start;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    margin: 8px 0 9px;
  }

  .client-profile-summary-list {
    grid-template-columns: 1fr;
  }

  .client-profile-summary-membership-facts {
    grid-template-columns: 1fr;
  }

  .membership-renewal-summary {
    grid-template-columns: 1fr;
  }

  .membership-renewal-source-stats {
    grid-template-columns: 1fr;
  }

  .membership-renewal-drawer-backdrop {
    align-items: stretch;
    justify-content: stretch;
  }

  .membership-renewal-drawer {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .membership-renewal-drawer > .section-header {
    top: -14px;
    margin: -14px -14px 12px;
    padding: 14px;
  }

  .membership-renewal-drawer .membership-calendar-months {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .membership-renew-button span {
    display: none;
  }

  .membership-renew-button {
    min-width: 44px;
    justify-content: center;
    padding-inline: 12px;
  }

  .client-profile-membership-head {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-disclosure-action > summary.crm-disclosure-action-summary {
    width: 100%;
  }

  .trainer-membership-actions,
  .trainer-membership-actions .crm-disclosure-action.inline-details {
    width: 100%;
  }

  .client-profile-membership-title,
  .client-profile-membership-pills,
  .client-profile-membership-pills .membership-code-edit,
  .client-profile-membership-pills .membership-code-edit summary {
    width: 100%;
    max-width: 100%;
  }

  .client-profile-membership-calendar-wide .membership-calendar-months {
    grid-template-columns: 1fr;
  }

  .trainer-profile-package-title {
    width: 100%;
    max-width: 100%;
  }

  .trainer-profile-calendar-wrap .membership-calendar-months {
    grid-template-columns: 1fr;
  }

  .intake-mobile-expanded,
  .intake-client-profile-panel,
  .intake-profile-list,
  .intake-profile-list > div,
  .intake-panel-actions,
  .intake-panel-details,
  .intake-panel-action-grid,
  .detail-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .intake-profile-list strong,
  .detail-text {
    white-space: normal;
  }

  .intake-profile-actions .button {
    max-width: 100%;
  }

  .intake-profile-actions .button span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .client-registry-focus {
    padding-bottom: 12px;
  }

  .client-registry-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px;
  }

  .client-card-head {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .client-card-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .membership-profile-actions {
    justify-content: flex-start;
  }

  .membership-profile-workspace > .section-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .membership-profile-workspace > .section-header > div {
    width: auto;
    flex: 1 1 auto;
  }

  .membership-profile-workspace > .section-header .membership-profile-actions {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .membership-profile-workspace > .section-header .membership-profile-actions .button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    flex: 0 0 42px;
    padding: 0;
  }

  .membership-renewal-relation {
    grid-template-columns: 1fr;
  }

  .membership-renewal-relation .button {
    justify-self: stretch;
  }

  .membership-registry-card {
    padding: 11px;
  }

  .membership-trainer-assignment {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .membership-trainer-assignment .membership-trainer-button {
    flex: 1 1 auto;
  }

  .membership-registry .membership-code-control {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .membership-registry .membership-code-edit,
  .membership-registry .membership-code-edit[open] {
    position: static;
    width: auto;
    max-width: 100%;
  }

  .membership-registry .membership-code-edit[open] .membership-edit-form {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
  }

  .membership-trainer-reassign {
    position: static;
  }

  .membership-trainer-reassign-form,
  .membership-registry .membership-trainer-reassign-form {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    left: auto;
    right: auto;
    top: auto;
  }

  .membership-phone-button:not(.membership-phone-icon-button) {
    width: 100%;
    justify-content: center;
  }

  .membership-registry-card.membership-registry-compact-card .membership-phone-icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    flex-basis: 42px;
  }

  .membership-registry-card.membership-registry-compact-card .membership-phone-icon-button .ui-icon {
    width: 22px;
    height: 22px;
  }

  .client-registry-primary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .client-registry-primary .strong-link,
  .client-registry-fact strong {
    white-space: normal;
  }

  .client-registry-profile,
  .client-registry-pagination .button {
    width: 100%;
  }

  .client-registry-pagination {
    justify-content: stretch;
  }

  .client-registry-pagination .muted {
    width: 100%;
    text-align: center;
  }

  .client-profile-tabs {
    gap: 7px;
    margin-inline: -2px;
    padding-bottom: 12px;
  }

  .client-profile-tab {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.92rem;
  }

  .client-profile-tab strong {
    min-width: 22px;
    height: 22px;
    padding-inline: 6px;
  }

  .quick-client-submit {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .quick-source-intake {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-source-payment {
    grid-template-columns: 1fr;
  }

  .quick-source-intake .button {
    width: 100%;
  }

  .quick-source-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .appointment-reschedule-invite-form,
  .appointment-reschedule-invite-form .button {
    width: 100%;
  }

  .quick-client-search,
  .quick-new-client-fields,
  .appointment-standalone-fields {
    grid-template-columns: 1fr;
  }

  .quick-client-results button,
  .live-search-result,
  .quick-selected-client {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-client-results button span,
  .live-search-result span {
    text-align: left;
  }

  .client-duplicate-candidate,
  .client-duplicate-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .client-duplicate-actions .button {
    width: 100%;
  }

  .quick-membership-toggle,
  .quick-client-submit button {
    width: 100%;
    min-width: 0;
  }

  .quick-enrollment-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .client-profile-actions form {
    width: auto;
  }

  .client-profile-actions .button,
  .client-profile-actions button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(20, 49, 61, 0.08);
  }

  .client-profile-actions .button > span,
  .client-profile-actions button > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .client-profile-actions .ui-icon {
    width: 20px;
    height: 20px;
  }

  .ops-alert-card div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .priority-item,
  .today-item {
    grid-template-columns: 48px 1fr;
  }

  .calendar-item-head {
    align-items: flex-start;
  }

  .club-sessions-filter-bar {
    grid-template-columns: 1fr;
  }

  .trainer-summary-session-filter {
    grid-template-columns: 1fr;
  }

  .club-sessions-months {
    grid-template-columns: 1fr;
  }

  .club-session-event-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 9px;
  }

  .club-session-event-row time {
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--brand-dark);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.1;
    box-shadow: 0 10px 22px rgba(66, 104, 178, 0.18);
  }

  .club-session-event-row time span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
  }

  .club-session-event-row time span::before {
    content: "- ";
  }

  .club-session-event-main,
  .club-session-event-row > div:not(.club-session-event-main):not(.club-session-event-status) {
    grid-column: 1 / -1;
  }

  .club-session-event-status {
    grid-column: 1 / -1;
    justify-items: start;
    width: 100%;
    gap: 7px;
  }

  .club-session-event-status > .badge,
  .club-session-event-status .appointment-status-stack > .badge {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.15;
  }

  .club-session-event-status .appointment-status-stack {
    width: 100%;
  }

  .club-session-action-detail {
    text-align: left;
  }

  .club-session-event-status .portal-request-action,
  .club-session-event-status .portal-request-action summary,
  .club-session-event-status .portal-request-action button {
    width: 100%;
    max-width: 100%;
  }

  .club-session-event-status .portal-request-action > div {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }

  .attendance-secondary-actions {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .attendance-secondary-actions .attendance-more-actions,
  .attendance-secondary-actions .attendance-reschedule-action {
    display: contents;
  }

  .attendance-secondary-actions .attendance-more-actions summary {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
  }

  .attendance-secondary-actions .attendance-reschedule-action summary {
    grid-column: 2;
    grid-row: 1;
  }

  .attendance-secondary-actions .attendance-reschedule-action,
  .attendance-secondary-actions .attendance-reschedule-action summary {
    width: 100%;
  }

  .attendance-secondary-actions .attendance-more-actions > div,
  .attendance-secondary-actions .attendance-reschedule-action > div {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }

  .attendance-secondary-actions .attendance-more-actions button,
  .attendance-secondary-actions .attendance-reschedule-action button {
    white-space: nowrap;
  }

  .table-wrap {
    margin-inline: -2px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 10px, 1180px);
    padding-top: 6px;
  }

  .shell.public-form-shell,
  .shell.public-home-shell {
    padding-top: 6px;
  }

  .public-form-panel .check-row[data-validation-label="Termenii si Conditiile si Regulamentul bazinului"] {
    padding: 34px 12px 10px;
  }

  .public-form-panel .check-row[data-validation-label="Termenii si Conditiile si Regulamentul bazinului"] > .required-pill {
    top: 9px;
    right: auto;
    left: 12px;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 8px;
  }

  .nav {
    display: flex;
    grid-template-columns: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-area {
    align-items: flex-start;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .topbar.is-public .brand strong {
    font-size: 1.22rem;
  }

  .public-home-panel {
    margin-top: clamp(34px, 7vh, 64px);
    padding-inline: 12px;
  }

  .public-home-brand img {
    width: clamp(150px, 46vw, 184px);
    height: clamp(150px, 46vw, 184px);
  }

  .public-home-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(260px, 100%);
    margin-inline: auto;
    gap: 10px;
  }

.public-home-actions .button {
    width: 100%;
    justify-content: center;
  }

  .pool-switcher select {
    max-width: 52vw;
  }

  .trainer-availability-matrix-compact .trainer-availability-row {
    grid-template-columns: 1fr 1fr;
  }

  .trainer-availability-matrix-compact .trainer-availability-row .trainer-day-check {
    grid-column: 1 / -1;
  }

  .button,
  button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.94rem;
  }

  .registry-hub-card {
    grid-template-columns: auto 1fr;
    min-height: 78px;
    padding: 12px;
  }

  .registry-hub-card .badge {
    grid-column: 2;
    justify-self: flex-start;
  }

  [data-availability-panel] > form[data-availability-create-form] {
    grid-template-columns: minmax(74px, 1fr) minmax(70px, 0.9fr) minmax(70px, 0.9fr) 38px;
    gap: 5px;
    padding: 8px;
  }

  [data-availability-panel] > form[data-availability-create-form] .label {
    margin-bottom: 2px;
    font-size: 0.72rem;
  }

  [data-availability-panel] > form[data-availability-create-form] .select {
    min-height: 34px;
    padding: 0 6px;
    font-size: 0.86rem;
  }

  [data-availability-panel] > form[data-availability-create-form] .availability-add-button {
    width: 38px;
    min-width: 38px;
    min-height: 34px;
    padding: 0;
  }

  [data-availability-panel] > form[data-availability-create-form] .availability-add-button span {
    display: none;
  }

  .availability-edit-form {
    grid-template-columns: 1fr 1fr;
    padding: 8px;
  }

  .availability-edit-actions {
    grid-column: 1 / -1;
  }

  .availability-actions {
    gap: 4px;
  }

  .availability-list-wrap {
    overflow-x: visible;
  }

  .availability-table {
    min-width: 0;
    width: 100%;
  }

  .availability-table th,
  .availability-table td {
    padding: 7px 5px;
  }

  .hero,
  .panel,
  .card {
    padding: 12px;
  }

  .ops-command-card {
    padding: 12px;
  }

  .intake-filter-chip {
    flex: 0 0 auto;
    flex-basis: auto;
  }

  .intake-detail-panel,
  .intake-row-details .mini-form,
  .intake-schedule-details form {
    width: 280px;
  }

  .intake-panel-details form,
  .intake-panel-details.intake-schedule-details form {
    width: 100%;
  }

  .hero h1,
  .title {
    font-size: 2rem;
  }

  .grid {
    gap: 10px;
  }

  .form-section {
    padding: 11px;
  }

  .step-pill {
    min-height: 48px;
  }

  .calendar-item {
    grid-template-columns: 1fr;
  }

  .calendar-item time {
    min-height: 54px;
    justify-items: start;
    padding: 10px 12px;
  }

  .settings-menu summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .membership-schedule-fields,
  .membership-package-card,
  .client-membership-card,
  .membership-calendar-preview,
  .membership-calendar-month {
    padding: 8px;
  }

  .client-membership-profile-summary {
    padding: 12px;
  }

  .client-membership-profile-summary .section-header {
    padding: 12px;
  }

  .client-membership-profile-stats {
    grid-template-columns: 1fr;
  }

  .client-membership-action-list {
    justify-content: flex-start;
  }

  .client-membership-action-button {
    width: 100%;
  }

  .client-membership-action-backdrop {
    justify-content: stretch;
    background: rgba(12, 31, 44, 0.36);
  }

  .client-membership-action-drawer {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px 14px 24px;
    border-left: 0;
    border-radius: 0;
  }

  .client-membership-action-drawer-head {
    padding-right: 46px;
  }

  .client-membership-session-request > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .client-membership-calendar-legend {
    gap: 5px 8px;
    font-size: 0.72rem;
  }

  .membership-package-grid {
    grid-template-columns: 1fr;
  }

  .membership-location-grid {
    grid-template-columns: 1fr;
  }

  .membership-location-card > span {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 78px;
    padding-right: 42px;
  }

  .membership-location-card img {
    height: 78px;
  }

  .membership-location-card strong {
    font-size: 0.94rem;
  }

  .membership-location-card small {
    font-size: 0.8rem;
  }

  .membership-location-card input:checked + span::after {
    content: "";
    width: 12px;
    height: 12px;
    padding: 0;
    right: 14px;
  }

  .weekday-choice-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
  }

  .weekday-choice span {
    min-height: 32px;
    border-radius: 7px;
    font-size: 0.75rem;
  }

  .membership-day-time-list {
    gap: 6px;
  }

  .membership-day-time-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
    padding: 7px;
  }

  .membership-day-time-row-head,
  .membership-day-time-slot {
    grid-template-columns: 1fr;
  }

  .membership-day-time-row-head > span {
    white-space: normal;
  }

  .membership-day-time-remove,
  .membership-day-time-slot .select {
    width: 100%;
  }

  .membership-day-time-add {
    width: auto;
    min-height: 32px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .membership-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }

  .membership-calendar-day {
    min-height: 34px;
    align-content: center;
    justify-items: center;
    padding: 3px 2px;
    border-radius: 6px;
  }

  .membership-calendar-day strong {
    font-size: 0.72rem;
  }

  .membership-calendar-day em {
    display: none;
  }

  .membership-calendar-day small {
    position: static;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    font-size: 0.55rem;
  }

  .trainer-profile-calendar .membership-calendar-day {
    min-height: 44px;
  }

  .trainer-profile-calendar .trainer-calendar-counts {
    justify-content: center;
    gap: 2px;
  }

  .trainer-profile-calendar .trainer-calendar-counts small {
    min-width: 22px;
    height: 15px;
    padding: 0 4px;
    font-size: 0.5rem;
    line-height: 15px;
  }

  .trainer-calendar-day-detail-panel {
    padding: 8px;
  }

  .trainer-calendar-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flash-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .trainer-review-modal-backdrop,
  .user-password-modal-backdrop,
  .user-delete-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .flash-modal {
    max-height: calc(100vh - 24px);
    padding: 22px 18px 18px;
  }

  .client-history-report-modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .client-history-report-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .client-history-report-head {
    display: grid;
    padding: 18px;
  }

  .client-history-report-actions {
    justify-content: stretch;
  }

  .client-history-report-actions .button {
    flex: 1 1 150px;
  }

  .client-history-report-body {
    padding: 16px;
  }

  .client-history-report-acceptance-title {
    display: grid;
  }

  .client-history-report-acceptance-title span {
    white-space: normal;
  }

  .client-history-report-kv {
    grid-template-columns: 1fr;
    gap: 3px 0;
  }

  .client-history-report-event {
    grid-template-columns: 1fr;
  }

  .trainer-review-modal,
  .user-password-modal,
  .user-delete-modal {
    max-height: calc(100vh - 24px);
    padding: 22px 18px 18px;
  }

  .public-pdf-modal-backdrop {
    padding: 0;
  }

  .public-pdf-modal {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border-inline: 0;
  }

  .public-pdf-modal-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 10px;
  }

  .public-pdf-modal-brand img {
    width: 42px;
    height: 42px;
  }

  .public-pdf-modal-brand h2 {
    font-size: 1.02rem;
  }

  .public-pdf-modal-brand span {
    font-size: 0.78rem;
  }

  .public-pdf-modal-actions {
    justify-content: flex-start;
  }

  .public-pdf-modal-actions .button {
    min-height: 38px;
    padding: 8px 10px;
  }

  .public-pdf-viewer {
    padding: 10px;
    gap: 10px;
  }

  .public-pdf-page-shell {
    padding: 5px;
  }

  .flash-modal h2 {
    padding-right: 92px;
    font-size: 1.35rem;
  }

  .flash-payment-card {
    padding: 12px;
  }

  .flash-payment-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .flash-payment-copy {
    justify-self: start;
  }

  .trainer-review-modal h2,
  .user-password-modal h2,
  .user-delete-modal h2 {
    padding-right: 92px;
    font-size: 1.35rem;
  }

  .input,
  .select,
  textarea {
    font-size: 16px;
  }

  .attendance-row {
    grid-template-columns: 1fr;
    min-width: 0;
    align-items: start;
    gap: 9px;
  }

  .attendance-list {
    overflow-x: visible;
  }

  .attendance-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  .attendance-toolbar .attendance-date-nav {
    flex: 1 1 min(100%, 248px);
    min-width: 0;
  }

  .attendance-toolbar > .session-visibility-filter-button,
  .attendance-toolbar > .attendance-export-button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .attendance-search-tool {
    padding: 10px;
  }

  .attendance-toolbar .attendance-search-tool {
    flex: 1 1 100%;
    padding: 0;
  }

  .attendance-export-desktop {
    display: none;
  }

  .attendance-export-mobile {
    display: inline-flex;
    flex: 0 0 44px;
  }

  .attendance-search-results {
    max-height: none;
    padding: 4px 0 6px;
  }

  .attendance-history-row {
    grid-template-columns: 1fr;
  }

  .attendance-row time {
    display: inline-flex;
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--brand-dark);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.1;
    box-shadow: 0 10px 22px rgba(66, 104, 178, 0.18);
  }

  .calendar-item time::before,
  .club-session-event-row time::before,
  .attendance-row time::before {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
  }

  .attendance-row time span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
  }

  .attendance-row time span::before {
    content: "- ";
  }

  .attendance-main,
  .attendance-meta {
    grid-column: 1 / -1;
  }

  .attendance-meta {
    grid-column: 1 / -1;
  }

  .attendance-actions {
    --attendance-action-width: min(100%, 340px);
    grid-column: 1 / -1;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .attendance-actions > form,
  .attendance-actions .appointment-correction-trigger,
  .appointment-check-state {
    width: var(--attendance-action-width);
    margin-right: 0;
    margin-left: 0;
  }

  .attendance-actions > form .primary {
    width: 100%;
  }

  .appointment-check-state {
    justify-content: flex-start;
  }

  .appointment-checked-pill {
    flex: 1 1 auto;
  }

  .attendance-warning {
    width: var(--attendance-action-width);
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .walkin-membership-list {
    grid-template-columns: 1fr;
  }

  .trainer-checkin-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .trainer-checkin-row button {
    width: 100%;
    max-width: 100%;
  }

  table {
    min-width: 680px;
  }
}

.shell.public-home-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  background: #ffffff;
}

html:has(.public-home-shell),
body:has(.public-home-shell) {
  background: #ffffff;
}

@media (max-width: 760px) {
  .shell.public-home-shell {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .shell.public-home-shell {
    width: 100%;
    max-width: none;
  }
}

.public-form-panel .form-step-membership .membership-schedule-fields {
  padding: 0;
  border: 0;
  background: transparent;
}

.public-form-panel .form-step-membership .membership-package-choice.is-required-field {
  padding: 0;
  border: 0;
  background: transparent;
}

.public-form-panel .form-step-membership .membership-package-choice.has-validation-error {
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.public-form-panel .form-step-membership .membership-package-card,
.public-form-panel .form-step-membership .membership-package-choice.has-validation-error .membership-package-card {
  padding: 10px;
}

.public-form-panel .form-step-membership .membership-package-card-head {
  padding: 0 2px;
}

@media (max-width: 820px) {
  .client-profile-page,
  .trainer-profile-page {
    gap: 12px;
  }

  .client-profile-page .client-profile-panel > .card,
  .trainer-profile-page .client-profile-panel > .card,
  .trainer-profile-page .trainer-memberships-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .client-profile-page .client-profile-metrics .metric,
  .client-profile-page .client-profile-summary-list div,
  .client-profile-page .client-profile-summary-membership-facts div,
  .trainer-profile-page .trainer-profile-facts div {
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(8, 116, 127, 0.12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .client-profile-page:not(.trainer-profile-page) .client-profile-metrics .metric {
    min-height: 58px;
    padding: 10px 0 10px 16px;
  }

  .client-profile-page:not(.trainer-profile-page) .client-profile-metrics .metric::before {
    inset: 8px auto 8px 0;
    border-radius: 999px;
  }

  .client-profile-page .client-profile-metrics .metric:last-child,
  .client-profile-page .client-profile-summary-list div:last-child,
  .client-profile-page .client-profile-summary-membership-facts div:last-child,
  .trainer-profile-page .trainer-profile-facts div:last-child {
    border-bottom: 0;
  }

  .client-profile-page .client-profile-metrics,
  .client-profile-page .client-profile-summary-list,
  .client-profile-page .client-profile-summary-membership-facts,
  .trainer-profile-page .trainer-profile-facts {
    gap: 0;
  }

  .client-profile-page .client-profile-summary-card,
  .client-profile-page .client-profile-main-membership,
  .client-profile-page .client-profile-calendar-card {
    padding: 10px;
  }

  .client-profile-alert-list {
    grid-template-columns: 1fr;
  }

  .trainer-profile-page .trainer-membership-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
    min-width: 0;
  }

  .trainer-profile-page .trainer-membership-actions .crm-disclosure-action.inline-details,
  .trainer-profile-page .trainer-membership-actions .crm-disclosure-action > summary.crm-disclosure-action-summary,
  .trainer-profile-page .client-profile-membership-tool-row,
  .trainer-profile-page .client-profile-membership-tool-row > *,
  .trainer-profile-page .trainer-membership-actions button,
  .trainer-profile-page .trainer-membership-actions .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .trainer-profile-page .trainer-membership-actions .crm-disclosure-action > summary.crm-disclosure-action-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
    padding-inline: 12px;
  }

  .trainer-profile-page .trainer-membership-actions .crm-disclosure-action-label,
  .trainer-profile-page .trainer-membership-actions .crm-disclosure-action-label span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .trainer-profile-page .trainer-memberships-card .crm-disclosure-action > form,
  .trainer-profile-page .trainer-memberships-card .crm-disclosure-action > .membership-quick-edit {
    padding: 10px 0 0;
    border: 0;
    background: transparent;
  }

  .trainer-profile-page [data-availability-panel] > form[data-availability-create-form],
  .trainer-profile-page .trainer-availability-form.form-grid.compact {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .trainer-profile-page [data-availability-panel] > form[data-availability-create-form] .field,
  .trainer-profile-page [data-availability-panel] > form[data-availability-create-form] .select,
  .trainer-profile-page [data-availability-panel] .availability-edit-form .field,
  .trainer-profile-page [data-availability-panel] .availability-edit-form .select {
    width: 100%;
    min-width: 0;
  }

  .trainer-profile-page [data-availability-panel] > form[data-availability-create-form] .availability-add-button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  .trainer-profile-page [data-availability-panel] > form[data-availability-create-form] .availability-add-button span {
    display: inline;
  }

  .trainer-profile-page [data-availability-panel] .availability-edit-form {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .trainer-profile-page [data-availability-panel] .availability-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trainer-profile-page [data-availability-panel] .availability-edit-actions button {
    width: 100%;
  }
}

.payments-workspace {
  gap: 14px;
}

.payments-toolbar {
  display: grid;
  gap: 10px;
}

.payments-toolbar-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.payments-toolbar-head h2 {
  margin: 0;
}

.payments-toolbar-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.payments-filter-button,
.payments-export-button,
.payments-paycalc-button {
  width: 44px;
  min-width: 44px;
  height: 40px;
  padding: 0;
}

.payments-filter-button .ui-icon,
.payments-export-button .ui-icon,
.payments-paycalc-button .ui-icon {
  margin: 0;
}

.payments-paycalc-button {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

.payments-paycalc-button:hover {
  border-color: #991b1b;
  background: #991b1b;
  color: #fff;
}

.payments-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payments-chip {
  display: inline-flex;
  min-height: 30px;
  max-width: 100%;
  align-items: center;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 8px;
  background: #f4f8ff;
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.payments-filter-backdrop {
  place-items: stretch end;
  padding: 0;
  background: rgba(8, 32, 45, 0.34);
}

.payments-filter-drawer.session-visibility-modal {
  align-self: stretch;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(430px, calc(100vw - 18px));
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: -18px 0 42px rgba(8, 32, 45, 0.2);
}

.payments-filter-drawer-head {
  display: grid;
  gap: 3px;
  padding: 18px 70px 14px 16px;
  border-bottom: 1px solid var(--line);
}

.payments-filter-drawer-head h2 {
  margin: 0;
  font-size: 1.22rem;
}

.payments-filter-close.flash-modal-close {
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
}

.payments-filter-close span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.payments-export-backdrop {
  padding: 16px;
  background: rgba(8, 32, 45, 0.34);
}

.payments-export-modal.session-visibility-modal {
  grid-template-rows: auto minmax(0, 1fr);
  width: min(720px, calc(100vw - 32px));
  max-height: min(calc(100vh - 32px), 760px);
  max-height: min(calc(100dvh - 32px), 760px);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.payments-export-form {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.payments-export-fields {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
}

.payments-export-group {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.payments-export-group > strong {
  color: var(--text);
  font-size: 0.92rem;
}

.payments-export-section-grid,
.payments-export-grid {
  display: grid;
  gap: 8px;
}

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

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

.payments-export-option {
  display: flex;
  min-width: 0;
  min-height: 38px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.payments-export-option input {
  flex: 0 0 auto;
}

.payments-export-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-export-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.payments-export-actions .button {
  min-width: 96px;
}

.payments-calculator-backdrop {
  padding: 16px;
  background: rgba(8, 32, 45, 0.34);
}

.payments-calculator-modal.session-visibility-modal {
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1040px, calc(100vw - 32px));
  max-height: min(92vh, 820px);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.payments-calculator-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
}

.payments-calculator-intro {
  display: flex;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border: 1px solid rgba(66, 104, 178, 0.22);
  border-radius: 8px;
  background: #f4f8ff;
  padding: 10px 12px;
  color: var(--brand-dark);
  font-weight: 900;
}

.payments-calculator-intro span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.payments-calculator-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.payments-calculator-totals,
.payments-trainer-pay-results {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.payments-calculator-totals div,
.payments-trainer-pay-results div {
  display: grid;
  gap: 2px;
  min-width: 0;
  border-radius: 8px;
  background: var(--surface);
  padding: 9px;
}

.payments-calculator-totals span,
.payments-trainer-pay-results span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.payments-calculator-totals strong,
.payments-trainer-pay-results strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-calculator-totals strong.is-negative,
.payments-trainer-pay-results strong.is-negative {
  color: #b42318;
}

.payments-collection-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
  min-width: 0;
}

.payments-trainer-collection-split {
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
}

.payments-collection-split > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  border-left: 3px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
}

.payments-collection-split span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payments-collection-split strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.payments-collection-split small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.payments-collection-split .is-paid {
  border-left-color: #26935d;
  background: #eef9f3;
}

.payments-collection-split .is-paid strong {
  color: #11663f;
}

.payments-collection-split .is-unpaid {
  border-left-color: #d24b3f;
  background: #fff2f0;
}

.payments-collection-split .is-unpaid strong {
  color: #9d2f27;
}

.payments-collection-split .is-review {
  border-left-color: #cc8b0a;
  background: #fff7e2;
}

.payments-collection-split .is-review strong {
  color: #8b5c00;
}

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

.payments-trainer-pay-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.payments-trainer-pay-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.payments-trainer-pay-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payments-trainer-pay-head strong,
.payments-trainer-pay-head .strong-link {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-trainer-pay-controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) repeat(3, minmax(110px, 0.7fr));
  gap: 9px;
}

.payments-trainer-pay-controls .input:disabled {
  opacity: 0.55;
}

.payments-trainer-pay-results {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.payments-period-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
}

.payments-period-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.payments-period-picker {
  width: 100%;
  min-width: 0;
}

.payments-period-trigger {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 10px;
}

.payments-period-trigger:not(.is-active) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.payments-period-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-quick-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px;
}

.payments-quick-filter-grid a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.payments-filter-drawer-form {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.payments-filter-fields {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.payments-date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.payments-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: stretch;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.payments-filter-actions .button {
  min-width: 0;
  justify-content: center;
}

.payments-filter-clear {
  width: 48px;
  min-width: 48px;
  padding-inline: 0;
}

.payments-filter-clear .ui-icon {
  width: 19px;
  height: 19px;
}

.payments-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.payments-section-tabs {
  margin-bottom: 0;
}

.payments-section-tabs .intake-filter-chip {
  flex: 1 1 220px;
  min-width: min(100%, 190px);
}

.payments-section-panel {
  width: 100%;
}

.payments-metric {
  display: grid;
  gap: 5px;
}

.payments-metric strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-metric small {
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 900;
}

.payments-report-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.2fr);
  gap: 14px;
}

.payments-report-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.payments-summary-list,
.payments-session-list,
.payments-membership-list {
  display: grid;
  gap: 8px;
}

.payments-summary-card,
.payments-session-card,
.payments-membership-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payments-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.95fr);
  gap: 12px;
  align-items: center;
  padding: 11px;
}

.payments-summary-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.payments-summary-main strong,
.payments-summary-main .strong-link,
.payments-row-main strong,
.payments-row-main .strong-link,
.payments-row-meta strong,
.payments-row-meta .strong-link {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-summary-main > span,
.payments-row-main > .muted,
.payments-row-meta > .muted {
  font-size: 0.82rem;
  font-weight: 800;
}

.payments-bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2edf2;
}

.payments-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--success));
}

.payments-summary-values,
.payments-membership-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.payments-summary-values div,
.payments-membership-meta div {
  display: grid;
  gap: 2px;
  min-width: 0;
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
}

.payments-summary-values span,
.payments-membership-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.payments-summary-values strong,
.payments-membership-meta strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-session-card {
  display: grid;
  grid-template-columns: 86px minmax(160px, 1.1fr) minmax(120px, 0.78fr) minmax(150px, 1fr) auto auto 36px;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.payments-date-chip {
  display: grid;
  gap: 1px;
  width: 78px;
  border-radius: 8px;
  background: #f4f8ff;
  padding: 8px 7px;
  color: var(--brand-dark);
  text-align: center;
}

.payments-date-chip strong {
  font-size: 0.8rem;
}

.payments-date-chip span {
  font-size: 0.82rem;
  font-weight: 900;
}

.payments-row-main,
.payments-row-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payments-status-slot {
  justify-self: start;
  white-space: nowrap;
}

.payments-money {
  color: var(--success);
  font-weight: 950;
  white-space: nowrap;
}

.payments-card-details {
  position: relative;
  justify-self: end;
}

.payments-card-details summary {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

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

.payments-card-details dl {
  position: absolute;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px 10px;
  width: min(320px, calc(100vw - 42px));
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.payments-card-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.payments-card-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  font-weight: 800;
}

.payments-membership-card {
  display: grid;
  gap: 10px;
  padding: 11px;
}

.payments-membership-card-head {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.payments-membership-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .payments-report-grid {
    grid-template-columns: 1fr;
  }

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

  .payments-session-card {
    grid-template-columns: 82px minmax(0, 1fr) minmax(120px, 0.8fr) auto 36px;
  }

  .payments-hide-md {
    display: none;
  }
}

@media (max-width: 760px) {
  .payments-toolbar-head {
    align-items: flex-start;
  }

  .payments-toolbar-actions {
    gap: 6px;
  }

  .payments-chip-row {
    gap: 6px;
  }

  .payments-chip {
    min-height: 28px;
    font-size: 0.78rem;
  }

  .payments-filter-drawer.session-visibility-modal {
    width: min(100vw, 430px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
  }

  .payments-filter-drawer-head {
    gap: 1px;
    padding: 12px 58px 9px 12px;
  }

  .payments-filter-drawer-head h2 {
    font-size: 1.08rem;
    line-height: 1.12;
  }

  .payments-filter-close.flash-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .payments-period-nav {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 8px 12px;
  }

  .payments-period-picker-grid {
    gap: 6px;
  }

  .payments-period-trigger {
    min-height: 40px;
    padding-inline: 7px;
    font-size: 0.86rem;
  }

  .payments-period-step.attendance-date-step {
    width: 40px;
    min-height: 40px;
  }

  .payments-filter-fields {
    gap: 7px;
    padding: 0 12px 8px;
  }

  .payments-filter-fields .field {
    gap: 4px;
  }

  .payments-filter-fields .label {
    font-size: 0.76rem;
    line-height: 1.05;
  }

  .payments-filter-fields .input,
  .payments-filter-fields .select {
    min-height: 38px;
    padding: 0 9px;
  }

  .payments-filter-drawer .payments-date-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .payments-export-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .payments-export-modal.session-visibility-modal,
  .payments-calculator-modal.session-visibility-modal {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .payments-calculator-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .payments-calculator-intro {
    display: grid;
  }

  .payments-calculator-settings,
  .payments-calculator-totals,
  .payments-trainer-pay-controls,
  .payments-trainer-pay-results {
    grid-template-columns: 1fr;
  }

  .payments-trainer-pay-head {
    display: grid;
  }

  .payments-quick-filter-grid,
  .payments-membership-meta,
  .payments-summary-values {
    grid-template-columns: 1fr;
  }

  .payments-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .payments-export-section-grid,
  .payments-export-grid {
    grid-template-columns: 1fr;
  }

  .payments-export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .payments-export-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .payments-session-card {
    grid-template-columns: 78px minmax(0, 1fr) 36px;
    align-items: start;
  }

  .payments-hide-sm,
  .payments-status-slot {
    display: none;
  }

  .payments-money {
    grid-column: 2;
  }

  .payments-membership-card-head {
    display: grid;
  }

  .appointment-correction-backdrop {
    justify-content: stretch;
    padding: 0;
  }

  .appointment-correction-panel {
    width: 100%;
    min-width: 0;
    height: 100vh;
    padding: 16px;
    overflow-x: hidden;
    border-left: 0;
  }

  .appointment-correction-info .inline-info-popover > div,
  .appointment-correction-kicker .appointment-correction-info .inline-info-popover > div {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 1400;
    width: min(300px, calc(100vw - 44px));
    max-height: min(48vh, 360px);
    overflow-y: auto;
  }

  .appointment-correction-kicker .appointment-correction-info .inline-info-popover > div {
    right: auto;
    left: 0;
  }

  .appointment-correction-kicker .appointment-correction-info .inline-info-popover {
    position: static;
  }

  .appointment-correction-kicker .appointment-correction-info .inline-info-popover > div {
    right: auto;
    left: 0;
    width: min(300px, calc(100vw - 48px));
  }

  .appointment-correction-summary,
  .appointment-correction-grid {
    grid-template-columns: 1fr;
  }

  .appointment-correction-card-wide {
    grid-column: auto;
  }

  .appointment-correction-open {
    width: 100%;
  }

}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .team-user-card {
    grid-template-columns: 280px minmax(360px, 1fr);
  }

  .team-user-controls {
    grid-column: 1 / -1;
  }

  .team-user-actions {
    justify-content: flex-start;
  }

  .user-access-field-grid,
  .user-access-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-access-password-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .team-users-header,
  .team-users-toolbar,
  .team-user-create-form,
  .team-user-card {
    grid-template-columns: 1fr;
  }

  .team-users-header {
    display: grid;
  }

  .team-users-hero-actions {
    justify-content: flex-start;
  }

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

  .team-user-pool-grid,
  .team-user-access-head {
    grid-template-columns: 1fr;
  }

  .team-user-actions {
    justify-content: flex-start;
  }

  .user-access-modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .user-access-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .user-access-field-grid,
  .user-access-security-grid,
  .user-access-pool-grid {
    grid-template-columns: 1fr;
  }

  .user-access-modal-head {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .public-sibling-modal.is-enhanced {
    align-items: stretch;
    padding: 0;
  }

  .public-sibling-dialog {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 16px;
    border: 0;
    border-radius: 0;
  }

  .public-sibling-fields {
    grid-template-columns: 1fr;
  }

  .public-sibling-actions {
    margin-top: auto;
  }

  .public-sibling-actions button {
    flex: 1 1 150px;
  }

  .public-sibling-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-users-header,
  .team-users-stats,
  .team-users-toolbar,
  .team-users-role-strip,
  .team-user-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .team-user-create-card,
  .team-user-empty-filter {
    margin-left: 14px;
    margin-right: 14px;
  }

  .team-users-stats {
    grid-template-columns: 1fr;
  }

  .team-user-create-card summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .team-user-create-card summary > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .team-user-actions > *,
  .team-user-actions .owner-login-action,
  .team-user-actions .delete-toggle-summary {
    width: 100%;
  }

  .team-user-icon-button {
    width: 100%;
  }

  .team-user-pool-card {
    width: 100%;
  }

  .user-access-modal-head,
  .user-access-modal-body,
  .user-access-modal-section {
    padding: 14px;
  }
}

.public-appointment-step {
  min-width: 0;
}

.public-appointment-type-choice .membership-package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-appointment-trainer-field {
  margin-top: 4px;
}

.public-group-membership {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.public-group-membership[hidden] {
  display: none;
}

.membership-schedule-fields[hidden] {
  display: none;
}

.public-group-trainer-mode {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.public-group-trainer-mode > legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.public-group-trainer-select {
  width: 100%;
  min-width: 0;
}

.public-group-state {
  margin: 0;
  padding: 9px 11px;
  border-left: 4px solid #2056a8;
  border-radius: 4px;
  background: #eef5ff;
  color: #153f7d;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

.public-group-package-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.public-group-state[data-status="loading"] {
  border-left-color: #60788a;
  background: #f3f6f8;
  color: #425866;
}

.public-group-state[data-status="complete"] {
  border-left-color: #198754;
  background: #effaf4;
  color: #12663f;
}

.public-group-state[data-status="error"] {
  border-left-color: #c0392b;
  background: #fff2f1;
  color: #922f25;
}

.public-group-plan {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e4ea;
  border-radius: 8px;
  background: #f8fbfc;
}

.public-group-selected-rules[hidden],
.public-group-plan[hidden] {
  display: none;
}

.public-group-selected-rules {
  min-width: 0;
}

.public-group-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.public-group-rule-list > div {
  display: inline-flex;
  gap: 0;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 1px 1px 1px 4px;
  border: 1px solid #c9dae4;
  border-radius: 999px;
  background: #f6fafc;
}

.public-group-rule-list span {
  min-width: 0;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.public-group-rule-list .public-booking-remove {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 0;
  background: transparent;
  color: #60788a;
  font-size: 0.72rem;
}

.public-group-rule-list .public-booking-remove:hover,
.public-group-rule-list .public-booking-remove:focus-visible {
  background: #e5eef4;
  color: #173c51;
}

.public-group-plan > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.public-group-plan.is-incomplete {
  border-color: #d49b32;
  background: #fff9e9;
}

.public-group-plan.has-error {
  border-color: #bf5548;
  background: #fff2ef;
}

.public-group-plan-trainer {
  color: var(--brand-dark) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

.public-group-plan-sessions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.public-group-plan-sessions > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 2px 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dce7ec;
  border-radius: 6px;
  background: #fff;
}

.public-group-plan-sessions strong {
  grid-row: 1 / 3;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #2056a8;
  color: #fff;
  font-size: 0.75rem;
}

.public-group-plan-sessions span,
.public-group-plan-sessions time {
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.public-group-plan-sessions time {
  color: var(--brand-dark);
}

.public-booking-calendar {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-booking-calendar[hidden],
.public-booking-selection[hidden],
.public-booking-modal[hidden] {
  display: none;
}

.public-booking-calendar-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.public-booking-calendar-header h3 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.public-booking-calendar-header .icon-button,
.public-booking-modal-dialog .icon-button,
.public-booking-remove {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
}

.public-booking-calendar-header .ui-icon,
.public-booking-modal-dialog .ui-icon {
  width: 18px;
  height: 18px;
}

.public-booking-weekdays,
.public-booking-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.public-booking-weekdays span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.public-booking-days {
  grid-template-rows: repeat(6, minmax(48px, 1fr));
}

.public-booking-day {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f6f8;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.public-booking-day.is-available {
  border-color: #21875b;
  background: #e9f8ef;
  color: #0c6843;
}

.public-booking-day.is-yellow {
  border-color: #c58b20;
  background: #fff7d9;
  color: #805800;
}

.public-booking-day.is-unavailable {
  border-color: #bf5548;
  background: #fff0ed;
  color: #9b3026;
}

.public-booking-day.is-no-schedule,
.public-booking-day.is-outside,
.public-booking-day.is-empty {
  border-color: #e4ebee;
  background: #f7f9fa;
  color: #a3b0b6;
}

.public-booking-day:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(25, 57, 72, 0.12);
}

.public-booking-day.has-selection {
  outline: 3px solid rgba(32, 86, 168, 0.3);
  outline-offset: 1px;
}

.public-booking-day > span {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #2056a8;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
}

.public-booking-calendar-state {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.public-booking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.public-booking-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.public-booking-legend i {
  width: 12px;
  height: 12px;
  border: 1px solid;
  border-radius: 3px;
}

.public-booking-legend i.is-available {
  border-color: #21875b;
  background: #e9f8ef;
}

.public-booking-legend i.is-yellow {
  border-color: #c58b20;
  background: #fff7d9;
}

.public-booking-legend i.is-unavailable {
  border-color: #bf5548;
  background: #fff0ed;
}

.public-booking-selection {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 86, 168, 0.22);
  border-radius: 8px;
  background: #f5f8fd;
}

.public-booking-selection-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.public-booking-selection-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.public-booking-selection-metric.is-total {
  justify-content: flex-end;
}

.public-booking-selection-head span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: none;
}

.public-booking-value-badge {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-height: 32px;
  border: 1px solid #2056a8;
  color: #fff;
  background: #2056a8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
}

.public-booking-value-badge.is-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.public-booking-value-badge.is-price {
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.public-booking-selected-list {
  display: grid;
  gap: 6px;
}

.public-booking-selected-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.public-booking-selected-list span {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.public-booking-remove {
  color: #9b3026;
  font-size: 0.78rem;
  font-weight: 900;
}

.public-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 18px;
  background: rgba(19, 42, 53, 0.52);
}

.public-booking-modal-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  width: min(880px, 100%);
  max-height: min(88vh, 820px);
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(19, 42, 53, 0.28);
}

.public-booking-modal-dialog > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
}

.public-booking-modal-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.public-booking-modal-dialog header span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.public-booking-modal-dialog header h3 {
  min-width: 0;
  margin: 2px 0 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.public-booking-modal-trainer {
  min-width: 0;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.public-booking-modal-trainer strong {
  color: var(--brand-dark);
}

.public-booking-slot-state {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.public-booking-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 8px;
  align-content: start;
  min-width: 0;
  overflow-y: auto;
}

.public-booking-slot {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 64px;
  padding: 9px;
  border-radius: 6px;
  text-align: left;
}

.public-booking-slot:hover,
.public-booking-slot:focus-visible,
.public-booking-slot:active {
  transform: none;
}

.public-booking-slot:focus-visible {
  outline: 2px solid #2056a8;
  outline-offset: -4px;
}

.public-booking-slot strong,
.public-booking-slot span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.public-booking-slot span {
  font-size: 0.72rem;
  font-weight: 800;
}

.public-booking-slot.is-available {
  border-color: #21875b;
  background: #e9f8ef;
  color: #0c6843;
}

.public-booking-slot.is-yellow {
  border-color: #c58b20;
  background: #fff7d9;
  color: #805800;
}

.public-booking-slot small {
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.public-booking-slot.is-unavailable,
.public-booking-slot.is-unavailable:disabled {
  border-color: #bf5548;
  background: #fff0ed;
  color: #9b3026;
  opacity: 1;
}

.public-booking-slot.is-selected,
.public-booking-slot.is-selected:hover,
.public-booking-slot.is-selected:focus-visible {
  border-color: #2056a8;
  box-shadow: inset 0 0 0 2px rgba(32, 86, 168, 0.42);
}

.public-booking-slot-check {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #2056a8;
  color: #fff;
  box-shadow: 0 0 0 2px #e9f8ef;
  pointer-events: none;
}

.public-booking-slot-check .ui-icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

@media (max-width: 700px) {
  .public-group-plan-sessions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-appointment-type-choice .membership-package-grid {
    grid-template-columns: 1fr;
  }

  .public-booking-selection-head {
    gap: 6px;
  }

  .public-booking-selection-metric {
    gap: 5px;
  }

  .public-booking-selection-head span {
    font-size: 0.7rem;
  }

  .public-booking-value-badge {
    min-height: 28px;
  }

  .public-booking-value-badge.is-count {
    width: 28px;
    height: 28px;
  }

  .public-booking-value-badge.is-price {
    padding: 0 7px;
    font-size: 0.76rem;
  }

  .public-booking-calendar {
    padding: 10px;
  }

  .public-booking-weekdays,
  .public-booking-days {
    gap: 4px;
  }

  .public-booking-days {
    grid-template-rows: repeat(6, minmax(42px, 1fr));
  }

  .public-booking-day {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .public-booking-modal {
    align-items: end;
    padding: 0;
  }

  .public-booking-modal-dialog {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    padding: 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .public-booking-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .public-group-plan-sessions {
    grid-template-columns: 1fr;
  }

  .public-booking-selection {
    padding: 8px;
  }

  .public-booking-selection-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px;
  }

  .public-booking-selection-metric {
    gap: 4px;
  }

  .public-booking-selection-head span {
    font-size: 0.62rem;
  }

  .public-booking-value-badge.is-count {
    width: 26px;
    height: 26px;
    min-height: 26px;
  }

  .public-booking-value-badge.is-price {
    min-height: 26px;
    padding: 0 5px;
    font-size: 0.68rem;
  }
}

.public-enrollment-type-choice {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.public-enrollment-type-choice[hidden] {
  display: none;
}

.public-enrollment-type-choice legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-enrollment-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  min-width: 0;
}

.public-enrollment-type-options button {
  min-width: 0;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.public-enrollment-type-options button:hover {
  border-color: rgba(32, 86, 168, 0.52);
}

.public-enrollment-type-options button:focus-visible {
  outline: 3px solid rgba(32, 86, 168, 0.2);
  outline-offset: 2px;
}

.public-enrollment-type-options button.is-active {
  border-color: #2056a8;
  background: #eef4ff;
  color: #153f7d;
  box-shadow: inset 0 0 0 2px rgba(32, 86, 168, 0.2);
}

.is-public-type-hidden {
  display: none !important;
}

.public-enrollment-package-prompt {
  margin: 0;
  padding: 9px 10px;
  border-left: 3px solid #2056a8;
  background: #f5f8fd;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.public-enrollment-package-prompt[hidden],
.is-public-enrollment-enhanced .membership-package-choice.is-public-awaiting-type .membership-package-grid {
  display: none;
}

[data-public-enrollment-form].is-public-enrollment-enhanced .membership-package-choice .membership-package-grid {
  grid-template-columns: minmax(0, 1fr);
}

[data-public-enrollment-form].is-public-enrollment-enhanced .membership-package-choice .membership-package-card,
[data-public-enrollment-form].is-public-enrollment-enhanced .membership-package-choice.has-validation-error .membership-package-card {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
}

[data-public-enrollment-form].is-public-enrollment-enhanced .membership-package-card-head {
  display: none;
}

[data-public-enrollment-form].is-public-enrollment-enhanced .membership-session-options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

[data-public-enrollment-form].is-public-enrollment-enhanced .membership-session-choice > span {
  min-height: 66px;
}

[data-public-enrollment-form].is-public-enrollment-enhanced .membership-session-type {
  display: none;
}

.public-enrollment-review {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 12px;
  border-top: 1px solid rgba(32, 86, 168, 0.18);
  border-bottom: 1px solid rgba(32, 86, 168, 0.18);
  background: #f8fbfc;
}

.public-enrollment-review[hidden] {
  display: none;
}

.public-enrollment-review-total {
  min-width: 0;
  color: var(--brand-dark);
  font-size: 1.2rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.public-enrollment-review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.public-enrollment-review-badges > span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid #d2e0e8;
  border-radius: 999px;
  background: #fff;
  color: #425866;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.public-enrollment-review > .discount-coupon-field {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.public-enrollment-review > .discount-coupon-field.is-valid,
.public-enrollment-review > .discount-coupon-field.is-invalid {
  border-color: transparent;
  background: transparent;
}

.public-enrollment-detail-toggle {
  justify-self: start;
}

.membership-preview-calendar-details {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.membership-preview-calendar-details[hidden] {
  display: none;
}

.public-booking-slots.has-single-option {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 700px) {
  .public-enrollment-type-options {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  [data-public-enrollment-form].is-public-enrollment-enhanced .membership-session-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-enrollment-review {
    padding: 12px 10px;
  }
}

@media (max-width: 390px) {
  .public-enrollment-type-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-enrollment-type-options button {
    min-height: 60px;
  }

  .public-enrollment-type-options button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  [data-public-enrollment-form].is-public-enrollment-enhanced .membership-session-options {
    grid-template-columns: 1fr;
  }
}

/* Cupoane: acelasi component este folosit in formularul public, portal si operarea interna. */
.discount-coupon-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff 0%, #f7fafc 100%);
}

.discount-coupon-field.is-valid {
  border-color: rgba(22, 130, 96, 0.5);
  background: linear-gradient(145deg, #fff 0%, #f2fbf7 100%);
}

.discount-coupon-field.is-invalid {
  border-color: rgba(184, 70, 52, 0.5);
}

.discount-coupon-heading,
.discount-coupon-card-head,
.discount-coupon-code-row,
.discount-coupon-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.discount-coupon-heading > div,
.discount-coupon-card-head > div {
  min-width: 0;
}

.discount-coupon-heading small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.discount-coupon-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2fb;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.discount-coupon-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.discount-coupon-control .input {
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.discount-coupon-control .button {
  min-width: 92px;
}

.discount-coupon-field.is-loading .discount-coupon-control .button {
  opacity: 0.72;
}

.discount-coupon-state {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.discount-coupon-success {
  color: var(--success);
  font-weight: 800;
}

.discount-coupon-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.discount-coupon-summary[hidden] {
  display: none;
}

.discount-coupon-summary > span,
.discount-coupon-metrics > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(213, 226, 231, 0.9);
  border-radius: 8px;
  background: #fff;
}

.discount-coupon-summary small,
.discount-coupon-metrics small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.discount-coupon-summary strong,
.discount-coupon-metrics strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.discount-coupon-summary .is-discount strong {
  color: var(--success);
}

.discount-coupon-summary .is-total {
  border-color: rgba(66, 104, 178, 0.35);
  background: #f3f6fc;
}

.discount-coupon-policy {
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #f4f7fc;
}

.discount-coupon-policy p {
  margin: 4px 0 0;
  color: var(--muted);
}

.discount-coupon-editor > summary,
.discount-coupon-edit-details > summary {
  cursor: pointer;
  font-weight: 900;
}

.discount-coupon-editor > summary {
  display: grid;
  gap: 2px;
}

.discount-coupon-editor > summary small {
  color: var(--muted);
  font-weight: 500;
}

.discount-coupon-editor[open] > summary,
.discount-coupon-edit-details[open] > summary {
  margin-bottom: 16px;
}

.discount-coupon-admin-form {
  min-width: 0;
}

.discount-coupon-active-toggle {
  align-self: end;
  min-height: 46px;
}

.discount-coupon-scope {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.discount-coupon-scope > legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 900;
}

.discount-coupon-scope > p {
  margin: 0 0 10px;
}

.discount-coupon-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  min-width: 0;
}

.discount-coupon-choice-grid .check-row {
  min-width: 0;
  margin: 0;
}

.discount-coupon-choice-grid .check-row > span {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}

.discount-coupon-choice-grid .check-row small {
  color: var(--muted);
}

.discount-coupon-package-groups,
.discount-coupon-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.discount-coupon-package-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.discount-coupon-package-group + .discount-coupon-package-group {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.discount-coupon-form-actions {
  align-items: flex-start;
}

.discount-coupon-form-actions p {
  max-width: 640px;
  margin: 0;
  text-align: right;
}

.discount-coupon-card {
  min-width: 0;
}

.discount-coupon-code-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.discount-coupon-code-row code {
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 7px;
  background: #edf2fb;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.discount-coupon-card-head h3,
.discount-coupon-card-head p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.discount-coupon-toggle-form {
  flex: 0 0 auto;
}

.discount-coupon-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.discount-coupon-edit-details {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .discount-coupon-card-head,
  .discount-coupon-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .discount-coupon-toggle-form,
  .discount-coupon-toggle-form .button,
  .discount-coupon-form-actions .primary {
    width: 100%;
  }

  .discount-coupon-form-actions p {
    text-align: left;
  }

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

@media (max-width: 390px) {
  .discount-coupon-field,
  .discount-coupon-scope {
    padding: 11px;
  }

  .discount-coupon-heading {
    align-items: flex-start;
  }

  .discount-coupon-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .discount-coupon-control .button {
    width: 100%;
  }

  .discount-coupon-summary,
  .discount-coupon-metrics,
  .discount-coupon-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
