#weight-progress .weight-chart-card {
    position: relative;
    overflow: hidden;
    padding: 17px 15px 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: linear-gradient(155deg, #151518 0%, #101113 72%, #0f1512 100%);
    box-shadow: 0 18px 44px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.025);
}

#weight-progress .weight-chart-card::after {
    content: "";
    position: absolute;
    inset: auto 12% -46px;
    height: 90px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent, #df141e) 7%, transparent);
    filter: blur(34px);
    pointer-events: none;
}

#weight-progress .weight-chart-card .chart-header {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
}

#weight-progress .weight-chart-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--accent, #df141e);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

#weight-progress .chart-header h3 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -.025em;
}

#weight-progress .chart-header p {
    margin-top: 4px;
    color: #85858e;
    font-size: 10px;
}

#weight-progress .weight-chart-period-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
    margin-top: 14px;
}

#weight-progress .weight-chart-period-stat {
    display: grid;
    gap: 3px;
}

#weight-progress .weight-chart-period-stat small {
    color: #85858e;
    font-size: 10px;
    font-weight: 700;
}

#weight-progress .weight-chart-period-stat strong {
    color: var(--accent, #df141e);
    font-size: 22px;
    letter-spacing: -.025em;
    line-height: 1.1;
}

#weight-progress .weight-chart-period-dates {
    grid-column: 1 / -1;
    color: #b4b4bc;
    font-size: 11px;
    font-weight: 650;
}

#weight-progress .weight-chart-range-control {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin: 13px 0 6px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}

#weight-progress .weight-chart-range-control button {
    min-width: 0;
    min-height: 32px;
    margin: 0;
    padding: 5px 3px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #8f8f98;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
    touch-action: manipulation;
}

#weight-progress .weight-chart-range-control button[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--accent, #df141e) 45%, transparent);
    background: color-mix(in srgb, var(--accent, #df141e) 32%, transparent);
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #df141e) 8%, transparent);
}

#weight-progress .weight-chart-range-control button:disabled {
    opacity: .32;
}

#weight-progress #weight-trend-chart {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 3px;
}

@media (max-width: 380px) {
    #weight-progress .weight-chart-range-control {
        gap: 3px;
        padding: 3px;
    }

    #weight-progress .weight-chart-range-control button {
        min-height: 30px;
        padding-inline: 2px;
        font-size: 9px;
    }

    #weight-progress .weight-chart-card {
        padding-inline: 12px;
    }

    #weight-progress .weight-chart-period-stat strong {
        font-size: 20px;
    }

    #weight-progress .chart-header p {
        max-width: 160px;
    }
}
