/* Профили клиентов — fitness_gym (master-detail, minimal) */

.client-profiles-page .home-header {
  margin-bottom: 0.5rem;
}

.client-profiles-page .cp-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.client-profiles-page .cp-page-subtitle {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: 36rem;
}

.client-profiles-page .home-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

#clientProfilesRoot {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* —— Overview —— */
.cp-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 720px) {
  .cp-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cp-overview-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.cp-overview-card--warn {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
  background: color-mix(in srgb, #f59e0b 6%, var(--surface));
}

.cp-overview-card__val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cp-overview-card__lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
}

/* —— Quick filters —— */
.cp-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cp-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cp-filter-chip:hover {
  border-color: color-mix(in srgb, var(--brand-teal) 30%, var(--line));
  color: var(--text);
}

.cp-filter-chip.active {
  background: color-mix(in srgb, var(--brand-teal) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--brand-teal) 40%, var(--line));
  color: var(--text);
}

.cp-filter-chip__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: color-mix(in srgb, #f59e0b 18%, var(--surface));
  color: #b45309;
}

.cp-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

@media (max-width: 900px) {
  .cp-shell {
    grid-template-columns: 1fr;
  }

  .cp-shell--detail-only .cp-rail {
    display: none;
  }

  .cp-shell:not(.cp-shell--detail-only) #clientProfilesDetail {
    display: none;
  }
}

/* —— Sidebar rail —— */
.cp-rail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 140px);
}

@media (max-width: 900px) {
  .cp-rail {
    position: static;
    max-height: none;
  }
}

.cp-rail-filters {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.15rem 0.1rem 0;
}

.cp-rail-filters .form-input {
  font-size: 0.88rem;
  border-radius: var(--radius, 12px);
  background: var(--surface);
}

.cp-rail-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: auto;
  padding: 0.15rem 0.1rem 0.25rem;
  scrollbar-width: thin;
}

@media (max-width: 900px) {
  .cp-rail-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    max-width: 100%;
  }
}

.cp-client {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius, 12px);
  border: 1px solid transparent;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.15s var(--ui-ease, ease), border-color 0.15s var(--ui-ease, ease);
}

@media (max-width: 900px) {
  .cp-client {
    flex: 0 0 auto;
    min-width: 11.5rem;
    max-width: 14rem;
  }
}

.cp-client:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.cp-client.active {
  background: color-mix(in srgb, var(--brand-teal) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--brand-teal) 35%, var(--line));
  box-shadow: inset 3px 0 0 var(--brand-teal-mid);
}

.cp-client__avatar {
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cp-client__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.cp-client__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.cp-client__badges {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.cp-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.cp-badge--muted {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: -0.02em;
}

.cp-badge--task {
  background: color-mix(in srgb, var(--brand-teal) 14%, var(--surface));
  color: var(--brand-teal);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 22%, transparent);
}

.cp-badge--dot {
  width: 0.45rem;
  min-width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 25%, transparent);
}

.cp-client__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cp-client__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.2;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--brand-teal) 10%, var(--surface));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 18%, transparent);
}

