/* MaxRepTracker Showcase — Dashboard Activity demo styles
 * Self-contained replica of core's user-dashboard.css (Activity filters,
 * Recent exercise cards, training spectrum, and Overview charts).
 * Scoped under #mrt-dashboard-activity-preview to avoid leaking. */

#mrt-dashboard-activity-preview .mrt-dashboard-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
    background-color: transparent;
    box-sizing: border-box;
}

#mrt-dashboard-activity-preview .mrt-orm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

#mrt-dashboard-activity-preview .mrt-orm-header h3 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Inter", "Outfit", sans-serif;
    line-height: normal;
}

#mrt-dashboard-activity-preview .mrt-orm-header h3 svg {
    color: #0082fc;
    flex-shrink: 0;
}

/* ── Filters bar ─────────────────────────────────────────────────────── */

#mrt-dashboard-activity-preview .mrt-orm-category-filters {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: var(--mrt-radius, 18px);
    border: none;
    box-shadow: none;
}

#mrt-dashboard-activity-preview .mrt-orm-filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 0px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

#mrt-dashboard-activity-preview .mrt-orm-filter-buttons::-webkit-scrollbar {
    display: none;
}

#mrt-dashboard-activity-preview .mrt-orm-filter-buttons.mrt-filter-scrolling {
    cursor: grabbing;
    user-select: none;
}

#mrt-dashboard-activity-preview
    .mrt-orm-filter-buttons
    .mrt-orm-category-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

#mrt-dashboard-activity-preview .mrt-orm-category-filter-btn {
    padding: 8px 15px;
    border: 1px solid #cbd5e0;
    background: #edf2f7;
    border-radius: var(--mrt-radius, 18px);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #4a5568 !important;
}

#mrt-dashboard-activity-preview .mrt-orm-category-filter-btn:hover {
    background: var(--mrt-primary, #4f33ff) !important;
    color: white !important;
    border-color: var(--mrt-primary, #4f33ff);
}

#mrt-dashboard-activity-preview .mrt-orm-category-filter-btn.active {
    background: var(--mrt-primary, #4f33ff);
    color: white !important;
    border-color: var(--mrt-primary, #4f33ff);
}

#mrt-dashboard-activity-preview .mrt-orm-show-more-btn,
#mrt-dashboard-activity-preview .mrt-orm-show-less-btn {
    background: var(--mrt-primary, #4f33ff);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--mrt-radius, 18px);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    font-weight: 500;
}

#mrt-dashboard-activity-preview .mrt-orm-show-more-btn:hover {
    background: var(--mrt-primary-hover, #a855f7);
}

#mrt-dashboard-activity-preview .mrt-orm-show-less-btn {
    background: #a0aec0;
}

#mrt-dashboard-activity-preview .mrt-orm-show-less-btn:hover {
    background: #718096;
}

#mrt-dashboard-activity-preview .mrt-orm-show-more-container {
    text-align: center;
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#mrt-dashboard-activity-preview .mrt-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: var(--mrt-radius, 18px);
    margin-top: 20px;
}

#mrt-dashboard-activity-preview .mrt-no-results-content h3,
#mrt-dashboard-activity-preview .mrt-no-results-content h6 {
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
}

#mrt-dashboard-activity-preview .mrt-no-results-content p {
    color: #6c757d;
    margin-bottom: 20px;
}

#mrt-dashboard-activity-preview .mrt-no-results-content .button {
    background: var(--mrt-primary, #4f33ff);
    color: white;
    padding: 10px 20px;
    border-radius: var(--mrt-radius, 18px);
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

#mrt-dashboard-activity-preview .mrt-no-results-content .button:hover {
    background: var(--mrt-primary-hover, #a855f7);
}

/* ── Recent cards grid ───────────────────────────────────────────────── */

#mrt-dashboard-activity-preview .mrt-cards-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 15px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

#mrt-dashboard-activity-preview .mrt-exercise-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: var(--mrt-radius, 18px);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    transition:
        transform 0.2s;
    overflow: hidden;
}

#mrt-dashboard-activity-preview .mrt-exercise-card:hover {
    transform: translateY(-2px);
}

