.body-map-picker {
  max-width: 240px;
  margin: 0.5rem 0 0.25rem;
}

.body-map-readonly {
  width: 88px;
  margin: 0;
}

.body-map-widget-readonly .body-map-stage {
  max-width: 88px;
}

.body-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.body-map-views,
.body-map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.body-map-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.body-map-btn:hover {
  border-color: var(--accent);
}

.body-map-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.body-map-clear-btn {
  color: #9b1c1c;
}

.body-map-stage {
  position: relative;
  max-width: 220px;
  margin: 0 auto;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.body-map-widget-readonly .body-map-stage {
  max-width: 88px;
}

.body-map-chart-mount .body-chart-container {
  padding: 0.25rem !important;
}

.body-map-chart-mount .body-chart-svg {
  max-width: 100% !important;
  max-height: none !important;
  filter: none !important;
}

.body-map-chart-mount .body-chart-muscle {
  stroke: #64748b !important;
}

.body-map-muscles-inactive .body-chart-muscle {
  pointer-events: none !important;
  cursor: default !important;
}

.body-map-widget-readonly .body-chart-muscle {
  pointer-events: none !important;
  cursor: default !important;
}

.body-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.body-map-widget.tool-pin .body-map-overlay,
.body-map-widget.tool-draw .body-map-overlay {
  pointer-events: auto;
  cursor: crosshair;
}

.body-map-widget.tool-pin .body-map-overlay {
  cursor: cell;
}

.body-map-pin {
  fill: #c0392b;
  stroke: #fff;
  stroke-width: 0.12;
  pointer-events: none;
}

.body-map-stroke {
  pointer-events: none;
}

.body-map-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.85rem;
}

.body-map-thumb-cell {
  width: 5.5rem;
}

.injury-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.injury-badge-severe {
  background: #fde8e8;
  color: #9b1c1c;
}

.injury-badge-moderate {
  background: #fef3c7;
  color: #92400e;
}

.injury-badge-mild {
  background: #e0f2fe;
  color: #075985;
}

.injury-badge-resolved {
  background: #ecfdf5;
  color: #065f46;
}

.injury-edit-details {
  margin-bottom: 0.35rem;
}

.injury-edit-details summary {
  cursor: pointer;
  list-style: none;
}

.injury-edit-details summary::-webkit-details-marker {
  display: none;
}

.injury-history .form {
  margin-top: 0.75rem;
  max-width: 100%;
}

.client-list-filters {
  margin: 1rem 0;
}

.client-list-filters .filter-panel {
  margin: 0;
}

.filter-panel-disclosure {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-panel-disclosure[open] > .filter-panel {
  border-top: 1px solid var(--border);
}

.filter-panel__summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
}

.filter-panel__summary::-webkit-details-marker {
  display: none;
}

.filter-panel__summary-toggle {
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-panel__summary-toggle::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  transition: transform 0.15s ease;
}

.filter-panel-disclosure[open] > .filter-panel__summary .filter-panel__summary-toggle::before {
  transform: rotate(90deg);
}

.filter-panel__summary-hint {
  font-size: 0.85rem;
}

.filter-panel__active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.filter-panel__active-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.3;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.filter-panel-disclosure .filter-panel__clear {
  margin-left: auto;
}

.filter-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-panel-disclosure .filter-panel {
  margin: 0;
  border: none;
  border-radius: 0;
  background: var(--bg);
}

.filter-panel__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-panel__row--search input[type="search"] {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.filter-panel__section {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg);
}

.filter-panel__heading {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-panel__heading--sub {
  margin-top: 0.85rem;
}

.filter-panel__hint {
  margin: -0.35rem 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.filter-panel__row--tags {
  gap: 0.5rem 1rem;
}

.filter-panel__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}

.filter-panel__field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.filter-panel__field--hidden {
  display: none !important;
}

.filter-panel__days-input {
  width: 4.5rem;
}

.filter-panel__clear {
  font-size: 0.9rem;
  white-space: nowrap;
}

.client-list-icon-col {
  width: 2.5rem;
  text-align: center;
}

.client-list-check {
  color: var(--success, #2a7);
  font-weight: 700;
}