.cp-chip--warn {
  background: color-mix(in srgb, #f59e0b 12%, var(--surface));
  border-color: color-mix(in srgb, #f59e0b 25%, transparent);
  color: #b45309;
  padding: 0.08rem 0.35rem;
}

.cp-chip--muted {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--muted);
}

/* Avatar palette */
.cp-avatar--teal {
  color: var(--brand-teal);
  background: color-mix(in srgb, var(--brand-teal) 16%, var(--surface));
}

.cp-avatar--violet {
  color: #6d28d9;
  background: color-mix(in srgb, #8b5cf6 16%, var(--surface));
}

.cp-avatar--amber {
  color: #b45309;
  background: color-mix(in srgb, #f59e0b 16%, var(--surface));
}

.cp-avatar--rose {
  color: #be123c;
  background: color-mix(in srgb, #f43f5e 14%, var(--surface));
}

.cp-avatar--sky {
  color: #0369a1;
  background: color-mix(in srgb, #0ea5e9 14%, var(--surface));
}

.cp-avatar--lime {
  color: #4d7c0f;
  background: color-mix(in srgb, #84cc16 14%, var(--surface));
}

/* —— Main detail —— */
.cp-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* —— Hero header —— */
.cp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand-teal) 9%, var(--surface)) 0%,
    var(--surface) 55%,
    color-mix(in srgb, var(--brand-teal) 4%, var(--surface)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--brand-teal) 18%, var(--line));
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset;
}

.cp-hero__lead {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.cp-hero__avatar {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px color-mix(in srgb, #0f172a 8%, transparent);
}

.cp-hero__info {
  min-width: 0;
  flex: 1;
}

.cp-back-btn {
  display: none;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 900px) {
  .cp-shell--detail-only .cp-back-btn {
    display: inline-grid;
    place-items: center;
  }

  .cp-shell--detail-only .cp-hero {
    flex-wrap: nowrap;
    align-items: center;
  }

  .cp-shell--detail-only .cp-hero__lead {
    flex: 1;
    min-width: 0;
  }

  .cp-shell--detail-only .cp-main-head__actions {
    width: 100%;
    justify-content: stretch;
  }

  .cp-shell--detail-only .cp-main-head__actions .ghost-btn,
  .cp-shell--detail-only .cp-main-head__actions .cp-tg-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.cp-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cp-main-head__info {
  min-width: 0;
  flex: 1;
}

.cp-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cp-main-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.cp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 4.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.cp-stat__val {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.cp-stat__lbl {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cp-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.cp-target-pill {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.cp-main-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.55rem;
  flex-shrink: 0;
}

.cp-main-head .ghost-btn.primary-btn {
  flex-shrink: 0;
  min-height: 2.5rem;
  padding-inline: 1.1rem;
}

.cp-tg-btn {
  min-height: 2.5rem;
  padding-inline: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.cp-tg-missing {
  font-size: 0.78rem;
  max-width: 11rem;
  line-height: 1.25;
  text-align: right;
}

/* —— Attention + section nav —— */
.cp-attention-banner {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #f59e0b 30%, var(--line));
  background: color-mix(in srgb, #f59e0b 7%, var(--surface));
  font-size: 0.84rem;
  line-height: 1.4;
}

.cp-attention-banner strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}

.cp-attention-banner ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.cp-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  position: sticky;
  top: 0.5rem;
  z-index: 5;
  padding: 0.45rem;
  margin: -0.15rem 0 0.15rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}

.cp-section-nav__btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cp-section-nav__btn:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.cp-section-nav__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-teal) 50%, transparent);
  outline-offset: 2px;
}

/* —— Sections —— */
.cp-section {
  padding: 0.95rem 1.15rem 1.05rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: 4.5rem;
}

.cp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.cp-section-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.cp-section-head .cp-section-title {
  margin-bottom: 0;
}

.cp-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 720px) {
  .cp-field-grid {
    grid-template-columns: 1fr;
  }
}

.cp-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.cp-notes-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-notes-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-limit-input-wrap {
  position: relative;
}

.cp-limit-popup {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 14rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(15, 23, 42, 0.12));
  padding: 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.cp-limit-popup__item {
  border: none;
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.cp-limit-popup__item:hover {
  background: color-mix(in srgb, var(--brand-teal) 10%, var(--surface-soft));
}

@media (max-width: 960px) {
  .cp-notes-grid {
    grid-template-columns: 1fr;
  }
}

.cp-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.cp-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.cp-field input,
.cp-field select,
.cp-field textarea {
  width: 100%;
  font-size: 0.88rem;
}

.cp-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.cp-sync {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.cp-sync input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-teal);
}

/* —— Measurements —— */
.cp-section--measures .cp-section-head {
  margin-bottom: 0.55rem;
}

.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.cp-actions .ghost-btn {
  font-size: 0.82rem;
  min-height: 2.25rem;
}

.cp-actions .ghost-btn.primary-btn {
  min-height: 2.35rem;
}

.cp-chart-panel {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem 0.45rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.cp-chart-panel__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.cp-chart {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  height: 44px;
  overflow: hidden;
}

.cp-chart-bar {
  flex: 0 0 9px;
  width: 9px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand-teal-light) 0%, var(--brand-teal-mid) 100%);
  opacity: 0.9;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cp-chart-bar:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.cp-measure-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cp-measure-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.65rem 0.75rem 0.7rem;
}

.cp-measure-card__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.cp-measure-card__date {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.cp-measure-card__top .cp-chip {
  font-size: 0.65rem;
  padding: 0.06rem 0.4rem;
}

.cp-measure-card__top .cp-del {
  margin-left: auto;
}

.cp-measure-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.8rem, 1fr));
  gap: 0.45rem 0.65rem;
}

.cp-measure-metric {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cp-measure-metric__lbl {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cp-measure-metric__val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cp-del {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.cp-del:hover {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 8%, var(--surface));
}

.cp-empty-inline {
  padding: 1.25rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.cp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 12rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--surface);
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--brand-teal) 20%);
}

.cp-empty--loading {
  border-style: solid;
}

/* —— Tasks —— */
.cp-task-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.cp-task-row .form-input {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
}

.cp-task-row .ghost-btn {
  flex-shrink: 0;
  min-height: 2.35rem;
}

.cp-tasks {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.cp-tasks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  font-size: 0.86rem;
}

.cp-tasks li:last-child {
  border-bottom: none;
}

.cp-tasks input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand-teal);
  flex-shrink: 0;
}

.cp-tasks li span:first-of-type {
  flex: 1;
  min-width: 0;
}

.cp-tasks .muted {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.cp-tasks .cp-del {
  margin-left: auto;
  flex-shrink: 0;
}

/* —— Modal —— */
.client-profiles-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: color-mix(in srgb, #0f172a 42%, transparent);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.client-profiles-modal {
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.12));
}

.client-profiles-modal .cp-kicker {
  margin-bottom: 0.35rem;
}

.client-profiles-modal h4 {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.client-profiles-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* Legacy aliases used elsewhere */
.team-groups-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.team-group-tag {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--brand-teal) 10%, var(--surface));
  border: 1px solid var(--line);
}

.team-group-chip-edit {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.1rem 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .cp-client,
  .cp-chart-bar,
  .cp-filter-chip {
    transition: none;
  }

  .cp-chart-bar:hover {
    transform: none;
  }
}