#mrt-dashboard-activity-preview .mrt-card-header {
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    border-left: 4px solid #a0aec0;
    border-right: 4px solid #a0aec0;
    text-align: center;
    box-shadow: none;
    margin-bottom: 5px;
}

#mrt-dashboard-activity-preview
    .mrt-exercise-card[data-status="strength"]
    .mrt-card-header,
#mrt-dashboard-activity-preview
    .mrt-exercise-card[data-status="status-strength"]
    .mrt-card-header {
    border-left-color: var(--mrt-strength, #10b981);
    border-right-color: var(--mrt-strength, #10b981);
}

#mrt-dashboard-activity-preview
    .mrt-exercise-card[data-status="hypertrophy"]
    .mrt-card-header,
#mrt-dashboard-activity-preview
    .mrt-exercise-card[data-status="status-hypertrophy"]
    .mrt-card-header {
    border-left-color: var(--mrt-hypertrophy, #3b82f6);
    border-right-color: var(--mrt-hypertrophy, #3b82f6);
}

#mrt-dashboard-activity-preview
    .mrt-exercise-card[data-status="endurance"]
    .mrt-card-header,
#mrt-dashboard-activity-preview
    .mrt-exercise-card[data-status="status-endurance"]
    .mrt-card-header {
    border-left-color: var(--mrt-endurance, #ef44d2);
    border-right-color: var(--mrt-endurance, #ef44d2);
}

#mrt-dashboard-activity-preview .mrt-card-header > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

#mrt-dashboard-activity-preview .mrt-exercise-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    font-family: "Merriweather", "Georgia", serif;
    letter-spacing: 0.5px;
    display: block;
}

#mrt-dashboard-activity-preview .mrt-exercise-detail {
    font-size: 0.7rem;
    color: #718096;
    font-weight: 400;
}

#mrt-dashboard-activity-preview .mrt-exercise-date {
    font-size: 0.75rem;
    color: #718096;
    display: block;
}

#mrt-dashboard-activity-preview .mrt-dual-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mrt-border-light, #e2e8f0);
    gap: 15px;
    transition: all 0.2s ease;
}

#mrt-dashboard-activity-preview .mrt-weight-stats,
#mrt-dashboard-activity-preview .mrt-reps-stats {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

#mrt-dashboard-activity-preview .mrt-reps-stats {
    border-right: 1px solid var(--mrt-border-light, #e2e8f0);
    padding-right: 15px;
}

#mrt-dashboard-activity-preview .mrt-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#mrt-dashboard-activity-preview .mrt-stat-label-small {
    font-size: 0.6rem;
    color: var(--mrt-text-secondary, #718096);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

#mrt-dashboard-activity-preview .mrt-stat-min,
#mrt-dashboard-activity-preview .mrt-stat-max {
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: calc(var(--mrt-radius, 18px) / 2);
    line-height: 1;
    min-width: 45px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: all 0.2s ease;
}

#mrt-dashboard-activity-preview .mrt-reps-stats .mrt-stat-min,
#mrt-dashboard-activity-preview .mrt-reps-stats .mrt-stat-max {
    color: var(--mrt-reps-color, #3182ce);
    background: rgba(49, 130, 206, 0.08);
}

#mrt-dashboard-activity-preview .mrt-weight-stats .mrt-stat-min,
#mrt-dashboard-activity-preview .mrt-weight-stats .mrt-stat-max {
    color: var(--mrt-weight-color, #dd6b20);
    background: rgba(221, 107, 32, 0.08);
}

/* mini chart */
#mrt-dashboard-activity-preview .mrt-mini-chart-container {
    position: relative;
    height: 220px;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

#mrt-dashboard-activity-preview .mrt-chart-lazy-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#mrt-dashboard-activity-preview .mrt-mini-chart {
    height: 100% !important;
    width: 100% !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

#mrt-dashboard-activity-preview .mrt-exercise-card:hover .mrt-mini-chart {
    transform: scale(1.02);
}

/* card body stats */
#mrt-dashboard-activity-preview .mrt-card-body {
    padding: 35px 0px 0px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

#mrt-dashboard-activity-preview .mrt-stat {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

#mrt-dashboard-activity-preview .mrt-stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
}

#mrt-dashboard-activity-preview .mrt-stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

#mrt-dashboard-activity-preview .mrt-stat-reps .mrt-stat-value {
    color: var(--mrt-reps-color, #3182ce);
}

