/* =============================================================================
   VIV Fitness - Главная таблица стилей приложения (Main Stylesheet)
   =============================================================================
   ОГЛАВЛЕНИЕ БЛОКОВ:
   - БЛОК 1. Базовый сброс, шрифты и мобильный каркас (Reset & App Shell)
   - БЛОК 2. Верхняя шапка, Safe Area и переходы экранов (Header & Transitions)
   - БЛОК 3. Нижняя панель навигации — Хотбар (Bottom Navigation Bar)
   - БЛОК 4. Карточки, списки и бейджи (Cards, Lists & Badges)
   - БЛОК 5. Кнопки, степперы и интерактивные контролы (Buttons & Steppers)
   - БЛОК 6. Таблица подходов активной тренировки (Active Workout Sets Table)
   - БЛОК 7. Поля ввода и формы (Forms & Inputs)
   - БЛОК 8. Всплывающие модальные окна (Bottom Sheet Modals)
   - БЛОК 9. Экран профиля и внешние ссылки (Profile & Social Links)
   - БЛОК 10. Плавающий таймер отдыха (Floating Rest Timer Bar)
   - БЛОК 11. Калькулятор блинов и визуализация грифа (Plate Calculator)
   - БЛОК 12. Календарь активности и графики (Calendar & Charts)
   - БЛОК 13. Трекер привычек и анимация чекбоксов (Habits Tracker)
   - БЛОК 14. Адаптивность и стили печати отчета (Media Queries & Print)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   БЛОК 1. Базовый сброс, шрифты и мобильный каркас (Reset & App Shell)
   ----------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--body-bg, #050505);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.45;
}

/* Container simulating smartphone or filling screen (slightly increased scale) */

.app-container {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--app-shadow, 0 0 40px rgba(0, 0, 0, 0.85));
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: 56px;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  padding-right: 14px;
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
}

