/* ============================================================
   МСР — общий стиль платформы
   Акцентный цвет: #E72C7C
   ============================================================ */

:root {
    --msr-accent: #E72C7C;
    --msr-accent-dark: #c91865;
    --msr-accent-soft: #ffe4ef;
    --msr-blue: #0d6efd;
    --msr-blue-soft: #e0f2fe;
    --msr-radius: 16px;
    --msr-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --msr-shadow-hover: 0 0.75rem 1.5rem rgba(0,0,0,0.1);
}

/* -------- Страничная обёртка -------- */
.msr-page {
    padding-bottom: 24px;
}
@media (max-width: 767.98px) {
    .msr-page { padding-bottom: 90px; }
}

/* -------- Карточки -------- */
.msr-card {
    background: #fff;
    border-radius: var(--msr-radius);
    box-shadow: var(--msr-shadow);
    border: none;
    margin-bottom: 16px;
    overflow: hidden;
}
.msr-card-body {
    padding: 20px;
}
.msr-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
}

/* -------- Заголовки секций -------- */
.msr-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.msr-section-title .count {
    color: var(--msr-accent);
}

/* -------- Кнопки -------- */
.msr-btn-primary {
    background: var(--msr-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
}
.msr-btn-primary:hover {
    background: var(--msr-accent-dark);
    color: #fff;
}
.msr-btn-soft {
    background: var(--msr-accent-soft);
    color: var(--msr-accent);
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter .15s;
}
.msr-btn-soft:hover {
    filter: brightness(0.95);
    color: var(--msr-accent);
}
.msr-btn-blue {
    background: var(--msr-blue-soft);
    color: #0369a1;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter .15s;
}
.msr-btn-blue:hover {
    filter: brightness(0.95);
    color: #0c4a6e;
}
.msr-btn-block {
    width: 100%;
}

/* -------- Бейджи -------- */
.msr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.msr-badge-blue { background: #e0f2fe; color: #0369a1; }
.msr-badge-pink { background: var(--msr-accent-soft); color: var(--msr-accent); }
.msr-badge-green { background: #d1e7dd; color: #0f5132; }
.msr-badge-red { background: #f8d7da; color: #842029; }
.msr-badge-yellow { background: #fff3cd; color: #664d03; }
.msr-badge-gray { background: #e9ecef; color: #495057; }

/* -------- Инфо-строки -------- */
.msr-info-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 3px;
}

/* -------- Карточка тренировки (мобильная) -------- */
.msr-training-card {
    background: #fff;
    border-radius: var(--msr-radius);
    box-shadow: var(--msr-shadow);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: transform .15s;
    display: block;
    text-decoration: none;
    color: #212529;
}
.msr-training-card:hover {
    transform: translateY(-2px);
    color: #212529;
    box-shadow: var(--msr-shadow-hover);
}
.msr-sport-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f0f7ff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.msr-sport-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

/* -------- Быстрые плитки -------- */
.msr-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 576px) {
    .msr-quick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .msr-quick-grid { grid-template-columns: repeat(4, 1fr); }
}
.msr-quick-tile {
    border-radius: 18px;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: #212529;
    transition: transform .15s;
    position: relative;
    display: block;
}
.msr-quick-tile:hover {
    transform: translateY(-3px);
    color: #212529;
}
.msr-quick-tile .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.msr-quick-tile .title {
    font-weight: 700;
    font-size: 0.9rem;
}
.msr-quick-tile .sub {
    color: #888;
    font-size: 0.7rem;
    margin-top: 4px;
    line-height: 1.2;
}
.msr-tile-blue { background: #e0f2fe; }
.msr-tile-pink { background: var(--msr-accent-soft); }
.msr-tile-green { background: #d1e7dd; }
.msr-tile-yellow { background: #fff3cd; }

/* -------- Кнопка-строка в списке -------- */
.msr-list-row {
    background: #fff;
    border-radius: var(--msr-radius);
    box-shadow: var(--msr-shadow);
    padding: 16px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .15s;
}
.msr-list-row:hover {
    transform: translateY(-2px);
    color: #212529;
    box-shadow: var(--msr-shadow-hover);
}

/* -------- Пустое состояние -------- */
.msr-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.msr-empty .emoji {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}