#mrt-dashboard-activity-preview .mrt-stat-weight .mrt-stat-value {
    color: var(--mrt-weight-color, #dd6b20);
}

#mrt-dashboard-activity-preview .mrt-orm .mrt-stat-value {
    color: #707070;
}

/* footer */
#mrt-dashboard-activity-preview .mrt-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--mrt-border-light, rgba(226, 232, 240, 0.5));
    border-bottom-left-radius: var(--mrt-radius, 18px);
    border-bottom-right-radius: var(--mrt-radius, 18px);
    z-index: 10;
}

#mrt-dashboard-activity-preview .mrt-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: calc(var(--mrt-radius, 18px) - 8px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-transform: uppercase;
    cursor: pointer;
}

#mrt-dashboard-activity-preview .mrt-footer-link:first-child {
    background: linear-gradient(135deg, #4f33ff 0%, #a855f7 100%);
    color: #ffffff;
    box-shadow: none;
}

#mrt-dashboard-activity-preview .mrt-footer-link:last-child {
    background: rgba(255, 255, 255, 0.7);
    color: #4b5563;
    border: 1px solid rgba(209, 213, 219, 0.5);
}

#mrt-dashboard-activity-preview .mrt-footer-link:active {
    transform: scale(0.94) !important;
    transition: all 0.1s ease;
}

/* card arrow */
#mrt-dashboard-activity-preview .mrt-exercise-card .mrt-arrow {
    font-weight: bold;
    margin-left: 3px;
    font-size: 0.9em;
}

#mrt-dashboard-activity-preview .mrt-exercise-card .mrt-arrow.up {
    color: #38a169;
}
#mrt-dashboard-activity-preview .mrt-exercise-card .mrt-arrow.down {
    color: #e53e3e;
}
#mrt-dashboard-activity-preview .mrt-exercise-card .mrt-arrow.same {
    color: #718096;
}

/* benchmark badge */
#mrt-dashboard-activity-preview .mrt-card-benchmark:empty {
    display: none;
}

#mrt-dashboard-activity-preview .mrt-card-benchmark-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    margin: 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--benchmark-level-color) 6%, transparent),
        color-mix(in srgb, var(--benchmark-level-color) 12%, transparent)
    );
}

#mrt-dashboard-activity-preview .mrt-card-benchmark-pct {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

#mrt-dashboard-activity-preview .benchmark-pct-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--benchmark-level-color);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#mrt-dashboard-activity-preview .benchmark-pct-text {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    font-weight: 500;
}

/* ── Training spectrum ───────────────────────────────────────────────── */

#mrt-dashboard-activity-preview .mrt-training-spectrum-container {
    padding: 40px 20px 5px 20px;
    margin: 0;
    background: #f7fafc;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

#mrt-dashboard-activity-preview .mrt-spectrum-bar-wrapper {
    position: relative;
    margin-bottom: 24px;
    padding-top: 12px;
}

#mrt-dashboard-activity-preview .mrt-spectrum-bar {
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

#mrt-dashboard-activity-preview .mrt-spectrum-zone {
    height: 100%;
    position: relative;
    transition:
        opacity 0.4s ease,
        filter 0.4s ease;
}

#mrt-dashboard-activity-preview .mrt-spectrum-zone.strength {
    width: 30%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

#mrt-dashboard-activity-preview .mrt-spectrum-zone.hypertrophy {
    width: 30%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

#mrt-dashboard-activity-preview .mrt-spectrum-zone.endurance {
    width: 40%;
    background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
}

#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-strength
    .mrt-spectrum-zone:not(.strength),
#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-hypertrophy
    .mrt-spectrum-zone:not(.hypertrophy),
#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-endurance
    .mrt-spectrum-zone:not(.endurance) {
    opacity: 0.25;
    filter: saturate(0.5);
}

