
.mpd-dashboard-page #primary,
.mpd-dashboard-page .site-main,
.mpd-dashboard-page .content-area,
.mpd-dashboard-page .entry-content,
.mpd-dashboard-page .post,
.mpd-dashboard-page article,
.mpd-dashboard-page .page {
    width: 100% !important;
    max-width: 100% !important;
}

.mpd-shell {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 18px;
    color: #e8edf5;
    box-sizing: border-box;
}

.mpd-hero, .mpd-panel, .mpd-category, .mpd-note, .mpd-stat-card, .mpd-link-card {
    box-sizing: border-box;
}

.mpd-hero {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10,16,28,.95), rgba(12,22,40,.88));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

.mpd-kicker {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9eb5d3;
    margin-bottom: 10px;
}

.mpd-hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.05;
    color: #fff;
}

.mpd-hero p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #c8d3e3;
    max-width: 720px;
}

.mpd-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-self: start;
}

.mpd-stat-card {
    min-height: 116px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}

.mpd-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #93a7c0;
    margin-bottom: 10px;
}

.mpd-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.mpd-stat-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #b2c0d2;
    line-height: 1.45;
}

.mpd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.mpd-panel {
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(13,21,37,.98), rgba(14,25,42,.92));
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    min-width: 0;
}

.mpd-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mpd-panel-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.mpd-panel-sub {
    font-size: 12px;
    color: #9bb0ca;
}

.mpd-category {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(9,17,31,.82);
    border: 1px solid rgba(255,255,255,.06);
}

.mpd-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 4px 4px 0;
    flex-wrap: wrap;
}

.mpd-category-head h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: #fff;
}

.mpd-count {
    font-size: 12px;
    color: #9ab0ca;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    padding: 6px 10px;
    border-radius: 999px;
}

.mpd-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.mpd-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    color: #eef4fb;
    text-decoration: none !important;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.mpd-link-card:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
    border-color: rgba(150,195,255,.24);
}

.mpd-link-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    font-size: 18px;
    color: #b7d7ff;
}

.mpd-link-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.mpd-link-arrow {
    opacity: .65;
    font-size: 16px;
}

.mpd-note {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(255,255,255,.12);
    font-size: 13px;
    line-height: 1.6;
    color: #cad5e3;
}

.mpd-note code {
    background: rgba(255,255,255,.07);
    padding: 2px 6px;
    border-radius: 8px;
    color: #fff;
}

.mpd-login-note {
    padding: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
}

#mpdVitalsChart, #mpdFitnessChart {
    width: 100%;
    display: block;
    border-radius: 16px;
    background: rgba(255,255,255,.015);
}

@media (max-width: 1100px) {
    .mpd-hero {
        grid-template-columns: 1fr;
    }
    .mpd-hero-stats {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
    .mpd-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mpd-shell {
        padding: 12px;
    }
    .mpd-hero {
        padding: 14px;
        border-radius: 20px;
    }
    .mpd-hero h1 {
        font-size: 28px;
    }
    .mpd-hero-stats {
        grid-template-columns: 1fr;
    }
    .mpd-links-grid {
        grid-template-columns: 1fr;
    }
    .mpd-link-card {
        min-height: 48px;
        border-radius: 14px;
    }
}
