/* ═══════════════════════════════════════════════
   load-body-viz.css — Нагрузка недели (тест)
   ROLLBACK: удалить этот файл + load-body-viz.js
   ═══════════════════════════════════════════════ */

/* ── Компактный превью в редакторе ── */
.em-bl-preview {
  padding: 14px 16px;
  border-radius: var(--card-r, 20px);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.em-bl-preview:active {
  background: rgba(255, 255, 255, 0.06);
}

.em-bl-preview-title {
  font-size: var(--fs-14-regular, 14px);
  font-weight: var(--fw-14-medium, 500);
  color: var(--text);
  margin-bottom: 10px;
}

.em-bl-preview-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.em-bl-preview-stat {
  font-size: var(--fs-12-regular, 12px);
  color: var(--text2);
  line-height: 1.35;
}

.em-bl-preview-link {
  font-size: var(--fs-12-regular, 12px);
  font-weight: var(--fw-14-medium, 500);
  color: var(--training, #00CC88);
  text-align: right;
}

/* ── Модалка ── */
.em-bl-modal-body {
  padding: 0 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.em-bl-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 14px;
}

.em-bl-summary-row {
  font-size: var(--fs-12-regular, 12px);
  color: var(--text2);
}

.em-bl-seg-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: var(--r-pill, 99px);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.em-bl-seg-btn {
  flex: 1;
  border: none;
  border-radius: var(--r-pill, 99px);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: var(--fs-12-regular, 12px);
  font-weight: var(--fw-14-medium, 500);
  color: var(--text3);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.em-bl-seg-btn--active {
  background: rgba(0, 204, 136, 0.18);
  color: var(--training, #00CC88);
}

.em-bl-silhouette-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
  min-height: 320px;
}

.em-bl-silhouette {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.em-bl-silhouette--asset {
  max-width: 260px;
  max-height: 420px;
}

.em-bl-silhouette .bl-base {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.8;
  transition: opacity 0.25s ease;
}

.em-bl-silhouette .bl-zone {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.5;
  cursor: pointer;
  transition: fill 0.25s ease, filter 0.25s ease;
}

.em-bl-silhouette .bl-zone--none {
  fill: rgba(255, 255, 255, 0.08);
  filter: none;
}

.em-bl-silhouette .bl-zone--under {
  fill: #FF6B6B;
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.55));
}

.em-bl-silhouette .bl-zone--partial {
  fill: #FFC857;
  filter: drop-shadow(0 0 8px rgba(255, 200, 87, 0.45));
}

.em-bl-silhouette .bl-zone--optimal {
  fill: #00D68F;
  filter: drop-shadow(0 0 8px rgba(0, 214, 143, 0.45));
}

.em-bl-silhouette .bl-zone--over {
  fill: #7C5CFF;
  filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.5));
}

.em-bl-silhouette--hidden,
#em-bl-svg-front.em-bl-silhouette--hidden,
#em-bl-svg-back.em-bl-silhouette--hidden {
  display: none;
}

.em-bl-problems {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: var(--card-r, 20px);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.em-bl-problems-title {
  font-size: var(--fs-12-regular, 12px);
  font-weight: var(--fw-14-medium, 500);
  color: var(--text2);
  margin-bottom: 10px;
}

.em-bl-problem-row {
  font-size: var(--fs-12-regular, 12px);
  color: var(--text);
  padding: 5px 0;
  line-height: 1.35;
}

.em-bl-problems-empty {
  font-size: var(--fs-12-regular, 12px);
  color: var(--text3);
}

/* ── Bottom sheet (детали мышцы) ── */
.em-bl-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1105;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.em-bl-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.em-bl-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 72vh;
  background: rgba(12, 12, 20, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 18px 18px 0 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.em-bl-sheet-overlay.open .em-bl-sheet {
  transform: translateY(0);
}

.em-bl-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.em-bl-sheet-title {
  font-size: var(--fs-18-regular, 18px);
  font-weight: var(--fw-24-semibold, 600);
  color: var(--text);
}

.em-bl-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
}

.em-bl-sheet-body {
  padding: 0 16px 20px;
  overflow-y: auto;
}

.em-bl-sheet-status {
  font-size: var(--fs-12-regular, 12px);
  color: var(--text2);
  margin-bottom: 14px;
}

.em-bl-sheet-status strong {
  color: var(--text);
}

.em-bl-sheet-seg {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-12-regular, 12px);
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.em-bl-sheet-seg span:last-child {
  color: var(--text2);
  font-weight: var(--fw-14-medium, 500);
}

.em-bl-sheet-ex-title {
  font-size: var(--fs-12-regular, 12px);
  font-weight: var(--fw-14-medium, 500);
  color: var(--text2);
  margin: 14px 0 8px;
}

.em-bl-sheet-ex {
  font-size: var(--fs-12-regular, 12px);
  color: var(--text);
  padding: 4px 0;
  line-height: 1.4;
}