#mrt-dashboard-activity-preview .mrt-spectrum-marker {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 32px;
    background: #ffffff;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: none;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-strength
    .mrt-spectrum-marker {
    box-shadow: none;
    border: 1px solid var(--mrt-strength, #10b981);
}

#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-hypertrophy
    .mrt-spectrum-marker {
    box-shadow: none;
    border: 1px solid var(--mrt-hypertrophy, #3b82f6);
}

#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-endurance
    .mrt-spectrum-marker {
    box-shadow: none;
    border: 1px solid var(--mrt-endurance, #ef44d2);
}

#mrt-dashboard-activity-preview .mrt-spectrum-marker {
    animation: mrt-da-marker-pulse-glow 2s infinite ease-in-out;
}

#mrt-dashboard-activity-preview .mrt-spectrum-marker::after {
    content: attr(data-reps);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    background: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: none;
    white-space: nowrap;
    opacity: 0;
    animation: mrt-da-fade-in-spectrum 0.3s forwards 0.5s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#mrt-dashboard-activity-preview .mrt-spectrum-marker::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
    opacity: 0;
    animation: mrt-da-fade-in-spectrum 0.3s forwards 0.5s;
}

@keyframes mrt-da-marker-pulse-glow {
    0%,
    100% {
        box-shadow: none;
    }
    50% {
        box-shadow: none;
    }
}

@keyframes mrt-da-fade-in-spectrum {
    to {
        opacity: 1;
    }
}

#mrt-dashboard-activity-preview .mrt-zone-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
}