.header-slot {
  display: flex;
  align-items: center;
  min-width: 40px;
  height: 100%;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.app-header h1 {
  font-size: 18.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.2px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.nav-back-btn, .header-icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.15s, transform 0.12s;
}

.nav-back-btn:active, .header-icon-btn:active {
  background-color: var(--accent-subtle);
  transform: scale(0.92);
}

.nav-back-btn.hidden {
  visibility: hidden;
}

/* Screen content */
.screen-content {
  flex: 1;
  padding: 18px 16px calc(92px + env(safe-area-inset-bottom, 0px)) 16px;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Bottom Navigation Bar */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  min-height: 66px;
  height: calc(66px + env(safe-area-inset-bottom, 0px));
  background-color: var(--nav-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--nav-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  gap: 4px;
  flex: 1;
  padding: 6px 2px;
  transition: color 0.15s, transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: -0.1px;
}

.nav-item.active {
  color: var(--text-primary);
  font-weight: 700;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-item-logo {
  justify-content: center;
}

.nav-item-logo .nav-icon {
  width: auto;
  height: 38px;
}

.nav-icon .icon-filled {
  display: none;
}

.nav-icon .icon-outline {
  display: block;
}

.nav-item.active .nav-icon .icon-filled {
  display: block;
}

.nav-item.active .nav-icon .icon-outline {
  display: none;
}

/* List view */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.list-card:active {
  background-color: var(--accent-subtle);
  border-color: var(--accent-color);
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.08s, background-color 0.15s;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
}

.btn:active {
  transform: scale(0.98);
}


.btn-primary {
  background-color: var(--btn-primary-bg, #ffffff);
  color: var(--btn-primary-text, #000000);
  width: 100%;
}


.btn-primary:active {
  background-color: var(--btn-primary-hover, #e4e4e7);
}

.btn-secondary {
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Зеленые кнопки (Старт / Завершить / Сохранить) */
.btn-green {
  background-color: var(--green-btn);
  color: #ffffff;
}

.btn-green:active {
  background-color: var(--green-btn-hover);
}

/* Красные кнопки (Удалить) */
.btn-danger {
  background-color: var(--red-btn);
  color: #ffffff;
}

.btn-danger:active {
  background-color: var(--red-btn-hover);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

/* Numeric input reset: remove native spin buttons */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Set input pill (clean field without stepper arrows) */
.set-val-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  height: 36px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 4px;
}

.set-val-box:hover {
  border-color: var(--accent-color);
}

.set-val-box:active {
  transform: scale(0.96);
  background-color: var(--card-bg-subtle);
  border-color: var(--accent-color);
}

.set-val-text {
  font-size: 14.5px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.set-val-text.placeholder {
  color: var(--text-muted, #71717a);
  font-weight: 500;
}

/* Соосные колонки таблицы подходов */
.sets-table-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

.sets-table-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  transition: background-color 0.2s;
}

.col-check {
  width: 26px;
  min-width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-set-num {
  width: 22px;
  min-width: 22px;
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.col-stepper {
  flex: 1;
  min-width: 0;
}

.col-action {
  width: 24px;
  min-width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-input, .form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px; /* 16px prevents iOS Safari from auto-zooming and sliding the modal */
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg-elevated);
  color: var(--text-primary);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-color);
}

/* Tabs inside screens (e.g. Stats) */
.sub-tabs {
  display: flex;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.sub-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.sub-tab-btn.active {
  background-color: var(--card-bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--modal-overlay-bg, rgba(0, 0, 0, 0.78));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}

.hidden {
  display: none !important;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-overlay.closing {
  animation: modalOverlayFadeOut 0.18s ease forwards;
}

.modal-overlay.closing .modal-card {
  animation: modalSlideDown 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.modal-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-bottom: none;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 12px)) 18px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--modal-card-shadow, 0 -10px 40px rgba(0, 0, 0, 0.85));
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes modalOverlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modalSlideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}

.modal-close-btn:active {
  background-color: var(--accent-subtle);
  color: var(--text-primary);
}

/* Profile Avatar */
.avatar-circle {
  width: 82px;
  height: 82px;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 30px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 16px;
}

/* Chart Canvas Container */
.chart-container {
  width: 100%;
  height: 240px;
  position: relative;
  margin-top: 8px;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Social link buttons inside Club VIV */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 12px;
  transition: border-color 0.15s, background-color 0.15s;
}

.social-btn:active {
  background-color: var(--accent-subtle);
  border-color: var(--accent-color);
}

.social-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Контейнер-бейдж для иконки официального ресурса */
.social-icon-badge {
  width: 38px;
  height: 38px;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Иконки официальных ресурсов VIV */
.social-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.2s ease;
}

/* Вращение иконки сайта по часовой стрелке (1 полный оборот за 8 секунд) */
@keyframes spinClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.social-icon-url-spin {
  animation: spinClockwise 8s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Адаптивная контрастность иконок под тёмную тему (Dark Mode):
   - Иконка url_icon.svg уже белая (#fff) — отображается нативно без фильтра.
   - Иконки tg_icon.svg и ins_icon.svg черные (#000) — инвертируются в белый цвет. */
[data-theme="dark"] .social-icon-adaptive-dark,
:root:not([data-theme="light"]) .social-icon-adaptive-dark {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .social-icon-adaptive-light,
:root:not([data-theme="light"]) .social-icon-adaptive-light {
  filter: none;
}

/* Адаптивная контрастность иконок под светлую тему (Light Mode):
   - Иконка url_icon.svg белая (#fff) — инвертируется в контрастный чёрный цвет (#000).
   - Иконки tg_icon.svg и ins_icon.svg черные (#000) — отображаются нативно без фильтра. */
[data-theme="light"] .social-icon-adaptive-light {
  filter: brightness(0);
}

[data-theme="light"] .social-icon-adaptive-dark {
  filter: none;
}

.filter-chip {
  flex-shrink: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.filter-chip:active,
.chip-btn:active {
  transform: scale(0.96);
}

.filter-chip.active {
  background-color: var(--accent-color, #DFFF00);
  color: #000000;
  border-color: var(--accent-color, #DFFF00);
  box-shadow: 0 2px 8px rgba(223, 255, 0, 0.25);
}

/* Category Chip Buttons (Модалка выбора и фильтры статистики) */
.chip-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--border-color, #1c2229);
  background: var(--card-bg, #14181c);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.chip-btn.active {
  background: var(--accent-color, #DFFF00);
  color: #000000;
  border-color: var(--accent-color, #DFFF00);
  box-shadow: 0 2px 8px rgba(223, 255, 0, 0.25);
}

/* Плашка подсказки предыдущей тренировки */
.prev-workout-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(223, 255, 0, 0.07);
  border: 1px solid rgba(223, 255, 0, 0.22);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.35;
  flex-wrap: wrap;
}

.prev-workout-hint .prev-hint-label {
  font-weight: 700;
  color: var(--text-muted, #8e9baa);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.5px;
}

.prev-workout-hint .prev-hint-val {
  color: var(--accent-color, #DFFF00);
  font-weight: 700;
}

/* Карточка недельного объема по группам мышц */
.muscle-vol-card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 16px;
}

.muscle-vol-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 13px;
}

.muscle-vol-label {
  font-weight: 700;
  color: var(--text-primary);
}

.muscle-vol-stats {
  font-size: 12px;
  color: var(--text-secondary);
}

.muscle-vol-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.muscle-vol-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #00F59B, #DFFF00);
  transition: width 0.4s ease;
}

/* =========================================================
   2. Rest Timer & Plate Calculator (Screen 2: Тренировки)
   ========================================================= */
/* Floating Rest Timer Bar */
.rest-timer-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 428px;
  background-color: var(--timer-bar-bg);
  border: 1px solid var(--green-btn);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--timer-bar-shadow);
  z-index: 40;
  opacity: 1;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translate(-50%, 14px); opacity: 1; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.rest-timer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rest-timer-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--green-btn);
  border-radius: 50%;
  opacity: 1;
  flex-shrink: 0;
  animation: timerPulse 1.8s ease-in-out infinite;
}

@keyframes timerPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 12px 3px rgba(34, 197, 94, 0.45);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    opacity: 1;
  }
}

.rest-timer-pulse.paused {
  animation: none;
  background-color: var(--text-muted, #71717a);
  box-shadow: none;
  opacity: 1;
}

.rest-timer-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, monospace, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  min-width: 54px;
  display: inline-block;
  line-height: 1.2;
}

.rest-timer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rest-timer-btn {
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.rest-timer-btn:active {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.rest-timer-stop-btn {
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.rest-timer-stop-btn:active {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Reorder controls for workout editor & active workout */
.reorder-controls {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.reorder-btn {
  width: 26px;
  height: 22px;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s, border-color 0.15s;
}

.reorder-btn:hover:not(:disabled) {
  background-color: var(--card-bg-elevated);
  border-color: var(--accent-color);
}

.reorder-btn:active:not(:disabled) {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.reorder-btn:disabled, .reorder-btn.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.active-ex-reorder {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Set Checkbox in Training Table */
.set-check-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.set-check-btn.checked {
  background-color: var(--green-btn);
  border-color: var(--green-btn);
  color: #ffffff;
}

.sets-table-row.completed {
  background-color: rgba(34, 197, 94, 0.07);
  border-radius: 8px;
  padding: 1px 0;
}

/* =========================================================
   Plate Calculator (Smooth, Laconic, Luxury Barbell)
   ========================================================= */
.plate-calc-container {
  text-align: center;
  padding: 2px 0;
}

.plate-weight-display-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.plate-weight-val {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  min-width: 110px;
  text-align: center;
  color: var(--text-primary);
}

.plate-quick-chips {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.plate-quick-chip {
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.plate-quick-chip.active, .plate-quick-chip:active {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.plate-wheel-trigger-card {
  background: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plate-wheel-trigger-card:hover {
  border-color: var(--accent-color);
}

.plate-wheel-trigger-card:active {
  transform: scale(0.97);
  background: var(--card-bg-subtle);
  border-color: var(--accent-color);
}

.plate-wheel-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 2px;
}

.barbell-visual {
  height: 94px;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  padding: 0 10px;
}

.barbell-visual-symmetrical {
  background: radial-gradient(circle at center, var(--card-bg-elevated) 0%, var(--card-bg) 100%);
}

.barbell-shaft {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 7px;
  background: linear-gradient(180deg, #f3f4f6 0%, #6b7280 50%, #1f2937 100%);
  border-radius: 2px;
  z-index: 1;
}

.barbell-center-knurl {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 11px;
  background: repeating-linear-gradient(45deg, #4b5563, #4b5563 2px, #374151 2px, #374151 4px);
  border-radius: 2px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.barbell-sleeve-side {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 100%;
}

.sleeve-left {
  justify-content: flex-end;
  flex: 1;
  padding-right: 28px;
}

.sleeve-right {
  justify-content: flex-start;
  flex: 1;
  padding-left: 28px;
}

.barbell-collar {
  width: 8px;
  height: 38px;
  background: linear-gradient(180deg, #f9fafb 0%, #9ca3af 50%, #374151 100%);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.collar-left {
  border-radius: 0 3px 3px 0;
}

.collar-right {
  border-radius: 3px 0 0 3px;
}

.barbell-plates-stack {
  display: flex;
  align-items: center;
  gap: 2px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.barbell-plates-stack.stack-left {
  justify-content: flex-end;
}

.barbell-plates-stack.stack-right {
  justify-content: flex-start;
}

.plate-disc {
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.35);
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  animation: plateSlideIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes plateSlideIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.plate-25  { width: 12px; height: 72px; background: #dc2626; }
.plate-20  { width: 12px; height: 72px; background: #2563eb; }
.plate-15  { width: 11px; height: 62px; background: #ca8a04; }
.plate-10  { width: 10px; height: 52px; background: #16a34a; }
.plate-5   { width: 9px;  height: 42px; background: #f8fafc; border: 1px solid #cbd5e1; }
.plate-2_5 { width: 8px;  height: 34px; background: #18181b; border: 1px solid #71717a; }
.plate-1_25{ width: 7px;  height: 26px; background: #94a3b8; }

.plate-legend-box {
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  text-align: left;
}

.plate-legend-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.plate-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
}

.plate-legend-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 4px 6px;
  border-radius: 8px;
}

.plate-disc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.dot-25   { background: #dc2626; }
.dot-20   { background: #2563eb; }
.dot-15   { background: #ca8a04; }
.dot-10   { background: #16a34a; }
.dot-5    { background: #f8fafc; border: 1px solid #cbd5e1; }
.dot-2_5  { background: #18181b; border: 1px solid #71717a; }
.dot-1_25 { background: #94a3b8; }

.plate-loaded-chips-row {
  margin-top: 8px;
}

/* =========================================================
   3. Activity Calendar (Screen 3: Статистика)
   ========================================================= */

/* Activity Calendar */
.activity-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
  margin-top: 10px;
}

.cal-weekday {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  padding-bottom: 4px;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  padding: 0;
}

.cal-nav-btn:hover {
  border-color: var(--accent-color);
}

.cal-nav-btn:active {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.cal-cell {
  aspect-ratio: 1;
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  min-width: 0;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s, background-color 0.15s;
  user-select: none;
}

.cal-cell:active {
  transform: scale(0.92);
}

.cal-cell.today {
  border-color: var(--accent-color);
  box-shadow: inset 0 0 0 1px var(--accent-color);
}

.cal-cell.active-workout {
  background-color: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.6);
}

.cal-cell.active-workout::after {
  content: '';
  width: 5px;
  height: 5px;
  background-color: var(--green-btn);
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

.cal-detail-metric {
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  flex: 1;
}

.cal-detail-metric-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.cal-detail-metric-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* =========================================================
   4. Bodyweight & Finish Summary (Screen 4: Профиль / Модалки)
   ========================================================= */
.finish-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
  text-align: center;
}

.finish-stat-box {
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 4px;
  min-width: 0;
}

.finish-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finish-stat-lbl {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pr-banner {
  background-color: var(--card-bg-elevated);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-left: 3px solid #eab308;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  text-align: left;
}

.pr-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
  margin-bottom: 4px;
}

.report-stat-item {
  background: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ============================================================
   Habit Tracker Module (Apple HIG & Minimal Athletic Styling)
   ============================================================ */

.habit-week-strip {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.habit-day-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 3px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.habit-day-pill:hover {
  border-color: var(--text-secondary);
}

.habit-day-pill.active {
  border-color: var(--text-primary);
  background: var(--card-bg-elevated);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.habit-day-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.habit-day-pill.is-today .habit-day-name {
  color: #38bdf8;
}

.habit-day-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.habit-day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

.habit-day-dot.partial {
  background: #f59e0b;
}

.habit-day-dot.full {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.habit-progress-track {
  width: 100%;
  height: 8px;
  background: var(--card-bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.habit-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.habit-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.habit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.habit-card.completed {
  background: var(--card-bg-subtle);
  border-color: rgba(34, 197, 94, 0.25);
  opacity: 0.88;
}

.habit-card.completed .habit-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.habit-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.habit-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--card-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  font-size: 20px;
  line-height: 1;
}

.habit-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.habit-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.habit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.habit-streak-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--card-bg-elevated);
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.habit-streak-badge.active {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
}

.habit-checkbox-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--card-bg-elevated);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.habit-checkbox-btn:hover {
  border-color: #22c55e;
}

.habit-checkbox-btn:active {
  transform: scale(0.90);
}

.habit-checkbox-btn.checked {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.habit-card:active,
.habit-day-pill:active {
  transform: scale(0.975);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.habit-emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.habit-emoji-chip {
  font-size: 24px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--card-bg-elevated);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.habit-emoji-chip:hover {
  border-color: var(--text-secondary);
}

.habit-emoji-chip.active {
  background: var(--card-bg-subtle);
  border-color: var(--text-primary);
  transform: scale(1.06);
  box-shadow: 0 0 0 1.5px var(--text-primary);
}

/* Responsive Scaling for Small Screens & Narrow Viewports */
@media (max-width: 375px) {
  .habit-week-strip {
    gap: 4px;
  }
  .habit-day-pill {
    padding: 6px 1px;
  }
  .habit-day-name {
    font-size: 9px;
  }
  .habit-day-num {
    font-size: 13px;
  }
  .screen-content {
    padding: 14px 10px 88px 10px;
  }
  .card {
    padding: 12px 10px;
  }
  .sets-table-header, .sets-table-row {
    gap: 4px;
  }
  .col-check {
    width: 22px;
    min-width: 22px;
  }
  .col-set-num {
    width: 18px;
    min-width: 18px;
    font-size: 12px;
  }
  .col-action {
    width: 20px;
    min-width: 20px;
  }
  .nav-item {
    font-size: 9.5px;
  }
  .nav-item span {
    letter-spacing: -0.3px;
  }
}

/* Print Styles for Coach Report */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  
.bottom-nav, .app-header, .btn, .rest-timer-bar {
    display: none !important;
  }
  .card, .modal-card {
    border: 1px solid #000000 !important;
    background: none !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   Wheel / Drum Number Picker Styles
   ========================================================= */
.picker-overlay {
  z-index: 120 !important;
}

.picker-modal-card {
  max-height: 85vh;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 12px)) 18px;
  background-color: var(--card-bg);
}

.wheel-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.wheel-picker-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
}

.wheel-picker-btn-cancel {
  background: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.wheel-picker-btn-cancel:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.wheel-picker-btn-cancel:active {
  transform: scale(0.96);
  background: rgba(239, 68, 68, 0.12);
}

.wheel-picker-btn-confirm {
  background: var(--green-btn, #22c55e);
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.wheel-picker-btn-confirm:hover {
  filter: brightness(1.08);
}

.wheel-picker-btn-confirm:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(34, 197, 94, 0.25);
}

.wheel-picker-footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.wheel-picker-framed-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.wheel-picker-framed-input {
  width: 140px;
  height: 52px;
  font-size: 30px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-align: center;
  background: var(--card-bg-elevated);
  border: 2px solid var(--accent-color, #22c55e);
  color: var(--text-primary);
  border-radius: 14px;
  padding: 4px 10px;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wheel-picker-framed-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.wheel-picker-framed-unit {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-secondary);
}

.wheel-picker-deltas-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.wheel-picker-delta-chip {
  background: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}

.wheel-picker-delta-chip:active {
  background: var(--accent-subtle);
  border-color: var(--accent-color);
  transform: scale(0.94);
}

.wheel-picker-wheel-wrap {
  position: relative;
  height: 220px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden !important;
  overflow-x: hidden !important;
  touch-action: pan-y !important;
  border-radius: 14px;
  background: var(--card-bg-subtle, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border-subtle);
  user-select: none;
}

.wheel-picker-lens {
  position: absolute;
  top: 88px;
  left: 8px;
  right: 8px;
  height: 44px;
  background: var(--accent-subtle, rgba(34, 197, 94, 0.12));
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
}

.wheel-picker-drum {
  position: relative;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-y: scroll;
  overflow-x: hidden !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain;
  overscroll-behavior-x: none !important;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  z-index: 1;
  user-select: none;
}

.wheel-picker-drum::-webkit-scrollbar {
  display: none;
}

.wheel-picker-spacer {
  height: 88px;
  flex-shrink: 0;
}

.wheel-picker-item {
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  touch-action: pan-y !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-secondary);
  scroll-snap-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s, color 0.15s, font-weight 0.15s;
}

.wheel-picker-item.selected {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 800;
  transform: scale(1.08);
}

.check-bounce-svg {
  animation: checkBounce 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkBounce {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* =========================================================
   Apple Fitness Style Daily Summary Dashboard
   ========================================================= */
.apple-fitness-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.summary-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 2px;
}

.summary-title-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.summary-date-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1px;
}

.activity-rings-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.activity-rings-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.activity-rings-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.activity-rings-svg-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.activity-rings-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.rings-legend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.ring-stat-item {
  display: flex;
  flex-direction: column;
}

.ring-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ring-stat-val {
  font-size: 17px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.ring-stat-val.val-red {
  color: #ff2d55;
}

.ring-stat-val.val-green {
  color: #30d158;
}

.ring-stat-val.val-cyan {
  color: #00f0ff;
}

.ring-stat-unit {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  margin-left: 2px;
}

/* 2-Column Metric Cards Grid */
.summary-metric-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.summary-metric-card:active {
  transform: scale(0.98);
}

.summary-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-metric-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.summary-metric-chevron {
  color: var(--text-secondary);
  opacity: 0.6;
}

.summary-metric-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.summary-metric-num {
  font-size: 26px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: -0.6px;
  margin-top: 6px;
  line-height: 1.1;
}

.summary-metric-num.num-purple {
  color: #c084fc;
}

.summary-metric-num.num-cyan {
  color: #00f0ff;
}

/* Mini Bar Chart inside Metric Cards */
.summary-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 10px;
  padding-top: 4px;
}

.summary-mini-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  min-height: 3px;
  transition: height 0.3s ease;
}

.summary-mini-bar.active-purple {
  background: linear-gradient(180deg, #c084fc 0%, #a855f7 100%);
}

.summary-mini-bar.active-cyan {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

/* Featured Workout Banner (Apple Fitness+ style) */
.summary-featured-workout-card {
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg-elevated) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.summary-featured-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #22c55e;
}

.summary-featured-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.summary-featured-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   VIV Athlete Performance Report & PDF Print Styles
   ============================================================ */

.report-tab-wrapper {
  padding-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.apple-report-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.apple-report-title-box {
  min-width: 0;
}

.apple-report-top-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.apple-report-top-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.apple-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-weight: 700;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Карточка отчёта в стиле Apple Fitness / Nike */
.apple-fitness-report {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 20px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Центрированный брендинг VIV */
.apple-report-branding {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.apple-report-logo,
.apple-report-logo-interactive {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffffff !important;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), text-shadow 0.15s ease;
}

.apple-report-logo-interactive:hover {
  color: #ffffff !important;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.7);
}

.apple-report-logo-interactive:active {
  transform: scale(0.95);
  color: #ffffff !important;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
}

.apple-report-hint {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent-color, #ccff00);
  opacity: 0.85;
  margin-top: 5px;
  user-select: none;
}

.chart-limit-filter-btn {
  background-color: var(--card-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: border-color 0.15s, background-color 0.15s;
}

.chart-limit-filter-btn:hover {
  border-color: var(--accent-color);
}

.chart-limit-filter-btn:active {
  transform: scale(0.96);
}

.date-quick-chips {
  scrollbar-width: none;
}
.date-quick-chips::-webkit-scrollbar {
  display: none;
}

.apple-report-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
}

/* Hero Ring Card по центру (Дизайн 1) */
.apple-hero-ring-card {
  background: var(--card-bg, #14181c);
  border: 1px solid var(--border-color, #1c2229);
  border-radius: 22px;
  padding: 22px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.apple-ring-container-centered {
  position: relative;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-ring-svg-lg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.apple-ring-bg-lg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 13;
}

.apple-ring-bar-lg {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 402;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.apple-ring-center-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.apple-ring-center-num {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.apple-ring-center-unit {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  letter-spacing: 1.5px;
}

/* Секция распределения тоннажа */
.tonnage-dist-section {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tonnage-dist-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.tonnage-dist-section-title {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.tonnage-dist-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.tonnage-dist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tonnage-dist-card {
  background: var(--card-bg-elevated, #14181c);
  border: 1px solid var(--border-color, #1c2229);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.apple-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.apple-kpi-card {
  background: var(--card-bg-elevated, #14181c);
  border: 1px solid var(--border-color, #1c2229);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.apple-kpi-val {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.apple-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #a1a1aa);
  margin-top: 3px;
}

.tonnage-dist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.tonnage-dist-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tonnage-dist-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.tonnage-dist-pct {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.tonnage-dist-vol {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.tonnage-dist-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
  width: 100%;
}

.tonnage-dist-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.app-logo-image,
.app-logo-badge {
  display: inline-block;
  vertical-align: middle;
  height: 24px;
  width: auto;
  border-radius: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.app-logo-brand {
  color: #ffffff !important;
  font-weight: 900;
  letter-spacing: 2px;
}

.apple-report-logo-interactive .app-logo-badge {
  width: auto;
  height: 26px;
  border-radius: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.apple-athlete-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  box-sizing: border-box;
}

.apple-dot {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.apple-athlete-name {
  font-weight: 700;
  color: #ffffff;
}

/* HERO CARD: СУММАРНЫЙ ТОННАЖ С НЕОНОВЫМ КОЛЬЦОМ */
.apple-hero-card {
  background: linear-gradient(145deg, #18181b 0%, #111113 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.apple-ring-container {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.apple-ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
  fill: none;
}

.apple-ring-bar {
  stroke-width: 12;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 42;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.45));
}

.apple-ring-inner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-color, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-hero-info {
  flex: 1;
  min-width: 0;
}

.apple-hero-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-color, #22c55e);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.apple-hero-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.apple-hero-num {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
}

.apple-hero-unit {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-color, #22c55e);
}

.apple-hero-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 3px;
}

.apple-hero-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  line-height: 1.35;
}

/* Сводные виджеты: 2 колонки + широкая карточка дисциплины */
.apple-widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.apple-widget-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.apple-widget-card-wide {
  grid-column: span 2;
}

.apple-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.apple-widget-title {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.apple-widget-val {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.apple-widget-unit {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.apple-widget-foot {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Секции отчёта */
.apple-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.apple-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2px;
}

.apple-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.6);
}

.apple-section-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-color, #22c55e);
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
}

/* Список рекордов (PR): полноразмерный список наград */
.apple-records-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.apple-record-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.apple-record-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-color, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apple-record-main {
  flex: 1;
  min-width: 0;
}

.apple-record-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-record-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}

.apple-record-badge {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 4px 8px;
  text-align: right;
  flex-shrink: 0;
}

.apple-record-val {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent-color, #22c55e);
}

.apple-record-unit {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

/* Журнал тренировок */
.apple-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apple-history-row {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apple-history-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.apple-history-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}

.apple-history-tonnage-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-color, #22c55e);
  text-align: right;
}

.apple-history-tonnage-label {
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

.apple-empty-box {
  background: #18181b;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Подвал */
.apple-report-footer {
  text-align: center;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.apple-footer-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
}

.apple-footer-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

/* Стили печати для Apple Fitness Report */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  #screen-header,
  .app-header,
  .bottom-nav,
  .sub-tabs,
  .btn,
  button,
  .apple-report-action-bar,
  #picker-overlay,
  .modal-overlay {
    display: none !important;
  }

  #main-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .report-tab-wrapper {
    padding: 0 !important;
  }

  .apple-fitness-report {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    padding: 18px !important;
    border-radius: 0 !important;
  }

  .apple-report-logo {
    color: #000000 !important;
  }

  .apple-report-tagline {
    color: #000000 !important;
  }

  .apple-report-date,
  .apple-hero-sub,
  .apple-widget-foot,
  .apple-record-sub,
  .apple-history-date {
    color: #555555 !important;
  }

  .apple-athlete-pill {
    background: #f4f4f5 !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
  }

  .apple-athlete-name {
    color: #000000 !important;
  }

  .apple-hero-card,
  .apple-widget-card,
  .apple-record-card,
  .apple-history-row {
    background: #fafafa !important;
    border: 1px solid #dddddd !important;
    color: #000000 !important;
  }

  .apple-hero-num,
  .apple-widget-val,
  .apple-record-name,
  .apple-history-name {
    color: #000000 !important;
  }

  .apple-hero-label,
  .apple-section-title {
    color: #000000 !important;
  }

  .apple-hero-unit,
  .apple-record-val,
  .apple-history-tonnage-val {
    color: #000000 !important;
    font-weight: 900 !important;
  }

  .apple-ring-bg {
    stroke: #e4e4e7 !important;
  }

  .apple-ring-bar {
    stroke: #000000 !important;
    filter: none !important;
  }

  .apple-footer-brand,
  .apple-footer-text {
    color: #666666 !important;
  }
}