#mrt-dashboard-activity-preview .mrt-zone-label-text {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-strength
    .mrt-zone-labels
    .mrt-zone-label-text:nth-child(1) {
    color: var(--mrt-strength, #059669);
}
#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-hypertrophy
    .mrt-zone-labels
    .mrt-zone-label-text:nth-child(2) {
    color: var(--mrt-hypertrophy, #2563eb);
}
#mrt-dashboard-activity-preview
    .mrt-spectrum-bar-wrapper.highlight-endurance
    .mrt-zone-labels
    .mrt-zone-label-text:nth-child(3) {
    color: var(--mrt-endurance, #be185d);
}

/* ── View toggle (Recent / Overview) ─────────────────────────────────── */

#mrt-dashboard-activity-preview .mrt-view-toggle {
    margin-bottom: 12px;
}

#mrt-dashboard-activity-preview .mrt-exercise-type-toggle.mrt-view-toggle {
    position: relative;
    display: inline-flex;
    background: var(--mrt-bg-tertiary, #edf2f7);
    border-radius: 18px;
    padding: 3px;
    border: 1px solid var(--mrt-border-light, #cbd5e0);
    width: 100%;
    max-width: 100%;
    height: 44px;
    align-items: center;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

#mrt-dashboard-activity-preview
    .mrt-exercise-type-toggle.mrt-view-toggle
    input[type="radio"] {
    display: none;
}

#mrt-dashboard-activity-preview
    .mrt-exercise-type-toggle.mrt-view-toggle
    .mrt-toggle-option {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--mrt-transition-smooth, all 0.4s ease);
    font-weight: var(--mrt-font-weight-bold, 700);
    font-size: 12px;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

#mrt-dashboard-activity-preview
    .mrt-exercise-type-toggle.mrt-view-toggle
    input[type="radio"]:checked
    + label {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#mrt-dashboard-activity-preview
    .mrt-exercise-type-toggle.mrt-view-toggle
    .mrt-toggle-slider {
    position: absolute;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    border-radius: 15px;
    transition: var(
        --mrt-transition-bounce,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
    background: linear-gradient(
        135deg,
        var(--mrt-primary, #4f33ff) 0%,
        var(--mrt-primary-hover, #a855f7) 100%
    );
    box-shadow: none;
    z-index: 1;
    left: 3px;
}

#mrt-dashboard-activity-preview
    #mrt_da_view_recent:checked
    ~ .mrt-toggle-slider {
    transform: translateX(0);
}

#mrt-dashboard-activity-preview
    #mrt_da_view_overview:checked
    ~ .mrt-toggle-slider {
    transform: translateX(100%);
}

#mrt-dashboard-activity-preview
    .mrt-exercise-type-toggle.mrt-view-toggle
    .mrt-toggle-option:active {
    transform: scale(0.97);
}

/* Dark mode: override the !important light-mode idle colors so text stays
   light on the translucent dark background (matches core via dark-mode plugin). */
html.maxreptracker-dark-mode-enabled
    #mrt-dashboard-activity-preview
    .mrt-orm-category-filter-btn {
    color: var(--maxreptracker-dark-text) !important;
}

html.maxreptracker-dark-mode-enabled
    #mrt-dashboard-activity-preview
    .mrt-overview-range-btn {
    color: var(--maxreptracker-dark-text) !important;
}

/* ── Overview section (charts) ───────────────────────────────────────── */

#mrt-dashboard-activity-preview
    .mrt-dashboard-wrap.mrt-overview-active
    .mrt-recent-controls,
#mrt-dashboard-activity-preview
    .mrt-dashboard-wrap.mrt-overview-active
    #mrt-cards-grid,
#mrt-dashboard-activity-preview
    .mrt-dashboard-wrap.mrt-overview-active
    .mrt-orm-show-more-container,
#mrt-dashboard-activity-preview
    .mrt-dashboard-wrap.mrt-overview-active
    #mrt-no-results {
    display: none !important;
}

#mrt-dashboard-activity-preview .mrt-overview-section {
    display: none;
}

#mrt-dashboard-activity-preview
    .mrt-dashboard-wrap.mrt-overview-active
    .mrt-overview-section {
    display: block !important;
}

#mrt-dashboard-activity-preview .mrt-overview-filters {
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

#mrt-dashboard-activity-preview .mrt-overview-filters::-webkit-scrollbar {
    display: none;
}

#mrt-dashboard-activity-preview .mrt-overview-filters.mrt-filter-scrolling {
    cursor: grabbing;
    user-select: none;
}

#mrt-dashboard-activity-preview .mrt-overview-filters .mrt-overview-range-btn {
    flex: 0 0 auto;
}

#mrt-dashboard-activity-preview
    .mrt-dashboard-wrap.mrt-overview-active
    .mrt-overview-filters {
    display: flex;
}

#mrt-dashboard-activity-preview .mrt-overview-range-btn {
    padding: 8px 15px;
    border: 1px solid #cbd5e0;
    background: #edf2f7;
    border-radius: var(--mrt-radius, 18px);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #4a5568 !important;
}

#mrt-dashboard-activity-preview .mrt-overview-range-btn:hover {
    background: var(--mrt-primary, #4f33ff) !important;
    color: white !important;
    border-color: var(--mrt-primary, #4f33ff);
}

#mrt-dashboard-activity-preview .mrt-overview-range-btn.active {
    background: var(--mrt-primary, #4f33ff);
    color: white !important;
    border-color: var(--mrt-primary, #4f33ff);
}

#mrt-dashboard-activity-preview .mrt-overview-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

#mrt-dashboard-activity-preview .mrt-overview-card {
    background: #ffffff;
    border: none;
    box-shadow: none;
    border-radius: var(--mrt-radius, 18px);
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition:
        transform 0.2s;
    overflow: hidden;
}

#mrt-dashboard-activity-preview .mrt-overview-card:hover {
    transform: translateY(-2px);
}

#mrt-dashboard-activity-preview .mrt-overview-card-title {
    margin: 0 0 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Inter", "Outfit", sans-serif;
    text-align: center;
}

#mrt-dashboard-activity-preview .mrt-overview-chart-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 240px;
    height: 240px;
    margin-top: auto;
}

#mrt-dashboard-activity-preview .mrt-overview-card canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

#mrt-dashboard-activity-preview .mrt-overview-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: var(--mrt-radius, 18px);
    margin-top: 20px;
}

@media (max-width: 768px) {
    #mrt-dashboard-activity-preview .mrt-cards-grid {
        grid-template-columns: 1fr;
    }
    #mrt-dashboard-activity-preview .mrt-orm-filter-buttons {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-right: -10px;
        padding-bottom: 4px;
    }
    #mrt-dashboard-activity-preview .mrt-orm-category-filter-btn {
        flex: 0 0 auto;
        text-align: center;
        padding: 8px 15px;
        min-width: 0;
    }
    #mrt-dashboard-activity-preview .mrt-orm-show-more-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    #mrt-dashboard-activity-preview .mrt-orm-show-more-btn,
    #mrt-dashboard-activity-preview .mrt-orm-show-less-btn {
        width: 100%;
        max-width: 300px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #mrt-dashboard-activity-preview .mrt-overview-grid {
        grid-template-columns: 1fr;
    }
}
